/* CapRocket website. Design tokens first; the dashboard (admin.css) reuses them. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0b0e;
  --surface: #131317;
  --surface-2: #1b1b21;
  --surface-3: #24242c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ececf1;
  --text-2: #b4b4c0;
  --muted: #8d8d9a;
  /* Brand accent, from the CapRocket icon and the app's Export button. */
  --accent: #ff3d8b;
  --accent-2: #a855f7;
  --accent-soft: rgba(255, 61, 139, 0.14);
  --accent-ink: #ffffff;
  --grad: linear-gradient(120deg, #ff3d8b 0%, #d946ef 55%, #a855f7 100%);
  --ok: #4ade80;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --container: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
p a, li a, dd a, .link-list a { color: #ff7ab0; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p a:hover, li a:hover { color: #ffa3c8; }
code { font: 0.88em/1.4 ui-monospace, "Cascadia Code", Consolas, monospace; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 0.1em 0.4em; word-break: break-all; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.sr-only, .sr-only-lg { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  --bh: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: var(--bh); padding: 0 1.15em;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 0.95rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.btn-sm { --bh: 36px; padding: 0 0.95em; font-size: 0.875rem; }
.btn-lg { --bh: 54px; padding: 0 1.5em; font-size: 1.02rem; }
.btn-primary { background: var(--grad); color: var(--accent-ink); box-shadow: 0 10px 30px -10px rgba(255, 61, 139, 0.6); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(255, 61, 139, 0.75); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); }
.btn-meta { font-weight: 500; opacity: 0.8; font-size: 0.85em; padding-left: 0.2em; }
.btn.is-disabled { background: var(--surface-3); color: var(--muted); box-shadow: none; cursor: not-allowed; }

.badge { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0; background: var(--accent-soft); color: #ff8fbd; border: 1px solid rgba(255, 61, 139, 0.3); }
.badge-warn { background: rgba(251, 191, 36, 0.12); color: var(--warn); border-color: rgba(251, 191, 36, 0.3); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(11, 11, 14, 0.72);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s ease, background-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(11, 11, 14, 0.88); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.08rem; letter-spacing: -0.02em; text-decoration: none; }
.brand img { border-radius: 8px; }
.made-by { display: inline-flex; align-items: center; gap: 5px; margin: 0 auto 0 4px; padding-left: 14px; border-left: 1px solid var(--border); color: var(--muted); font-size: 0.84rem; white-space: nowrap; }
.made-by .heart { width: 14px; height: 14px; color: var(--accent); fill: var(--accent); }
.made-by strong { color: var(--text); font-weight: 650; }
.made-by a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px; margin: -4px -6px; border-radius: 7px; text-decoration: none; transition: background-color 0.15s; }
.made-by a .icon { width: 14px; height: 14px; color: var(--text-2); }
.made-by a:hover { background: rgba(255, 255, 255, 0.06); }
.made-by a:hover .icon { color: #ff7ab0; }
/* No room next to the menu on narrow screens, or next to the full menu on mid-size ones. */
@media (max-width: 560px), (min-width: 861px) and (max-width: 1040px) { .made-by { display: none; } }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: 0.93rem; font-weight: 500; transition: color 0.15s, background-color 0.15s; }
.site-nav ul a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-ctas { display: flex; align-items: center; gap: 8px; }
.btn-kofi-soft { background: rgba(255, 170, 0, 0.12); border-color: rgba(255, 170, 0, 0.4); color: #ffc04d; }
.btn-kofi-soft:hover { background: rgba(255, 170, 0, 0.2); border-color: rgba(255, 170, 0, 0.6); color: #ffd07a; }
.social { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.social li a { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 9px; color: var(--text-2); transition: color 0.15s, background-color 0.15s; }
.social li a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.social .icon { width: 18px; height: 18px; }
.social-header { padding-left: 10px; margin-left: -6px; border-left: 1px solid var(--border); }
/* Between phone and wide desktop the header has no room for the icons: they stay in the footer. */
@media (min-width: 861px) and (max-width: 1240px) { .site-nav .social-header { display: none; } }
.site-nav ul a { white-space: nowrap; }
.social-footer { margin-top: 16px; margin-left: -9px; }
.social-footer li a { width: 40px; height: 40px; }
.social-footer .icon { width: 20px; height: 20px; }
.kofi-mobile { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .kofi-mobile { display: inline-flex; margin-left: auto; }
  .kofi-desktop { display: none; }
  .social-header { border-left: 0; padding: 4px 0 0; margin: 0; justify-content: center; border-top: 1px solid var(--border); padding-top: 12px; }
  .site-nav .social-header { flex-direction: row; align-items: center; }
  .site-nav .social-header li a { width: 44px; height: 44px; padding: 0; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 12px;
    padding: 16px; background: rgba(11, 11, 14, 0.98); border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav ul a { padding: 12px; font-size: 1rem; }
  .sr-only-lg { position: static; width: auto; height: auto; margin: 0; clip: auto; overflow: visible; }
  .site-nav .btn { --bh: 48px; flex: 1; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 760px; pointer-events: none;
  background:
    radial-gradient(40% 50% at 70% 35%, rgba(168, 85, 247, 0.22), transparent 70%),
    radial-gradient(35% 40% at 25% 20%, rgba(255, 61, 139, 0.18), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate3d(-2%, 0, 0); } to { transform: translate3d(2%, 3%, 0); } }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 64px); }
.hero-copy { max-width: 760px; margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.03); color: var(--text-2); font-size: 0.86rem; font-weight: 500; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-2); line-height: 1.6; max-width: 640px; margin-inline: auto; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero-facts { margin: 14px 0 0; color: var(--muted); font-size: 0.88rem; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; list-style: none; padding: 0; margin: 26px 0 0; color: var(--text-2); font-size: 0.92rem; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust .icon { color: var(--accent); }

.hero-support {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  max-width: 720px; margin: 30px auto 0; padding: 16px 18px; text-align: left;
  border-radius: 16px; border: 1px solid rgba(255, 170, 0, 0.32);
  background: radial-gradient(80% 160% at 0% 50%, rgba(255, 170, 0, 0.13), transparent 70%), rgba(255, 255, 255, 0.02);
}
.hero-support-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 170, 0, 0.15); color: #ffbe3d; }
.hero-support p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--text-2); }
.hero-support strong { display: block; color: var(--text); font-size: 0.98rem; margin-bottom: 2px; }
.hero-support .btn { --bh: 40px; }
@media (max-width: 640px) {
  .hero-support { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

.hero-shot { margin: 0; }
.window {
  position: relative; border-radius: 14px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--border-strong); box-shadow: 0 40px 120px -40px rgba(168, 85, 247, 0.45), var(--shadow);
}
.window-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #101014; border-bottom: 1px solid var(--border); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2c2c35; }
.window-bar span { margin-left: 10px; font-size: 0.75rem; color: var(--muted); }
.window img { width: 100%; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: linear-gradient(180deg, var(--surface) 0%, rgba(19, 19, 23, 0.4) 100%); border-block: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head p:last-child { color: var(--text-2); font-size: 1.05rem; margin: 0; }
.kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; color: #ff7ab0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

/* Showcase */
.showcase-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.media-card { margin: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s, transform 0.2s; grid-column: span 3; }
.media-card:hover { border-color: var(--border-strong); }
.media-card img, .media-card video { width: 100%; background: #0e0e12; }
.media-wide { grid-column: span 6; display: grid; grid-template-columns: minmax(0, 720px) 1fr; align-items: center; }
.media-wide figcaption { padding: 24px 28px; font-size: 1rem; }
.media-wide figcaption strong { font-size: 1.2rem; margin-bottom: 6px; }
.media-tall { grid-column: span 2; }
.media-tall img, .media-tall video { aspect-ratio: 360 / 464; object-fit: cover; object-position: top; }
.media-card figcaption { padding: 14px 18px 18px; color: var(--text-2); font-size: 0.93rem; }
.media-card figcaption strong { display: block; color: var(--text); font-weight: 650; margin-bottom: 2px; }
@media (max-width: 900px) {
  .media-card, .media-wide { grid-column: span 6; }
  .media-wide { grid-template-columns: 1fr; }
  .media-tall { grid-column: span 3; }
}
@media (max-width: 560px) { .media-tall { grid-column: span 6; } }

/* Features */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.feature, .why-card {
  position: relative; padding: 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border); transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}
.feature:hover, .why-card:hover { border-color: rgba(255, 61, 139, 0.35); transform: translateY(-2px); }
.feature > .icon, .why-card > .icon { width: 40px; height: 40px; padding: 9px; margin-bottom: 16px; border-radius: 11px; color: #ff8fbd; background: var(--accent-soft); border: 1px solid rgba(255, 61, 139, 0.22); }
.feature p, .why-card p { margin: 0; color: var(--text-2); font-size: 0.94rem; }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }

/* Workflow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: none; }
.flow-step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.flow-step > .icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }
.flow-step p { margin: 0; color: var(--text-2); font-size: 0.93rem; }
.flow-num { position: absolute; top: 18px; right: 20px; font-size: 2.2rem; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, 0.06); }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* Download center */
.download-card {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; overflow: hidden;
  border-radius: 22px; border: 1px solid var(--border-strong);
  background: radial-gradient(80% 120% at 0% 0%, rgba(255, 61, 139, 0.12), transparent 60%), var(--surface);
  box-shadow: var(--shadow);
}
.download-main, .download-install { min-width: 0; padding: clamp(28px, 4vw, 48px); }
.download-install { background: rgba(0, 0, 0, 0.18); border-left: 1px solid var(--border); }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 22px 0 26px; }
.specs div { padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); }
.specs dt { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.specs dd { margin: 2px 0 0; font-weight: 600; }
.download-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.download-actions p { margin: 0; }
.checksum { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: rgba(0, 0, 0, 0.25); }
.checksum-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
.checksum code { flex: 1 1 260px; background: none; border: 0; padding: 0; font-size: 0.8rem; color: var(--text-2); }
.link-list { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.link-list a { display: inline-flex; align-items: center; gap: 7px; font-weight: 550; font-size: 0.94rem; text-decoration: none; }
.link-list a:hover { text-decoration: underline; }
.steps { margin: 0 0 22px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; color: var(--text-2); }
.steps li strong { color: var(--text); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; font-size: 0.85rem; background: var(--accent-soft); color: #ff8fbd; border: 1px solid rgba(255, 61, 139, 0.3); }
.note { display: flex; gap: 12px; padding: 16px; margin-bottom: 18px; border-radius: var(--radius-sm); background: rgba(251, 191, 36, 0.07); border: 1px solid rgba(251, 191, 36, 0.22); font-size: 0.92rem; color: var(--text-2); }
.note > .icon { color: var(--warn); margin-top: 3px; }
.note p:last-child { margin: 0; }
.note strong { color: var(--text); }
@media (max-width: 900px) {
  .download-card { grid-template-columns: minmax(0, 1fr); }
  .download-install { border-left: 0; border-top: 1px solid var(--border); }
}

/* Android */
.android { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(32px, 6vw, 80px); max-width: 960px; }
.android-copy p { color: var(--text-2); }
.android-copy h2 .badge { font-size: 0.9rem; margin-left: 6px; }
.phone { width: 220px; aspect-ratio: 9 / 18.5; padding: 10px; border-radius: 36px; background: #18181d; border: 1px solid var(--border-strong); box-shadow: 0 30px 80px -30px rgba(168, 85, 247, 0.5); }
.phone-screen { height: 100%; border-radius: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: radial-gradient(90% 60% at 50% 30%, rgba(255, 61, 139, 0.25), transparent 70%), #0e0e12; border: 1px solid var(--border); }
.phone-screen img { border-radius: 18px; }
.phone-screen span { font-weight: 700; }
.phone-screen small { color: var(--muted); font-size: 0.8rem; }
@media (max-width: 700px) {
  .android { grid-template-columns: 1fr; text-align: center; }
  .phone { width: 170px; margin-inline: auto; }
}

/* Support (Ko-fi) */
.support-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: clamp(24px, 4vw, 40px); border-radius: 22px; border: 1px solid rgba(255, 170, 0, 0.28);
  background: radial-gradient(70% 140% at 0% 50%, rgba(255, 170, 0, 0.12), transparent 65%), var(--surface);
}
.support-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: rgba(255, 170, 0, 0.14); border: 1px solid rgba(255, 170, 0, 0.3); color: #ffbe3d; }
.support-icon .icon { width: 30px; height: 30px; }
.support-copy h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.35em; }
.support-copy p { margin: 0; color: var(--text-2); max-width: 560px; }
.support-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.btn-kofi { background: #ffaa00; color: #1a1205; box-shadow: 0 10px 30px -12px rgba(255, 170, 0, 0.7); }
.btn-kofi:hover { background: #ffb829; transform: translateY(-1px); }
@media (max-width: 860px) {
  .support-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .support-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

/* Thank-you popup after a download click */
.thanks {
  width: min(460px, calc(100% - 32px)); padding: 32px 28px 22px; border-radius: 22px; text-align: center;
  color: var(--text); background: radial-gradient(90% 60% at 50% 0%, rgba(255, 170, 0, 0.14), transparent 70%), var(--surface);
  border: 1px solid var(--border-strong); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
}
.thanks[open] { display: flex; flex-direction: column; align-items: center; animation: pop 0.22s ease-out; }
.thanks::backdrop { background: rgba(5, 5, 8, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.thanks img { border-radius: 16px; margin-bottom: 16px; box-shadow: 0 16px 40px -16px rgba(255, 61, 139, 0.7); }
.thanks h2 { font-size: 1.45rem; margin-bottom: 0.4em; }
.thanks p { color: var(--text-2); font-size: 0.95rem; }
.thanks .btn-kofi { margin-top: 4px; width: 100%; }
.thanks form { margin: 0; }
.thanks form .btn-ghost { margin-top: 10px; border-color: transparent; background: none; color: var(--muted); }
.thanks form .btn-ghost:hover { color: var(--text); }
.thanks-help { margin: 10px 0 0; }
.thanks-close-form { position: absolute; top: 12px; right: 12px; }
.thanks-close { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.thanks-close:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq-list details { border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); transition: border-color 0.2s; }
.faq-list details[open] { border-color: var(--border-strong); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 600; list-style: none; border-radius: 14px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { color: var(--muted); transition: transform 0.2s ease; }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list details p { margin: 0; padding: 0 20px 20px; color: var(--text-2); }

/* Final CTA */
.cta-band { text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-inner img { border-radius: 16px; margin-bottom: 20px; box-shadow: 0 20px 50px -20px rgba(255, 61, 139, 0.7); }
.cta-inner > p { color: var(--text-2); }
.cta-inner .small { margin-top: 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 28px; background: #09090c; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--muted); max-width: 320px; margin-top: 12px; font-size: 0.92rem; }
.footer-links h2 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: 0.93rem; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 0.84rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Legal pages */
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal h2 { font-size: 1.45rem; margin-top: 2.2em; }
.legal h3 { margin-top: 1.6em; }
.legal p, .legal li { color: var(--text-2); }
.legal strong { color: var(--text); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.4em; }
.legal .lead { margin-inline: 0; }

/* Error page */
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.error-box { text-align: center; max-width: 440px; }
.error-box img { margin: 0 auto 20px; border-radius: 14px; }
.error-box p:not(.kicker) { color: var(--text-2); }

/* Scroll reveal: site.js adds .pre only to elements below the fold, so nothing visible ever flashes. */
.reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.pre { opacity: 0; transform: translateY(14px); }

@media (min-width: 1100px) {
  .hero-shot { margin-inline: -20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.pre { opacity: 1; transform: none; }
}

/* =====================================================================
   Motion and depth. Everything below only moves transform / opacity /
   background-position, pauses off screen (site.js), and is switched off
   by prefers-reduced-motion (end of this block).
   ===================================================================== */
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* Hero layers: starfield canvas, aurora blobs, perspective floor */
.hero { isolation: isolate; }
.hero-inner { position: relative; z-index: 2; }
.hero-glow { z-index: 1; }
.hero-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.starfield { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.aurora { position: absolute; inset: -10% -10% 30%; filter: blur(70px) saturate(140%); opacity: 0.55; }
.aurora i { position: absolute; display: block; border-radius: 50%; mix-blend-mode: screen; will-change: transform; }
.aurora i:nth-child(1) { width: 44vw; height: 44vw; left: 8%; top: 4%; background: radial-gradient(circle, rgba(255, 61, 139, 0.55), transparent 65%); animation: blob1 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 40vw; height: 40vw; right: 4%; top: 0; background: radial-gradient(circle, rgba(168, 85, 247, 0.55), transparent 65%); animation: blob2 26s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 30vw; height: 30vw; left: 38%; top: 30%; background: radial-gradient(circle, rgba(59, 130, 246, 0.35), transparent 65%); animation: blob3 30s ease-in-out infinite alternate; }
@keyframes blob1 { to { transform: translate3d(12vw, 6vh, 0) scale(1.15); } }
@keyframes blob2 { to { transform: translate3d(-10vw, 10vh, 0) scale(0.9); } }
@keyframes blob3 { to { transform: translate3d(-8vw, -6vh, 0) scale(1.25); } }
.floor {
  position: absolute; left: -25%; right: -25%; bottom: -8%; height: 52%;
  background-image: linear-gradient(rgba(255, 61, 139, 0.32) 1px, transparent 1px), linear-gradient(90deg, rgba(168, 85, 247, 0.26) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(520px) rotateX(68deg); transform-origin: center top;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: floor 3.2s linear infinite; opacity: 0.55;
}
@keyframes floor { to { background-position: 0 64px, 0 0; } }

/* Headline: words rise and unblur one after another (site.js wraps them) */
[data-split] .w { display: inline-block; opacity: 0; transform: translateY(0.55em) rotateX(-35deg); filter: blur(10px); transform-origin: 50% 100%; }
[data-split].is-split .w { animation: word-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: calc(var(--i) * 90ms + 120ms); }
@keyframes word-in { to { opacity: 1; transform: none; filter: blur(0); } }
/* Words inside the gradient are separate layers once animated: each paints the gradient itself. */
.grad .w { background: var(--grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-split].is-split .grad .w { animation: word-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, shimmer 6s ease-in-out infinite; animation-delay: calc(var(--i) * 90ms + 120ms), 0s; }
.grad { background-size: 220% 100%; animation: shimmer 6s ease-in-out infinite; }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero .eyebrow, .hero .lead, .hero-ctas, .hero-facts, .trust, .hero-support { animation: fade-up 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero .lead { animation-delay: 0.55s; }
.hero-ctas { animation-delay: 0.7s; }
.hero-facts, .trust { animation-delay: 0.85s; }
.hero-support { animation-delay: 1s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* 3D stage: the screenshot lies back and stands up as you scroll, and follows the mouse */
.hero-shot { position: relative; perspective: 1800px; --rx: 0deg; --ry: 0deg; --lift: 1; }
.window { transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(calc(0.94 + var(--lift) * 0.06)); transform-style: preserve-3d; transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: transform; }
.window::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset; }
.glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.16), transparent 45%); mix-blend-mode: overlay; opacity: 0; transition: opacity 0.3s; }
.hero-shot:hover .glare { opacity: 1; }
.stage-chips { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
  font-size: 0.86rem; font-weight: 600; white-space: nowrap; color: var(--text);
  background: rgba(20, 20, 26, 0.62); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transform: translate3d(var(--cx, 0), var(--cy, 0), 0); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.chip .icon { color: #ff7ab0; width: 16px; height: 16px; }
.chip-1 { top: 12%; left: -3%; animation: bob 6s ease-in-out infinite; }
.chip-2 { top: 6%; right: -2%; animation: bob 7s ease-in-out 0.8s infinite; }
.chip-3 { bottom: 22%; left: -5%; animation: bob 8s ease-in-out 1.6s infinite; }
.chip-4 { bottom: 10%; right: -4%; animation: bob 6.5s ease-in-out 0.4s infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }
@media (max-width: 900px) { .stage-chips { display: none; } }

/* Primary button: light sweep and a lift */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.38) 50%, transparent 70%); transform: translateX(-120%); }
.btn-primary:hover::after { transform: translateX(120%); transition: transform 0.75s ease; }
.btn-lg.btn-primary { box-shadow: 0 14px 40px -12px rgba(255, 61, 139, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08) inset; }
[data-magnetic] { transform: translate3d(var(--bx, 0), var(--by, 0), 0); }

/* Numbers strip */
.numbers { position: relative; padding: 8px 0 clamp(40px, 6vw, 64px); }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.num { padding: 22px 20px; border-radius: 18px; text-align: center; background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)); border: 1px solid var(--border); }
.num strong { display: block; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num span { display: block; margin-top: 6px; color: var(--text-2); font-size: 0.9rem; }
@media (max-width: 760px) { .numbers-grid { grid-template-columns: repeat(2, 1fr); } }

/* Marquee of effect names */
.marquee-wrap { display: grid; gap: 12px; padding: 18px 0 clamp(36px, 6vw, 64px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; gap: 12px; list-style: none; margin: 0; padding: 0; animation: marquee 46s linear infinite; }
.marquee-rev .marquee-track { animation-direction: reverse; animation-duration: 52s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px; white-space: nowrap; font-weight: 600; font-size: 0.95rem; color: var(--text-2); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); }
.marquee-track li .icon { color: #ff7ab0; width: 15px; height: 15px; }
.marquee-rev .marquee-track li .icon { color: #c4a1ff; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }

/* Cards: spotlight that follows the cursor, and a slight 3D tilt */
.spot { position: relative; transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; opacity: 0; transition: opacity 0.3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 61, 139, 0.16), transparent 45%); }
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; z-index: 1; }
.feature.spot:hover, .why-card.spot:hover { transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(-3px); }
.feature > .icon, .why-card > .icon { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s; }
.feature:hover > .icon, .why-card:hover > .icon { transform: translateY(-2px) rotate(-6deg) scale(1.08); box-shadow: 0 10px 26px -10px rgba(255, 61, 139, 0.8); }

/* Scroll reveal: blur in as well as rise; children stagger through --d */
.reveal { transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.8s; transition-delay: var(--d, 0ms); }
.reveal.pre { opacity: 0; transform: translateY(26px) scale(0.98); filter: blur(6px); }

/* Showcase depth: the picture drifts inside its card (site.js sets --py); the cards never move,
   so they can't overlap. The picture is zoomed a little so its edges never show. */
.media-card video, .media-card img { transform: translate3d(0, var(--py, 0px), 0) scale(1.08); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.media-card:hover video, .media-card:hover img { transform: translate3d(0, var(--py, 0px), 0) scale(1.12); }

/* Workflow: a line fills in as you scroll and lights up each step */
.flow { position: relative; }
.flow-line { position: absolute; left: 22px; right: 22px; top: -18px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.07); list-style: none; }
.flow-line span { display: block; height: 100%; border-radius: inherit; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); box-shadow: 0 0 18px rgba(255, 61, 139, 0.7); }
.flow-step { transition: border-color 0.4s, box-shadow 0.4s, background-color 0.4s; }
.flow-step.is-lit { border-color: rgba(255, 61, 139, 0.4); box-shadow: 0 20px 50px -30px rgba(255, 61, 139, 0.9); }
.flow-step.is-lit .flow-num { color: rgba(255, 61, 139, 0.35); }
@media (max-width: 900px) { .flow-line { display: none; } }

/* Download card: a light runs around the border */
.glow-border {
  border: 1px solid transparent;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(255, 61, 139, 0.12), transparent 60%) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--angle), rgba(255, 255, 255, 0.08) 0deg, #ff3d8b 60deg, #a855f7 120deg, rgba(255, 255, 255, 0.08) 180deg, rgba(255, 255, 255, 0.08) 360deg) border-box;
  animation: spin-border 6s linear infinite;
}
@keyframes spin-border { to { --angle: 360deg; } }

/* Soft glow that follows the cursor (desktop with a mouse only; added by site.js) */
.cursor-glow { position: fixed; left: 0; top: 0; z-index: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 61, 139, 0.09), transparent 60%); transform: translate3d(var(--cgx, -999px), var(--cgy, -999px), 0); mix-blend-mode: screen; }
main, .site-footer { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .aurora i, .floor, .grad, .chip, .marquee-track, .glow-border { animation: none !important; }
  [data-split] .w { opacity: 1; transform: none; filter: none; }
  .window { transform: none !important; }
  .reveal.pre { opacity: 1; transform: none; filter: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track li[aria-hidden="true"] { display: none; }
  .marquee-wrap { -webkit-mask-image: none; mask-image: none; }
  .cursor-glow, .starfield { display: none; }
}
