/* Cardarena — shared theme (landing + how-to-play). Neon palette from the app logo. */
:root {
    --bg: #0b0716;
    --bg-soft: #120c24;
    --bg-card: #171030;
    --border: #2c2158;
    --border-soft: #3b2e72;
    --text: #ece9f6;
    --muted: #b6aad6;
    --dim: #8b7fb4;
    --magenta: #7c5cff;
    --pink: #ff5ad6;
    --violet: #9d5cff;
    --cyan: #2fd9ff;
    --blue: #5b8cff;
    --grad: linear-gradient(100deg, #7c5cff 0%, #2fd9ff 100%);
}
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(1200px 600px at 100% -220px, rgba(157,92,255,0.12), transparent 60%),
        radial-gradient(1000px 520px at -240px 110%, rgba(47,217,255,0.07), transparent 60%),
        var(--bg);
    background-attachment: fixed;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* NAV */
nav {
    position: sticky; top: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 13px 24px;
    background: rgba(11,7,22,0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 0; }
.nav-brand img { display: block; }
.nav-brand .nav-icon { height: 32px; width: 32px; border-radius: 8px; }
.nav-brand .nav-wordmark { height: 30px; width: auto; }
.nav-brand span { font-weight: 800; letter-spacing: 0.5px; }
.nav-brand:hover { text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-links-inline { display: flex; align-items: center; gap: 22px; }
.nav-links-inline a { color: var(--muted); font-size: 0.92em; font-weight: 600; }
.nav-links-inline a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
    background: transparent; color: #fff;
    border: 1.5px solid var(--magenta);
    padding: 8px 18px; border-radius: 10px;
    font-weight: 700; font-size: 0.9em;
    transition: background 0.2s, border-color 0.2s;
}
.nav-cta:hover { text-decoration: none; background: rgba(124,92,255,0.14); }

.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(11,7,22,0.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 8px 24px 16px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu a { color: var(--muted); padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,0.06); font-weight: 600; }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--text); text-decoration: none; }
.mobile-menu a.menu-cta { color: var(--magenta); }

/* HERO (landing) */
.hero {
    position: relative; overflow: hidden;
    text-align: center; padding: 88px 24px 76px;
    border-bottom: 1px solid var(--border);
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(900px 440px at 50% -12%, rgba(157,92,255,0.20), transparent 70%),
        linear-gradient(180deg, rgba(11,7,22,0.80), rgba(11,7,22,0.95)),
        url('/cardarena/assets/arena.webp') center/cover no-repeat;
    z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-icon {
    width: 110px; height: 110px; border-radius: 26px; margin: 0 auto 22px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 14px 50px rgba(124,92,255,0.42), 0 0 90px rgba(47,217,255,0.28);
}
.hero h1 { font-size: 3.4em; line-height: 1.04; letter-spacing: -1px; margin-bottom: 10px; }
.hero-title { margin: 0 auto 14px; line-height: 0; }
.hero-title img { width: min(360px, 82vw); height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 8px 30px rgba(0,0,0,0.45)); }
.hero .tagline { font-size: 1.05em; color: var(--cyan); text-transform: uppercase; letter-spacing: 3.5px; font-weight: 700; margin-bottom: 20px; text-shadow: 0 0 18px rgba(47,217,255,0.45); }
.hero p.lead { font-size: 1.15em; color: var(--muted); max-width: 600px; margin: 0 auto 26px; }

.pill {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(47,217,255,0.08); color: #8fecff;
    border: 1px solid rgba(47,217,255,0.38);
    padding: 6px 16px; border-radius: 30px;
    font-size: 0.85em; font-weight: 600; margin-top: 18px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #3fe0ff; box-shadow: 0 0 8px #3fe0ff; animation: pulse 2s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(63,224,255,0.6); }
    70% { box-shadow: 0 0 0 9px rgba(63,224,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(63,224,255,0); }
}

.cta-row { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
.badge-play img { height: 58px; width: auto; filter: drop-shadow(0 6px 20px rgba(0,0,0,0.5)); }
.badge-play:hover { text-decoration: none; opacity: 0.92; }
/* Unified button — outline style: transparent bg, purple border, white bold text. */
.btn-ghost, .btn-fill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 24px; border-radius: 12px;
    border: 1.5px solid var(--magenta); color: #fff;
    font-weight: 700; font-size: 1em; background: transparent;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.btn-ghost:hover, .btn-fill:hover { background: rgba(124,92,255,0.14); text-decoration: none; }
.btn-ghost:active, .btn-fill:active { transform: translateY(1px); }
.hero-note { margin-top: 20px; font-size: 0.88em; color: var(--dim); }

/* COMPACT PAGE HEADER (how-to-play) */
.page-hero {
    position: relative; overflow: hidden; text-align: center;
    padding: 68px 24px 44px; border-bottom: 1px solid var(--border);
}
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(800px 360px at 50% -20%, rgba(124,92,255,0.18), transparent 70%),
        linear-gradient(180deg, rgba(11,7,22,0.80), rgba(11,7,22,0.95)),
        url('/cardarena/assets/arena.webp') center/cover no-repeat;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { font-size: 2.7em; letter-spacing: -0.8px; margin-bottom: 12px; }
.page-hero p { color: var(--muted); max-width: 600px; margin: 0 auto; font-size: 1.1em; }

/* SECTIONS */
section.block { padding: 72px 0; border-bottom: 1px solid var(--border); }
.eyebrow {
    text-transform: uppercase; letter-spacing: 2.5px; font-size: 0.78em;
    font-weight: 800; margin-bottom: 12px; display: inline-block;
    color: var(--cyan);
}
h2 { font-size: 2em; color: #fff; letter-spacing: -0.5px; margin-bottom: 16px; }
.section-intro { color: var(--muted); max-width: 640px; margin-bottom: 36px; font-size: 1.08em; }
.section-link { display: inline-block; margin-top: 26px; font-weight: 700; color: var(--cyan); transition: gap 0.15s; }
.section-link:hover { text-decoration: none; }

/* STEPS */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.step { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--cyan); color: #0b0716; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1em; }
.step h3 { color: #fff; font-size: 1.2em; }
.step p { color: var(--muted); font-size: 0.98em; }
.step .btn-step { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 0.95em; }
.btn-step.primary, .btn-step.outline { background: transparent; border: 1.5px solid var(--magenta); color: #fff; }
.btn-step.primary:hover, .btn-step.outline:hover { background: rgba(124,92,255,0.14); text-decoration: none; }
.steps-note { margin-top: 22px; font-size: 0.9em; color: var(--dim); }

/* PLAIN STEPS (de-carded — number + text + button, no box) */
.plain-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 44px; max-width: 880px; }
.plain-step { display: flex; gap: 16px; align-items: flex-start; }
.plain-step .n { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--cyan); color: #0b0716; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.plain-step h3 { color: #fff; font-size: 1.15em; margin-bottom: 6px; }
.plain-step p { color: var(--muted); font-size: 0.97em; margin-bottom: 14px; }
.plain-step .btn-step { display: inline-flex; align-items: center; gap: 7px; padding: 11px 18px; border-radius: 10px; font-weight: 700; font-size: 0.93em; }

/* SCREENSHOTS — full-bleed, pinned horizontal scroll (vertical scroll pans the strip) */
.shots-section { position: relative; border-bottom: 1px solid var(--border); }
.shots-pin { position: relative; }
.shots-sticky {
    position: sticky; top: 0; height: 100vh; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center; gap: 28px;
}
.shots-head { padding: 0 24px; }
.strip-hint { color: var(--dim); font-size: 0.85em; margin-top: 4px; }
.shots-track { display: flex; gap: 16px; padding: 0 24px; will-change: transform; }
.shots-track img {
    height: 56vh; max-height: 520px; aspect-ratio: 16 / 9; width: auto; flex: 0 0 auto;
    object-fit: cover; background: #000; border: 1px solid var(--border-soft); border-radius: 14px;
}

/* CARD TYPES */
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.type { background: var(--bg-card); border: 1px solid var(--border); border-top: 3px solid var(--c, var(--magenta)); border-radius: 12px; padding: 22px; transition: transform 0.15s; }
.type:hover { transform: translateY(-3px); }
.type h3 { color: var(--c, var(--magenta)); font-size: 1.25em; margin-bottom: 8px; text-shadow: 0 0 16px color-mix(in srgb, var(--c, var(--magenta)) 45%, transparent); }
.type p { color: var(--muted); font-size: 0.95em; }

/* DECK LIST (de-carded card types — plain text) */
.deck-list { list-style: none; max-width: 720px; }
.deck-list li { padding: 15px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 1.02em; }
.deck-list li:last-child { border-bottom: none; }
.deck-list .nm { font-weight: 800; color: var(--c, var(--magenta)); }

/* FEATURES */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.feature { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 26px; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
.feature:hover { transform: translateY(-3px); border-color: var(--border-soft); box-shadow: 0 10px 30px rgba(157,92,255,0.12); }
.feature .ic { font-size: 1.6em; margin-bottom: 12px; display: block; }
.feature h3 { color: #fff; font-size: 1.15em; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.96em; }

/* RULES TABLE (how-to-play) */
.rules-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.rules-table th, .rules-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.rules-table thead th { color: var(--cyan); font-size: 0.76em; text-transform: uppercase; letter-spacing: 1.2px; }
.rules-table td { color: var(--muted); font-size: 0.96em; }
.rules-table td.name { color: var(--cyan); font-weight: 700; white-space: nowrap; }
.rules-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); }

/* GOOD TO KNOW */
.facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.facts li { color: var(--muted); padding-left: 26px; position: relative; }
.facts li::before { content: "▸"; color: var(--cyan); position: absolute; left: 0; top: 0; }
.facts strong { color: var(--text); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { color: #fff; font-size: 1.08em; margin-bottom: 6px; }
.faq-item p { color: var(--muted); font-size: 0.98em; }

/* FINAL CTA */
.final {
    text-align: center; padding: 84px 24px;
    background: radial-gradient(720px 340px at 50% 0%, rgba(157,92,255,0.14), transparent 70%);
}
.final h2 { font-size: 1.85em; max-width: 640px; margin: 0 auto 28px; }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 36px 24px; }
.footer-inner { max-width: 1000px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.footer-left { font-size: 0.85em; color: var(--dim); }
.footer-left .footer-up { color: inherit; text-decoration: none; }
.footer-left .footer-up:hover { color: var(--text); text-decoration: underline; }
.footer-legal { margin-top: 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.footer-legal a { color: #9385bd; font-size: 0.95em; }
.footer-legal a:hover { color: var(--text); text-decoration: none; }
.footer-legal span { color: #4b3f70; }
.social-links { display: flex; gap: 18px; align-items: center; }
.social-links a { color: #8779b0; display: flex; transition: color 0.2s, transform 0.15s; }
.social-links a:hover { color: var(--magenta); transform: translateY(-2px); }
.social-links svg { width: 22px; height: 22px; fill: currentColor; }

@media (max-width: 760px) {
    .nav-links-inline { display: none; }
    .nav-cta { display: none; }
    .hamburger { display: flex; }
    .mobile-menu { display: flex; }
    .hero { padding: 66px 20px 58px; }
    .hero h1 { font-size: 2.4em; }
    .page-hero h1 { font-size: 2.1em; }
    .steps { grid-template-columns: 1fr; }
    .plain-steps { grid-template-columns: 1fr; gap: 26px; }
    .facts { grid-template-columns: 1fr; }
    section.block { padding: 56px 0; }
    .shots-section { padding: 52px 0; }
    .shots-pin { height: auto !important; }
    .shots-sticky { position: static; height: auto; display: block; }
    .shots-sticky .shots-head { margin-bottom: 24px; }
    .shots-track { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 14px; transform: none !important; }
    .shots-track img { height: 240px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-left { order: 2; }
}

/* ============================================================================
   MODERN ENHANCEMENTS — additive only. Scroll-reveal, depth, micro-interactions
   and tighter organization. Keeps the neon identity and every existing class.
   The pinned screenshot scroller (#shots-*) is intentionally untouched.
   ========================================================================== */

:root {
    /* Fluid type + rhythm (caps kept at the current desktop sizes). */
    --h1: clamp(2rem, 1.3rem + 3vw, 2.7rem);
    --h2: clamp(1.55rem, 1.15rem + 1.7vw, 2rem);
    --rhythm: clamp(56px, 3.5vw + 42px, 84px);
    --sheen: rgba(255, 255, 255, 0.14);
}

/* ---- Reusable scroll-reveal system (gated by html.js-reveal => no-JS safe) -- */
html.js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
    transition: opacity 0.6s ease,
                transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
                filter 0.6s ease;
    transition-delay: calc(var(--i, 0) * 70ms);
    will-change: transform, opacity;
}
html.js-reveal [data-reveal].is-in {
    opacity: 1;
    transform: none;
    filter: none;
    will-change: auto;
}

/* ---- Hero load-in entrance (landing only; CSS-only, gated like reveals) ----- */
@media (prefers-reduced-motion: no-preference) {
    html.js-reveal .hero-icon  { animation: heroFade 0.7s both; }
    html.js-reveal .hero-title { animation: heroIn 0.7s 0.08s both; }
    html.js-reveal .hero .tagline   { animation: heroIn 0.7s 0.16s both; }
    html.js-reveal .hero p.lead     { animation: heroIn 0.7s 0.24s both; }
    html.js-reveal .hero .cta-row   { animation: heroIn 0.7s 0.32s both; }
    html.js-reveal .hero .pill      { animation: heroIn 0.7s 0.40s both; }
    html.js-reveal .hero .hero-note { animation: heroIn 0.7s 0.48s both; }
}
@keyframes heroIn   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }

/* ---- Nav: elevate on scroll ------------------------------------------------ */
nav { transition: padding 0.25s ease, background 0.25s ease, box-shadow 0.25s ease; }
nav.scrolled {
    padding-top: 9px; padding-bottom: 9px;
    background: rgba(11, 7, 22, 0.93);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 1px 0 0 rgba(124, 92, 255, 0.18);
}

/* ---- Back-to-top affordance ------------------------------------------------ */
.to-top {
    position: fixed; right: 20px; bottom: 20px;
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--magenta);
    background: rgba(11, 7, 22, 0.72); backdrop-filter: blur(8px);
    color: #fff; cursor: pointer;
    opacity: 0; transform: translateY(10px); pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease, background 0.2s ease;
    z-index: 90;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top.show:hover, .to-top:focus-visible { will-change: transform; }
.to-top:hover { background: rgba(124, 92, 255, 0.22); box-shadow: 0 0 20px rgba(124, 92, 255, 0.4); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Button + card press / focus polish ------------------------------------ */
.btn-ghost, .btn-fill, .nav-cta, .btn-step { position: relative; overflow: hidden; }
.btn-ghost, .btn-fill, .nav-cta, .btn-step {
    transition: background 0.2s, border-color 0.2s, transform 0.1s, box-shadow 0.2s;
}
.btn-ghost:hover, .btn-fill:hover, .nav-cta:hover, .btn-step:hover {
    box-shadow: 0 0 22px rgba(124, 92, 255, 0.35);
}
.ca-ripple {
    position: absolute; border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    transform: scale(0); pointer-events: none;
    animation: caRipple 0.6s ease-out forwards;
}
@keyframes caRipple { to { transform: scale(4); opacity: 0; } }

/* Brand keyboard focus ring (outline for links/cards, glow for clipped buttons) */
a:focus-visible, button:focus-visible,
.feature:focus-visible, .type:focus-visible {
    outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px;
}
.btn-ghost:focus-visible, .btn-fill:focus-visible,
.nav-cta:focus-visible, .btn-step:focus-visible, .to-top:focus-visible {
    outline: none; box-shadow: 0 0 0 2px var(--cyan), 0 0 18px rgba(47, 217, 255, 0.4);
}
:focus:not(:focus-visible) { outline: none; }

/* ---- Pointer spotlight + subtle 3D tilt on cards (JS-driven, fine pointers) - */
.features, .types { perspective: 900px; }
.feature, .type { position: relative; overflow: hidden; }
.feature::after, .type::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(157, 92, 255, 0.18), transparent 60%);
    opacity: 0; transition: opacity 0.25s ease;
}
.feature:hover::after, .type:hover::after { opacity: 1; }

/* ---- Animated conic-gradient border on cards (hover) ----------------------- */
@property --bdr { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.feature::before, .type::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    padding: 1.5px; pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
    background: conic-gradient(from var(--bdr), var(--magenta), var(--cyan), var(--pink), var(--magenta));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
/* Only reveal the ring where masking is supported, so engines that can't carve
   the centre never flash an opaque conic box on hover. */
@supports ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
    .feature:hover::before, .type:hover::before { opacity: 0.9; }
}
@media (prefers-reduced-motion: no-preference) {
    .feature:hover::before, .type:hover::before { animation: spinBdr 4s linear infinite; }
}
@keyframes spinBdr { to { --bdr: 360deg; } }

/* ---- Living gradient text + tagline glow ----------------------------------- */
.grad-text { background-size: 220% 100%; }
@media (prefers-reduced-motion: no-preference) {
    .grad-text { animation: gradShift 8s ease-in-out infinite; }
    .hero .tagline { animation: taglineGlow 4.5s ease-in-out infinite; }
}
@keyframes gradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes taglineGlow {
    0%, 100% { text-shadow: 0 0 18px rgba(47, 217, 255, 0.45); }
    50%      { text-shadow: 0 0 28px rgba(47, 217, 255, 0.8); }
}

/* ---- Pill beacon + Play badge lift ----------------------------------------- */
.pill .dot { position: relative; }
@media (prefers-reduced-motion: no-preference) {
    .pill .dot::after {
        content: ""; position: absolute; inset: 0; border-radius: 50%;
        box-shadow: 0 0 0 0 rgba(63, 224, 255, 0.5);
        animation: pulse 2s 1s infinite;
    }
}
.badge-play img { transition: transform 0.18s ease, filter 0.18s ease; }
.badge-play:hover { opacity: 1; }
.badge-play:hover img { transform: translateY(-2px); filter: drop-shadow(0 10px 26px rgba(47, 217, 255, 0.4)); }

/* ---- Section organization: fluid scale, rhythm, neon hairline dividers ------ */
.page-hero h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
section.block {
    padding: var(--rhythm) 0;
    border-bottom: none; position: relative;
}
section.block::after {
    content: ""; position: absolute; left: 50%; bottom: 0;
    width: min(680px, 86%); height: 1px; transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--magenta), var(--cyan), transparent);
    opacity: 0.5;
}
section.block:last-of-type::after { opacity: 0; }
.block.compact { padding: calc(var(--rhythm) * 0.62) 0; }

/* Smooth-scroll anchor offsets so CTA jumps clear the sticky nav. */
:where(#top, #get, #shots, section[id]) { scroll-margin-top: 70px; }

/* ---- Asymmetric bento for the two 6-card feature grids (opt-in .bento) ------ */
.features.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.features.bento > .feature { grid-column: span 2; }
.features.bento > .feature:first-child { grid-column: span 4; }
.features.bento > .feature:last-child  { grid-column: span 6; }
.features.bento > .feature:first-child h3 { font-size: 1.32em; }
.features.bento > .feature:first-child .ic { font-size: 1.9em; }

/* ---- Reduced-motion: appear instantly, kill continuous + JS-driven motion --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    html.js-reveal [data-reveal] {
        opacity: 1 !important; transform: none !important;
        filter: none !important; transition: none !important;
    }
    .grad-text, .hero .tagline, .hero-icon, .hero-title,
    .hero p.lead, .hero .cta-row, .hero .pill, .hero .hero-note,
    .pill .dot, .pill .dot::after, .feature::before, .type::before {
        animation: none !important;
    }
    .to-top { transition: opacity 0.2s ease !important; transform: none !important; }
}

/* ---- Mobile tuning for the additions --------------------------------------- */
@media (max-width: 760px) {
    html.js-reveal [data-reveal] { transform: translateY(14px); }
    .features.bento { grid-template-columns: 1fr; }
    .features.bento > .feature { grid-column: auto !important; }
    .to-top { right: 14px; bottom: 14px; }
}
