/* =========================================================================
   Run2Beat Landing Page
   Inspired by spectre.cam, adapted to Run2Beat's green/black identity.
   ========================================================================= */

: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. The site will keep working with any
       hue — try "212, 132, 60" (warm orange), "94, 158, 220" (electric
       blue) or "186, 110, 220" (purple) for experiments.
       ===================================================================== */
    --accent-rgb:        111, 188,  79;   /* default green */
    --accent-bright-rgb: 142, 224, 106;   /* lighter highlight */
    --accent-deep-rgb:    74, 158,  44;   /* darker shadow   */

    --bg: #07090a;
    --bg-deep: #050605;
    --bg-elevated: #0e1311;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --text: #f5f7f4;
    --text-muted: rgba(245, 247, 244, 0.62);
    --text-dim: rgba(245, 247, 244, 0.42);

    /* 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.18);

    --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.08;
    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--green {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.45), transparent 60%);
    top: -10vw;
    left: -15vw;
}

.ambient--mint {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(74, 158, 44, 0.35), 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(7, 9, 10, 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.3);
}

.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: #07090a !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.4);
}

@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;
    /* Wide enough that "Your workout." stays on a single line at the
       desktop sizes the hero title can hit (up to ~112 px at the
       11vw clamp middle). The lede paragraph is constrained
       separately to ~620 px via .hero__lede, so widening here does
       not blow out reading width. */
    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.35),
        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;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); box-shadow: 0 30px 80px rgba(var(--accent-rgb), 0.35), 0 12px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2); }
    50% { transform: scale(1.04); box-shadow: 0 35px 100px rgba(var(--accent-rgb), 0.55), 0 12px 30px rgba(0,0,0,0.5), 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;
    /* Room for descenders (the "y" in "sync") so the tail isn't
       clipped by the next element. */
    padding-bottom: 0.06em;
}

/* Keep each title line on a single line above narrow phone widths.
   "Your workout." is the longest line and was wrapping at desktop
   sizes (11vw at the ~1024 px viewport produces ~112 px text and
   the line clears 870 px wide). Below ~560 px viewport we let the
   default wrap behaviour take over so the title never overflows
   the screen on small phones. */
@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.35);
    filter: drop-shadow(0 8px 24px rgba(var(--accent-bright-rgb), 0.25));
    /* drop-shadow extends beyond the glyph box; give it room. */
    padding-bottom: 0.14em;
}

.hero__lede {
    max-width: 620px;
    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;
}

/* Pulse bars at hero bottom */
.hero__pulse {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
    opacity: 0.35;
    z-index: 1;
    pointer-events: none;
}

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

.hero__pulse span:nth-child(1)  { animation-delay: 0.00s; }
.hero__pulse span:nth-child(2)  { animation-delay: 0.08s; }
.hero__pulse span:nth-child(3)  { animation-delay: 0.16s; }
.hero__pulse span:nth-child(4)  { animation-delay: 0.24s; }
.hero__pulse span:nth-child(5)  { animation-delay: 0.32s; }
.hero__pulse span:nth-child(6)  { animation-delay: 0.40s; }
.hero__pulse span:nth-child(7)  { animation-delay: 0.48s; }
.hero__pulse span:nth-child(8)  { animation-delay: 0.56s; }
.hero__pulse span:nth-child(9)  { animation-delay: 0.64s; }
.hero__pulse span:nth-child(10) { animation-delay: 0.72s; }
.hero__pulse span:nth-child(11) { animation-delay: 0.80s; }
.hero__pulse span:nth-child(12) { animation-delay: 0.88s; }
.hero__pulse span:nth-child(13) { animation-delay: 0.96s; }
.hero__pulse span:nth-child(14) { animation-delay: 1.04s; }
.hero__pulse span:nth-child(15) { animation-delay: 1.12s; }

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

/* ---------- BUTTON ---------- */

.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: #07090a;
    box-shadow:
        0 10px 30px rgba(var(--accent-bright-rgb), 0.35),
        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.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

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

/* ---------- 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: 640px;
    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; }

/* Secondary follow-up paragraph inside a centered section. Tightens
   the gap to the preceding lede and softens the tone so it reads as
   a playful aside rather than a second equal-weight line. */
.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.12);
    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__list em {
    font-style: normal;
    color: var(--brand-bright);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.92em;
    padding: 1px 5px;
    background: rgba(var(--accent-rgb), 0.08);
    border-radius: 4px;
}

.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;
    background: linear-gradient(160deg, #1d1f1d, #0c0e0c);
    border-radius: 38px;
    padding: 10px;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.55),
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

/* Side-button highlights */
.phone-frame::before,
.phone-frame::after {
    content: "";
    position: absolute;
    left: -2px;
    width: 3px;
    background: linear-gradient(90deg, #2a2c2a, transparent);
    border-radius: 2px;
}

.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;
}

.phone-frame__placeholder {
    z-index: 1;
    background:
        radial-gradient(ellipse at top, rgba(var(--accent-rgb), 0.18), transparent 60%),
        linear-gradient(180deg, #0a0d0a, #050605);
    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;
}

/* Watch variant */
.phone-frame--watch {
    width: clamp(170px, 18vw, 220px);
    aspect-ratio: 1 / 1.18;
    border-radius: 44px;
    padding: 14px;
}

.phone-frame--watch > img,
.phone-frame--watch > .phone-frame__placeholder {
    inset: 14px;
    border-radius: 32px;
}

.phone-frame--watch > img {
    width: calc(100% - 28px);
    height: calc(100% - 28px);
}

/* Crown/button bumps for the watch */
.phone-frame--watch::before { top: 32%; height: 12%; left: auto; right: -2px; background: linear-gradient(-90deg, #2a2c2a, transparent); }
.phone-frame--watch::after  { display: none; }

/* Two watch frames side by side. Inherits the same clamp() width on
   each child frame, so the pair scales together with the viewport.
   flex-direction is set explicitly because the surrounding `.feature`
   grid lays children out in a column on narrow viewports, and we
   want the two watches to stay shoulder-to-shoulder regardless. The
   gap is generous on purpose so the two screens read as a related
   pair without crowding each other. */
.watch-pair {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 3vw, 48px);
    flex-wrap: nowrap;
}

/* ---------- TRIO CARDS (sound quality) ---------- */

.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.1);
    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.1);
    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.35));
}

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

.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; }
}

/* ---------- 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.4),
        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__sub {
    font-size: clamp(15px, 1.5vw, 17px);
    color: var(--text-muted);
    margin: 0 auto 36px;
    max-width: 620px;
    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 / PRIVACY PAGE ---------- */

.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__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 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 {
    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.1);
}

/* ---------- SUPPORT CONTACT CARD ---------- */

.support__contact-card {
    position: relative;
    margin: 0 0 50px;
    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; }

/* ---------- 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.12);
    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);
}

.trio__card .learn-more {
    margin-top: 14px;
    padding: 6px 0 0;
    border: 0;
    background: transparent;
    font-size: 13px;
}

.trio__card .learn-more:hover {
    background: transparent;
    transform: none;
    color: var(--text);
}

.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;
}

/* ---------- TESTFLIGHT DIALOG ---------- */

.tf-dialog {
    width: min(440px, calc(100vw - 32px));
    max-width: 440px;
    padding: 0;
    background: linear-gradient(180deg, #0f1310, #07090a);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.tf-dialog::backdrop {
    background: rgba(5, 7, 6, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tf-dialog__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    z-index: 1;
}

.tf-dialog__close:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.tf-dialog__inner {
    padding: 36px 32px 28px;
    text-align: center;
}

.tf-dialog__title {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 8px 0 14px;
}

.tf-dialog__text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0 0 24px;
}

.tf-dialog__qr {
    width: 220px;
    height: 220px;
    margin: 0 auto 22px;
    padding: 14px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.tf-dialog__qr img {
    width: 100%;
    height: 100%;
    display: block;
}

.tf-dialog__url-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 6px 6px 6px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 0 0 14px;
}

.tf-dialog__url {
    flex: 1;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    color: var(--text-muted);
    overflow-x: auto;
    white-space: nowrap;
    text-align: left;
    align-self: center;
    background: none;
    padding: 0;
}

.tf-dialog__copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--brand);
    color: #07090a;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    flex-shrink: 0;
}

.tf-dialog__copy:hover {
    background: var(--brand-bright);
}

.tf-dialog__copy.is-copied {
    background: var(--brand-deep);
    color: var(--brand-bright);
}

.tf-dialog__hint {
    margin: 0;
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

/* ---------- 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;
    }
}
