/* ============================================================
   GOXLR — light theme, matching goxlr.support 1:1
   Palette: white bg, blue #3b82f6, Jakarta body + Syne heads
   ============================================================ */

:root {
    --bg: #000000;
    --bg-2: #0a0a0a;
    --bg-3: #141414;
    --bg-app: #080808;

    --text: #f5f5f5;
    --text-2: #a8a8a8;
    --text-3: #707070;

    --cyan: #5bccf6;
    --cyan-hover: #4ba8d1;
    --cyan-glow: rgba(91, 204, 246, 0.2);
    --cyan-dim: rgba(91, 204, 246, 0.05);
    --accent: rgba(91, 204, 246, 0.03);

    --line: rgba(255, 255, 255, 0.06);
    --line-2: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);

    --font: 'Space Grotesk', -apple-system, system-ui, sans-serif;
    --font-head: 'Space Grotesk', var(--font);

    --r: 8px;
    --r-lg: 12px;
    --r-xl: 16px;

    --header: 70px;
    --max: 1200px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: calc(var(--header) + 16px); 
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Smooth scrolling enhancement */
* {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cyan-hover); }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--text);
}

h1 { font-weight: 900; letter-spacing: -0.015em; }

.container { max-width: var(--max); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.container.narrow { max-width: 760px; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--cyan); color: #000;
    padding: 10px 18px; z-index: 1000; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; }

.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 40% at 75% 10%, rgba(255, 255, 255, 0.02), transparent 50%),
        radial-gradient(ellipse 35% 30% at 10% 80%, rgba(255, 255, 255, 0.015), transparent 45%);
}

.site-grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.03;
    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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Header ── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--header);
    transition: background .2s, border-color .2s, box-shadow .2s;
    background: transparent;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.nav-flex {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header);
}

.navbar-brand {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    letter-spacing: -0.01em;
}
.navbar-brand:hover { opacity: .85; color: var(--text); }

.brand-text { color: var(--text); }
.brand-accent { color: var(--cyan); }

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0 auto;
}
.nav-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    padding: 8px 14px;
    border-radius: var(--r);
    transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--text); background: var(--blue-dim); }
.nav-link.active { color: var(--text); }

.nav-actions { margin-left: 0; }

/* ── Buttons ── */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    isolation: isolate;
    font-family: var(--font);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--r);
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1;
    transition:
        transform var(--ease-premium) .3s,
        box-shadow .4s var(--ease-premium),
        background .35s ease,
        border-color .35s ease,
        color .3s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }

.btn-primary {
    background: var(--cyan);
    border-color: rgba(0, 0, 0, 0.35);
    color: #000;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}
.btn-primary:hover {
    background: var(--cyan-hover);
    color: #000;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.btn-ghost {
    background: var(--bg-2);
    border-color: var(--line-2);
    color: var(--text);
}
.btn-ghost:hover {
    background: var(--bg-3);
    border-color: var(--line-2);
    color: var(--text);
}

.btn-secondary {
    background: var(--bg);
    border-color: var(--line-2);
    color: var(--text);
}
.btn-secondary:hover {
    background: var(--bg-3);
    border-color: var(--line-2);
    color: var(--text);
}

.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

.btn .ic, .btn .win-icon { flex: 0 0 auto; }
.win-icon { opacity: .95; }
.dl-win { text-transform: none; }

/* ── Hero ── */
#main-content { position: relative; z-index: 2; padding-top: var(--header); }
.page-home #main-content { padding-top: 0; }

.hero--home {
    position: relative;
    padding: calc(var(--header) + 48px) 0 64px;
    background: var(--bg);
    overflow: hidden;
}

.hero__glow {
    position: absolute;
    right: 8%;
    top: 48%;
    width: min(560px, 50vw);
    height: min(560px, 50vw);
    transform: translateY(-50%);
    background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(0, 140, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: heroGlowPulse 7s ease-in-out infinite;
}

@keyframes heroGlowPulse {
    0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.85; transform: translateY(calc(-50% - 4px)) scale(1.04); }
}

.hero__inner--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero__content { max-width: 480px; }

.hero-title {
    font-size: clamp(34px, 4.5vw, 50px);
    margin-bottom: 14px;
    line-height: 1.08;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-2);
    margin-bottom: 26px;
    max-width: 400px;
}

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    list-style: none;
    margin: 22px 0 0;
}
.hero-meta__item {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-3);
    letter-spacing: 0.02em;
}
.hero-meta__item::before { content: "+ "; color: var(--cyan); }

.hero__fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(transparent, var(--bg));
    z-index: 1;
}

/* Hero stacked screenshots */
.hero__visual {
    position: relative;
    width: 100%;
    max-width: 580px;
    margin-left: auto;
    aspect-ratio: 1 / 0.9;
    min-height: 320px;
}

.hero__shot {
    position: absolute;
    margin: 0;
    overflow: hidden;
    border-radius: var(--r-xl);
    border: 1px solid var(--line);
    background: var(--bg);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.3),
        0 18px 40px rgba(0, 0, 0, 0.5);
    line-height: 0;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.hero__shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.hero__shot--back {
    top: 0;
    right: 0;
    width: 74%;
    aspect-ratio: 16 / 10;
    z-index: 1;
}

.hero__shot--front {
    bottom: 0;
    left: 0;
    width: 88%;
    aspect-ratio: 16 / 10;
    z-index: 2;
    border: 3px solid var(--bg);
}

.hero__shot:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.4),
        0 24px 48px rgba(0, 0, 0, 0.6);
}

body.page-ready .hero__shot--front {
    animation: heroShotFloat 8s ease-in-out 1s infinite;
}

@keyframes heroShotFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -6px, 0); }
}

/* ── Home sections ── */
.home-section {
    padding: clamp(56px, 7vw, 88px) 0;
    position: relative;
    z-index: 2;
}

.home-section--muted {
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.home-section__head {
    margin-bottom: 28px;
    max-width: 480px;
}

.home-section__head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 420px;
}

.home-section__title {
    font-size: clamp(22px, 3vw, 30px);
    margin-bottom: 6px;
    letter-spacing: -0.015em;
}

.home-section__lead {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.6;
}

.home-section__action {
    text-align: center;
    margin-top: 28px;
}

/* ── Platform cards ── */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.platform-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    color: var(--text);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color .25s, background .25s, transform .3s var(--ease-out), box-shadow .3s;
}
.platform-card:hover {
    border-color: rgba(0,217,255,.25);
    background: var(--bg-2);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.plat-ic {
    width: 24px; height: 24px;
    color: var(--text);
    flex: 0 0 auto;
}

.platform-card strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.platform-card span {
    font-size: 12px;
    color: var(--text-3);
}

.platform-card__arrow {
    margin-left: auto;
    width: 14px; height: 14px;
    color: var(--text-3);
    transition: transform .2s, color .2s;
}
.platform-card:hover .platform-card__arrow {
    transform: translateX(3px);
    color: var(--cyan);
}

/* ── Feature pills ── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.home-features { max-width: 880px; margin: 0 auto; }

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: border-color .2s, transform .25s var(--ease-out), background .2s;
}
.feature-item:hover {
    border-color: var(--line-2);
    background: var(--bg-2);
    transform: translateY(-2px);
    color: var(--text);
}

.fi-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--cyan);
    background: var(--cyan-dim);
    border-radius: 100px;
    padding: 3px 8px;
}

/* ── App preview window ── */
.hero-preview {
    position: relative;
    z-index: 2;
    padding: clamp(48px, 6vw, 72px) 0;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, transparent 0%, rgba(35, 35, 35, 0.6) 100%);
}

.hero-preview__inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero-preview__head {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.hero-preview__title {
    font-size: clamp(22px, 3vw, 28px);
    margin-bottom: 10px;
}

.hero-preview__lead {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.65;
}

.hero-preview__frame { max-width: 920px; margin: 0 auto; width: 100%; }

.app-window {
    margin: 0;
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04),
        var(--shadow-lg);
}

.app-window__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: #2d2d2d;
    border-bottom: 1px solid var(--line);
}

.app-window__dot { width: 10px; height: 10px; border-radius: 50%; }
.app-window__dot--red { background: #ff5f57; }
.app-window__dot--yellow { background: #febc2e; }
.app-window__dot--green { background: #28c840; }

.app-window__title {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: var(--text-3);
    margin-right: 46px;
}

.app-window__body {
    background: var(--bg-app);
    line-height: 0;
}
.app-window__body img { width: 100%; height: auto; }

/* ── Feature deep-dive split blocks ── */
.section {
    padding: clamp(56px, 7vw, 88px) 0;
    position: relative;
    z-index: 2;
}

.eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 10px;
}

.split-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 56px;
}
.split-block:last-child { margin-bottom: 0; }

.split-block__content h2 {
    font-size: clamp(20px, 2.6vw, 26px);
    margin-bottom: 12px;
}

.split-block__content p {
    color: var(--text-2);
    margin-bottom: 14px;
    font-size: 15px;
}

.split-block--reverse .split-block__content { order: 2; }
.split-block--reverse .media-frame { order: 1; }

.media-frame {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--bg-app);
    box-shadow: var(--shadow-lg);
}

.media-frame img { width: 100%; height: auto; }

/* ── FAQ ── */
.faq-list { display: grid; gap: 8px; }

.faq-list details {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: border-color .2s, box-shadow .2s;
}
.faq-list details[open] {
    border-color: var(--line-2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    background: var(--bg-3);
}

.faq-list summary {
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    list-style: none;
    position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 20px; top: 50%;
    transform: translateY(-50%);
    color: var(--cyan);
    font-size: 1.1rem;
    transition: transform .3s var(--ease-premium);
}
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list summary:hover { color: var(--cyan); }

.faq-list details p {
    padding: 0 20px 16px;
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.65;
}

/* ── CTA ── */
.home-cta {
    padding: 48px 0;
    background: linear-gradient(135deg, #1f1f1f 0%, #1a1a1a 50%, #232323 100%);
    border-top: 1px solid var(--line);
    position: relative;
    z-index: 2;
}

.home-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 36px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
}

.home-cta__copy h2 { font-size: 22px; margin-bottom: 4px; }
.home-cta__copy p { font-size: 14px; color: var(--text-2); }

/* ── SEO footnote ── */
.home-seo { padding: 0 0 48px; position: relative; z-index: 2; }

.home-seo__text {
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.7;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}
.home-seo__text a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.home-seo__text a:hover { color: var(--cyan); }

/* ── Footer ── */
.site-footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--line);
    background: var(--bg-2);
    padding: 56px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.footer-brand-col { display: flex; flex-direction: column; }

.footer-brand {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    margin-bottom: 8px;
}
.footer-brand:hover { color: var(--text); }

.footer-desc {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.55;
    margin-bottom: 10px;
    max-width: 260px;
}

.footer-email { font-size: 13px; color: var(--text-2); }
.footer-email:hover { color: var(--text); }

.footer-heading {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-links a {
    font-size: 13px;
    color: var(--text-3);
}
.footer-links a:hover { color: var(--text); }

.footer-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    padding: 20px 0 24px;
    margin-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--text-3);
}
.footer-trust a { color: var(--text-2); }
.footer-trust a:hover { color: var(--text); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 0 20px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--text-3);
}

/* ── Scroll reveal (added by JS) ── */
.js-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.85s var(--ease-premium),
        transform 0.9s var(--ease-premium);
}
.js-reveal.is-visible { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 991px) {
    .platform-grid { grid-template-columns: repeat(2, 1fr); }
    .hero__inner--split { grid-template-columns: 1fr; gap: 36px; }
    .hero__content { max-width: none; }
    .hero__visual { max-width: 520px; margin: 0 auto; }
    .split-block, .split-block--reverse { grid-template-columns: 1fr; gap: 28px; }
    .split-block--reverse .split-block__content { order: 0; }
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
    .hero--home { padding-bottom: 40px; }
    .hero__content { text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero__visual {
        aspect-ratio: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 28px;
    }
    .hero__shot--back,
    .hero__shot--front {
        position: relative;
        top: auto; right: auto; bottom: auto; left: auto;
        width: 100%;
        aspect-ratio: 16 / 10;
        border-width: 1px;
    }
    body.page-ready .hero__shot--front { animation: none; }
    .platform-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .home-cta__inner { flex-direction: column; align-items: flex-start; padding: 24px; }
    .home-cta__inner .btn { width: 100%; }
}
