:root {
    --bg: #f5efe4;
    --bg-deep: #0d1b2a;
    --paper: rgba(255, 251, 245, 0.72);
    --ink: #112031;
    --muted: #52606d;
    --line: rgba(17, 32, 49, 0.12);
    --cyan: #9be7ff;
    --teal: #62d2a2;
    --sand: #f3b562;
    --coral: #f4845f;
    --glow: rgba(98, 210, 162, 0.18);
    --shadow: 0 24px 80px rgba(25, 35, 45, 0.14);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --max-width: 1220px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 15%, rgba(244, 132, 95, 0.16), transparent 22%),
        radial-gradient(circle at 85% 18%, rgba(98, 210, 162, 0.18), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(155, 231, 255, 0.16), transparent 35%),
        linear-gradient(180deg, #f8f2e8 0%, #f5efe4 100%);
    min-height: 100vh;
}

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

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

button {
    font: inherit;
}

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

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    position: sticky;
    top: 14px;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(255, 250, 243, 0.78);
    border: 1px solid rgba(17, 32, 49, 0.08);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(20, 28, 36, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    color: #fffdf8;
    background:
        linear-gradient(135deg, #07131f 0%, #17415a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-copy strong {
    font-size: 1rem;
}

.brand-copy span {
    font-size: 0.82rem;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.95rem;
    color: var(--muted);
}

.nav a {
    transition: color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--ink);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
    color: #fffefb;
    background: linear-gradient(135deg, #0a1826 0%, #184b5d 55%, #2f7f85 100%);
    box-shadow: 0 14px 28px rgba(16, 43, 59, 0.22);
}

.button-secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.56);
    border-color: rgba(17, 32, 49, 0.1);
}

.button-ghost {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.42);
    border-color: rgba(17, 32, 49, 0.1);
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 42px;
    padding: 72px 0 44px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 16px;
    font-size: 0.83rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #27586a;
}

.hero h1,
.section-heading h2,
.problem-card-lead h2,
.brain-copy h2,
.cta-panel h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.hero h1 {
    max-width: 11ch;
    font-size: clamp(3.3rem, 7vw, 6.6rem);
}

.hero-text,
.problem-card p,
.step p,
.brain-copy p,
.showcase-card p,
.cta-panel p {
    color: var(--muted);
    line-height: 1.75;
    font-size: 1rem;
}

.hero-text {
    max-width: 60ch;
    margin: 26px 0 30px;
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 36px;
}

.hero-metrics article,
.problem-card,
.step,
.showcase-card {
    background: var(--paper);
    border: 1px solid rgba(17, 32, 49, 0.08);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.hero-metrics article {
    padding: 18px;
    border-radius: 20px;
}

.hero-metrics strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.hero-metrics span {
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-visual {
    position: relative;
    min-height: 640px;
}

.memory-orbit {
    position: relative;
    width: min(100%, 600px);
    aspect-ratio: 1;
    margin-inline: auto;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.64) 0%, rgba(255, 255, 255, 0.18) 42%, transparent 68%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(17, 32, 49, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 25px 90px rgba(17, 32, 49, 0.12);
}

.memory-orbit::before,
.memory-orbit::after {
    content: "";
    position: absolute;
    inset: 9%;
    border-radius: 50%;
    border: 1px dashed rgba(24, 75, 93, 0.2);
}

.memory-orbit::after {
    inset: 22%;
}

.memory-card {
    position: absolute;
    border-radius: 26px;
    background: rgba(8, 19, 31, 0.88);
    color: #f7f6f1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(8, 19, 31, 0.28);
}

.memory-card-main {
    inset: 50%;
    width: 250px;
    height: 250px;
    padding: 28px;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    background:
        radial-gradient(circle at 20% 15%, rgba(155, 231, 255, 0.18), transparent 30%),
        linear-gradient(155deg, #07131f 0%, #10273b 65%, #17415a 100%);
}

.memory-card-main h2 {
    margin: 0;
    font-size: 4.2rem;
    font-family: "Space Grotesk", sans-serif;
}

.memory-card-main p {
    margin: 0;
    color: rgba(247, 246, 241, 0.82);
    line-height: 1.6;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.chip-live {
    background: rgba(98, 210, 162, 0.15);
    color: #bbf3dd;
}

.chip-live::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 12px var(--teal);
}

.memory-card-small {
    width: 164px;
    min-height: 96px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.memory-card-small span {
    color: rgba(247, 246, 241, 0.68);
    font-size: 0.85rem;
}

.memory-card-small strong {
    font-size: 1.15rem;
}

.memory-card-a {
    top: 11%;
    left: 4%;
    animation: float 6s ease-in-out infinite;
}

.memory-card-b {
    top: 16%;
    right: 2%;
    animation: float 7s ease-in-out infinite 0.8s;
}

.memory-card-c {
    left: 14%;
    bottom: 6%;
    animation: float 7.2s ease-in-out infinite 0.3s;
}

.memory-card-d {
    right: 3%;
    bottom: 17%;
    animation: float 6.4s ease-in-out infinite 1.2s;
}

.memory-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.memory-lines path {
    fill: none;
    stroke: rgba(24, 75, 93, 0.28);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 8 12;
}

.agent-strip {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: center;
    margin: 30px 0 78px;
    padding: 18px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(17, 32, 49, 0.08);
}

.agent-strip p {
    margin: 0;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--muted);
}

.agent-marquee {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.agent-marquee span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(17, 32, 49, 0.05);
    font-size: 0.92rem;
}

.problem-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 92px;
}

.problem-card,
.step,
.showcase-card,
.terminal-panel,
.cta-panel {
    border-radius: var(--radius-xl);
}

.problem-card {
    padding: 28px;
}

.problem-card-lead {
    background: linear-gradient(145deg, rgba(17, 32, 49, 0.96), rgba(24, 75, 93, 0.9));
    color: #f6f4ef;
}

.problem-card-lead p {
    color: rgba(246, 244, 239, 0.78);
}

.problem-card-lead .eyebrow {
    color: #bbf3dd;
}

.problem-card-lead h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    margin-bottom: 18px;
}

.problem-number {
    display: inline-flex;
    margin-bottom: 18px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #2b7288;
}

.problem-card h3,
.step h3,
.showcase-card h3 {
    margin: 0 0 12px;
    font-size: 1.3rem;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.section-heading h2 {
    font-size: clamp(2.2rem, 5vw, 4.3rem);
    max-width: 12ch;
}

.how-it-works,
.brain-section,
.showcase {
    margin-bottom: 96px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.step {
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.step::after {
    content: "";
    position: absolute;
    inset: auto -12% -26% auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(155, 231, 255, 0.45), transparent 70%);
    pointer-events: none;
}

.step-index {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: rgba(17, 32, 49, 0.92);
    color: #f6f4ef;
    font-weight: 800;
    font-size: 0.8rem;
}

.brain-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
}

.terminal-panel {
    overflow: hidden;
    background: linear-gradient(180deg, #09121d 0%, #112031 100%);
    color: #d9f5ff;
    box-shadow: 0 25px 70px rgba(8, 19, 31, 0.28);
}

.terminal-bar {
    display: flex;
    gap: 8px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-bar span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.terminal-bar span:nth-child(1) {
    background: #f4845f;
}

.terminal-bar span:nth-child(2) {
    background: #f3b562;
}

.terminal-bar span:nth-child(3) {
    background: #62d2a2;
}

.terminal-panel pre {
    margin: 0;
    padding: 28px;
    overflow: auto;
    font-size: 0.98rem;
    line-height: 1.8;
}

.brain-copy {
    padding: 14px 10px;
}

.brain-copy h2 {
    font-size: clamp(2.3rem, 5vw, 4.6rem);
    max-width: 11ch;
    margin-bottom: 18px;
}

.feature-list {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.feature-list article {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(17, 32, 49, 0.08);
}

.feature-list strong {
    font-size: 1rem;
}

.feature-list span {
    color: var(--muted);
    line-height: 1.65;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.showcase-card {
    min-height: 260px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.showcase-card::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -10%;
    width: 180px;
    height: 180px;
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.28);
    transform: rotate(18deg);
}

.accent-sand {
    background: linear-gradient(135deg, rgba(243, 181, 98, 0.42), rgba(255, 255, 255, 0.56));
}

.accent-ice {
    background: linear-gradient(135deg, rgba(155, 231, 255, 0.42), rgba(255, 255, 255, 0.56));
}

.accent-coral {
    background: linear-gradient(135deg, rgba(244, 132, 95, 0.32), rgba(255, 255, 255, 0.56));
}

.showcase-label {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(17, 32, 49, 0.08);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cta-section {
    margin-bottom: 20px;
}

.cta-panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    padding: 34px;
    background:
        radial-gradient(circle at 10% 0%, rgba(155, 231, 255, 0.18), transparent 28%),
        linear-gradient(145deg, #09121d 0%, #112031 50%, #17415a 100%);
    color: #f7f4ef;
    box-shadow: 0 28px 80px rgba(8, 19, 31, 0.24);
}

.cta-panel .eyebrow {
    color: #bbf3dd;
}

.cta-panel h2 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    margin-bottom: 16px;
}

.cta-panel p {
    color: rgba(247, 244, 239, 0.76);
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
}

.install-snippet {
    display: inline-flex;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #dff7ff;
    font-size: 0.95rem;
}

.copy-feedback {
    min-height: 20px;
    color: #bbf3dd;
    font-size: 0.92rem;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 28px 4px 8px;
    color: var(--muted);
    font-size: 0.95rem;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    font-weight: 700;
    color: var(--ink);
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

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

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

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@media (max-width: 1120px) {
    .hero,
    .brain-layout,
    .cta-panel,
    .problem-grid {
        grid-template-columns: 1fr;
    }

    .problem-grid {
        gap: 16px;
    }

    .hero-visual {
        min-height: 560px;
    }

    .section-heading h2,
    .brain-copy h2,
    .hero h1 {
        max-width: none;
    }
}

@media (max-width: 860px) {
    .topbar {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 28px;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .steps,
    .showcase-grid,
    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .agent-strip {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 44px;
    }

    .hero-visual {
        min-height: 480px;
    }

    .memory-card-main {
        width: 220px;
        height: 220px;
    }

    .memory-card-main h2 {
        font-size: 3.5rem;
    }

    .memory-card-small {
        width: 138px;
        min-height: 86px;
        padding: 14px;
    }
}

@media (max-width: 620px) {
    .page-shell {
        width: min(100% - 20px, var(--max-width));
        padding-top: 16px;
    }

    .topbar {
        padding: 16px;
    }

    .hero {
        gap: 26px;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 15vw, 4.2rem);
    }

    .hero-text {
        margin-top: 18px;
    }

    .memory-orbit {
        aspect-ratio: 0.95;
    }

    .memory-card-main {
        width: 190px;
        height: 190px;
        padding: 20px;
    }

    .memory-card-main h2 {
        font-size: 3rem;
    }

    .memory-card-small {
        width: 120px;
        min-height: 78px;
    }

    .problem-card,
    .step,
    .showcase-card,
    .cta-panel,
    .terminal-panel pre {
        padding: 22px;
    }

    .cta-panel {
        gap: 22px;
    }

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