:root {
    --bg: #080807;
    --text: #f5f4f0;
    --muted: #a6a39b;
    --subtle: #807d75;
    --gold: #f5c542;
    --gold-glow: rgba(245, 197, 66, 0.15);
    --gold-subtle: rgba(245, 197, 66, 0.08);
    --gold-border: rgba(245, 197, 66, 0.24);
    --surface: rgba(255, 255, 255, 0.035);
    --surface-strong: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.11);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(245, 197, 66, 0.10), transparent 70%),
        radial-gradient(circle 500px at 50% 900px, rgba(245, 197, 66, 0.04), transparent 80%);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--gold);
    color: #080807;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 1000;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 20px;
}

:where(a, button):focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

.tabular {
    font-variant-numeric: tabular-nums;
}

/* Layout Containers */
.section-shell {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.narrow {
    width: min(840px, calc(100% - 40px));
    margin-inline: auto;
}

/* Glass Panels */
.glass-panel {
    background: linear-gradient(145deg, var(--surface-strong), var(--surface));
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), var(--shadow);
    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
}

/* Header & Floating Nav */
.site-header {
    position: sticky;
    top: 18px;
    z-index: 50;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none;
}

.nav {
    pointer-events: auto;
    width: min(1080px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(14, 14, 13, 0.72);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.app-icon {
    display: block;
    border-radius: 22.37%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    background-color: #121210;
    object-fit: cover;
}

.app-icon-small {
    width: 34px;
    height: 34px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--gold);
    background: rgba(245, 197, 66, 0.12);
    border: 1px solid var(--gold-border);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover {
    background: rgba(245, 197, 66, 0.18);
    border-color: rgba(245, 197, 66, 0.4);
}

/* Typography Elements */
.eyebrow {
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 14px 0;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
    padding: clamp(64px, 10vw, 110px) 0 clamp(40px, 6.5vw, 70px);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.app-lockup {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.app-name {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: block;
    line-height: 1.15;
}

.product-type {
    font-size: 0.92rem;
    font-weight: 550;
    color: var(--gold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 4px 0 0 0;
}

.tagline {
    font-size: clamp(2.6rem, 5.2vw, 4.4rem);
    font-weight: 780;
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin: 0 0 22px 0;
    color: var(--text);
}

.intro {
    font-size: clamp(1.08rem, 1.8vw, 1.28rem);
    color: var(--muted);
    line-height: 1.58;
    margin: 0 0 32px 0;
    max-width: 520px;
}

.availability {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold);
    background: rgba(245, 197, 66, 0.10);
    border: 1px solid var(--gold-border);
    margin: 0;
}

/* Transformation Instrument */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.instrument-halo {
    position: absolute;
    width: 120%;
    max-width: 100vw;
    height: 120%;
    background: radial-gradient(circle 240px at 50% 50%, var(--gold-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.instrument-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    border-radius: 32px;
    padding: clamp(28px, 4.5vw, 38px);
    border: 1px solid var(--gold-border);
    box-shadow:
        inset 0 1px 0 rgba(245, 197, 66, 0.25),
        inset 0 0 20px rgba(245, 197, 66, 0.03),
        var(--shadow);
}

.instrument-block {
    display: flex;
    flex-direction: column;
}

.instrument-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--subtle);
    margin-bottom: 8px;
}

.instrument-value {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 8px;
}

.instrument-meta {
    font-size: 0.88rem;
    color: var(--muted);
    margin: 0;
    font-weight: 480;
}

.instrument-subtotal {
    font-size: 0.82rem;
    color: var(--subtle);
    margin: 4px 0 0 0;
    font-weight: 480;
    letter-spacing: -0.01em;
}

.instrument-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--line), rgba(245, 197, 66, 0.28), var(--line));
}

.divider-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(245, 197, 66, 0.12);
    border: 1px solid var(--gold-border);
    color: var(--gold);
    font-size: 0.95rem;
    line-height: 1;
}

.instrument-output-value {
    font-size: clamp(2.75rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(245, 197, 66, 0.35);
    margin-bottom: 8px;
}

.instrument-summary {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 550;
    margin: 0;
}

.shift-context {
    color: var(--muted);
    font-weight: 450;
    font-size: 0.86rem;
}

/* Perspective Section */
.perspective {
    padding: clamp(52px, 7.5vw, 90px) 0 clamp(64px, 9vw, 110px);
    text-align: center;
}

.perspective-statement {
    font-size: clamp(1.85rem, 3.8vw, 3.1rem);
    font-weight: 720;
    line-height: 1.24;
    letter-spacing: -0.03em;
    color: var(--text);
    margin: 0;
}

/* Calculation Section */
.calculation {
    padding: clamp(48px, 8vw, 96px) 0;
}

.section-heading {
    margin-bottom: clamp(36px, 5vw, 56px);
}

.section-heading h2 {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--text);
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.5vw, 28px);
}

.calc-card {
    border-radius: 24px;
    padding: clamp(26px, 3.5vw, 36px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.calc-number {
    font-size: 0.95rem;
    font-weight: 750;
    color: var(--gold);
    margin-bottom: 20px;
    letter-spacing: 0.08em;
}

.calc-card h3 {
    font-size: 1.22rem;
    font-weight: 680;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0 0 12px 0;
    color: var(--text);
}

.calc-card p {
    font-size: 0.98rem;
    color: var(--muted);
    line-height: 1.58;
    margin: 0;
}

/* Final CTA */
.final-cta {
    padding: clamp(40px, 7vw, 84px) 0 clamp(64px, 9vw, 100px);
}

.final-card {
    border-radius: 28px;
    padding: clamp(36px, 6vw, 56px) 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.final-card h2 {
    font-size: clamp(1.4rem, 2.8vw, 2.1rem);
    font-weight: 720;
    letter-spacing: -0.025em;
    margin: 0;
    color: var(--text);
}

.final-card p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    background: rgba(245, 197, 66, 0.10);
    border: 1px solid var(--gold-border);
    padding: 8px 18px;
    border-radius: 999px;
    margin: 0;
}

/* Footer */
.footer {
    border-top: 1px solid var(--line);
    padding: 36px 0 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.88rem;
    color: var(--subtle);
    flex-wrap: wrap;
}

.footer p {
    margin: 0;
}

.footer a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Progressive Reveal Animation */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

/* Tablet Responsive (<= 860px) */
@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 48px;
        padding-top: 48px;
    }

    .hero-copy {
        align-items: center;
        text-align: center;
    }

    .app-lockup {
        justify-content: center;
    }

    .intro {
        max-width: 580px;
    }

    .hero-visual {
        width: 100%;
    }

    .instrument-panel {
        max-width: 480px;
    }

    .calc-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .calc-card {
        padding: 28px 24px;
    }

    .footer {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* Mobile Responsive (<= 560px) */
@media (max-width: 560px) {
    .section-shell,
    .narrow {
        width: calc(100% - 28px);
    }

    .nav {
        padding: 8px 10px 8px 12px;
    }

    .app-icon-small {
        width: 30px;
        height: 30px;
    }

    .app-lockup {
        gap: 16px;
    }

    .app-lockup .app-icon {
        width: 72px;
        height: 72px;
    }

    .app-name {
        font-size: 1.35rem;
    }

    .product-type {
        font-size: 0.82rem;
    }

    .instrument-panel {
        padding: 24px 18px;
        border-radius: 26px;
    }

    .instrument-divider {
        margin: 20px 0;
    }

    .perspective-statement br {
        display: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .nav-cta,
    .footer a,
    .skip-link {
        transition: none !important;
    }
}
