:root {
    --bg: #07111f;
    --bg-elevated: rgba(14, 24, 41, 0.86);
    --panel: rgba(17, 29, 49, 0.92);
    --panel-strong: rgba(24, 38, 61, 0.96);
    --line: rgba(146, 176, 219, 0.18);
    --text: #ecf4ff;
    --muted: #9ab0cd;
    --accent: #5dc5ff;
    --accent-strong: #7cf0c5;
    --accent-warm: #ff9a62;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(92, 197, 255, 0.18), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(124, 240, 197, 0.16), transparent 24%),
        radial-gradient(circle at 50% 120%, rgba(255, 154, 98, 0.14), transparent 30%),
        linear-gradient(180deg, #050b14 0%, #08111d 42%, #050913 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9), transparent 82%);
}

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

img {
    display: block;
    max-width: 100%;
}

.page-shell {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
    padding: 24px 0 80px;
}

.topbar,
.hero,
.capabilities,
.story,
.comparison,
.install {
    position: relative;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand img {
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.topnav {
    display: inline-flex;
    gap: 18px;
    flex-wrap: wrap;
}

.topnav a {
    color: var(--muted);
    font-size: 0.95rem;
}

.topnav a:hover,
.topnav a:focus-visible {
    color: var(--text);
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: center;
    min-height: 72vh;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent-strong);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
    margin: 0;
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.hero h1 {
    max-width: 10ch;
    font-size: clamp(3.3rem, 9vw, 6.2rem);
}

.lede {
    max-width: 62ch;
    margin: 22px 0 0;
    color: #c8d8ef;
    font-size: 1.08rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 30px 0 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
    color: #04101b;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    box-shadow: 0 16px 38px rgba(93, 197, 255, 0.24);
}

.button-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.button-block {
    width: 100%;
}

.hero-points {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
}

.hero-points li {
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.hero-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    box-shadow: 0 0 18px rgba(93, 197, 255, 0.55);
}

.hero-panel {
    position: relative;
    min-height: 560px;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 8% 6% 0 12%;
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.07), transparent),
        rgba(7, 15, 28, 0.68);
    box-shadow: var(--shadow);
    transform: rotate(-8deg);
}

.floating-card {
    position: absolute;
    width: min(88%, 360px);
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(17, 29, 49, 0.96), rgba(9, 17, 30, 0.94));
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.floating-card .label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--accent-strong);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.floating-card .meta {
    display: inline-block;
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.5;
}

.stat-card {
    top: 6%;
    left: 4%;
}

.stat-card strong {
    display: block;
    font-size: clamp(3rem, 8vw, 4.6rem);
    line-height: 0.92;
}

.comment-card {
    top: 30%;
    right: 0;
}

.comment-card p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.65;
}

.chat-card {
    left: 14%;
    bottom: 4%;
}

.chat-line {
    max-width: 90%;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    line-height: 1.45;
}

.chat-line.theirs {
    background: rgba(255, 255, 255, 0.06);
}

.chat-line.mine {
    margin-left: auto;
    color: #07101b;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
}

main section {
    margin-top: 120px;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 30px;
}

.section-heading h2 {
    font-size: clamp(2rem, 5vw, 3.8rem);
}

.capability-grid,
.comparison-grid,
.install-layout,
.story-layout,
.timeline {
    display: grid;
    gap: 20px;
}

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

.capability,
.story-card,
.comparison-card,
.install-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(14, 24, 40, 0.9), rgba(8, 15, 27, 0.94));
    box-shadow: var(--shadow);
}

.capability h3,
.story-card h3,
.comparison-card h3,
.install-card h3 {
    margin: 0 0 12px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
}

.capability p,
.story-card p,
.comparison-card li,
.install-card p,
.install-card li,
.timeline-step p {
    margin: 0;
    color: #c3d2e8;
    line-height: 1.7;
}

.capability-index {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--accent-warm);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.story-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-problem {
    background: linear-gradient(180deg, rgba(50, 23, 25, 0.82), rgba(20, 11, 17, 0.94));
}

.story-solution {
    background: linear-gradient(180deg, rgba(17, 45, 58, 0.9), rgba(7, 19, 29, 0.96));
}

.story-outcome {
    background: linear-gradient(180deg, rgba(21, 49, 43, 0.9), rgba(9, 20, 18, 0.96));
}

.timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 24px;
}

.timeline-step {
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.timeline-step span {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #08111d;
    font-weight: 700;
}

.comparison-grid,
.install-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comparison-card ul {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding-left: 18px;
}

.muted-card {
    background: linear-gradient(180deg, rgba(25, 27, 36, 0.88), rgba(13, 15, 21, 0.96));
}

.accent-card {
    background:
        linear-gradient(180deg, rgba(14, 44, 61, 0.94), rgba(9, 17, 31, 0.97)),
        rgba(14, 24, 40, 0.9);
    border-color: rgba(93, 197, 255, 0.28);
}

.install-layout {
    align-items: start;
}

.install-card ol {
    margin: 18px 0 0;
    padding-left: 18px;
    color: #c3d2e8;
    line-height: 1.8;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.screenshot-card {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(14, 24, 40, 0.9), rgba(8, 15, 27, 0.94));
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid var(--line);
}

.screenshot-card figcaption {
    padding: 16px 20px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 760px) {
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
}

.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 620ms ease, transform 620ms ease;
}

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

@media (max-width: 1100px) {
    .hero,
    .capability-grid,
    .story-layout,
    .timeline,
    .comparison-grid,
    .install-layout {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: 520px;
    }
}

@media (max-width: 760px) {
    .page-shell {
        width: min(calc(100% - 24px), var(--max-width));
        padding-top: 18px;
    }

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

    .hero {
        min-height: auto;
        gap: 22px;
    }

    .hero h1 {
        max-width: 12ch;
    }

    .hero-panel {
        min-height: 540px;
    }

    .floating-card {
        width: 100%;
        left: 0;
        right: 0;
    }

    .stat-card {
        top: 2%;
    }

    .comment-card {
        top: 31%;
    }

    .chat-card {
        bottom: 0;
        left: 0;
    }

    main section {
        margin-top: 90px;
    }
}
