/* monopole.tech - Frutiger Aero Glossy Tech */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f0f4ff;
    font-family: 'Nunito', sans-serif;
    color: #3a3a4e;
    overflow-x: hidden;
}

/* Extended palette tokens (Frutiger Aero system) */
:root {
    --aero-dark: #0a0a1e;
    --aero-blue: #4a8ad4;
    --aero-sky: #6a9ad4;
    --aero-panel: #d4e0f0;
    --aero-light: #e8f0ff;
}

/* Hero */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #c4d8f0 0%, #f0f4ff 60%, #ffffff 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-bg.visible {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-name {
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1a1a2e;
    line-height: 1.1;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.product-name.visible {
    opacity: 1;
    transform: scale(1);
}

.tagline {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: 400;
    color: #5a5a7e;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.5s ease-out 0.3s;
}

.tagline.visible {
    opacity: 1;
}

/* Glossy Sphere */
.product-sphere {
    position: relative;
    margin: 40px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sphere {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #c4d8f0 40%, #2a4a8a 100%);
    position: relative;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sphere.visible {
    opacity: 1;
    transform: scale(1);
}

.sphere.small {
    width: 60px;
    height: 60px;
}

.sphere-highlight {
    position: absolute;
    top: 15%;
    left: 20%;
    width: 40%;
    height: 20%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
    border-radius: 50%;
    transform: rotate(-20deg);
}

.sphere-reflection {
    width: 160px;
    height: 40px;
    margin-top: -10px;
    background: radial-gradient(ellipse, rgba(42, 74, 138, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease 0.6s;
}

.sphere-reflection.visible {
    opacity: 1;
}

.sphere-shadow {
    width: 180px;
    height: 20px;
    margin-top: 5px;
    background: radial-gradient(ellipse, rgba(26, 26, 46, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.version-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    font-weight: 400;
    color: #a0b8d4;
    letter-spacing: 0.1em;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.5s ease-out 0.8s;
}

.version-label.visible {
    opacity: 1;
}

/* Sections */
.section-alt {
    background: #ffffff;
}

.section-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 40px;
}

.z-pattern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.z-pattern.reverse {
    direction: rtl;
}

.z-pattern.reverse > * {
    direction: ltr;
}

.section-title {
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.1;
    margin-bottom: 20px;
}

.section-title.centered {
    text-align: center;
}

.feature-text p {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    font-weight: 400;
    color: #5a5a7e;
    line-height: 1.7;
    margin-bottom: 14px;
}

/* Spec Panel */
.spec-panel,
.diagram-panel {
    background: linear-gradient(180deg, #f0f4ff, #ffffff);
    border: 1px solid #c4d8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(42, 74, 138, 0.08), 0 1px 4px rgba(42, 74, 138, 0.05);
}

.panel-chrome-top {
    height: 32px;
    background: linear-gradient(180deg, #e8eef8, #d8e4f0);
    border-bottom: 1px solid #c4d8f0;
    display: flex;
    align-items: center;
    padding: 0 12px;
    position: relative;
}

.panel-chrome-top::before {
    content: '';
    display: flex;
    gap: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a0b8d4;
    box-shadow: 14px 0 0 #a0b8d4, 28px 0 0 #a0b8d4;
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #c4d8f0;
    padding: 1px;
}

.spec-item {
    background: #ffffff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.spec-value {
    font-family: 'Space Mono', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2a4a8a;
}

.spec-label {
    font-family: 'Nunito', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #a0b8d4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* Tech Diagram */
.tech-diagram {
    width: 100%;
    padding: 20px;
}

/* Version Timeline */
.version-timeline {
    max-width: 600px;
    margin: 40px auto 0;
}

.version-entry {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #c4d8f0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.version-entry.visible {
    opacity: 1;
    transform: translateY(0);
}

.version-badge {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #5a5a7e;
    background: #f0f4ff;
    border: 1px solid #c4d8f0;
    border-radius: 20px;
    padding: 4px 14px;
    white-space: nowrap;
    height: fit-content;
}

.version-badge.active {
    background: #2a4a8a;
    color: #f0f4ff;
    border-color: #2a4a8a;
}

.version-info h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #3a3a4e;
    margin-bottom: 4px;
}

.version-info p {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    color: #5a5a7e;
    line-height: 1.5;
}

/* Footer */
#footer-section {
    background: linear-gradient(180deg, #f0f4ff, #c4d8f0);
    padding: 80px 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-sphere-small {
    margin-bottom: 20px;
}

.footer-text {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
}

.footer-sub {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    color: #5a5a7e;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .z-pattern {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .z-pattern.reverse {
        direction: ltr;
    }

    .sphere {
        width: 150px;
        height: 150px;
    }

    .section-content {
        padding: 50px 20px;
    }
}
