/* Sub Manager - marketing site
   Design language deliberately matches the app + admin panel: near-black
   surface, amber accent, status colors (emerald/amber/sky/red) borrowed
   directly from the product itself - so the site never feels like a
   generic template bolted onto the app. */

:root {
  --bg: #07070a;
  --bg-soft: #0c0c10;
  --surface: #121216;
  --surface-2: #17171c;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f7f7f5;
  --text-dim: #a6a6ad;
  --text-faint: #6f6f78;
  --accent: #2f7fe0;
  --accent-2: #5eb3ff;
  --violet: #8b7cf6;
  --blue: #3987e5;
  --good: #10b981;
  --warn: #f59e0b;
  --info: #38bdf8;
  --critical: #ef4444;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.65);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

button, input, textarea, select {
  font-family: inherit;
}

h1, h2, h3, h4 {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(56, 150, 255, 0.35);
  color: #fff;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
}

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

/* ---------- background ambience ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-fx span {
  position: absolute;
  border-radius: 9999px;
  filter: blur(110px);
}
.bg-fx .b1 { width: 46rem; height: 46rem; top: -20rem; left: -14rem; background: var(--accent); opacity: 0.16; }
.bg-fx .b2 { width: 40rem; height: 40rem; top: 10rem; right: -18rem; background: var(--blue); opacity: 0.13; }
.bg-fx .b3 { width: 38rem; height: 38rem; bottom: -20rem; left: 20%; background: var(--violet); opacity: 0.11; }
.bg-fx .grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black 10%, transparent 70%);
}

main, header, footer {
  position: relative;
  z-index: 1;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 7, 10, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  font-family: 'Manrope', sans-serif;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px -6px rgba(47, 127, 224, 0.55);
}
.brand-mark img { width: 100%; height: 100%; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #10100a;
  box-shadow: 0 10px 30px -10px rgba(47, 127, 224, 0.55);
}
.btn-primary:hover { box-shadow: 0 14px 36px -8px rgba(47, 127, 224, 0.7); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--border-strong); }
.btn-lg { padding: 15px 28px; font-size: 15.5px; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ---------- hero ---------- */
.hero {
  padding: 88px 24px 40px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(56, 150, 255, 0.09);
  border: 1px solid rgba(56, 150, 255, 0.25);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 26px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  max-width: 880px;
  margin: 0 auto;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent-2), var(--accent) 55%, #0f3d91);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 620px;
  margin: 26px auto 0;
  font-size: 18px;
  color: var(--text-dim);
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- phone mockup ---------- */
.phone-stage {
  margin-top: 72px;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}
.phone {
  width: 300px;
  border-radius: 40px;
  background: linear-gradient(180deg, #1c1c22, #0c0c10);
  padding: 14px;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-strong);
  transform: rotateX(4deg);
}
.phone-screen {
  background: var(--surface);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.phone-notch {
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-notch::before {
  content: '';
  width: 90px;
  height: 16px;
  border-radius: 999px;
  background: #000;
}
.app-topbar {
  padding: 6px 18px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-topbar .app-title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px; }
.app-topbar .app-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}
.app-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 14px 14px;
}
.app-stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
}
.app-stat .k { font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.app-stat .v { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 17px; margin-top: 3px; }
.app-stat .v.good { color: var(--good); }
.app-list { padding: 4px 14px 18px; display: flex; flex-direction: column; gap: 7px; }
.app-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 9px 11px;
}
.app-row .logo {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 12px; color: #10100a;
}
.app-row .meta { flex: 1; min-width: 0; }
.app-row .name { font-size: 13px; font-weight: 600; }
.app-row .sub { font-size: 11px; color: var(--text-faint); margin-top: 1px; }
.app-row .amt { font-size: 12.5px; font-weight: 600; color: var(--text-dim); text-align: right; }
.app-row .dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}

/* ---------- section shell ---------- */
section { padding: 96px 24px; }
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.section-head .eyebrow-sm {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
}
.section-head p {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 16.5px;
}

/* ---------- features ---------- */
.features-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0) 45%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- how it works ---------- */
.steps {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
.step { text-align: center; padding: 0 12px; }
.step-num {
  width: 46px; height: 46px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 16px;
  color: var(--accent-2);
}
.step h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- showcase ---------- */
.showcase {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.showcase.reverse .showcase-copy { order: 2; }
.showcase.reverse .showcase-visual { order: 1; }
.showcase-copy .eyebrow-sm {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.showcase-copy h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; margin-bottom: 16px; }
.showcase-copy p { color: var(--text-dim); font-size: 16px; margin-bottom: 22px; }
.showcase-copy ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.showcase-copy li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text); }
.showcase-copy li svg { flex-shrink: 0; margin-top: 2px; color: var(--good); }
.browser-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.currency-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px; }
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 0 20px 20px;
}
.cal-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 10.5px;
  color: var(--text-faint);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 4px;
  position: relative;
}
.cal-cell.hit { border-color: rgba(56, 150, 255, 0.4); background: rgba(56, 150, 255, 0.08); }
.cal-cell .mark { position: absolute; bottom: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; }

/* ---------- faq ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 15px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { transition: transform 0.2s ease; color: var(--accent-2); font-size: 20px; flex-shrink: 0; margin-left: 16px; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--text-dim); font-size: 14.5px; }

/* ---------- cta banner ---------- */
.cta-banner {
  max-width: var(--container);
  margin: 0 auto;
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
  background: radial-gradient(120% 160% at 50% -20%, rgba(47, 127, 224, 0.18), transparent 60%), var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.cta-banner p { color: var(--text-dim); margin-top: 14px; font-size: 16px; }
.cta-banner .hero-cta { margin-top: 30px; }

/* ---------- footer ---------- */
footer {
  padding: 60px 24px 30px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { color: var(--text-faint); font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14.5px; color: var(--text-dim); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--container);
  margin: 46px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-faint);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- legal page ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.legal h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.legal .updated { color: var(--text-faint); font-size: 13.5px; margin-top: 10px; }
.legal h2 { font-size: 20px; font-weight: 700; margin-top: 44px; margin-bottom: 14px; }
.legal p, .legal li { color: var(--text-dim); font-size: 15px; line-height: 1.75; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.legal .callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 14.5px;
  color: var(--text-dim);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .showcase, .showcase.reverse { grid-template-columns: 1fr; gap: 36px; }
  .showcase.reverse .showcase-copy, .showcase.reverse .showcase-visual { order: initial; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  section { padding: 72px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-banner { padding: 48px 24px; }
}

/* ---------- mobile nav ---------- */
.nav-toggle {
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span { width: 16px; height: 2px; background: var(--text); border-radius: 2px; }
.mobile-menu {
  position: fixed;
  top: 70px;
  left: 16px;
  right: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 60;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a { padding: 13px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--text); }
.mobile-menu a:hover { background: rgba(255, 255, 255, 0.05); }
.mobile-menu .btn { margin-top: 10px; width: 100%; }
@media (min-width: 681px) {
  .mobile-menu { display: none; }
}

/* ================= premium motion pass ================= */

/* scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), #0f3d91);
  z-index: 100;
  transition: width 0.08s linear;
  box-shadow: 0 0 12px rgba(56, 150, 255, 0.6);
}

/* film-grain texture over the ambient blobs - the small bit of imperfection
   that keeps a smooth gradient background from reading as a flat template */
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* hero entrance sequence - pure CSS, runs the instant the page paints so it
   never depends on JS or scroll position. */
.hero > * {
  opacity: 0;
  animation: heroUp 0.8s cubic-bezier(.16,1,.3,1) forwards;
}
.hero > *:nth-child(1) { animation-delay: 0.05s; }
.hero > *:nth-child(2) { animation-delay: 0.14s; }
.hero > *:nth-child(3) { animation-delay: 0.23s; }
.hero > *:nth-child(4) { animation-delay: 0.32s; }
.hero > *:nth-child(5) { animation-delay: 0.40s; }
.hero > *:nth-child(6) { animation-delay: 0.48s; }
.hero > *:nth-child(7) { animation-delay: 0.56s; }
@keyframes heroUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav {
  animation: navIn 0.6s cubic-bezier(.16,1,.3,1) both;
}
@keyframes navIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* cursor-follow spotlight in the hero */
.hero { position: relative; overflow: hidden; }
.spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 0%), rgba(56, 150, 255, 0.15), transparent 55%);
  transition: background 0.15s ease;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

/* button shine sweep + magnetic feel */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-220%) skewX(-15deg);
  transition: transform 0.65s ease;
  pointer-events: none;
}
.btn:hover::before { transform: translateX(260%) skewX(-15deg); }
.btn.magnetic { transition: transform 0.15s ease-out, box-shadow 0.18s ease; will-change: transform; }

/* platform row under the hero CTA */
.platform-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-faint);
}
.platform-chip svg { opacity: 0.75; }

/* floating notification toast beside the hero phone */
.phone-wrap { position: relative; display: inline-block; }
.toast {
  position: absolute;
  top: -16px;
  right: -54px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 218px;
  background: rgba(23, 23, 28, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 12px 13px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast-dot {
  width: 8px; height: 8px; border-radius: 50%;
  margin-top: 5px; flex-shrink: 0;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(56, 150, 255, 0.2);
}
.toast-text { font-size: 12.5px; color: var(--text); line-height: 1.4; }
.toast-text b { font-family: 'Manrope', sans-serif; }
@media (max-width: 720px) {
  .toast { position: static; width: 100%; margin: 18px auto 0; transform: none; }
  .toast.show { transform: none; }
}

/* status pills (matches the app's own StatusBadge language) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill-active { background: rgba(16,185,129,.14); color: #34d399; }
.pill-trial { background: rgba(56,189,248,.14); color: #38bdf8; }
.pill-expired { background: rgba(245,158,11,.14); color: #f59e0b; }
.pill-failed { background: rgba(239,68,68,.14); color: #f87171; }
.pill-paused { background: rgba(148,163,184,.14); color: #94a3b8; }

/* screens gallery */
.screens-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.screens-row .phone { width: 264px; }
.screen-caption {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
}
.detail-hero {
  padding: 22px 16px 10px;
  text-align: center;
}
.detail-hero .logo-lg {
  width: 52px; height: 52px; border-radius: 14px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 20px; color: #fff;
  background: linear-gradient(135deg,#e5484d,#b91c2f);
}
.detail-hero .name { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 16px; }
.detail-rows { padding: 6px 16px 18px; display: flex; flex-direction: column; gap: 9px; }
.detail-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 12px;
}
.detail-row .lbl { color: var(--text-faint); }
.detail-row .val { font-weight: 600; color: var(--text); }
.detail-cancel {
  margin: 4px 16px 16px;
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(239,68,68,.3);
  color: #f87171;
  font-size: 12.5px;
  font-weight: 600;
}

/* count-up targets should not flash their literal fallback text before JS runs */
[data-count] { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .hero > *, .nav, .reveal, .toast { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ================= hero phone fan + richer scroll reveal ================= */

.phone-stage {
  margin-top: 72px;
  display: flex;
  justify-content: center;
}
.phone-fan {
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-fan .phone-side {
  width: 220px;
  flex-shrink: 0;
  opacity: 0.85;
  filter: brightness(0.82) saturate(0.92);
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}
.phone-fan .phone-side .phone-screen { height: 100%; }
.phone-fan .phone-left {
  margin-right: -58px;
  transform: translateY(28px) rotate(-10deg) scale(0.86);
  z-index: 1;
  animation: fanInLeft 1s cubic-bezier(.16,1,.3,1) both;
  animation-delay: 0.85s;
}
.phone-fan .phone-right {
  margin-left: -58px;
  transform: translateY(28px) rotate(10deg) scale(0.86);
  z-index: 1;
  animation: fanInRight 1s cubic-bezier(.16,1,.3,1) both;
  animation-delay: 0.85s;
}
.phone-fan:hover .phone-left { transform: translateY(20px) rotate(-13deg) scale(0.87); opacity: 0.95; filter: none; }
.phone-fan:hover .phone-right { transform: translateY(20px) rotate(13deg) scale(0.87); opacity: 0.95; filter: none; }
.phone-fan .phone-main-wrap {
  z-index: 3;
  animation: fanInMain 0.9s cubic-bezier(.16,1,.3,1) both;
  animation-delay: 0.58s;
  transition: transform 0.35s ease;
}
.phone-fan:hover .phone-main-wrap { transform: translateY(-6px); }

@keyframes fanInLeft {
  from { opacity: 0; transform: translateY(28px) translateX(50px) rotate(-10deg) scale(0.7); }
  to   { opacity: 0.85; transform: translateY(28px) translateX(0) rotate(-10deg) scale(0.86); }
}
@keyframes fanInRight {
  from { opacity: 0; transform: translateY(28px) translateX(-50px) rotate(10deg) scale(0.7); }
  to   { opacity: 0.85; transform: translateY(28px) translateX(0) rotate(10deg) scale(0.86); }
}
@keyframes fanInMain {
  from { opacity: 0; transform: translateY(24px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
/* the fan replaces the generic hero-child stagger for this element - it has
   its own richer, multi-part entrance instead. */
.hero > .phone-stage { opacity: 1; animation: none; }

.calendar-grid.mini {
  grid-template-columns: repeat(5, 1fr);
  padding: 4px 14px 16px;
  gap: 5px;
}
.calendar-grid.mini .cal-cell { font-size: 9px; padding: 3px; }

@media (max-width: 760px) {
  .phone-fan .phone-side { display: none; }
}

/* ---------- richer, staggered scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.97);
  filter: blur(6px);
  transition: opacity 0.75s cubic-bezier(.16,1,.3,1), transform 0.75s cubic-bezier(.16,1,.3,1), filter 0.75s ease;
}
.reveal.in { opacity: 1; transform: none; filter: blur(0); }

.features-grid .feature-card:nth-child(1) { transition-delay: 0s; }
.features-grid .feature-card:nth-child(2) { transition-delay: .07s; }
.features-grid .feature-card:nth-child(3) { transition-delay: .14s; }
.features-grid .feature-card:nth-child(4) { transition-delay: .21s; }
.features-grid .feature-card:nth-child(5) { transition-delay: .28s; }
.features-grid .feature-card:nth-child(6) { transition-delay: .35s; }

.steps .step:nth-child(1) { transition-delay: 0s; }
.steps .step:nth-child(2) { transition-delay: .12s; }
.steps .step:nth-child(3) { transition-delay: .24s; }

.screens-row > div:nth-child(1) { transition-delay: 0s; }
.screens-row > div:nth-child(2) { transition-delay: .14s; }

.faq-list .faq-item:nth-child(1) { transition-delay: 0s; }
.faq-list .faq-item:nth-child(2) { transition-delay: .05s; }
.faq-list .faq-item:nth-child(3) { transition-delay: .10s; }
.faq-list .faq-item:nth-child(4) { transition-delay: .15s; }
.faq-list .faq-item:nth-child(5) { transition-delay: .20s; }
.faq-list .faq-item:nth-child(6) { transition-delay: .25s; }

@media (prefers-reduced-motion: reduce) {
  .phone-fan .phone-left, .phone-fan .phone-right, .phone-fan .phone-main-wrap { animation: none !important; }
}


/* ================= real screenshots + GSAP/Lenis motion pass ================= */

/* Phone frames that contain a real app screenshot instead of a hand-drawn
   mockup: the image is the full screen, clipped by the existing rounded
   phone-screen frame. Real device screenshots already include their own
   status bar, so these frames skip the fake .phone-notch pill. */
.phone-screen.shot { line-height: 0; }
.phone-screen.shot img { width: 100%; height: auto; display: block; }

/* Generic glassmorphism utility, layered on top of the existing surface
   system for anything that should read as "floating" above the page. */
.glass {
  background: rgba(23, 23, 28, 0.6);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-lg);
}

/* Floating live-stat card beside the hero phone, mirroring the real numbers
   visible in the dashboard screenshot (kept in sync deliberately - see
   index.html - so it never contradicts the screenshot it sits next to). */
.stat-float {
  position: absolute;
  left: -78px;
  bottom: 34px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 16px;
  min-width: 118px;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  animation: statFloatIn 0.6s cubic-bezier(.16,1,.3,1) both;
  animation-delay: 1.9s;
}
.stat-float-row { display: flex; flex-direction: column; gap: 2px; }
.stat-float .sf-k { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); }
.stat-float .sf-v { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 19px; color: var(--text); font-variant-numeric: tabular-nums; }
@keyframes statFloatIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 760px) {
  .stat-float { position: static; margin: 16px auto 0; transform: none; animation: none; opacity: 1; }
}

/* 3D tilt targets - perspective lives on the parent, GSAP/JS drives the
   rotateX/rotateY on hover (script.js), this just makes the transition
   smooth for browsers/paths where JS falls back to a plain style write. */
.tilt-el { transition: transform 0.4s cubic-bezier(.16,1,.3,1); will-change: transform; }
.screens-row, .theme-strip { perspective: 1200px; }

/* Animated gradient hero headline - a slow shimmer instead of a static
   fill, so the gradient reads as an intentional, living accent. */
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent-2), var(--accent) 40%, #0f3d91 60%, var(--accent-2));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 7s ease-in-out infinite;
}
@keyframes gradShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Slow rotating color glow inside the CTA banner - contained by the
   banner's own overflow:hidden + border-radius, so it reads as an ambient
   wash rather than a hard ring. */
.cta-banner::before {
  content: '';
  position: absolute;
  inset: -60%;
  z-index: -1;
  background: conic-gradient(from 0deg, var(--accent), var(--violet), var(--blue), var(--accent-2), var(--accent));
  opacity: 0.22;
  filter: blur(50px);
  animation: spinGlow 16s linear infinite;
}
@keyframes spinGlow { to { transform: rotate(360deg); } }

/* Theme / personalization showcase strip */
.theme-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 34px;
  max-width: var(--container);
  margin: 0 auto;
}
.theme-item { text-align: center; }
.theme-phone { width: 148px; }
.theme-name {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}
.theme-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}
@media (max-width: 640px) {
  .theme-phone { width: 118px; }
  .theme-strip { gap: 22px; }
}

/* GSAP-driven reveal target: visible by default (progressive enhancement -
   if GSAP/ScrollTrigger fails to load or reduced-motion is on, content
   simply stays visible instead of getting stuck hidden). script.js hides
   these itself, only once it knows it can reveal them again on scroll. */
.reveal-gsap { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero h1 .grad, .cta-banner::before { animation: none !important; }
  .tilt-el { transition: none !important; }
}


/* ================= clickable hero phone mockups ================= */
/* The hero phones are now real <a href="#section"> links (JS intercepts
   the click for a Lenis-powered smooth scroll when available) - restore
   block layout and drop the underline/link styling an <a> brings by
   default, then add a small "tap to explore" affordance on hover so it
   reads as interactive rather than accidental. */
.phone-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}
.phone-link::after {
  content: 'Tap to explore \2192';
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(23, 23, 28, 0.88);
  border: 1px solid var(--border-strong);
  padding: 5px 12px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(8px);
  z-index: 5;
}
.phone-link:hover::after,
.phone-link:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (hover: none) {
  .phone-link::after { display: none; }
}
