:root {
    --colors-0-0: hsl(240 19% 9%);
    --colors-1-0: hsl(0 19% 9%);
    --colors-2-0: hsl(120 19% 9%);
    --tint-0-0: hsl(240 19% 24%);
    --tint-0-1: hsl(240 19% 39%);
    --tint-0-2: hsl(240 19% 55%);
    --tint-0-3: hsl(240 19% 70%);
    --tint-0-4: hsl(240 19% 85%);
    --tint-1-0: hsl(0 19% 24%);
    --tint-1-1: hsl(0 19% 39%);
    --tint-1-2: hsl(0 19% 55%);
    --tint-1-3: hsl(0 19% 70%);
    --tint-1-4: hsl(0 19% 85%);
    --tint-2-0: hsl(120 19% 24%);
    --tint-2-1: hsl(120 19% 39%);
    --tint-2-2: hsl(120 19% 55%);
    --tint-2-3: hsl(120 19% 70%);
    --tint-2-4: hsl(120 19% 85%);
    --shade-0-0: hsl(240 18% 8%);
    --shade-0-1: hsl(240 19% 6%);
    --shade-0-2: hsl(240 17% 5%);
    --shade-0-3: hsl(240 20% 3%);
    --shade-0-4: hsl(240 25% 2%);
    --shade-1-0: hsl(0 18% 8%);
    --shade-1-1: hsl(0 19% 6%);
    --shade-1-2: hsl(0 17% 5%);
    --shade-1-3: hsl(0 20% 3%);
    --shade-1-4: hsl(0 25% 2%);
    --shade-2-0: hsl(120 18% 8%);
    --shade-2-1: hsl(120 19% 6%);
    --shade-2-2: hsl(120 17% 5%);
    --shade-2-3: hsl(120 20% 3%);
    --shade-2-4: hsl(120 25% 2%);
    --tone-0-0: hsl(240 15% 9%);
    --tone-0-1: hsl(240 13% 9%);
    --tone-0-2: hsl(240 11% 9%);
    --tone-0-3: hsl(240 6% 9%);
    --tone-0-4: hsl(240 2% 9%);
    --tone-1-0: hsl(0 15% 9%);
    --tone-1-1: hsl(0 13% 9%);
    --tone-1-2: hsl(0 11% 9%);
    --tone-1-3: hsl(0 6% 9%);
    --tone-1-4: hsl(0 2% 9%);
    --tone-2-0: hsl(120 15% 9%);
    --tone-2-1: hsl(120 13% 9%);
    --tone-2-2: hsl(120 11% 9%);
    --tone-2-3: hsl(120 6% 9%);
    --tone-2-4: hsl(120 2% 9%);
    --white-0-0: hsl(0 0% 100%);
    --black-1-0: hsl(0 0% 0%);
    --gray-2-0: hsl(0 0% 50%);

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-fast: 0.2s ease;
    --border-radius: 8px;
}

html {
    scroll-padding-top: 80px;
}

body {
    background:
        radial-gradient(circle at 8% 12%, hsl(0 19% 39% / 0.2) 0, transparent 28rem),
        radial-gradient(circle at 92% 34%, hsl(120 19% 39% / 0.2) 0, transparent 32rem),
        radial-gradient(circle at 50% 92%, hsl(240 19% 39% / 0.2) 0, transparent 38rem),
        var(--colors-0-0);
    color: var(--white-0-0);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--tint-0-0);
    position: sticky;
    top: 0;
    background: hsl(240 19% 6% / 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.preheader {
    background: var(--shade-0-2);
    border-bottom: 1px solid var(--tint-0-0);
    color: var(--tint-2-3);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    padding: 0.55rem 1rem;
    text-align: center;
    text-transform: uppercase;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-end {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.lang-switch {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.2rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.lang-switch a {
    color: var(--tint-0-3);
    padding: 0.2rem 0.35rem;
}

.lang-switch a:hover,
.lang-switch a[aria-current="page"] {
    color: var(--white-0-0);
}

.lang-switch a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.yoke {
    background: var(--shade-0-3);
    border: 1px solid var(--tint-0-1);
    display: inline-block;
    flex-shrink: 0;
    isolation: isolate;
    line-height: 0;
    overflow: hidden;
    position: relative;
}

.yoke img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.yoke-nav,
.yoke-nav img,
.yoke-cta,
.yoke-cta img,
.yoke-footer,
.yoke-footer img {
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
}

.yoke-nav {
    height: 2rem;
    overflow: visible;
    width: 2rem;
}

.yoke-hero {
    background: transparent;
    border: none;
    height: 1.25em;
    width: 1.25em;
}

.yoke-cta {
    height: 1.75rem;
    overflow: visible;
    width: 1.75rem;
}

.yoke-footer {
    height: 1.35rem;
    overflow: visible;
    width: 1.35rem;
}

.footer-brand {
    align-items: center;
    display: inline-flex;
    gap: 0.5rem;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a:hover {
    color: var(--tint-0-3);
}

/* Buttons */
.btn-primary {
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.btn-large {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
}

.btn-primary.nav-cta,
.btn-large {
    background:
        linear-gradient(180deg,
            var(--tint-0-0) 0%,
            var(--colors-0-0) 10%,
            var(--colors-0-0) 90%,
            var(--shade-0-1) 100%);
    border-color: var(--tint-0-0) var(--shade-0-3) var(--shade-0-4) var(--tint-0-0);
    border-style: solid;
    border-width: 1px;
    box-shadow:
        inset 0 2px 0 hsl(240 19% 85% / 0.32),
        inset 0 1px 0 hsl(240 19% 70% / 0.5),
        inset 2px 0 0 hsl(240 19% 55% / 0.16),
        inset 0 -2px 0 hsl(240 25% 2% / 0.92),
        inset 0 -1px 0 hsl(0 0% 0% / 0.88),
        inset -2px 0 0 hsl(240 25% 2% / 0.55),
        0 2px 0 var(--shade-0-4),
        0 8px 16px hsl(240 25% 2% / 0.4);
    color: var(--tint-0-4);
    text-shadow: 0 1px 0 hsl(240 25% 2% / 0.85);
}

.btn-primary.nav-cta:hover,
.btn-large:hover {
    background:
        linear-gradient(180deg,
            var(--tint-0-1) 0%,
            hsl(240 19% 12%) 10%,
            hsl(240 19% 12%) 90%,
            var(--shade-0-0) 100%);
    border-top-color: var(--tint-0-2);
    border-left-color: var(--tint-0-1);
    color: var(--white-0-0);
    transform: translateY(-1px);
}

.btn-primary.nav-cta:active,
.btn-large:active {
    background:
        linear-gradient(180deg,
            var(--shade-0-2) 0%,
            var(--shade-0-1) 12%,
            var(--shade-0-1) 88%,
            var(--colors-0-0) 100%);
    border-color: var(--shade-0-4) var(--tint-0-0) var(--tint-0-0) var(--shade-0-4);
    box-shadow:
        inset 0 3px 8px hsl(240 25% 2% / 0.85),
        inset 0 2px 0 hsl(240 25% 2% / 0.7),
        inset 2px 0 0 hsl(240 25% 2% / 0.45);
    transform: translateY(1px);
}

.btn-secondary {
    border: 1px solid var(--tint-0-1);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--shade-0-0);
}

/* Hero */
.hero {
    position: relative;
    padding: 8rem 0;
    text-align: center;
    overflow: hidden;
    background:
        linear-gradient(115deg, hsl(0 19% 24% / 0.28), transparent 38%),
        linear-gradient(245deg, hsl(120 19% 24% / 0.28), transparent 42%);
}

.hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1400px;
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

.hero h1 {
    align-items: center;
    display: flex;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    gap: 10pt;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    overflow: visible;
}

.hero-title-text {
    background: linear-gradient(110deg, var(--tint-1-3), var(--white-0-0) 46%, var(--tint-2-3));
    background-clip: text;
    display: inline-block;
    line-height: 1.15;
    overflow: visible;
    padding-bottom: 0.08em;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--tint-0-4);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.eyebrow {
    color: var(--tint-0-4);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    margin-bottom: 1.5rem;
}

.eyebrow span {
    background: var(--tint-2-2);
    border-radius: 50%;
    box-shadow: 0 0 16px var(--tint-2-2);
    display: inline-block;
    height: 0.5rem;
    margin-right: 0.5rem;
    width: 0.5rem;
}

.signal-bar {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: -1rem auto 2.5rem;
}

.signal {
    border: 1px solid;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    padding: 0.35rem 0.75rem;
}

.signal-steer {
    border-color: var(--tint-0-2);
    color: var(--tint-0-3);
}

.signal-aim {
    border-color: var(--tint-1-2);
    color: var(--tint-1-3);
}

.signal-fire {
    border-color: var(--tint-2-2);
    color: var(--tint-2-3);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.features {
    padding: 6rem 0;
    background:
        linear-gradient(90deg, hsl(0 19% 24% / 0.22), var(--shade-0-0) 48%, hsl(120 19% 24% / 0.22));
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.feature-card {
    background:
        linear-gradient(145deg, var(--tone-0-0), var(--colors-0-0));
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--tint-0-0);
    transition: var(--transition-fast);
}

.feature-card:hover {
    border-color: var(--tint-0-1);
    transform: translateY(-5px);
}

.feature-card::before {
    background: var(--card-accent);
    border-radius: 999px;
    content: "";
    display: block;
    height: 0.25rem;
    margin-bottom: 2rem;
    width: 3rem;
}

.feature-card-action {
    --card-accent: var(--tint-1-2);
}

.feature-card-focus {
    --card-accent: var(--tint-0-2);
}

.feature-card-navigation {
    --card-accent: var(--tint-2-2);
}

.feature-card-reference {
    --card-accent: var(--tint-1-3);
}

.feature-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--tint-0-4);
    font-size: 0.95rem;
}

kbd {
    background: var(--tone-0-0);
    border: 1px solid var(--tint-0-1);
    border-bottom-color: var(--tint-0-2);
    border-radius: 4px;
    color: var(--tint-2-3);
    font-family: inherit;
    font-size: 0.82em;
    font-weight: 800;
    padding: 0.08em 0.38em;
}

/* Screenshots */
.screenshots {
    padding: 6rem 0;
    background:
        linear-gradient(180deg, var(--shade-0-0), var(--shade-1-2) 50%, var(--shade-0-0));
}

.screenshot-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.screenshot-carousel figure {
    background:
        linear-gradient(145deg, var(--tone-1-0), var(--shade-0-1) 58%, var(--tone-2-0));
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--tint-0-0);
}

.screenshot-carousel img {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.screenshot-carousel figcaption {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--tint-0-4);
}

/* Install */
.install {
    padding: 6rem 0;
    background:
        linear-gradient(105deg, hsl(0 19% 39% / 0.2), transparent 35%),
        linear-gradient(255deg, hsl(120 19% 39% / 0.2), transparent 35%),
        linear-gradient(to bottom, var(--colors-0-0), var(--shade-0-4));
}

.install-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.install-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background:
        linear-gradient(145deg, var(--tone-0-0), var(--shade-0-1));
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--tint-0-0);
    min-width: 200px;
}

.install-btn:hover {
    border-color: var(--tint-0-2);
    background: var(--tint-0-0);
}

.install-chrome {
    border-color: var(--tint-0-1);
}

.install-opera {
    border-color: var(--tint-2-1);
}

.install-firefox {
    border-color: var(--tint-1-1);
}

.install-chrome:hover {
    background: var(--tone-0-0);
    border-color: var(--tint-0-3);
}

.install-opera:hover {
    background: var(--tone-2-0);
    border-color: var(--tint-2-3);
}

.install-firefox:hover {
    background: var(--tone-1-0);
    border-color: var(--tint-1-3);
}

.install-btn img {
    width: 48px;
    height: 48px;
}

.text-center {
    text-align: center;
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--tint-0-0);
    text-align: center;
    color: var(--gray-2-0);
    font-size: 0.9rem;
}

.nav-cta {
    align-items: center;
    display: inline-flex;
    font-size: 0.9rem;
    line-height: 1.2;
    min-height: 0;
    padding: 0.28rem 1rem;
}

.intro-reel {
    background: #05050e;
    border: 1px solid var(--tint-0-0);
    border-radius: var(--border-radius);
    margin: 1.5rem 0 0;
    overflow: hidden;
}

.intro-reel iframe {
    aspect-ratio: 16 / 9;
    background: #05050e;
    border: 0;
    display: block;
    height: auto;
    width: 100%;
}

.hero-flyer {
    isolation: isolate;
    overflow: hidden;
    padding: 4.5rem 0 3.5rem;
    position: relative;
    text-align: left;
}

.hero-video-layer,
.hero-video-mask {
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.hero-video-layer {
    isolation: isolate;
    overflow: hidden;
    z-index: 0;
}

.hero-video {
    filter: grayscale(1) contrast(1.2);
    height: 100%;
    left: 0;
    object-fit: cover;
    position: absolute;
    top: 0;
    width: 100%;
}

.hero-video-tint {
    background: linear-gradient(110deg, var(--tint-1-2), var(--tint-0-2) 46%, var(--tint-2-2));
    inset: 0;
    mix-blend-mode: color;
    position: absolute;
}

.hero-video-mask {
    background: linear-gradient(90deg, hsl(240 19% 6% / 0.72) 0%, hsl(240 19% 6% / 0.38) 48%, hsl(240 19% 6% / 0.5) 100%);
    z-index: 1;
}

.hero-split {
    align-items: flex-start;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-copy {
    max-width: 52rem;
}

.hero-flyer h1 {
    margin-bottom: 0.75rem;
}

.product-line {
    color: var(--tint-1-3);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.hero-rule {
    border: 0;
    border-top: 1px solid var(--tint-0-0);
    margin: 0 0 1.5rem;
    max-width: 40rem;
}

.tagline {
    color: var(--white-0-0);
    font-size: clamp(1.15rem, 2.4vw, 1.4rem);
    font-weight: 700;
    line-height: 1.35;
}

.hero-flyer .subtitle {
    color: var(--tint-0-4);
    margin: 1rem 0 0;
    max-width: 36rem;
}

.eyebrow-rose {
    color: var(--tint-1-3);
}

.eyebrow-sage {
    color: var(--tint-2-3);
}

.gesture {
    padding: 3rem 0 4rem;
}

.gesture h2,
.bimodal h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.lede {
    color: var(--tint-0-4);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    max-width: 42rem;
}

.demo-frame {
    background:
        linear-gradient(145deg, var(--tone-0-0), var(--shade-0-1));
    border: 1px solid var(--tint-0-0);
    border-radius: 12px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.demo-frame img {
    height: auto;
    width: 100%;
}

.demo-frame .demo-landscape {
    display: block;
}

.demo-frame .demo-portrait {
    display: none;
}

.bimodal {
    background: var(--shade-0-2);
    border-bottom: 1px solid var(--shade-0-4);
    border-top: 1px solid var(--shade-0-3);
    padding: 3.5rem 0 4.5rem;
}

.section-title-left {
    text-align: left;
    margin-bottom: 1.25rem;
}

.text-link {
    color: var(--tint-1-3);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.text-link:hover {
    color: var(--tint-1-4);
}

.cta-band {
    background:
        linear-gradient(105deg, hsl(0 19% 39% / 0.2), transparent 35%),
        linear-gradient(255deg, hsl(120 19% 39% / 0.2), transparent 35%),
        var(--tone-0-0);
    border-top: 1px solid var(--tint-0-1);
    border-bottom: 1px solid var(--tint-0-1);
    padding: 2rem 0;
}

.cta-row {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
}

.cta-band .btn-large {
    min-height: 44px;
    text-align: center;
}

.cta-noctivagous {
    align-items: center;
    color: var(--tint-2-3);
    display: inline-flex;
    font-size: 1.05rem;
    font-weight: 800;
    gap: 0.6rem;
    letter-spacing: 0.04em;
    min-height: 44px;
    white-space: nowrap;
}

.cta-noctivagous:hover {
    color: var(--tint-2-4);
}

.features {
    padding: 4rem 0;
}

.features .eyebrow {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-actions {
        flex-direction: column;
    }
    .container {
        padding: 0 1rem;
    }
    .hero-flyer {
        padding: 2.5rem 0 2rem;
    }
    .hero h1 {
        flex-wrap: wrap;
    }
    .nav-cta {
        min-height: 44px;
        padding: 0.45rem 0.85rem;
    }
    .cta-noctivagous {
        white-space: normal;
    }
    .cta-row {
        align-items: stretch;
        flex-direction: column;
    }
    .cta-band .btn-large,
    .cta-noctivagous {
        justify-content: center;
        width: 100%;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px), (max-width: 900px) and (orientation: portrait) {
    .demo-frame .demo-landscape {
        display: none;
    }
    .demo-frame .demo-portrait {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-video-layer {
        display: none;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        gap: 0.75rem;
    }
    .nav-end {
        gap: 0.55rem;
    }
    .lang-switch {
        font-size: 0.62rem;
        gap: 0.1rem;
        letter-spacing: 0.04em;
        max-width: 11rem;
    }
    .lang-switch a {
        padding: 0.15rem 0.22rem;
    }
    .logo > span:last-child {
        font-size: 1rem;
    }
    .nav-cta {
        font-size: 0.8rem;
        padding: 0.22rem 0.7rem;
        white-space: nowrap;
    }
}
