/* ─────────────────────────────────────────────
   MeetBall — landing page
   "2050 level": dark by default, holographic
   gradients, glassmorphism, motion-rich.
   ───────────────────────────────────────────── */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #06060c;
    --bg-2: #0d0d18;
    --bg-3: #14142a;
    --fg: #f5f5fa;
    --fg-muted: #a3a3b8;
    --fg-dim: #6c6c84;
    --accent: #8b71ff;
    --accent-2: #b08bff;
    --accent-3: #d4a4ff;
    --hot: #ff5cd1;
    --warm: #ffc36b;
    --green: #5dffae;
    --line: rgba(255, 255, 255, .08);
    --glass: rgba(255, 255, 255, .04);
    --glass-strong: rgba(255, 255, 255, .07);
    --halo: 0 0 80px rgba(139, 113, 255, .35), 0 0 160px rgba(139, 113, 255, .15);

    --radius: 18px;
    --radius-sm: 10px;
    --radius-lg: 28px;
    --gutter: clamp(20px, 4vw, 48px);
    --section-pad: clamp(80px, 12vh, 160px);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    --font-mono: 'JetBrains Mono', "SF Mono", Menlo, monospace;
    --font-serif: 'Instrument Serif', "Times New Roman", serif;

    color-scheme: dark;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    /* Cosmic background — noise + radial gradients */
    background:
        radial-gradient(ellipse 1200px 800px at 80% -10%, rgba(139, 113, 255, .15), transparent 70%),
        radial-gradient(ellipse 800px 600px at 10% 110%, rgba(255, 92, 209, .08), transparent 70%),
        radial-gradient(ellipse 600px 400px at 50% 50%, rgba(176, 139, 255, .04), transparent 70%),
        var(--bg);
    background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

::selection { background: rgba(139, 113, 255, .35); color: var(--fg); }

/* ─────────────── Nav ─────────────── */
.nav {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 100;
    pointer-events: none;
}
.nav__inner {
    pointer-events: auto;
    margin: 0 auto;
    max-width: 1200px;
    padding: 12px 18px 12px 22px;
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(10, 10, 22, .55);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: -.01em;
}
.orb-mini {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #d4a4ff, var(--accent) 55%, #4a3299 100%);
    box-shadow: 0 0 18px rgba(139, 113, 255, .7), inset 0 0 8px rgba(255, 255, 255, .3);
    animation: pulse 3s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 18px rgba(139, 113, 255, .7), inset 0 0 8px rgba(255, 255, 255, .3); }
    50%      { transform: scale(1.06); box-shadow: 0 0 28px rgba(139, 113, 255, .9), inset 0 0 12px rgba(255, 255, 255, .4); }
}
.nav__links {
    display: flex;
    gap: 28px;
    list-style: none;
    margin-left: auto;
}
.nav__links a {
    color: var(--fg-muted);
    font-size: 14px;
    transition: color .2s;
}
.nav__links a:hover { color: var(--fg); }
.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--fg);
    color: var(--bg);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    transition: transform .15s ease;
}
.nav__cta:hover { transform: translateY(-1px); }
@media (max-width: 720px) {
    .nav__links { display: none; }
}

/* ─────────────── Hero ─────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 140px var(--gutter) 80px;
}
.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.hero__grain {
    position: absolute;
    inset: 0;
    /* Light corner vignette — keeps the big orb the hero, just grounds the edges. */
    background:
        radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, .55) 100%);
    z-index: 1;
    pointer-events: none;
}
.hero__noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='1.6' numOctaves='2' seed='5'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.5'/></svg>");
    opacity: .05;
    mix-blend-mode: overlay;
    z-index: 2;
    pointer-events: none;
}
.hero__content {
    position: relative;
    z-index: 3;
    max-width: 980px;
    text-align: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    font-size: 12px;
    color: var(--fg);
    font-family: var(--font-mono);
    letter-spacing: .05em;
    margin-bottom: 28px;
}
.eyebrow__dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%      { opacity: .4; }
}

.hero__title {
    font-size: clamp(48px, 8vw, 104px);
    line-height: .98;
    letter-spacing: -.04em;
    font-weight: 700;
    margin-bottom: 28px;
    /* Soft drop shadow buys extra legibility when the orb halo bleeds through
       the radial vignette on smaller viewports. */
    text-shadow: 0 4px 30px rgba(6, 6, 12, .9), 0 2px 12px rgba(6, 6, 12, .6);
}
.hero__title--accent {
    /* Original lavender → accent → hot-pink gradient. The orb has been darkened
       so this gradient reads at full saturation again. */
    background: linear-gradient(120deg, var(--accent-3) 0%, var(--accent) 35%, var(--hot) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
    letter-spacing: -.02em;
    filter: drop-shadow(0 2px 18px rgba(139, 113, 255, .35));
}

.hero__sub {
    font-size: clamp(16px, 1.6vw, 19px);
    /* Slightly brighter base color than --fg-muted so the body copy holds against
       the orb's bright glow, plus a thin white stroke for edge definition and a
       dark halo behind it to lift the type off the most luminous parts. */
    color: #d8d8e8;
    -webkit-text-stroke: 0.4px rgba(255, 255, 255, .18);
    text-shadow:
        0 1px 6px rgba(0, 0, 0, .55),
        0 0 18px rgba(6, 6, 12, .5);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.55;
}
.hero__sub em {
    color: var(--fg);
    background: linear-gradient(120deg, transparent 0, transparent 5%, rgba(139, 113, 255, .2) 5%, rgba(139, 113, 255, .2) 95%, transparent 95%);
    padding: 0 4px;
}

.hero__cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    transition: transform .2s ease, box-shadow .3s ease, background .2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.btn--primary {
    background: var(--fg);
    color: var(--bg);
    box-shadow: 0 4px 24px rgba(255, 255, 255, .15);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255, 255, 255, .25); }
.btn--ghost {
    background: var(--glass);
    color: var(--fg);
    border: 1px solid var(--line);
    backdrop-filter: blur(20px);
}
.btn--ghost:hover { background: var(--glass-strong); transform: translateY(-2px); }
.btn--xl { padding: 18px 32px; font-size: 17px; }

.hero__chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 760px;
    margin: 0 auto;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    color: var(--fg-muted);
    backdrop-filter: blur(10px);
}
.chip__icon {
    font-family: var(--font-mono);
    font-size: 12px;
}
.chip__dot {
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
}
.chip__dot--green { background: var(--green); box-shadow: 0 0 6px var(--green); }

.hero__scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--fg-dim);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .15em;
    z-index: 3;
}
.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    background-size: 100% 200%;
    animation: scroll-line 2.5s ease-in-out infinite;
}
@keyframes scroll-line {
    0%, 100% { background-position: 0 -100%; }
    50%      { background-position: 0 100%; }
}

/* ─────────────── Marquee ─────────────── */
.marquee {
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(10, 10, 22, .4);
    padding: 24px 0;
}
.marquee__track {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    white-space: nowrap;
    animation: marquee 50s linear infinite;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--fg-muted);
    letter-spacing: .1em;
}
.marquee__dot { color: var(--accent); }
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─────────────── Feature sections ─────────────── */
.feature {
    padding: var(--section-pad) var(--gutter);
    position: relative;
}
.feature--alt {
    background:
        radial-gradient(ellipse 800px 600px at 100% 50%, rgba(139, 113, 255, .04), transparent 70%);
}
.feature__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}
.feature__grid--reverse .feature__copy { order: 2; }
.feature__grid--reverse .feature__art  { order: 1; }
@media (max-width: 880px) {
    .feature__grid { grid-template-columns: 1fr; }
    .feature__grid--reverse .feature__copy,
    .feature__grid--reverse .feature__art { order: initial; }
}

.feature__kicker {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-2);
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: 18px;
    opacity: .9;
}
.feature__h {
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1;
    letter-spacing: -.03em;
    font-weight: 700;
    margin-bottom: 22px;
}
.feature__h em {
    background: linear-gradient(120deg, var(--accent-3) 0%, var(--accent) 50%, var(--hot) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.feature__p {
    color: var(--fg-muted);
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 18px;
    max-width: 540px;
}
.feature__p--small { font-size: 14px; }
.feature__list {
    list-style: none;
    margin-top: 18px;
}
.feature__list li {
    color: var(--fg-muted);
    font-size: 15px;
    padding: 10px 0 10px 24px;
    border-top: 1px solid var(--line);
    position: relative;
}
.feature__list li:last-child { border-bottom: 1px solid var(--line); }
.feature__list li::before {
    content: "+";
    position: absolute;
    left: 0;
    top: 11px;
    color: var(--accent);
    font-family: var(--font-mono);
}
.feature__list span {
    color: var(--fg);
    font-weight: 600;
}

/* ─────────────── MacBook frame ─────────────── */
.macbook {
    perspective: 1600px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(8deg) rotateY(-12deg);
    transition: transform .8s cubic-bezier(.2, .8, .2, 1);
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}
.macbook:hover {
    transform: rotateX(4deg) rotateY(-6deg);
}
.macbook__bezel {
    position: relative;
    background: #0a0a0a;
    border-radius: 18px 18px 4px 4px;
    padding: 22px 14px 14px;
    box-shadow:
        0 50px 100px -30px rgba(139, 113, 255, .35),
        0 30px 60px -30px rgba(0, 0, 0, .6),
        inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.macbook__camera {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #1f1f24;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.macbook__camera::after {
    content: "";
    position: absolute;
    inset: 1px;
    background: radial-gradient(circle, #2a2a2f 30%, #050505 70%);
    border-radius: 50%;
}
.macbook__bezel img {
    width: 100%;
    display: block;
    border-radius: 6px;
    aspect-ratio: 1440 / 870;
    object-fit: cover;
}
.macbook__hinge {
    height: 4px;
    background: linear-gradient(180deg, #2a2a30 0%, #15151a 50%, #08080c 100%);
    border-radius: 0 0 4px 4px;
    margin: 0 -8px;
}
.macbook__base {
    height: 12px;
    background:
        linear-gradient(180deg, #1c1c22 0%, #0a0a0e 100%);
    border-radius: 0 0 30px 30px;
    margin: 0 -28px;
    position: relative;
    box-shadow: 0 50px 80px -20px rgba(0, 0, 0, .6);
}
.macbook__base::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 14%;
    height: 4px;
    background: rgba(0, 0, 0, .5);
    border-radius: 0 0 8px 8px;
}

/* ─────────────── Orb demo ─────────────── */
.orb-demo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.orb-demo__orb {
    width: 60%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #f0e0ff 0%, #c5a4ff 30%, var(--accent) 60%, #5532b8 100%);
    filter: blur(.5px);
    box-shadow:
        0 0 100px rgba(139, 113, 255, .8),
        0 0 200px rgba(139, 113, 255, .4),
        inset 0 0 60px rgba(255, 255, 255, .2);
    animation: orb-float 6s ease-in-out infinite, orb-pulse 4s ease-in-out infinite;
    position: relative;
}
.orb-demo__orb::before {
    content: "";
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 113, 255, .35) 0%, transparent 60%);
    z-index: -1;
    animation: halo 5s ease-in-out infinite;
}
@keyframes orb-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-12px) rotate(-3deg); }
}
@keyframes orb-pulse {
    0%, 100% { box-shadow: 0 0 100px rgba(139, 113, 255, .8), 0 0 200px rgba(139, 113, 255, .4), inset 0 0 60px rgba(255, 255, 255, .2); }
    50%      { box-shadow: 0 0 130px rgba(139, 113, 255, 1), 0 0 260px rgba(139, 113, 255, .5), inset 0 0 80px rgba(255, 255, 255, .3); }
}
@keyframes halo {
    0%, 100% { transform: scale(1); opacity: .6; }
    50%      { transform: scale(1.15); opacity: .9; }
}
.orb-demo__hint {
    position: absolute;
    bottom: 16%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(8, 8, 16, .92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 195, 107, .55);
    border-radius: 14px;
    padding: 12px 14px;
    width: 78%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 40px rgba(255, 195, 107, .15);
    animation: hint-bob 5s ease-in-out infinite;
}
@keyframes hint-bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-4px); }
}
.orb-demo__hint-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.orb-demo__lightbulb { font-size: 11px; }
.orb-demo__topic {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--warm);
    letter-spacing: .1em;
    font-weight: 600;
}
.orb-demo__answer {
    font-size: 12px;
    line-height: 1.45;
    color: var(--fg);
}
.orb-demo__caption {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--fg-dim);
    letter-spacing: .15em;
    text-transform: uppercase;
}

/* ─────────────── Orb section ─────────────── */
.orb-section {
    padding: var(--section-pad) var(--gutter);
    text-align: center;
    background:
        radial-gradient(ellipse 800px 500px at 50% 50%, rgba(139, 113, 255, .12), transparent 70%);
    position: relative;
}
.orb-section__inner {
    max-width: 1100px;
    margin: 0 auto;
}
.orb-section__h {
    font-size: clamp(40px, 6vw, 80px);
    line-height: 1;
    letter-spacing: -.03em;
    font-weight: 700;
    margin: 18px 0 24px;
}
.orb-section__h em {
    background: linear-gradient(120deg, var(--accent-3) 0%, var(--accent) 50%, var(--hot) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.orb-section__p {
    color: var(--fg-muted);
    font-size: 18px;
    max-width: 720px;
    margin: 0 auto 60px;
    line-height: 1.6;
}
.orb-section__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
}
@media (max-width: 880px) {
    .orb-section__features { grid-template-columns: 1fr; }
}
.orb-feat {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    position: relative;
    backdrop-filter: blur(20px);
    transition: transform .3s ease, border-color .3s ease;
}
.orb-feat:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 113, 255, .4);
}
.orb-feat__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(139, 113, 255, .15);
    border: 1px solid rgba(139, 113, 255, .35);
    color: var(--accent-2);
    font-family: var(--font-mono);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-weight: 600;
}
.orb-feat h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -.01em;
}
.orb-feat p { color: var(--fg-muted); font-size: 14px; line-height: 1.5; }
.orb-feat code {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-2);
    padding: 1px 5px;
    background: rgba(139, 113, 255, .1);
    border-radius: 4px;
}

/* ─────────────── Stack ─────────────── */
.stack {
    padding: var(--section-pad) var(--gutter);
    border-top: 1px solid var(--line);
}
.stack__inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.stack__h {
    font-size: clamp(28px, 4vw, 48px);
    letter-spacing: -.02em;
    font-weight: 600;
    margin-bottom: 60px;
    color: var(--fg-muted);
}
.stack__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}
@media (max-width: 880px) {
    .stack__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .stack__grid { grid-template-columns: 1fr; }
}
.stack__item {
    background: var(--bg);
    padding: 36px 28px;
    text-align: left;
    transition: background .3s;
}
.stack__item:hover { background: var(--bg-2); }
.stack__logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
    background: var(--glass-strong);
    border: 1px solid var(--line);
}
.stack__logo--anthropic { background: linear-gradient(135deg, #d97757, #c85a35); color: white; }
.stack__logo--openai    { background: linear-gradient(135deg, #10a37f, #0a8366); color: white; }
.stack__logo--eleven    { background: linear-gradient(135deg, #1a1a1a, #444); color: white; }
.stack__logo--swift     { background: linear-gradient(135deg, #f05138, #c63d23); color: white; }
.stack__item h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}
.stack__item p {
    font-size: 13px;
    color: var(--fg-muted);
    line-height: 1.5;
}

/* ─────────────── Pricing ─────────────── */
.pricing {
    padding: var(--section-pad) var(--gutter);
    text-align: center;
}
.pricing__inner { max-width: 1000px; margin: 0 auto; }
.pricing__h {
    font-size: clamp(36px, 5vw, 56px);
    letter-spacing: -.03em;
    font-weight: 700;
    margin: 18px 0 56px;
}
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}
@media (max-width: 720px) { .pricing__grid { grid-template-columns: 1fr; } }

/* Three-card variant used by the modes pricing block. Always three across so
   Lite / Pro / Scholar visually compare side-by-side; cards shrink to fit
   instead of wrapping. Tightened gap + padding so they hold up at smaller
   widths without dropping a card to the next row. */
.pricing__grid--modes {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1080px;
    gap: 16px;
}
.pricing__grid--modes .pricing__card {
    padding: 24px 20px;
}
.pricing__grid--modes .pricing__price {
    font-size: clamp(28px, 4.4vw, 44px);
    letter-spacing: -.03em;
}
.pricing__grid--modes .pricing__price span {
    display: block;
    font-size: 12px;
    margin-left: 0;
    margin-top: 4px;
    color: var(--fg-muted);
}
@media (max-width: 720px) {
    /* Mobile is the one place where stacking is actually OK — three columns
       on a phone makes the cards unreadable. Keep them in a single column. */
    .pricing__grid--modes { grid-template-columns: 1fr; }
}

/* Expert tier — BYOK + lifetime + local-only. Visually distinct from the
   pay-as-you-go cards above: amber/gold accent border, side-by-side layout
   (copy on the left, price + CTA on the right), full-width container so it
   reads as a deliberate "different product" callout, not a 4th pay-as-you-go
   tier. Stacks on narrow screens. */
.expert-card {
    margin: 56px auto 0;
    max-width: 1080px;
    padding: 36px 40px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse at 100% 0%, rgba(255, 195, 107, .10), transparent 55%),
        rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 195, 107, .35);
    backdrop-filter: blur(20px);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 880px) {
    .expert-card { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px; }
}
.expert-card__kicker {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--warm);
    letter-spacing: .15em;
    text-transform: uppercase;
}
.expert-card__h {
    font-size: clamp(28px, 3.4vw, 40px);
    margin: 8px 0 14px;
    letter-spacing: -.02em;
    color: var(--fg);
    font-weight: 700;
}
.expert-card__sub {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--warm);
    font-size: .82em;
    margin-left: 6px;
}
.expert-card__p {
    color: var(--fg-muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 560px;
}
.expert-card__features {
    list-style: none;
    margin-top: 18px;
    padding: 0;
}
.expert-card__features li {
    color: var(--fg-muted);
    font-size: 14px;
    padding: 6px 0;
    border-top: 1px solid var(--line);
}
.expert-card__features li:first-child { border-top: none; }
.expert-card__right {
    text-align: right;
    border-left: 1px solid rgba(255, 195, 107, .15);
    padding-left: 36px;
}
@media (max-width: 880px) {
    .expert-card__right { text-align: left; border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
}
.expert-card__price {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1;
    color: var(--warm);
    margin-bottom: 16px;
}
.expert-card__price span {
    display: block;
    font-size: 13px;
    color: var(--fg-muted);
    font-weight: 400;
    letter-spacing: 0;
    margin-top: 6px;
}
.expert-card__cta { margin-bottom: 12px; }
.expert-card__note {
    font-size: 12px;
    color: var(--fg-dim);
    line-height: 1.5;
    max-width: 240px;
    margin-left: auto;
}
@media (max-width: 880px) {
    .expert-card__note { margin-left: 0; max-width: none; }
}
.pricing__card {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    text-align: left;
    backdrop-filter: blur(20px);
    position: relative;
}
.pricing__card--pro {
    background: linear-gradient(135deg, rgba(139, 113, 255, .12), rgba(255, 92, 209, .06));
    border: 1px solid rgba(139, 113, 255, .35);
}
.pricing__badge {
    position: absolute;
    top: 18px;
    right: 18px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent-2);
    background: rgba(139, 113, 255, .15);
    border: 1px solid rgba(139, 113, 255, .4);
    padding: 4px 8px;
    border-radius: 999px;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.pricing__card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -.01em;
}
.pricing__price {
    font-size: 52px;
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1;
    margin-bottom: 24px;
}
.pricing__price span {
    font-size: 16px;
    color: var(--fg-muted);
    font-weight: 400;
    margin-left: 4px;
}
.pricing__card ul {
    list-style: none;
    margin-bottom: 28px;
}
.pricing__card li {
    padding: 8px 0;
    color: var(--fg-muted);
    font-size: 15px;
    border-top: 1px solid var(--line);
    padding-left: 22px;
    position: relative;
}
.pricing__card li:first-child { border-top: none; }
.pricing__card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

/* ─────────────── CTA ─────────────── */
.cta {
    position: relative;
    padding: var(--section-pad) var(--gutter);
    text-align: center;
    overflow: hidden;
}
.cta__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.cta__inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}
.cta__h {
    font-size: clamp(40px, 7vw, 88px);
    letter-spacing: -.04em;
    line-height: 1;
    font-weight: 700;
    margin-bottom: 24px;
}
.cta__h em {
    background: linear-gradient(120deg, var(--accent-3) 0%, var(--accent) 50%, var(--hot) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.cta__p {
    color: var(--fg-muted);
    font-size: 16px;
    margin-bottom: 32px;
    font-family: var(--font-mono);
    letter-spacing: .03em;
}
.cta__small {
    margin-top: 20px;
    color: var(--fg-dim);
    font-size: 13px;
}

/* ─────────────── Footer ─────────────── */
.footer {
    padding: 60px var(--gutter) 32px;
    border-top: 1px solid var(--line);
}
.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 50px;
}
@media (max-width: 720px) { .footer__inner { grid-template-columns: 1fr; gap: 40px; } }
.footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
}
.footer__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.footer__cols h4 {
    font-size: 12px;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: 12px;
    font-weight: 600;
    font-family: var(--font-mono);
}
.footer__cols a {
    display: block;
    padding: 4px 0;
    color: var(--fg-muted);
    font-size: 14px;
    transition: color .2s;
}
.footer__cols a:hover { color: var(--fg); }
.footer__copy {
    color: var(--fg-dim);
    font-size: 13px;
    text-align: center;
    border-top: 1px solid var(--line);
    padding-top: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ─────────────── Reveal animations ─────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    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);
}

/* ─────────────── Reduced motion ─────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
