/* ===================================================================
   SYNAPTIX — Production Stylesheet
   AI-powered Level II Home Sleep Diagnostics
   =================================================================== */

/* --- Reset & Custom Properties --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-base: #080e1c;
    --bg-mid: #0c1629;
    --bg-elevated: #111d36;
    --teal: #00e5c3;
    --teal-soft: #33ffd8;
    --teal-dim: rgba(0, 229, 195, 0.1);
    --teal-glow: rgba(0, 229, 195, 0.3);
    --cyan: #06b6d4;
    --gold: #f59e0b;
    --red: #f87171;
    --purple: #a78bfa;
    --text-primary: #eef2f6;
    --text-secondary: rgba(238, 242, 246, 0.55);
    --text-muted: rgba(238, 242, 246, 0.28);
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --section-pad: 8rem 7%;
    --radius: 14px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Shared Helpers --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s;
}

nav.scrolled {
    background: rgba(8, 14, 28, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
}

.nav-logo {
    height: 28px;
    width: auto;
    border-radius: 4px;
}

.nav-wave {
    width: 32px;
    height: 20px;
    flex-shrink: 0;
}

.nav-word {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.nav-sub {
    font-size: 0.58rem;
    color: var(--text-muted);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-left: 0.5rem;
    font-weight: 500;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-right a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.nav-right a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--teal);
    transition: width var(--transition);
}

.nav-right a:not(.nav-cta):hover::after { width: 100%; }
.nav-right a:hover { color: var(--text-primary); }

.nav-cta {
    background: var(--teal);
    color: var(--bg-base) !important;
    padding: 0.55rem 1.3rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.nav-cta:hover {
    box-shadow: 0 6px 20px var(--teal-glow);
    transform: translateY(-1px);
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero (Split Layout) --- */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    padding: 6rem 7% 4rem;
    position: relative;
    overflow: hidden;
    gap: 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(0, 229, 195, 0.05), transparent 70%);
    pointer-events: none;
}

/* Subtle grid mesh in hero background */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 195, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 195, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 60% 70% at 70% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 50%, black, transparent);
}

.hero-left {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 0.45rem 1rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    backdrop-filter: blur(8px);
    opacity: 0;
    animation: fadeUp 0.6s ease 0.3s forwards;
}

.hero-badge .pulse {
    width: 7px;
    height: 7px;
    background: var(--teal);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--teal);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero h1 {
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2.5px;
    margin-bottom: 1.8rem;
}

.hero h1 .w {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px);
    animation: wordIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 .w:nth-child(1) { animation-delay: 0.45s; }
.hero h1 .w:nth-child(2) { animation-delay: 0.55s; }
.hero h1 .w:nth-child(3) { animation-delay: 0.65s; }
.hero h1 .w:nth-child(4) { animation-delay: 0.8s; }

@keyframes wordIn { to { opacity: 1; transform: translateY(0); } }

.hero h1 .glow {
    background: linear-gradient(135deg, var(--teal), var(--teal-soft));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px var(--teal-glow));
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 480px;
    opacity: 0;
    animation: fadeUp 0.7s ease 1s forwards;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeUp 0.7s ease 1.15s forwards;
}

.btn-main {
    background: var(--teal);
    color: var(--bg-base);
    padding: 0.95rem 2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}

.btn-main:hover {
    box-shadow: 0 10px 36px var(--teal-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 0.95rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid var(--glass-border);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}

.btn-secondary:hover {
    border-color: var(--teal);
    color: var(--teal);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Device Mock --- */
.hero-right {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.device-mock {
    width: 100%;
    max-width: 440px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    opacity: 0;
    animation: fadeUp 1s ease 0.5s forwards;
}

.device-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--glass-border);
}

.device-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--teal);
}

.device-status .dot {
    width: 6px;
    height: 6px;
    background: var(--teal);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--teal);
}

.device-id {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-family: 'Space Grotesk', monospace;
}

.signal-display {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    height: 130px;
    position: relative;
    overflow: hidden;
}

.signal-display canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.signal-label {
    position: absolute;
    top: 0.5rem;
    left: 0.7rem;
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    z-index: 1;
}

.vitals-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.vital {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.7rem;
    text-align: center;
    transition: border-color var(--transition);
}

.vital:hover { border-color: rgba(0, 229, 195, 0.2); }

.vital-label {
    font-size: 0.58rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.vital-num {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--teal);
}

.vital-unit {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
}

.ai-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--teal-dim);
    border: 1px solid rgba(0, 229, 195, 0.15);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
}

.ai-dot {
    width: 7px;
    height: 7px;
    background: var(--teal);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--teal);
    animation: pulseDot 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.ai-text {
    font-size: 0.75rem;
    color: var(--teal);
    font-weight: 500;
}

/* --- Shared Section Styles --- */
section {
    padding: var(--section-pad);
    position: relative;
}

.eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.eyebrow::before {
    content: '';
    width: 20px;
    height: 1.5px;
    background: var(--teal);
}

.s-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.s-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.75;
}

/* --- Waveform Divider (SVG) --- */
.wave-divider {
    display: block;
    width: 100%;
    height: 40px;
    overflow: visible;
}

/* --- Stats Band --- */
.stats-band {
    background: var(--bg-mid);
    padding: 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-inner {
    display: flex;
}

.stat-item {
    flex: 1;
    padding: 3rem 2.5rem;
    text-align: center;
    border-right: 1px solid var(--glass-border);
    transition: background var(--transition);
}

.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255, 255, 255, 0.02); }

.stat-num {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.stat-item:nth-child(1) .stat-num { color: var(--teal); }
.stat-item:nth-child(2) .stat-num { color: var(--gold); }
.stat-item:nth-child(3) .stat-num { color: var(--cyan); }
.stat-item:nth-child(4) .stat-num { color: var(--red); }

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* --- Problem Section + Available Now Card --- */
.problem-section { background: var(--bg-base); }

.problem-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

.problem-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.p-card {
    padding: 1.5rem 1.8rem;
    border-left: 3px solid;
    background: var(--glass);
    border-radius: 0 12px 12px 0;
    transition: transform var(--transition);
}

.p-card:hover { transform: translateX(6px); }

.p-card:nth-child(1) { border-left-color: var(--red); }
.p-card:nth-child(2) { border-left-color: var(--gold); }
.p-card:nth-child(3) { border-left-color: var(--purple); }

.p-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.p-card:nth-child(1) h4 { color: var(--red); }
.p-card:nth-child(2) h4 { color: var(--gold); }
.p-card:nth-child(3) h4 { color: var(--purple); }

.p-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.now-card {
    background: var(--glass);
    border: 2px solid var(--teal);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
}

.now-badge {
    position: absolute;
    top: -11px;
    left: 20px;
    background: var(--gold);
    color: var(--bg-base);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.now-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--teal);
}

.now-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.now-price {
    display: inline-block;
    background: var(--teal-dim);
    color: var(--teal);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* --- Platform Diagram --- */
.platform-section {
    background: var(--bg-mid);
    border-top: 1px solid var(--glass-border);
}

.diagram {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr 60px 1fr 60px 1fr;
    gap: 0;
    align-items: stretch;
}

.dia-node {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s;
}

.dia-node:hover {
    border-color: rgba(0, 229, 195, 0.2);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.dia-head {
    padding: 1.2rem 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dia-node:nth-child(1) .dia-head { background: rgba(0, 229, 195, 0.08); color: var(--teal); border-bottom: 1px solid rgba(0, 229, 195, 0.1); }
.dia-node:nth-child(3) .dia-head { background: rgba(245, 158, 11, 0.08); color: var(--gold); border-bottom: 1px solid rgba(245, 158, 11, 0.1); }
.dia-node:nth-child(5) .dia-head { background: rgba(6, 182, 212, 0.08); color: var(--cyan); border-bottom: 1px solid rgba(6, 182, 212, 0.1); }

.dia-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dia-node:nth-child(1) .dia-icon { background: rgba(0, 229, 195, 0.15); }
.dia-node:nth-child(3) .dia-icon { background: rgba(245, 158, 11, 0.15); }
.dia-node:nth-child(5) .dia-icon { background: rgba(6, 182, 212, 0.15); }

.dia-body { padding: 1.2rem 1.5rem; }

.dia-body li {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.4rem 0 0.4rem 1rem;
    position: relative;
}

.dia-body li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    font-weight: 600;
    font-size: 0.75rem;
}

.dia-node:nth-child(1) .dia-body li::before { color: var(--teal); }
.dia-node:nth-child(3) .dia-body li::before { color: var(--gold); }
.dia-node:nth-child(5) .dia-body li::before { color: var(--cyan); }

.dia-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dia-connector::before {
    content: '';
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--gold));
    animation: flowPulse 2s ease-in-out infinite;
}

.dia-connector:last-of-type::before {
    background: linear-gradient(90deg, var(--gold), var(--cyan));
}

@keyframes flowPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.dia-connector .dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 8px var(--teal);
}

/* --- Comparison Columns --- */
.comp-section {
    background: var(--bg-mid);
    border-top: 1px solid var(--glass-border);
}

.comp-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 4rem;
}

.comp-c {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}

.comp-c:last-child { border-color: rgba(0, 229, 195, 0.3); }
.comp-c:last-child:hover { border-color: rgba(0, 229, 195, 0.5); }

.comp-ch {
    padding: 1.2rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--glass);
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
}

.comp-c:last-child .comp-ch {
    color: var(--teal);
    background: var(--teal-dim);
}

.comp-r {
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
}

.comp-r:last-child { border-bottom: none; }
.comp-c:last-child .comp-r { color: var(--text-secondary); }

.ck { color: var(--teal) !important; font-weight: 600; }
.cx { color: var(--red) !important; opacity: 0.5; }

.comp-tagline {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* --- GTM Cards --- */
.gtm-section { background: var(--bg-base); }

.gtm-hor {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.gtm-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s;
}

.gtm-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.gtm-head {
    padding: 1.5rem 2rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.gtm-card:nth-child(1) .gtm-head {
    background: linear-gradient(135deg, rgba(0, 229, 195, 0.1), transparent);
    color: var(--teal);
    border-bottom: 1px solid rgba(0, 229, 195, 0.1);
}

.gtm-card:nth-child(2) .gtm-head {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), transparent);
    color: var(--gold);
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

.gtm-head small {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    margin-top: 0.2rem;
    opacity: 0.7;
}

.gtm-body { padding: 1.5rem 2rem; }

.gtm-body li {
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.gtm-body li:last-child { border-bottom: none; }

/* --- CTA Section --- */
.cta-section {
    background: var(--bg-base);
    text-align: center;
    padding: 10rem 7%;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0, 229, 195, 0.06), transparent 70%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    position: relative;
}

.cta-section .sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    position: relative;
}

.btn-gold {
    background: var(--gold);
    color: var(--bg-base);
    padding: 1.1rem 2.8rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-block;
    text-decoration: none;
    position: relative;
    font-family: inherit;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 44px rgba(245, 158, 11, 0.3);
}

.cta-email {
    margin-top: 1.2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
}

/* --- Footer --- */
footer {
    padding: 3.5rem 7% 2.5rem;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-base);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 4rem;
    margin-bottom: 2.5rem;
}

.footer-brand h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h5 {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    padding: 0.3rem 0;
    transition: color var(--transition);
}

.footer-col a:hover { color: var(--teal); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}

.footer-bottom a:hover { color: var(--teal); }

/* --- Team Page --- */
.team-hero {
    padding: 10rem 7% 4rem;
    position: relative;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 50%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(0, 229, 195, 0.04), transparent 70%);
    pointer-events: none;
}

.team-hero .s-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    margin-bottom: 1.2rem;
}

.team-section {
    padding: 4rem 7% 5rem;
}

.team-section-alt {
    background: var(--bg-mid);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.team-group-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.team-group-label::before {
    content: '';
    width: 20px;
    height: 1.5px;
    background: var(--teal);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.team-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.team-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.team-card:hover {
    border-color: rgba(0, 229, 195, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
}

a.team-card:hover {
    border-color: rgba(0, 229, 195, 0.35);
}

.team-card-sm {
    padding: 2rem 1.5rem;
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    transition: border-color var(--transition);
}

.team-card:hover .team-avatar {
    border-color: var(--teal);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-avatar-sm {
    width: 76px;
    height: 76px;
    margin-bottom: 1.2rem;
}

.team-avatar-init {
    background: var(--teal-dim);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar-init span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: 1px;
}

.team-avatar-sm.team-avatar-init span {
    font-size: 1.1rem;
}

.team-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.team-card-sm h3 {
    font-size: 1rem;
}

.team-role {
    display: block;
    font-size: 0.8rem;
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-bio {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.team-card-sm .team-bio {
    font-size: 0.82rem;
}

.active-link {
    color: var(--teal) !important;
}

/* --- Contact Page --- */
.contact-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 7% 4rem;
    position: relative;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0, 229, 195, 0.05), transparent 70%);
    pointer-events: none;
}

.contact-wrapper {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.contact-title {
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.contact-title .glow {
    background: linear-gradient(135deg, var(--teal), var(--teal-soft));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px var(--teal-glow));
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 3.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.contact-email-box {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    transition: border-color var(--transition);
}

.contact-email-box:hover {
    border-color: rgba(0, 229, 195, 0.2);
}

.contact-icon {
    background: var(--teal-dim);
    color: var(--teal);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-email-content {
    text-align: left;
    flex: 1;
    min-width: 180px;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.4rem;
}

.contact-address {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--teal);
    text-decoration: none;
    transition: color var(--transition);
    display: block;
}

.contact-address:hover {
    color: var(--teal-soft);
}

.contact-copy-btn {
    background: var(--glass);
    border: 1.5px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.8rem 1.3rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition);
    flex-shrink: 0;
    font-family: inherit;
}

.contact-copy-btn:hover {
    background: var(--teal);
    color: var(--bg-base);
    border-color: var(--teal);
    transform: translateY(-2px);
}

.contact-back {
    margin-top: 1rem;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.back-link:hover {
    color: var(--teal);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: auto;
        padding-top: 8rem;
        padding-bottom: 4rem;
    }
    .hero-right { display: none; }
    .diagram { grid-template-columns: 1fr; gap: 1rem; }
    .dia-connector { display: none; }
    .problem-layout { grid-template-columns: 1fr; }
    .comp-cols { grid-template-columns: 1fr; }
    .gtm-hor { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .team-grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --section-pad: 5rem 5%; }
    .hero { padding: 7rem 5% 3rem; }
    nav { padding: 1rem 5%; }
    .stats-inner { flex-direction: column; }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 2rem 1.5rem;
    }
    .stat-item:last-child { border-bottom: none; }
    .stat-num { font-size: 2.2rem; }
    .nav-right a:not(.nav-cta) { display: none; }
    .nav-toggle { display: block; }
    .nav-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(8, 14, 28, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--glass-border);
    }
    .nav-right.open { right: 0; }
    .nav-right.open a:not(.nav-cta) {
        display: block;
        font-size: 1.1rem;
    }
    .hero-btns { flex-direction: column; }
    .hero-btns a { text-align: center; }
    .hero h1 { letter-spacing: -1.5px; }
    .footer-bottom { flex-direction: column; gap: 0.8rem; text-align: center; }
    .team-grid { grid-template-columns: 1fr; }
    .team-grid-4 { grid-template-columns: 1fr 1fr; }
    .team-hero { padding: 8rem 5% 3rem; }
    .team-section { padding: 3rem 5% 4rem; }
    .contact-hero { padding: 8rem 5% 3rem; }
    .contact-title { letter-spacing: -1px; }
    .contact-subtitle { font-size: 1rem; }
    .contact-email-box {
        flex-direction: column;
        padding: 2rem 1.5rem;
        text-align: center;
    }
    .contact-email-content { text-align: center; }
    .contact-address { font-size: 1.2rem; }
    .contact-copy-btn { width: 100%; justify-content: center; }
}
