/* =========================================================================
   BlueScore Landing Page
   Inspired by spectre.cam, adapted to BlueScore's blue/cyan sky identity.
   Same architecture as the Run2Beat landing page so the two sites stay
   visually consistent across apps.
   ========================================================================= */

:root {
    /* =====================================================================
       ACCENT COLOUR — change ONLY the three RGB triplets below to recolour
       the entire site. Everything else (gradients, glows, hover states,
       transparent washes) is derived from these tokens via rgb() / rgba().
       Pick three related shades: a saturated mid (default), a brighter
       highlight, and a deeper shadow.
       BlueScore uses the iOS system blue family:
         #5AC8FA (sky / accent)
         #7FD8FF (highlight)
         #007AFF (deep)
       ===================================================================== */
    --accent-rgb:         90, 200, 250;   /* iOS systemTeal-ish sky */
    --accent-bright-rgb: 127, 216, 255;   /* lighter highlight */
    --accent-deep-rgb:     0, 122, 255;   /* iOS systemBlue */

    /* Background — deep night-sky blue, lets the sun icon glow. */
    --bg:           #061222;
    --bg-deep:      #03070f;
    --bg-elevated:  #0a1c34;
    --surface:        rgba(255, 255, 255, 0.04);
    --surface-hover:  rgba(255, 255, 255, 0.07);
    --border:         rgba(255, 255, 255, 0.08);
    --text:           #f1f6ff;
    --text-muted:     rgba(241, 246, 255, 0.66);
    --text-dim:       rgba(241, 246, 255, 0.44);

    /* Brand — derived from the accent tokens above. Do not edit these
       directly; change the RGB triplets at the top of :root instead. */
    --brand:        rgb(var(--accent-rgb));
    --brand-bright: rgb(var(--accent-bright-rgb));
    --brand-deep:   rgb(var(--accent-deep-rgb));
    --brand-glow:   rgba(var(--accent-bright-rgb), 0.55);
    --brand-soft:   rgba(var(--accent-rgb), 0.20);

    --max-w: 1180px;
    --gutter: clamp(20px, 4vw, 48px);
    --radius: 22px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- AMBIENT BACKGROUND ---------- */

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
}

.ambient {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
    animation: float 20s ease-in-out infinite;
}

.ambient--sky {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.45), transparent 60%);
    top: -10vw;
    left: -15vw;
}

.ambient--deep {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(var(--accent-deep-rgb), 0.40), transparent 60%);
    bottom: -10vw;
    right: -15vw;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, -30px); }
}

/* ---------- NAV ---------- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px var(--gutter);
    background: rgba(6, 18, 34, 0.65);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.nav__icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.45);
}

.nav__name { font-size: 17px; }

.nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav__links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s var(--ease);
}

.nav__links a:hover { color: var(--text); }

.nav__cta {
    padding: 8px 16px;
    background: var(--brand);
    color: #03070f !important;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.2s var(--ease);
}

.nav__cta:hover {
    background: var(--brand-bright);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(var(--accent-bright-rgb), 0.45);
}

@media (max-width: 860px) {
    .nav__links { gap: 14px; }
    .nav__links a:not(.nav__cta) { display: none; }
}

/* ---------- HERO ---------- */

.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px var(--gutter) 100px;
    overflow: hidden;
}

.hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
}

.hero__icon {
    width: 110px;
    height: 110px;
    border-radius: 24px;
    margin: 0 auto 32px;
    box-shadow:
        0 30px 80px rgba(var(--accent-rgb), 0.45),
        0 12px 30px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: pulse-icon 4s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 30px 80px rgba(var(--accent-rgb), 0.45),
            0 12px 30px rgba(0,0,0,0.6),
            inset 0 1px 0 rgba(255,255,255,0.2);
    }
    50% {
        transform: scale(1.04);
        box-shadow:
            0 35px 100px rgba(var(--accent-bright-rgb), 0.65),
            0 12px 30px rgba(0,0,0,0.6),
            inset 0 1px 0 rgba(255,255,255,0.2);
    }
}

.eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-bright);
    margin: 0 0 24px;
}

.eyebrow--center { text-align: center; }

.hero__title {
    font-size: clamp(56px, 11vw, 144px);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.04em;
    margin: 0 0 32px;
}

.hero__title-line {
    display: block;
    padding-bottom: 0.06em;
}

@media (min-width: 560px) {
    .hero__title-line {
        white-space: nowrap;
    }
}

.hero__title-line--glow {
    background: linear-gradient(180deg, var(--brand-bright) 0%, var(--brand) 60%, var(--brand-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 60px rgba(var(--accent-bright-rgb), 0.45);
    filter: drop-shadow(0 8px 24px rgba(var(--accent-bright-rgb), 0.30));
    padding-bottom: 0.14em;
}

.hero__lede {
    max-width: 640px;
    margin: 0 auto 40px;
    font-size: clamp(16px, 1.7vw, 19px);
    color: var(--text-muted);
    line-height: 1.65;
}

.hero__sub {
    margin: 18px 0 0;
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

/* Sun-ray bars at hero bottom (BlueScore equivalent of Run2Beat's pulse). */
.hero__rays {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
    opacity: 0.40;
    z-index: 1;
    pointer-events: none;
}

.hero__rays span {
    display: block;
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, transparent, var(--brand-bright));
    border-radius: 2px;
    animation: pulse-bar 2.4s ease-in-out infinite;
}

.hero__rays span:nth-child(1)  { animation-delay: 0.00s; }
.hero__rays span:nth-child(2)  { animation-delay: 0.10s; }
.hero__rays span:nth-child(3)  { animation-delay: 0.20s; }
.hero__rays span:nth-child(4)  { animation-delay: 0.30s; }
.hero__rays span:nth-child(5)  { animation-delay: 0.40s; }
.hero__rays span:nth-child(6)  { animation-delay: 0.50s; }
.hero__rays span:nth-child(7)  { animation-delay: 0.60s; }
.hero__rays span:nth-child(8)  { animation-delay: 0.70s; }
.hero__rays span:nth-child(9)  { animation-delay: 0.80s; }
.hero__rays span:nth-child(10) { animation-delay: 0.90s; }
.hero__rays span:nth-child(11) { animation-delay: 1.00s; }
.hero__rays span:nth-child(12) { animation-delay: 1.10s; }
.hero__rays span:nth-child(13) { animation-delay: 1.20s; }
.hero__rays span:nth-child(14) { animation-delay: 1.30s; }
.hero__rays span:nth-child(15) { animation-delay: 1.40s; }

@keyframes pulse-bar {
    0%, 100% { height: 14px; opacity: 0.4; }
    50% { height: 70px; opacity: 1; }
}

/* ---------- BUTTONS ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    letter-spacing: -0.005em;
}

.btn--primary {
    background: linear-gradient(135deg, var(--brand-bright), var(--brand));
    color: #03070f;
    box-shadow:
        0 10px 30px rgba(var(--accent-bright-rgb), 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 40px rgba(var(--accent-bright-rgb), 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--lg {
    padding: 18px 34px;
    font-size: 17px;
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--brand-soft);
    transform: translateY(-2px);
}

.cta-row {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

/* App Store badge wrapper used in hero & CTA. The bundled SVG is dark
   and looks crisp on the navy background as is. */
.app-store-badge {
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}

.app-store-badge img { height: 54px; width: auto; }

.app-store-badge:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 12px 24px rgba(var(--accent-bright-rgb), 0.35));
}

.btn--lg + .app-store-badge img,
.cta .app-store-badge img { height: 60px; }

/* ---------- SECTIONS ---------- */

.section {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 100px var(--gutter);
}

.section--center { text-align: center; }

.section--label {
    padding: 80px var(--gutter) 0;
}

.section__label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--brand-bright);
    padding: 8px 16px;
    border: 1px solid var(--brand-soft);
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.06);
    margin: 0;
}

.section__title {
    font-size: clamp(40px, 7vw, 88px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.035em;
    margin: 0 0 28px;
    text-align: center;
}

.section__title--left { text-align: left; }

.section__lede {
    max-width: 660px;
    margin: 0 auto 56px;
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--text-muted);
    line-height: 1.65;
    text-align: center;
}

.section__lede--left { text-align: left; margin-left: 0; }

.section__lede--muted {
    color: var(--text-dim);
    font-style: italic;
    font-size: clamp(14px, 1.4vw, 16px);
    margin-top: -40px;
}

/* ---------- FEATURE BLOCKS ---------- */

.feature {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 80px var(--gutter);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(40px, 7vw, 100px);
}

.feature--reverse .feature__visual { order: 2; }

.kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-bright);
    margin: 0 0 14px;
}

.feature__title {
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.035em;
    margin: 0 0 24px;
}

.feature__text {
    font-size: clamp(15px, 1.4vw, 17px);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 0 16px;
}

.feature__text--muted {
    color: var(--text-dim);
    font-style: italic;
}

.feature__list {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    max-width: 480px;
    counter-reset: feature-list;
}

.feature__list li {
    position: relative;
    padding: 10px 0 10px 28px;
    font-size: clamp(14px, 1.3vw, 16px);
    color: var(--text-muted);
    line-height: 1.6;
    border-top: 1px solid var(--border);
}

.feature__list li:first-child { border-top: 0; padding-top: 4px; }

.feature__list li::before {
    counter-increment: feature-list;
    content: counter(feature-list);
    position: absolute;
    left: 0;
    top: 11px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--accent-rgb), 0.15);
    color: var(--brand-bright);
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
}

.feature__list li:first-child::before { top: 5px; }

.feature__list strong {
    color: var(--text);
    font-weight: 600;
}

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

@media (max-width: 860px) {
    .feature { grid-template-columns: 1fr; gap: 40px; }
    .feature--reverse .feature__visual { order: 0; }
}

/* ---------- PHONE FRAME (placeholder + screenshot host) ---------- */

.phone-frame {
    position: relative;
    width: clamp(220px, 24vw, 300px);
    aspect-ratio: 9 / 19.5;
    /* Lighter, cooler metallic gradient so the bezel stays visible against
       the dark navy page background instead of fading into it. */
    background: linear-gradient(160deg, #3a4360 0%, #232a40 45%, #161b2a 100%);
    border-radius: 38px;
    padding: 10px;
    box-shadow:
        /* Outer rim ring: clearly visible halo so the device silhouette
           reads even when the page background is near-black. */
        0 0 0 1px rgba(180, 200, 230, 0.18),
        0 0 0 2px rgba(0, 0, 0, 0.55),
        0 40px 100px rgba(0, 0, 0, 0.55),
        0 10px 30px rgba(0, 0, 0, 0.45),
        /* Top-edge highlight gives the bezel a slight glassy curve. */
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    overflow: visible;
}

/* Side-button highlights */
.phone-frame::before,
.phone-frame::after {
    content: "";
    position: absolute;
    left: -2px;
    width: 3px;
    background: linear-gradient(90deg, #4a536e, #2a3042 70%, transparent);
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.phone-frame::before { top: 22%; height: 8%; }
.phone-frame::after  { top: 34%; height: 14%; }

/* Inner screen */
.phone-frame > img,
.phone-frame > .phone-frame__placeholder {
    position: absolute;
    inset: 10px;
    border-radius: 28px;
}

.phone-frame > img {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: cover;
    object-position: top center;
    background: #000;
    z-index: 2;
    /* Inner bezel-to-glass seam keeps the screenshot from looking glued
       directly onto the frame. */
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.85),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-frame__placeholder {
    z-index: 1;
    background:
        radial-gradient(ellipse at top, rgba(var(--accent-rgb), 0.18), transparent 60%),
        linear-gradient(180deg, #0a1322, #03070f);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
}

.phone-frame__placeholder strong {
    display: block;
    font-size: clamp(16px, 1.4vw, 19px);
    font-weight: 700;
    color: var(--text);
    margin: 10px 0 4px;
    letter-spacing: -0.01em;
}

.phone-frame__placeholder span {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.phone-frame__placeholder small {
    margin-top: 18px;
    padding: 5px 10px;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-dim);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 0;
    text-transform: none;
}

.phone-frame__dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--brand-bright), var(--brand-deep));
    box-shadow:
        0 0 28px var(--brand-glow),
        inset 0 -4px 8px rgba(0, 0, 0, 0.3);
    animation: pulse-icon 3s ease-in-out infinite;
}

/* ---------- TRIO CARDS ---------- */

.trio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 40px;
}

.trio__card {
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s var(--ease);
}

.trio__card:hover {
    background: var(--surface-hover);
    border-color: var(--brand-soft);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.trio__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--accent-rgb), 0.12);
    border: 1px solid var(--brand-soft);
    border-radius: 12px;
    color: var(--brand-bright);
    margin-bottom: 18px;
}

.trio__title {
    font-size: clamp(18px, 1.6vw, 21px);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 10px;
    color: var(--text);
}

.trio__text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ---------- BADGES (10 features, exact 5x2 grid) ---------- */

.badges {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .badges { grid-template-columns: repeat(2, 1fr); }
}

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

.badge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 22px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    transition: all 0.25s var(--ease);
    text-align: left;
}

.badge:hover {
    background: var(--surface-hover);
    border-color: var(--brand-soft);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.badge__icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--accent-rgb), 0.12);
    border: 1px solid var(--brand-soft);
    border-radius: 12px;
    color: var(--brand-bright);
    flex-shrink: 0;
}

.badge__icon svg {
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 0 6px rgba(var(--accent-bright-rgb), 0.45));
}

.badge:hover .badge__icon {
    background: rgba(var(--accent-rgb), 0.20);
    box-shadow: 0 0 24px rgba(var(--accent-bright-rgb), 0.25);
}

.badge__text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge__label {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    letter-spacing: -0.01em;
}

.badge__desc {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-muted);
}

@media (max-width: 1100px) {
    .badge { padding: 22px 22px 22px; }
    .badge__desc { font-size: 14px; }
}

/* ---------- AUDIENCE PILLS (Perfect for…) ---------- */

.audience {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 880px;
    margin: 0 auto 12px;
}

.audience__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(var(--accent-rgb), 0.06);
    border: 1px solid var(--brand-soft);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.005em;
    transition: all 0.2s var(--ease);
}

.audience__pill svg {
    width: 16px;
    height: 16px;
    color: var(--brand-bright);
    flex-shrink: 0;
}

.audience__pill:hover {
    background: rgba(var(--accent-rgb), 0.14);
    border-color: rgba(var(--accent-bright-rgb), 0.45);
    transform: translateY(-1px);
}

/* ---------- LANGUAGES STRIP ---------- */

/* Eight items, always rendered as a balanced grid: 4x2 on desktop and
   2x4 on narrow phones. Avoids the "7 then a lonely 1" wrap that flex
   produced when the eighth item happened to push past the strip width. */
.languages {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    justify-content: center;
    gap: 14px 28px;
    margin: 28px auto 0;
}

@media (max-width: 640px) {
    .languages {
        grid-template-columns: repeat(2, max-content);
    }
}

.languages__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.languages__flag {
    font-size: 20px;
    line-height: 1;
}

/* ---------- LEARN MORE LINK ---------- */

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--brand-bright);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
    padding: 10px 16px;
    border: 1px solid var(--brand-soft);
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.04);
    transition: all 0.2s var(--ease);
}

.learn-more:hover {
    background: rgba(var(--accent-rgb), 0.14);
    border-color: rgba(var(--accent-bright-rgb), 0.45);
    transform: translateX(2px);
}

.learn-more__arrow {
    display: inline-block;
    transition: transform 0.2s var(--ease);
}

.learn-more:hover .learn-more__arrow {
    transform: translateX(4px);
}

/* ---------- CTA ---------- */

.cta {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 140px var(--gutter);
    max-width: var(--max-w);
    margin: 0 auto;
}

.cta__icon {
    width: 140px;
    height: 140px;
    border-radius: 32px;
    margin: 0 auto 32px;
    box-shadow:
        0 40px 100px rgba(var(--accent-rgb), 0.5),
        0 12px 30px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.2);
    animation: pulse-icon 4s ease-in-out infinite;
}

.cta__title {
    font-size: clamp(48px, 9vw, 120px);
    font-weight: 800;
    line-height: 0.94;
    letter-spacing: -0.04em;
    margin: 0 0 18px;
}

.cta__title-glow {
    background: linear-gradient(180deg, var(--brand-bright) 0%, var(--brand) 60%, var(--brand-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 60px rgba(var(--accent-bright-rgb), 0.45);
    filter: drop-shadow(0 8px 24px rgba(var(--accent-bright-rgb), 0.30));
}

.cta__sub {
    font-size: clamp(15px, 1.5vw, 17px);
    color: var(--text-muted);
    margin: 0 auto 36px;
    max-width: 660px;
    line-height: 1.65;
}

.cta__tag {
    margin: 32px 0 0;
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    font-style: italic;
}

/* ---------- FOOTER ---------- */

.footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 50px var(--gutter) 60px;
    border-top: 1px solid var(--border);
    margin: 60px var(--gutter) 0;
}

.footer p {
    margin: 6px 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer__copyright { color: var(--text); font-weight: 500; }
.footer__sub { color: var(--text-dim) !important; }

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.footer a:hover { color: var(--brand-bright); }

.footer__links {
    margin-top: 18px !important;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 4px;
}

.footer__links a {
    color: var(--brand-bright);
    font-weight: 500;
    padding: 4px 8px;
}

.footer__links a:hover {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer__sep {
    color: var(--text-dim);
    user-select: none;
}

/* ---------- LEGAL / SUBPAGES (Privacy, Terms, Support) ---------- */

.legal {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
    padding: 140px var(--gutter) 60px;
}

.legal__hero {
    text-align: center;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 60px;
}

.legal__title {
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.04em;
    margin: 18px 0 24px;
}

.legal__title-glow {
    background: linear-gradient(180deg, var(--brand-bright) 0%, var(--brand) 60%, var(--brand-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 60px rgba(var(--accent-bright-rgb), 0.45);
    filter: drop-shadow(0 8px 24px rgba(var(--accent-bright-rgb), 0.30));
}

.legal__lede {
    max-width: 580px;
    margin: 0 auto 18px;
    font-size: clamp(15px, 1.6vw, 17px);
    color: var(--text-muted);
    line-height: 1.65;
}

.legal__updated {
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

.legal__body h2 {
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 48px 0 14px;
    color: var(--text);
}

.legal__body h2:first-child {
    margin-top: 0;
}

.legal__body h3 {
    font-size: clamp(17px, 1.6vw, 19px);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 28px 0 10px;
    color: var(--text);
}

.legal__body p,
.legal__body li {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

.legal__body p {
    margin: 0 0 14px;
}

.legal__body ul,
.legal__body ol {
    padding-left: 22px;
    margin: 0 0 14px;
}

.legal__body li {
    margin-bottom: 8px;
}

.legal__body strong {
    color: var(--text);
    font-weight: 600;
}

.legal__body a {
    color: var(--brand-bright);
    text-decoration: underline;
    text-decoration-color: rgba(var(--accent-bright-rgb), 0.4);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s var(--ease);
}

.legal__body a:hover {
    text-decoration-color: var(--brand-bright);
}

.legal__contact {
    display: inline-block;
    padding: 10px 20px;
    background: var(--surface);
    border: 1px solid var(--brand-soft);
    border-radius: 999px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 14px;
    color: var(--brand-bright) !important;
    text-decoration: none !important;
}

.legal__contact:hover {
    background: rgba(var(--accent-rgb), 0.10);
}

/* Highlighted contact card used on Support and at the end of legal pages. */
.support__contact-card {
    position: relative;
    margin: 50px 0 0;
    padding: 28px 28px 26px;
    background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.08), rgba(var(--accent-rgb), 0.02));
    border: 1px solid var(--brand-soft);
    border-radius: var(--radius);
    text-align: center;
    overflow: hidden;
}

.support__contact-card::before {
    content: "";
    position: absolute;
    inset: -40% 30% auto 30%;
    height: 120px;
    background: radial-gradient(closest-side, rgba(var(--accent-bright-rgb), 0.22), transparent 75%);
    pointer-events: none;
}

.support__contact-label {
    position: relative;
    margin: 0 0 6px;
    font-size: 11px !important;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brand-bright) !important;
    font-weight: 600;
}

.support__contact-email {
    position: relative;
    display: inline-block;
    margin: 0 0 14px;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: var(--text) !important;
    text-decoration: none !important;
    letter-spacing: -0.01em;
    transition: color 0.2s var(--ease);
}

.support__contact-email:hover { color: var(--brand-bright) !important; }

.support__contact-hint {
    position: relative;
    max-width: 520px;
    margin: 0 auto !important;
    font-size: 14px !important;
    color: var(--text-dim) !important;
    line-height: 1.6 !important;
}

/* Collapsible FAQ items used on the support page. Built on the native
   <details>/<summary> element so it stays accessible and JS-free. */
.legal__body details {
    margin: 0 0 12px;
    padding: 14px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.legal__body details[open] {
    background: var(--surface-hover);
    border-color: var(--brand-soft);
}

.legal__body details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    font-size: 15px;
    line-height: 1.45;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 0;
}

.legal__body details summary::-webkit-details-marker {
    display: none;
}

.legal__body details summary::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--brand-bright);
    border-bottom: 2px solid var(--brand-bright);
    transform: rotate(-45deg);
    transition: transform 0.2s var(--ease);
    flex-shrink: 0;
    margin-left: 2px;
}

.legal__body details[open] summary::before {
    transform: rotate(45deg);
}

.legal__body details > p,
.legal__body details > ul,
.legal__body details > ol {
    margin-top: 14px;
    color: var(--text-muted);
}

/* ---------- UTILITIES ---------- */

/* Keeps short tokens like "0&ndash;100" or "10-day" on a single line
   so the dash never becomes a wrap point inside a feature title. */
.nowrap { white-space: nowrap; }

/* ---------- REVEAL ON SCROLL ---------- */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* ---------- RESPONSIVE ---------- */

@media (max-width: 640px) {
    .hero { min-height: 90vh; padding-top: 100px; }
    .hero__icon { width: 88px; height: 88px; border-radius: 20px; }
    .cta__icon { width: 110px; height: 110px; }
    .footer { margin-top: 20px; }
    .section, .feature { padding-top: 60px; padding-bottom: 60px; }
}

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