/* =============================================================================
   Plan Universe — Apple-style landing
   Single stylesheet · vanilla CSS · light + dark · responsive · a11y
   ========================================================================== */

/* ---- 1. Reset ---------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body,
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }

ul, ol { padding: 0; list-style: none; }

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

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

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection { background: rgba(157, 123, 255, .35); }


/* ---- 2. Tokens --------------------------------------------------------- */

:root {
    /* Brand gradient stops — headlines, buttons, accents */
    --g1: #FF7AC8;          /* pink   */
    --g2: #9D7BFF;          /* purple */
    --g3: #5DD4F2;          /* aqua   */

    /* Background mesh stops — cooler and calmer than the brand gradient,
       so the pink/purple stays reserved for type and CTAs. */
    --m1: #6FD8EF;          /* aqua       */
    --m2: #8FB8F0;          /* soft blue  */
    --m3: #9FE3D2;          /* mint       */
    --m4: #C79BE8;          /* muted lilac — the one warm note */

    /* Surface */
    --bg:           #fbfbfd;
    --bg-elevated:  rgba(255, 255, 255, .68);
    --bg-card:      rgba(255, 255, 255, .55);
    --ink:          #1d1d1f;
    --ink-strong:   #050507;
    --muted:        #6e6e73;
    --hairline:     rgba(0, 0, 0, .08);
    --hairline-2:   rgba(0, 0, 0, .14);

    /* Effects */
    --shadow-card:  0 24px 60px -22px rgba(20, 20, 40, .25),
                    0 1px 0 rgba(255, 255, 255, .6) inset;
    --shadow-phone: 0 60px 90px -40px rgba(40, 30, 90, .35),
                    0 18px 30px -12px rgba(40, 30, 90, .18);

    /* Layout */
    --radius-card:  28px;
    --radius-pill:  999px;
    --max-w:        1180px;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                 "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg:           #000;
        --bg-elevated:  rgba(20, 20, 22, .55);
        --bg-card:      rgba(28, 28, 32, .55);
        --ink:          #f5f5f7;
        --ink-strong:   #ffffff;
        --muted:        #a1a1a6;
        --hairline:     rgba(255, 255, 255, .10);
        --hairline-2:   rgba(255, 255, 255, .18);

        --g1: #DA66B0;
        --g2: #8466DC;
        --g3: #4FB7CF;

        --m1: #3E93A8;
        --m2: #4C71A8;
        --m3: #4A9385;
        --m4: #7A5C9E;

        --shadow-card:  0 30px 70px -22px rgba(0, 0, 0, .65),
                        0 1px 0 rgba(255, 255, 255, .04) inset;
        --shadow-phone: 0 70px 110px -45px rgba(0, 0, 0, .85),
                        0 20px 32px -10px rgba(0, 0, 0, .55);
    }
}


/* ---- 3. Base ----------------------------------------------------------- */

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}


/* ---- 4. Animated mesh gradient background ----------------------------- */

.mesh {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(120% 80% at 50% 0%,
            color-mix(in oklab, var(--m2) 14%, transparent) 0%,
            transparent 60%),
        var(--bg);
}

.mesh__blob {
    position: absolute;
    width: 70vmax;
    height: 70vmax;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .38;
    will-change: transform;
    mix-blend-mode: screen;
    animation: meshDrift 38s ease-in-out infinite alternate;
}

.mesh__blob--1 {
    background: radial-gradient(circle at 30% 30%, var(--m2), transparent 60%);
    top: -30vmax;
    left: -20vmax;
    animation-duration: 32s;
}

.mesh__blob--2 {
    background: radial-gradient(circle at 70% 30%, var(--m1), transparent 60%);
    top: -10vmax;
    right: -25vmax;
    animation-duration: 44s;
    animation-delay: -6s;
}

.mesh__blob--3 {
    background: radial-gradient(circle at 30% 70%, var(--m3), transparent 60%);
    top: 30vmax;
    left: -15vmax;
    animation-duration: 50s;
    animation-delay: -12s;
}

/* The single warm blob — kept dimmer than the cool ones so it reads as a
   hint of the brand colour rather than a wash of it. */
.mesh__blob--4 {
    background: radial-gradient(circle at 70% 70%,
        color-mix(in oklab, var(--m4) 55%, var(--m2)), transparent 60%);
    top: 60vmax;
    right: -20vmax;
    opacity: .22;
    animation-duration: 56s;
    animation-delay: -18s;
}

@media (prefers-color-scheme: dark) {
    .mesh__blob { opacity: .34; mix-blend-mode: screen; }
    .mesh__blob--4 { opacity: .2; }
}

.mesh__aurora {
    position: absolute;
    inset: -20%;
    background: conic-gradient(from 0deg at 50% 50%,
        transparent 0%,
        color-mix(in oklab, var(--m1) 22%, transparent) 18%,
        transparent 36%,
        color-mix(in oklab, var(--m3) 20%, transparent) 54%,
        transparent 72%,
        color-mix(in oklab, var(--m2) 22%, transparent) 90%,
        transparent 100%);
    filter: blur(60px);
    opacity: .42;
    animation: meshSpin 80s linear infinite;
}

.mesh__grain {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .35;
    mix-blend-mode: overlay;
    pointer-events: none;
}

@media (prefers-color-scheme: dark) {
    .mesh__grain { opacity: .25; mix-blend-mode: soft-light; }
    .mesh__aurora { opacity: .35; }
}

@keyframes meshDrift {
    0%   { transform: translate(0, 0)        scale(1); }
    50%  { transform: translate(6vmax, -4vmax) scale(1.18); }
    100% { transform: translate(-4vmax, 5vmax) scale(.92); }
}

@keyframes meshSpin {
    to { transform: rotate(360deg); }
}


/* ---- 5. Layout primitives --------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
}

.container--tight { max-width: 880px; }


/* ---- 6. Navigation ---------------------------------------------------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    background: color-mix(in oklab, var(--bg) 75%, transparent);
    border-bottom: 1px solid var(--hairline);
}

.nav__inner {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-size: 18px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 3px 8px rgba(20, 16, 40, .18));
}

.brand-mark img {
    display: block;
}

.nav__menu {
    display: flex;
    gap: 22px;
    margin-left: auto;
    margin-right: 8px;
}

.nav__link {
    font-size: 14px;
    color: var(--muted);
    transition: color .2s ease;
}

.nav__link:hover { color: var(--ink); }


/* ---- 7. Buttons ------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 22px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.01em;
    transition: transform .25s ease, box-shadow .25s ease,
                background .25s ease, color .25s ease, opacity .2s ease;
    will-change: transform;
}

.btn--small { height: 36px; padding: 0 16px; font-size: 14px; }

.btn--full { width: 100%; height: 52px; }

.btn--primary {
    color: #fff;
    background: linear-gradient(120deg, var(--g1), var(--g2) 55%, var(--g3));
    background-size: 200% 200%;
    box-shadow: 0 12px 30px -12px rgba(157, 123, 255, .55),
                0 1px 0 rgba(255, 255, 255, .25) inset;
    animation: btnSheen 7s ease-in-out infinite;
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px -12px rgba(157, 123, 255, .65),
                0 1px 0 rgba(255, 255, 255, .25) inset;
}

.btn--primary:active { transform: translateY(0); }

@keyframes btnSheen {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.btn--ghost {
    color: var(--ink);
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--hairline-2);
}

.btn--ghost:hover {
    background: color-mix(in oklab, var(--ink) 6%, transparent);
}

.btn__arrow {
    display: inline-block;
    transition: transform .25s ease;
}

.btn:hover .btn__arrow { transform: translateX(3px); }


/* ---- 8. Typography ---------------------------------------------------- */

.hero__title,
.section-title,
.feature__title {
    font-family: var(--font-sans);
    color: var(--ink-strong);
    line-height: 1.04;
    letter-spacing: -0.035em;
    font-weight: 700;
}

.hero__title em,
.section-title em,
.feature__title em {
    font-style: normal;
    background: linear-gradient(120deg, var(--g1), var(--g2) 50%, var(--g3));
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}

.hero__title { font-size: clamp(2.6rem, 7.2vw, 5.6rem); }

.section-title,
.feature__title { font-size: clamp(2.1rem, 4.8vw, 3.8rem); }


/* ---- 9. Hero ---------------------------------------------------------- */

.hero {
    position: relative;
    padding: clamp(72px, 12vh, 140px) 0 0;
    text-align: center;
    overflow: hidden;
}

.hero__head {
    max-width: 940px;
}

.hero__sub {
    margin: 22px auto 0;
    max-width: 640px;
    font-size: clamp(17px, 1.4vw, 19px);
    color: var(--muted);
    line-height: 1.55;
}

.hero__ctas {
    margin-top: 36px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 3-up phone showcase */
.showcase {
    margin-top: clamp(56px, 8vh, 96px);
    padding: 0 16px clamp(72px, 10vh, 120px);
}

.showcase__track {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(12px, 2.4vw, 28px);
}

.phone {
    flex: 0 0 auto;
    width: clamp(180px, 22vw, 280px);
    border-radius: 0;
    overflow: visible;
    background: none;
    box-shadow: none;
    transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}

.phone picture {
    display: block;
    line-height: 0;
}

.phone--sm { transform: translateY(28px) scale(.92); opacity: .92; }
.phone--lg { transform: translateY(-12px) scale(1.04); }

.phone img { width: 100%; height: auto; display: block; }

@media (max-width: 720px) {
    .showcase__track { gap: 10px; }
    .phone { width: clamp(140px, 30vw, 200px); }
}


/* ---- 10. Section heads ----------------------------------------------- */

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(40px, 6vh, 64px);
}

.section-sub {
    margin-top: 18px;
    font-size: clamp(16px, 1.2vw, 18px);
    color: var(--muted);
    line-height: 1.55;
}


/* ---- 11. Feature blocks (alternating) -------------------------------- */

.feature {
    padding: clamp(80px, 12vh, 140px) 0;
    position: relative;
}

.feature__row {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.feature--reverse .feature__row {
    grid-template-columns: 1fr 1.05fr;
    direction: rtl;
}

.feature--reverse .feature__row > * { direction: ltr; }

.feature__copy {
    max-width: 520px;
}

.feature__desc {
    margin-top: 20px;
    font-size: clamp(16px, 1.2vw, 18px);
    color: var(--muted);
    line-height: 1.6;
}

.feature__visual {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Task-node screenshot beside “Plans aren't lines…” (~30% smaller) */
.mindmap-shot {
    width: min(294px, 70%);
}

.mindmap-shot picture {
    display: block;
}

.mindmap-shot img {
    width: 100%;
    height: auto;
    display: block;
}


/* ---- 11a. AI tabs + stage -------------------------------------------- */

.ai-tabs {
    margin-top: 28px;
    display: grid;
    gap: 10px;
}

.ai-tab {
    display: flex;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    padding: 16px 18px;
    border-radius: 18px;
    background: transparent;
    box-shadow: inset 0 0 0 1px transparent;
    transition: background .25s ease, box-shadow .25s ease, transform .2s ease;
}

.ai-tab:hover {
    background: color-mix(in oklab, var(--ink) 5%, transparent);
}

.ai-tab.is-active {
    background: var(--bg-card);
    box-shadow: inset 0 0 0 1px var(--hairline-2),
                0 12px 30px -18px rgba(20, 20, 40, .25);
}

.ai-tab__body { display: grid; gap: 4px; min-width: 0; flex: 1; }

.ai-tab__title {
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.ai-tab__desc {
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.5;
}

.ai-stage {
    position: relative;
    width: min(294px, 70%);
    aspect-ratio: 9 / 17.5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-stage__halo {
    position: absolute;
    inset: -20% -25%;
    background: radial-gradient(closest-side,
        color-mix(in oklab, var(--m2) 30%, transparent) 0%,
        transparent 70%);
    filter: blur(30px);
    z-index: 0;
    animation: meshSpin 30s linear infinite;
}

.ai-stage__slot {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    overflow: visible;
    background: none;
    box-shadow: none;
    opacity: 0;
    transform: translateY(14px) scale(.985);
    transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
    z-index: 1;
}

.ai-stage__slot.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ai-stage__slot picture {
    display: block;
    width: 100%;
    line-height: 0;
}

.ai-stage__slot img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}


/* ---- 12. Design grid -------------------------------------------------- */

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

.card {
    position: relative;
    padding: 28px 26px 22px;
    border-radius: var(--radius-card);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card),
                inset 0 0 0 1px var(--hairline);
    overflow: hidden;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1),
                box-shadow .35s ease;
}

.card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
        color-mix(in oklab, var(--g1) 40%, transparent),
        color-mix(in oklab, var(--g2) 30%, transparent),
        color-mix(in oklab, var(--g3) 40%, transparent));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 36px 80px -28px rgba(20, 20, 40, .35),
                inset 0 0 0 1px var(--hairline);
}

.card:hover::after { opacity: 1; }

.card__title {
    font-size: clamp(20px, 1.6vw, 24px);
    letter-spacing: -0.02em;
    font-weight: 600;
    color: var(--ink-strong);
}

.card__desc {
    margin-top: 8px;
    font-size: 15.5px;
    color: var(--muted);
    line-height: 1.55;
}

.card__media {
    margin-top: 20px;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    background: none;
}

/* Phone screenshots preserve intrinsic aspect ratio */
.design-grid .design-card .card__media--single picture {
    width: 70%;
    margin-inline: auto;
}

.card__media--single picture {
    display: block;
    width: 100%;
    max-width: 100%;
}

.card__media--single img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top center;
}

/* ---- 13. Vision roadmap ---------------------------------------------- */

.vision { padding: clamp(80px, 12vh, 140px) 0; }

.roadmap {
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.roadmap--media {
    max-width: 1100px;
}

.roadmap__step--media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 52px);
    align-items: center;
    padding: clamp(28px, 4vh, 44px) 0;
    border-bottom: 1px solid var(--hairline);
}

.roadmap__step--media:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

@media (min-width: 861px) {
    .roadmap__step--media.roadmap__step--reverse .roadmap__media { order: 2; }
    .roadmap__step--media.roadmap__step--reverse .roadmap__body { order: 1; }
}

.roadmap__media {
    min-width: 0;
}

.roadmap__frame {
    margin: 0 auto;
    max-width: 100%;
}

.roadmap__frame--device {
    max-width: min(210px, 100%);
}

.roadmap__frame--device img {
    display: block;
    width: 100%;
    height: auto;
}

.roadmap__frame--asset {
    display: flex;
    align-items: center;
    justify-content: center;
}

.roadmap__frame--asset img {
    max-width: 100%;
    max-height: min(220px, 28vw);
    width: auto;
    height: auto;
    object-fit: contain;
}

.roadmap__body {
    padding: 4px 0;
    min-width: 0;
}

.roadmap__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.roadmap__title {
    font-size: clamp(20px, 1.7vw, 26px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink-strong);
    line-height: 1.28;
}

.roadmap__title-suffix {
    font-weight: 500;
    color: var(--muted);
    font-size: .88em;
}

.roadmap__pill {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    box-shadow: inset 0 0 0 1px var(--hairline-2);
    color: var(--muted);
    background: var(--bg-card);
}

.is-shipping .roadmap__pill {
    color: #0a7d3a;
    background: color-mix(in oklab, #58d36a 22%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in oklab, #58d36a 35%, transparent);
}

.is-progress .roadmap__pill {
    color: #1457c2;
    background: color-mix(in oklab, var(--g3) 25%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--g3) 45%, transparent);
}

.is-research .roadmap__pill {
    color: #7a3ca3;
    background: color-mix(in oklab, var(--g2) 25%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--g2) 45%, transparent);
}

.is-future .roadmap__pill {
    color: #b3266c;
    background: color-mix(in oklab, var(--g1) 22%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--g1) 45%, transparent);
}

@media (prefers-color-scheme: dark) {
    .is-shipping .roadmap__pill { color: #71e58a; }
    .is-progress .roadmap__pill { color: #8ed8ff; }
    .is-research .roadmap__pill { color: #c9b6ff; }
    .is-future .roadmap__pill   { color: #ffaadd; }
}

.roadmap__desc {
    margin-top: 10px;
    color: var(--muted);
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.6;
    max-width: 60ch;
}

.vision__teams {
    margin-top: clamp(40px, 6vh, 64px);
    padding: 22px 24px;
    border-radius: var(--radius-card);
    background: var(--bg-card);
    box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-card);
    color: var(--ink);
    font-size: clamp(15px, 1.1vw, 17px);
    text-align: center;
}

.vision__teams strong {
    background: linear-gradient(120deg, var(--g1), var(--g2), var(--g3));
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    font-weight: 600;
}


/* ---- 14. Beta form --------------------------------------------------- */

.beta {
    padding: clamp(80px, 12vh, 140px) 0 clamp(96px, 14vh, 160px);
}

.beta__panel {
    position: relative;
    margin: 0 auto;
    max-width: 520px;
    padding: 32px 28px 22px;
    border-radius: 32px;
    background: var(--bg-card);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: var(--shadow-card),
                inset 0 0 0 1px var(--hairline);
    overflow: hidden;
}

.beta__panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
        color-mix(in oklab, var(--g1) 60%, transparent),
        color-mix(in oklab, var(--g2) 50%, transparent),
        color-mix(in oklab, var(--g3) 60%, transparent));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: .9;
}

.beta__form { display: grid; gap: 14px; }

.field {
    display: grid;
    gap: 6px;
}

.field__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.field__input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border-radius: 16px;
    background: var(--bg-elevated);
    color: var(--ink);
    font-size: 16px;
    font-family: inherit;
    border: 1px solid var(--hairline-2);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.field__input:focus {
    outline: none;
    border-color: color-mix(in oklab, var(--g2) 70%, transparent);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--g2) 18%, transparent);
}

.beta__error {
    min-height: 1.2em;
    margin: 4px 2px 0;
    color: #d6336c;
    font-size: 14px;
}

@media (prefers-color-scheme: dark) {
    .beta__error { color: #ff8fb1; }
}

.beta__success {
    display: none;
    text-align: center;
    padding: 16px 8px 4px;
}

.beta__success.is-visible { display: block; }

.beta__success-icon {
    margin: 0 auto 12px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--g1), var(--g2), var(--g3));
    box-shadow: 0 16px 30px -10px rgba(157, 123, 255, .50);
}

.beta__success-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink-strong);
}

.beta__success-msg {
    margin-top: 6px;
    color: var(--muted);
    font-size: 15.5px;
}

.beta__note {
    margin: 14px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}


/* ---- 15. Footer ------------------------------------------------------- */

.footer {
    border-top: 1px solid var(--hairline);
    padding: 32px 0;
    color: var(--muted);
    font-size: 13.5px;
    background: color-mix(in oklab, var(--bg) 75%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer__name {
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
}

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

.footer__link {
    color: var(--ink);
    text-decoration: none;
    margin-right: 14px;
    transition: opacity .2s ease;
}

.footer__link:hover {
    opacity: .65;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ---- 16. Reveal animations ------------------------------------------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .8s cubic-bezier(.2, .8, .2, 1),
                transform .8s cubic-bezier(.2, .8, .2, 1);
}

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


/* ---- 17. Responsive -------------------------------------------------- */

@media (max-width: 1100px) {
    .design-grid { gap: 18px; }
}

@media (max-width: 860px) {
    .nav__menu { display: none; }

    .nav__cta {
        margin-left: auto;
    }

    .feature__row,
    .feature--reverse .feature__row {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 48px;
    }

    .feature__copy { max-width: 600px; margin: 0 auto; }

    .design-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .roadmap__step--media {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .roadmap__frame--device {
        max-width: min(196px, 86vw);
    }
}

@media (max-width: 640px) {
    .nav__inner { padding: 12px 18px; gap: 14px; }
    .container { padding: 0 18px; }

    .hero { padding-top: 56px; }
    .hero__ctas { gap: 10px; }
    .btn { font-size: 15px; height: 46px; padding: 0 18px; }

    .showcase { margin-top: 48px; padding-bottom: 64px; }
    .showcase__track { gap: 8px; }
    .phone--sm { width: 38vw; transform: translateY(20px) scale(.86); }
    .phone--lg { width: 56vw; }

    .feature { padding: 64px 0; }

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

    .mindmap-shot { width: min(224px, 59.5%); }

    .ai-stage { width: min(224px, 56%); }

    .vision { padding: 64px 0; }

    .beta__panel { padding: 26px 20px 18px; border-radius: 26px; }

    .footer__inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
    .hero__title { letter-spacing: -0.025em; }
    .ai-tab { padding: 14px 14px; }
}


/* ---- 18. Reduced motion ---------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .mesh__blob,
    .mesh__aurora,
    .btn--primary { animation: none !important; }

    [data-reveal] { opacity: 1; transform: none; }
}
