@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@800&display=swap');

:root {
    --blur: 0px;
    --dim: 0;
    --rise: 0px;
    --hero-fade: 1;
    --header-bg: 0;
    --brand-shift: 0px;
    --topbar-shift: 0px;
    --blue: #9db4c8;
    --green: #7fa06b;
    --sand: #d9bd93;
    --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --ink: #03051D;
    --bg: #101219;
    --peri: #8FA3FF;
    --peri-glass: rgba(143, 163, 255, 0.6);
    --clay: #A37562;
    --orchid: #E088D7;
    --orchid-glass: rgba(224, 136, 215, 0.48);
    --btn-text: #F7F7F9;
    --cream: #F7F1E3;
    --body-light: #c7cad6;
    --radius: 20px;
    --header-gradient: linear-gradient(92deg, #3559FF90 0%, #FFAF3E90 30%, #FF37EB50 60%);
    --header-blur: 0px;
}

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

html {
    scroll-behavior: smooth
}

body {
    background: var(--bg);
    color: #f5f5f7;
    font-family: var(--sans);
    overflow-x: hidden
}

/* ---------- fixed scenic backdrop ---------- */
#scene {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 124vh;
    z-index: 0;
    filter: blur(var(--blur)) saturate(calc(1 - var(--dim)*.35));
    transform: translateY(calc(var(--rise) * -1)) scale(calc(1 + var(--dim)*.06));
    will-change: filter, transform;
}

#scene svg {
    width: 100%;
    height: 100%;
    display: block
}

#scene img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

#veil {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: var(--bg);
    opacity: var(--dim);
}

#scrim {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(0, 0, 0, .4);
}

/* ---------- fixed header (stays in place) ---------- */
.site-head {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0px;
    backdrop-filter: blur(var(--header-blur));
    -webkit-backdrop-filter: blur(var(--header-blur));
    background: rgba(3, 5, 29, calc(var(--header-bg) * 0.85));
    transition: background 0.05s linear;
    width: 100vw;
}

header.hero {
    position: relative;
    z-index: 2;
    height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(var(--topbar-shift));
    transition: none;
    width: 100vw;
    padding: 12px 24px 0px;
}

.auth {
    margin-top: 6px;
    margin-left: auto;
    font-size: 18px;
    color: #eef1f4;
    display: flex;
    gap: 14px;
    align-self: start;
}

.auth a {
    color: #eef1f4;
    text-decoration: none;
    opacity: .92
}

.auth a:hover {
    opacity: 1;
    text-decoration: underline
}

.auth span {
    opacity: .6
}

.brand {
    font-family: var(--serif);
    font-size: 44px;
    font-weight: 600;
    color: #fdfdfb;
    letter-spacing: .5px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
    order: -1;
    transform: translateY(var(--brand-shift));
    transition: none;
    white-space: nowrap;
}

.tagline {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    opacity: var(--hero-fade);
    transform: translateY(calc((1 - var(--hero-fade)) * -28px));
}

.tagline h1 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(34px, 4.6vw, 62px);
    color: #fdfdfb;
    text-align: center;
    text-shadow: 0 3px 22px rgba(0, 0, 0, .55);
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    font-size: 13px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #e8ecf0;
    opacity: .85;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-cue::after {
    content: "";
    width: 1px;
    height: 34px;
    background: linear-gradient(#e8ecf0, transparent);
    animation: drip 2.2s ease-in-out infinite;
}

@keyframes drip {

    0%,
    100% {
        transform: scaleY(.4);
        transform-origin: top
    }

    50% {
        transform: scaleY(1);
        transform-origin: top
    }
}

/* ---------- centered content ---------- */
main {
    position: relative;
    z-index: 2
}

section.panel {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px;
}

.inner {
    max-width: 980px;
    width: 100%;
    text-align: center
}

.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .9s ease, transform .9s ease
}

.reveal.on {
    opacity: 1;
    transform: none
}

h2.big {
    font-weight: 700;
    letter-spacing: -.02em;
    font-size: clamp(40px, 6vw, 84px);
    line-height: 1.04;
    margin-bottom: 64px;
}

.grad {
    background: var(--header-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* comparison table */
.compare {
    max-width: 860px;
    margin: 0 auto;
    text-align: left
}

.compare .heads {
    display: grid;
    grid-template-columns: 1fr 96px 96px;
    gap: 8px;
    align-items: end;
    margin-bottom: 26px;
}

.heads .col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #f5f5f7
}

.logo-sq {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 700;
}

.logo-sq.m {
    background: linear-gradient(150deg, #9db4c8, #5d7d9a);
    color: #0c1430
}

.logo-sq.o {
    background: #3a3a3e;
    color: #b9b9be;
    font-family: var(--sans);
    font-size: 22px
}

.row {
    display: grid;
    grid-template-columns: 1fr 96px 96px;
    gap: 8px;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .16);
    font-size: clamp(15px, 1.6vw, 19px);
    font-weight: 600;
}

.row:last-of-type {
    border-bottom: 1px solid rgba(255, 255, 255, .16)
}

.mark {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center
}

.mark svg {
    width: 15px;
    height: 15px
}

.yes {
    background: #3fbf5a
}

.no {
    background: #e4544a
}

.cta {
    margin-top: 52px;
    display: inline-block;
    background: #2f7cf6;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    padding: 13px 26px;
    border-radius: 999px;
    transition: background .25s ease;
}

.cta:hover {
    background: #4b8ef8
}

/* intelligence section */
.lede {
    max-width: 820px;
    margin: 0 auto 72px;
    text-align: left;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.5;
    font-weight: 600;
    color: #d8d8de;
}

.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    text-align: left
}

.card {
    background: #101010;
    border-radius: 26px;
    padding: 52px 46px;
    min-height: 420px;
    position: relative;
    overflow: hidden;
}

.card h3 {
    font-size: clamp(24px, 2.8vw, 34px);
    line-height: 1.22;
    font-weight: 700;
    color: #86868b;
}

.card h3 b {
    color: #f5f5f7
}

.glow {
    position: absolute;
    left: 50%;
    bottom: -140px;
    transform: translateX(-50%);
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: conic-gradient(from 210deg, #3f8bff, #8a63f4, #e05fa9, #f2953d, #3f8bff);
    filter: blur(6px);
    opacity: .9;
}

.glow::after {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    background: #101010;
}

.phone {
    position: absolute;
    left: 50%;
    bottom: -40px;
    transform: translateX(-50%);
    width: 120px;
    height: 240px;
    border: 3px solid #f5f5f7;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 8px;
    border-radius: 4px;
    background: #f5f5f7;
}

.phone .m-mark {
    font-family: var(--serif);
    font-size: 44px;
    color: #f5f5f7
}

.card.viz {
    min-height: 520px
}

footer {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #6e6e78;
    font-size: 13px;
    padding: 60px 20px 40px;
}

nav.pills {
    display: flex;
    gap: 32px;
    flex-wrap: wrap
}

.pill {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.25;
    text-decoration: none;
    padding: 10px 22px 9px;
    border-radius: 8px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
    border: none;
}

.pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, .4)
}

.pill.build {
    background: var(--peri-glass);
    color: var(--btn-text);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.pill.build:hover {
    background: rgba(143, 163, 255, .75)
}

.pill.learn {
    background: var(--clay);
    color: #fff
}

.pill.learn:hover {
    background: #B08370
}

.pill.grow {
    background: var(--orchid-glass);
    color: var(--btn-text);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.pill.grow:hover {
    background: rgba(224, 136, 215, .64)
}

/* Highlighted while that pill's run of captions is the one on screen. With no outline to
   carry it, the highlight reads by contrast instead: the current pill sits forward at
   full strength while the other two recede (see .has-active below). Each background
   reuses its own hover tint so the three stay in their own colour lane. */
.pill.is-active {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .45);
    transform: translateY(-1px);
}

.pill-container.has-active .pill:not(.is-active) {
    opacity: .5;
}

.pill.build.is-active {
    background: rgba(143, 163, 255, .75)
}

.pill.learn.is-active {
    background: #B08370
}

.pill.grow.is-active {
    background: rgba(224, 136, 215, .64)
}

.pill-container {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

/* ---------- scroll-scrubbed journey ---------- */
.journey {
    height: 480vh;
    position: relative;
    z-index: 2
}

.j-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(28px, 4vw, 64px);
    padding: 90px 4vw 40px;
    color: var(--peri-glass);
}

#lottie {
    flex: 0 0 auto;
    width: min(40vw, 600px);
    aspect-ratio: 1440/900;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
    background: #0a0f3d;
}

#lottie svg {
    display: block
}

.j-copy {
    flex: 0 1 300px;
    min-width: 240px;
    text-align: left
}

.j-kicker {
    font-size: 18px;
    letter-spacing: .22em;
    text-transform: uppercase;
    background: var(--header-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 18px;
    font-weight: 800;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    letter-spacing: .12em;
}

.j-captions {
    position: relative;
    height: 170px
}

.j-cap {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(40px);
    pointer-events: none;
    will-change: transform, opacity;
}

.j-cap h3 {
    font-size: clamp(19px, 2vw, 26px);
    font-weight: 700;
    margin-bottom: 10px
}

.j-cap p {
    color: #a7abc4;
    font-size: 14.5px;
    line-height: 1.6;
    max-width: 30ch
}

@media (max-width:900px) {
    .j-sticky {
        flex-direction: column;
        gap: 20px;
        padding: 86px 18px 26px
    }

    #lottie {
        width: min(88vw, 480px)
    }

    .j-copy {
        flex: 0 0 auto;
        width: min(88vw, 480px);
        text-align: center
    }

    .j-captions {
        height: 150px
    }

    .j-cap p {
        margin: 0 auto
    }
}

@media (max-width:760px) {
    .topbar {
        padding: 22px 18px 0;
        flex-wrap: wrap
    }

    .pill {
        font-size: 15px;
        padding: 9px 18px
    }

    .brand {
        padding: 26px 18px 0;
        font-size: 34px
    }

    .cards {
        grid-template-columns: 1fr
    }

    .compare .heads,
    .row {
        grid-template-columns: 1fr 64px 64px
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
        opacity: 1;
        transform: none
    }

    .scroll-cue::after {
        animation: none
    }

    #scene {
        transition: none
    }
}