:root {
    --bg: #0B0B0C;
    --surface: #1A1A1D;
    --surface-2: #141417;
    --text: #FFFFFF;
    --muted: #A1A1AA;
    --accent: #3B82F6;
    --accent-soft: rgba(59, 130, 246, 0.14);
    --border: rgba(255,255,255,0.06);
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.28);

    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

svg {
    display: block;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.page-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(11, 11, 12, 0.88);
    border-bottom: 1px solid var(--border);
}

.nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    min-width: fit-content;
}

.brand-text,
.preview-logo,
.footer-brand {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.brand-text-o,
.preview-logo span,
.footer-brand span {
    font-size: 0.82em;
    opacity: 0.85;
    text-transform: none;
    display: inline-block;
    position: relative;
    top: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-menu a:not(.button) {
    color: var(--muted);
    font-size: 0.96rem;
}

.nav-menu a:not(.button):hover,
.nav-menu a:not(.button):focus-visible {
    color: var(--text);
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--text);
}

.nav-toggle span + span {
    margin-top: 5px;
}

.hero,
.platform-section,
.coverage-section,
.experience-section,
.cta-section {
    padding: 88px 0;
}

.hero {
    padding-top: 72px;
    position: relative;
    background:
        radial-gradient(circle at 65% 35%, rgba(59,130,246,0.22), transparent 45%),
        radial-gradient(circle at 20% 80%, rgba(59,130,246,0.08), transparent 50%),
        var(--bg);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("subtle-network.svg") center/cover no-repeat;
    opacity: 0.04;
    pointer-events: none;
}

.hero-grid,
.coverage-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    align-items: start;
}

.eyebrow,
.feature-kicker,
.signal-value,
.mini-label {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
}

.eyebrow,
.feature-kicker,
.mini-label {
    color: var(--accent);
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
.section-heading h2,
.cta-card h2 {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(3rem, 5.8vw, 5.8rem);
    line-height: 1.05;
    margin-top: 18px;
    margin-bottom: 24px;
    max-width: 11ch;
    letter-spacing: -0.025em;
}

.section-heading h2,
.cta-card h2 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.02;
}

h3 {
    font-size: 1.18rem;
    line-height: 1.2;
}

.hero-lead,
.section-heading p,
.feature-card p,
.principle-card p,
.signal-label,
.coverage-panel li,
.cta-card p,
.footer-row p,
.item-meta {
    color: var(--muted);
    line-height: 1.7;
}

.hero-lead {
    margin-top: 0;
    margin-bottom: 28px;
    max-width: 60ch;
    font-size: 1.08rem;
}

.hero-actions,
.cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button-primary {
    background: #78a7ff;
    color: #07111f;
    font-weight: 700;
    box-shadow: 0 16px 40px rgba(59,130,246,0.22);
}

.button-secondary {
    border-color: var(--border);
    background: var(--surface);
    color: var(--text);
    opacity: 0.7;
}

.button-secondary:hover,
.button-secondary:focus-visible {
    opacity: 1;
}

.hero-notes {
    margin: 26px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    color: var(--muted);
}

.glass-card,
.feature-card,
.coverage-panel,
.principle-card,
.cta-card,
.signal-grid > div {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.app-preview {
    position: relative;
    padding: 22px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

.hero-panel {
    position: relative;
    box-shadow:
        0 40px 80px rgba(0,0,0,0.6),
        0 0 40px rgba(59,130,246,0.15);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)),
        #1A1A1D;
    animation: floatIn 0.6s ease-out;
}

.hero-panel-shadow {
    position: absolute;
    inset: 28px -18px -28px 40px;
    z-index: -1;
    border-radius: 28px;
    background: rgba(59,130,246,0.08);
    filter: blur(18px);
}

.preview-topline,
.preview-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.preview-topline {
    margin-bottom: 18px;
}

.chip,
.pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--text);
    border: 1px solid rgba(59, 130, 246, 0.28);
    font-size: 0.88rem;
}

.live-preview {
    background: rgba(59,130,246,0.1);
    border-color: rgba(59,130,246,0.3);
    color: #6ea8ff;
}

.muted {
    color: var(--muted);
}

.preview-shell {
    display: grid;
    grid-template-columns: 180px 1fr;
    min-height: 440px;
    overflow: hidden;
    border-radius: calc(var(--radius-xl) - 8px);
    border: 1px solid var(--border);
    background: var(--surface-2);
}

.preview-sidebar {
    padding: 22px 18px;
    border-right: 1px solid var(--border);
    display: grid;
    align-content: start;
    gap: 10px;
    opacity: 0.75;
}

.preview-logo {
    margin-bottom: 12px;
    font-size: 1rem;
}

.preview-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--muted);
}

.preview-link.active,
.preview-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.preview-main {
    padding: 22px;
    display: grid;
    align-content: start;
    gap: 18px;
}

.preview-loading {
    padding: 10px 0 4px;
}

.preview-loading img {
    width: 100%;
    max-width: 320px;
    opacity: 0.9;
}

.preview-main h2 {
    margin-top: 6px;
    font-size: 32px;
    line-height: 1;
    letter-spacing: -0.01em;
}

.timeline-stack {
    display: grid;
    gap: 12px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px;
    border-radius: 18px;
    background: #161619;
    border: 1px solid var(--border);
}

.timeline-item.priority {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.time,
.item-title {
    color: var(--text);
}

.time {
    font-weight: 700;
}

.item-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.signal-band {
    padding-top: 0;
}

.signal-grid,
.feature-grid,
.principles-grid {
    display: grid;
    gap: 18px;
}

.signal-grid {
    grid-template-columns: repeat(3, 1fr);
}

.signal-grid > div,
.feature-card,
.principle-card {
    padding: 24px;
}

.feature-card {
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.section-heading {
    max-width: 72ch;
    margin-bottom: 28px;
}

.section-heading p:last-child {
    margin-top: 16px;
}

.feature-grid,
.principles-grid {
    grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.principle-card {
    min-height: 230px;
}

.coverage-panel {
    padding: 24px;
}

.coverage-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.coverage-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.coverage-panel li {
    padding: 14px 16px;
    border-radius: 18px;
    background: #161619;
    border: 1px solid var(--border);
}

.principle-number {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-shadow: 0 0 12px rgba(59,130,246,0.4);
}

.cta-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    padding: 34px;
}

.site-footer {
    padding: 32px 0 60px;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid var(--border);
    padding-top: 28px;
}

.footer-row > div {
    max-width: 420px;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 500ms ease, transform 500ms ease;
}

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

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

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

    .reveal,
    .reveal.is-visible,
    .button,
    .hero-panel {
        transition: none;
        transform: none;
        opacity: 1;
        animation: none;
    }
}

@media (max-width: 1080px) {
    .hero-grid,
    .coverage-grid,
    .signal-grid,
    .feature-grid,
    .principles-grid,
    .cta-card {
        grid-template-columns: 1fr;
    }

    .footer-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 820px) {
    .container {
        width: min(var(--container), calc(100% - 28px));
    }

    .nav-toggle {
        display: inline-block;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 16px;
        border: 1px solid var(--border);
        border-radius: 24px;
        background: rgba(8, 10, 14, 0.96);
        box-shadow: var(--shadow);
    }

    .nav-menu.is-open {
        display: flex;
    }

    .hero,
    .platform-section,
    .coverage-section,
    .experience-section,
    .cta-section {
        padding: 72px 0;
    }

    .hero::after {
        background-position: 62% center;
    }

    .preview-shell {
        grid-template-columns: 1fr;
    }

    .preview-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--border);
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-panel-shadow {
        inset: 24px -10px -18px 22px;
    }

    .preview-logo {
        grid-column: 1 / -1;
    }

    .coverage-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-actions,
    .cta-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .time {
        font-size: 0.92rem;
    }
}
