/* =========================================================
   XiPlayer - site stylesheet
   Palette inspired by the app: warm cream + electric purple
   ========================================================= */

:root {
    /* Brand */
    --purple-50:  #F5EEFF;
    --purple-100: #E9D8FD;
    --purple-200: #D6BCFA;
    --purple-400: #9F7AEA;
    --purple-500: #7C3AED;
    --purple-600: #6B21A8;
    --purple-700: #4C1D95;

    --cream-50:  #FBF7EE;
    --cream-100: #F2EBDD;
    --cream-200: #E7DFC9;

    --ink-900: #14111C;
    --ink-700: #2A2438;
    --ink-500: #4A4358;
    --ink-300: #8A8398;
    --ink-100: #E5E1ED;

    --pink:   #EC4899;
    --orange: #F59E0B;
    --teal:   #14B8A6;
    --blue:   #3B82F6;

    /* Light theme tokens */
    --bg:        var(--cream-50);
    --bg-alt:    #FFFFFF;
    --surface:   #FFFFFF;
    --surface-2: var(--cream-100);
    --text:      var(--ink-900);
    --text-muted:var(--ink-500);
    --border:    rgba(20, 17, 28, 0.08);
    --shadow-sm: 0 1px 2px rgba(20, 17, 28, 0.06);
    --shadow:    0 10px 30px -12px rgba(76, 29, 149, 0.18);
    --shadow-lg: 0 30px 60px -20px rgba(76, 29, 149, 0.25);
    --accent:    var(--purple-500);
    --accent-2:  var(--purple-400);
    --accent-soft: var(--purple-50);

    /* Type */
    --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Space Grotesk', var(--font-sans);

    /* Layout */
    --container: 1200px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;
}

[data-theme="dark"] {
    --bg:        #0E0B16;
    --bg-alt:    #14111C;
    --surface:   #1A1525;
    --surface-2: #221C30;
    --text:      #F5F1FF;
    --text-muted:#B3ADC4;
    --border:    rgba(255, 255, 255, 0.08);
    --shadow:    0 10px 30px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    --accent-soft: rgba(124, 58, 237, 0.15);
}

/* =========================================================
   Base
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--purple-700); }
[data-theme="dark"] a:hover { color: var(--purple-200); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    margin: 0 0 .5em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

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

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--accent); color: #fff; padding: 8px 14px;
    border-radius: 0 0 8px 0; z-index: 9999;
}
.skip-link:focus { left: 0; }

/* =========================================================
   Decorative animated orbs
   ========================================================= */

.bg-orbs {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    overflow: hidden;
}
.orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: .55;
    animation: float 18s ease-in-out infinite;
}
.orb-1 { width: 480px; height: 480px; background: var(--purple-200); top: -120px; left: -120px; }
.orb-2 { width: 380px; height: 380px; background: #FBCFE8; top: 30%; right: -120px; animation-delay: -6s; }
.orb-3 { width: 320px; height: 320px; background: #C7D2FE; bottom: -120px; left: 25%; animation-delay: -12s; }

[data-theme="dark"] .orb { opacity: .25; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-40px) scale(1.06); }
}

/* =========================================================
   Header / Nav
   ========================================================= */

.site-header {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    border-bottom: 1px solid var(--border);
}

.nav-wrap {
    display: flex; align-items: center; justify-content: space-between;
    gap: 18px; height: 72px;
}

.brand {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--font-display);
    font-weight: 700; font-size: 1.25rem;
    color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-logo { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand-accent { color: var(--accent); }

.primary-nav {
    display: flex; align-items: center; gap: 12px;
}
.primary-nav ul {
    display: flex; gap: 6px; list-style: none; padding: 0; margin: 0;
}
.nav-link {
    color: var(--text); padding: 8px 14px; border-radius: var(--radius-pill);
    font-weight: 500; font-size: .95rem;
}
.nav-link:hover { background: var(--accent-soft); color: var(--accent); }
.nav-link.is-active { background: var(--accent-soft); color: var(--accent); }

.nav-cta { margin-left: 6px; }

.theme-toggle {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--surface);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text);
    transition: transform .15s ease, background .15s ease;
}
.theme-toggle:hover { transform: rotate(15deg); background: var(--accent-soft); color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface); cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 5px;
}
.nav-toggle .bar {
    display: block; width: 18px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav {
        position: absolute; top: 72px; left: 0; right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column; gap: 12px;
        padding: 18px 24px 24px;
        max-height: 0; overflow: hidden;
        transition: max-height .25s ease, padding .25s ease;
        padding-top: 0; padding-bottom: 0;
    }
    .primary-nav.open {
        max-height: 480px; padding: 18px 24px 24px;
    }
    .primary-nav ul { flex-direction: column; gap: 4px; width: 100%; }
    .nav-link { display: block; }
    .nav-cta { width: 100%; text-align: center; }
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-weight: 600; font-size: .95rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer; user-select: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: linear-gradient(135deg, var(--purple-500), #A855F7);
    color: #fff;
    box-shadow: 0 8px 22px -8px rgba(124, 58, 237, 0.6);
}
.btn-primary:hover {
    color: #fff;
    box-shadow: 0 12px 28px -8px rgba(124, 58, 237, 0.7);
    transform: translateY(-1px);
}

.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); }

.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* =========================================================
   Generic sections
   ========================================================= */

main { position: relative; z-index: 1; }
section { padding: 80px 0; position: relative; }
@media (max-width: 600px) { section { padding: 56px 0; } }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display);
    font-size: .8rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 6px 12px; border-radius: var(--radius-pill);
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* =========================================================
   Hero
   ========================================================= */

.hero {
    padding: 80px 0 60px;
    position: relative;
}
.hero-grid {
    display: grid; grid-template-columns: 1.1fr .9fr;
    gap: 60px; align-items: center;
}
@media (max-width: 920px) {
    .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
}

.hero h1 .grad {
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 50%, #F59E0B 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    background-size: 200% 200%;
    animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.hero-lead {
    font-size: 1.2rem; color: var(--text-muted);
    max-width: 540px; margin: 12px 0 28px;
}
@media (max-width: 920px) { .hero-lead { margin-left: auto; margin-right: auto; } }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 920px) { .hero-cta { justify-content: center; } }

.hero-stats {
    display: flex; gap: 32px; margin-top: 36px; flex-wrap: wrap;
}
@media (max-width: 920px) { .hero-stats { justify-content: center; } }

.hero-stat .num {
    font-family: var(--font-display);
    font-size: 1.6rem; font-weight: 700; color: var(--accent);
}
.hero-stat .lbl { font-size: .85rem; color: var(--text-muted); }

/* Phone mockup */
.phone-stack {
    position: relative; display: flex; justify-content: center;
    perspective: 1200px;
}
.phone {
    width: 280px; aspect-ratio: 9 / 19.5;
    background: #111;
    border-radius: 38px;
    padding: 10px;
    box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,0.06);
    transform: rotate(-6deg) rotateY(8deg);
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.phone:hover { transform: rotate(-2deg) rotateY(0); }
.phone-screen {
    width: 100%; height: 100%; border-radius: 28px; overflow: hidden;
    background: var(--cream-50);
    position: relative;
}
.phone-screen img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.phone-notch {
    position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
    width: 90px; height: 22px; background: #000;
    border-radius: 0 0 14px 14px; z-index: 2;
}

.phone-back {
    position: absolute; top: 30px; left: 56%;
    transform: rotate(8deg);
    width: 240px; aspect-ratio: 9 / 19.5;
    border-radius: 32px;
    background: linear-gradient(135deg, var(--purple-500), var(--pink));
    opacity: .55;
    filter: blur(2px);
    z-index: -1;
}

/* Floating chips around phone */
.float-chip {
    position: absolute;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: var(--radius-pill);
    background: var(--surface); border: 1px solid var(--border);
    box-shadow: var(--shadow);
    font-weight: 600; font-size: .85rem;
    animation: bob 4s ease-in-out infinite;
}
.float-chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.float-chip.c1 { top: 8%;  left: -6%;   animation-delay: -0.5s; }
.float-chip.c2 { top: 38%; right: -8%;  animation-delay: -1.6s; }
.float-chip.c3 { bottom: 10%; left: -2%; animation-delay: -2.7s; }

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* =========================================================
   Marquee strip - formats supported
   ========================================================= */

.marquee {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
    padding: 18px 0;
    overflow: hidden;
}
.marquee-track {
    display: flex; gap: 56px; white-space: nowrap;
    animation: scroll 28s linear infinite;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: .08em;
}
.marquee-track span { font-size: 1rem; }
.marquee-track .sep { color: var(--accent); }

@keyframes scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =========================================================
   Feature cards
   ========================================================= */

.feature-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
}
.feature-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); margin: 0; font-size: .96rem; }

.feature-card::after {
    content: ""; position: absolute; inset: auto -40% -40% auto;
    width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent) 0%, transparent 70%);
    opacity: 0; transition: opacity .25s ease;
}
.feature-card:hover::after { opacity: .5; }

/* =========================================================
   Big split sections (image + copy)
   ========================================================= */

.split {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
}
.split.flip { direction: rtl; }
.split.flip > * { direction: ltr; }
@media (max-width: 900px) {
    .split, .split.flip { grid-template-columns: 1fr; gap: 32px; direction: ltr; }
}

.split-img {
    background: linear-gradient(135deg, var(--purple-100), #FCE7F3);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    min-height: 380px;
    box-shadow: var(--shadow);
}
.split-img img {
    border-radius: 22px;
    max-height: 520px;
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .split-img {
    background: linear-gradient(135deg, rgba(124,58,237,.25), rgba(236,72,153,.18));
}

.copy-list { list-style: none; padding: 0; margin: 18px 0 0; }
.copy-list li {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 10px 0;
}
.copy-list li::before {
    content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%;
    background: var(--accent-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C3AED' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/14px no-repeat;
    margin-top: 2px;
}

/* =========================================================
   Theme/color showcase
   ========================================================= */

.theme-showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 700px) { .theme-showcase { grid-template-columns: repeat(2, 1fr); } }

.theme-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
}
.theme-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.theme-swatch { height: 110px; display: flex; flex-direction: column; }
.theme-swatch span { flex: 1; display: block; }
.theme-card .label {
    padding: 12px 14px;
    font-weight: 600; font-size: .92rem;
}

/* Color combo swatches */
.combo-default span:first-child  { background: #FFFFFF; }
.combo-default span:last-child   { background: #1A1525; }
.combo-imperial span:first-child { background: #1B1F4A; }
.combo-imperial span:last-child  { background: #FFE5B4; }
.combo-alabaster span:first-child{ background: #F2EFE5; }
.combo-alabaster span:last-child { background: #6082B6; }
.combo-pink span:first-child     { background: #FBD0E0; }
.combo-pink span:last-child      { background: #5C5C66; }

/* Accent color row */
.accent-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.accent-dot {
    width: 36px; height: 36px; border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer; transition: transform .15s ease, border-color .15s ease;
}
.accent-dot:hover { transform: scale(1.1); }
.accent-dot.is-on { border-color: var(--text); transform: scale(1.1); }

/* =========================================================
   Player demo (cute interactive bar)
   ========================================================= */

.player-demo {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    display: flex; align-items: center; gap: 18px;
    box-shadow: var(--shadow);
    max-width: 680px; margin: 32px auto 0;
}
.player-demo .pcover {
    width: 56px; height: 56px; border-radius: 12px;
    background: linear-gradient(135deg, var(--purple-500), var(--pink));
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
}
.player-demo .pmeta { flex: 1; min-width: 0; }
.player-demo .ptitle {
    font-weight: 600; font-size: .98rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.player-demo .partist { font-size: .85rem; color: var(--text-muted); }
.player-demo .pbar {
    height: 4px; background: var(--accent-soft); border-radius: 4px;
    margin-top: 6px; overflow: hidden;
}
.player-demo .pfill {
    height: 100%; width: 38%;
    background: linear-gradient(90deg, var(--accent), var(--pink));
    border-radius: 4px;
    animation: progress 8s ease-in-out infinite;
}
@keyframes progress {
    0%   { width: 8%; }
    100% { width: 92%; }
}
.player-demo .pbtn {
    width: 42px; height: 42px; border-radius: 50%;
    border: 0; cursor: pointer; color: #fff;
    background: linear-gradient(135deg, var(--accent), #A855F7);
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px -6px rgba(124, 58, 237, 0.6);
    transition: transform .15s ease;
}
.player-demo .pbtn:hover { transform: scale(1.06); }
.player-demo .pbtn svg { width: 18px; height: 18px; }

/* =========================================================
   FAQ
   ========================================================= */

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: border-color .2s ease;
}
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.faq summary {
    cursor: pointer; font-weight: 600;
    list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; font-size: 1.4rem; color: var(--accent);
    transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 12px 0 0; color: var(--text-muted); }

/* =========================================================
   CTA banner
   ========================================================= */

.cta-banner {
    background: linear-gradient(135deg, var(--purple-700) 0%, var(--purple-500) 50%, var(--pink) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative; overflow: hidden;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { opacity: .9; max-width: 560px; margin: 8px auto 22px; }
.cta-banner .btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.25); }
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,0.2); color: #fff; }
.cta-banner::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.12), transparent 45%);
    pointer-events: none;
}

/* =========================================================
   Page hero (smaller, for non-home pages)
   ========================================================= */

.page-hero {
    padding: 80px 0 40px;
    text-align: center;
}
.page-hero p { color: var(--text-muted); max-width: 640px; margin: 8px auto 0; font-size: 1.05rem; }

/* =========================================================
   Article / privacy doc
   ========================================================= */

.doc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 880px;
    margin: 0 auto;
}
.doc h2 { margin-top: 32px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc .callout {
    border-left: 4px solid var(--accent);
    background: var(--accent-soft);
    padding: 14px 18px; border-radius: 8px;
    margin: 20px 0;
    color: var(--text);
}

/* =========================================================
   Download steps
   ========================================================= */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    transition: transform .2s ease;
}
.step:hover { transform: translateY(-3px); }
.step .num {
    font-family: var(--font-display);
    font-size: 2.2rem; font-weight: 700;
    color: var(--accent); opacity: .35;
    position: absolute; top: 18px; right: 22px;
}
.step h3 { margin-top: 0; }

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    margin-top: 80px;
    padding: 60px 0 24px;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-tag { color: var(--text-muted); margin-top: 12px; font-size: .95rem; }
.footer-col h4 {
    font-family: var(--font-display); font-size: .95rem;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--text); margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--accent); }
.footer-note { color: var(--text-muted); font-size: .85rem; line-height: 1.6; }

.footer-bottom {
    margin-top: 40px; padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    color: var(--text-muted); font-size: .85rem;
}
.footer-bottom .domain { font-family: var(--font-display); color: var(--accent); }

/* =========================================================
   Reveal-on-scroll helper
   ========================================================= */

.reveal {
    opacity: 0; transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
    opacity: 1; transform: none;
}

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