/* ============================================================
   SocioFi Promote — marketing site
   Mobile-first. Light/dark theme. No build step.
   Brand tokens mirror frontend/src/index.css
   ============================================================ */

/* === TOKENS: dark (default) === */
:root {
  --bg:        #0C0C1D;
  --surface:   #111128;
  --surface2:  #13132B;
  --elevated:  #1a1a35;
  --border:    #2a2a4a;
  --border-hi: #3a3a5f;
  --text:      #E8E8F5;
  --sec:       #A0A0C0;
  --dim:       #6B6B8A;
  --pink:      #E85DA0;
  --pink-hi:   #F47286;
  --pink-lt:   #F9BBD0;
  --navy:      #3A589E;
  --teal:      #59A392;
  --amber:     #E8BB4D;
  --green:     #4ADE80;
  --grad:      linear-gradient(135deg, #3A589E, #E85DA0);
  --grad-strip:linear-gradient(90deg, #0C0C1D, #3A589E, #E85DA0, #F47286, #59A392);
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

/* === TOKENS: light === */
[data-theme="light"] {
  --bg:        #F5F4FF;
  --surface:   #FFFFFF;
  --surface2:  #EEEDFA;
  --elevated:  #E4E2F7;
  --border:    #D5D3E8;
  --border-hi: #B0ADCE;
  --text:      #1A1A2E;
  --sec:       #5A5A7A;
  --dim:       #9090AA;
  --pink-lt:   #C0185A;
  --grad-strip:linear-gradient(90deg, #F5F4FF, #3A589E, #E85DA0, #F47286, #59A392);
  color-scheme: light;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.2s ease;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* === ATMOSPHERIC BG === */
.bg-atmos {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(232,93,160,0.16), transparent 60%),
    radial-gradient(50rem 40rem at 0% 10%, rgba(58,88,158,0.18), transparent 55%),
    radial-gradient(40rem 30rem at 50% 110%, rgba(89,163,146,0.10), transparent 60%),
    var(--bg);
  transition: background 0.3s ease;
}
[data-theme="light"] .bg-atmos {
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(232,93,160,0.06), transparent 60%),
    radial-gradient(50rem 40rem at 0% 10%, rgba(58,88,158,0.07), transparent 55%),
    radial-gradient(40rem 30rem at 50% 110%, rgba(89,163,146,0.05), transparent 60%),
    var(--bg);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 30%, transparent 80%);
}
[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.035) 1px, transparent 1px);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: 'Syne', system-ui, sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
.eyebrow {
  font-family: 'Fira Code', monospace; font-size: 0.7rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--pink); display: inline-flex; align-items: center; gap: 0.55rem;
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--pink); opacity: 0.7; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.9rem;
  padding: 0.65rem 1.2rem; border-radius: 12px; border: 1px solid transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 28px -8px rgba(232,93,160,0.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px -8px rgba(232,93,160,0.65); }
.btn-ghost {
  background: rgba(128,128,160,0.06); color: var(--text); border-color: var(--border);
  transition: border-color 0.2s, background 0.2s, transform 0.18s var(--ease);
}
.btn-ghost:hover { border-color: var(--border-hi); background: rgba(128,128,160,0.1); transform: translateY(-2px); }
[data-theme="light"] .btn-ghost { background: rgba(26,26,46,0.05); }
[data-theme="light"] .btn-ghost:hover { background: rgba(26,26,46,0.09); }
.btn-lg { padding: 0.88rem 1.55rem; font-size: 0.98rem; border-radius: 14px; }

/* === NAV === */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { background: rgba(12,12,29,0.82); border-bottom-color: var(--border); }
[data-theme="light"] .nav.scrolled { background: rgba(245,244,255,0.88); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 10px; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.05rem; flex-shrink: 0; }
.brand img { width: 26px; height: 26px; }
.brand .sub { color: var(--pink); }

/* Nav links: hidden on mobile, expanded on desktop */
.nav-links { display: none; }
.nav-cta { display: none; align-items: center; gap: 0.7rem; }
.nav-links a.link { color: var(--sec); font-size: 0.88rem; font-weight: 500; transition: color 0.2s; }
.nav-links a.link:hover { color: var(--text); }

/* Right-side controls (always visible) */
.nav-right { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  background: none; border: 1px solid var(--border); border-radius: 10px;
  padding: 7px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--sec); transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.theme-toggle:hover { border-color: var(--border-hi); color: var(--text); }
.theme-toggle svg { width: 16px; height: 16px; }
/* In dark mode: show moon. In light mode: show sun. */
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

.nav-toggle {
  background: none; border: 1px solid var(--border); border-radius: 10px;
  padding: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s;
}
.nav-toggle svg { width: 18px; height: 18px; stroke: var(--text); }
.nav-toggle:hover { border-color: var(--border-hi); }

/* Mobile nav drawer */
.nav.open .nav-links {
  display: flex; position: absolute; top: 60px; left: 0; right: 0;
  flex-direction: column; align-items: stretch; gap: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 4px 20px 16px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: background 0.25s;
}
.nav.open .nav-links .link {
  display: block; padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
}
.nav.open .nav-links .link:last-of-type { border-bottom: none; }
.nav.open .nav-cta {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 0 4px;
}
.nav.open .nav-cta .btn { justify-content: center; }

/* Desktop nav */
@media (min-width: 768px) {
  .nav-inner { height: 68px; }
  .nav-toggle { display: none; }
  .nav-links {
    display: flex; align-items: center; gap: 2rem;
    flex: 1; justify-content: center;
  }
  .nav-cta { display: flex; }
  .nav.open .nav-links {
    position: static; flex-direction: row; background: none; border: none;
    padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .nav.open .nav-links .link {
    border-bottom: none; padding: 0; font-size: 0.88rem; display: inline;
  }
  .nav.open .nav-cta { flex-direction: row; padding: 0; }
}

/* === SECTIONS === */
section { position: relative; padding: 60px 0; }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.75rem, 5vw, 2.8rem); margin: 0.75rem 0 0.65rem; }
.section-head p { color: var(--sec); font-size: 0.98rem; }
.center { margin-left: auto; margin-right: auto; text-align: center; max-width: 640px; }
.center .eyebrow { justify-content: center; }

@media (min-width: 768px) {
  section { padding: 88px 0; }
  .section-head { margin-bottom: 52px; }
  .section-head p { font-size: 1.05rem; }
}

/* === HERO === */
.hero { padding: 48px 0 36px; text-align: center; }
.hero h1 { font-size: clamp(2.1rem, 7.5vw, 4.8rem); margin: 1.1rem auto 1rem; max-width: 17ch; }
.hero .lede {
  color: var(--sec); font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  max-width: 52ch; margin: 0 auto 1.8rem;
}
.hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 0.9rem; color: var(--dim); font-size: 0.78rem; font-family: 'Fira Code', monospace; }

/* Loop pills: horizontal scroll on mobile */
.loop-pills {
  display: flex; gap: 0.38rem; margin: 2rem 0 0;
  overflow-x: auto; padding-bottom: 6px;
  -ms-overflow-style: none; scrollbar-width: none;
  justify-content: flex-start;
}
.loop-pills::-webkit-scrollbar { display: none; }
.loop-pills .pill {
  font-family: 'Fira Code', monospace; font-size: 0.82rem; letter-spacing: 0.05em;
  color: var(--sec); border: 1px solid var(--border); border-radius: 999px;
  padding: 0.48rem 1.1rem; background: rgba(128,128,160,0.04);
  display: inline-flex; align-items: center; flex-shrink: 0;
  transition: none; /* animation handles state */
}
.loop-pills .arrow { color: var(--dim); align-self: center; flex-shrink: 0; font-size: 0.9rem; }

/* Sequential pipeline animation
   Pills at nth-child: 1 3 5 7 9 11 13  (arrows at 2 4 6 8 10 12)
   Each pill/arrow fires 0.8 s apart; arrows halfway between neighbours.
   Total cycle = 5.6 s (7 × 0.8 s). */
@keyframes pill-glow {
  0%   { background: rgba(128,128,160,0.04); border-color: var(--border);         color: var(--sec);  box-shadow: none; }
  6%   { background: rgba(232,93,160,0.16);  border-color: rgba(232,93,160,0.8);  color: var(--text); box-shadow: 0 0 16px rgba(232,93,160,0.4), inset 0 0 6px rgba(232,93,160,0.06); }
  13%  { background: rgba(128,128,160,0.04); border-color: var(--border);         color: var(--sec);  box-shadow: none; }
  100% { background: rgba(128,128,160,0.04); border-color: var(--border);         color: var(--sec);  box-shadow: none; }
}
@keyframes arrow-glow {
  0%   { color: var(--dim);  opacity: 0.45; }
  6%   { color: var(--pink); opacity: 1; }
  13%  { color: var(--dim);  opacity: 0.45; }
  100% { color: var(--dim);  opacity: 0.45; }
}

.loop-pills .pill  { animation: pill-glow  5.6s ease-in-out infinite; }
.loop-pills .arrow { animation: arrow-glow 5.6s ease-in-out infinite; }

.loop-pills .pill:nth-child(1)   { animation-delay: 0s;   }
.loop-pills .pill:nth-child(3)   { animation-delay: 0.8s; }
.loop-pills .pill:nth-child(5)   { animation-delay: 1.6s; }
.loop-pills .pill:nth-child(7)   { animation-delay: 2.4s; }
.loop-pills .pill:nth-child(9)   { animation-delay: 3.2s; }
.loop-pills .pill:nth-child(11)  { animation-delay: 4.0s; }
.loop-pills .pill:nth-child(13)  { animation-delay: 4.8s; }

.loop-pills .arrow:nth-child(2)  { animation-delay: 0.4s; }
.loop-pills .arrow:nth-child(4)  { animation-delay: 1.2s; }
.loop-pills .arrow:nth-child(6)  { animation-delay: 2.0s; }
.loop-pills .arrow:nth-child(8)  { animation-delay: 2.8s; }
.loop-pills .arrow:nth-child(10) { animation-delay: 3.6s; }
.loop-pills .arrow:nth-child(12) { animation-delay: 4.4s; }

@media (min-width: 560px) {
  .loop-pills { justify-content: center; flex-wrap: wrap; overflow-x: visible; padding-bottom: 0; }
}
@media (min-width: 768px) {
  .hero { padding: 76px 0 56px; }
}

/* === DEVICE FRAMES ===
   Frames stay dark in both themes — they're always framing screenshots
   that may be either dark-app or light-app content. */
.browser {
  border-radius: 14px; overflow: hidden; background: #111128;
  border: 1px solid #2a2a4a;
  box-shadow: 0 32px 80px -20px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.02);
  transition: box-shadow 0.3s;
}
[data-theme="light"] .browser {
  box-shadow: 0 24px 64px -16px rgba(26,26,60,0.16), 0 0 0 1px rgba(0,0,0,0.04);
}
.browser-bar {
  display: flex; align-items: center; gap: 0.5rem; padding: 0 12px; height: 34px;
  background: #13132B; border-bottom: 1px solid #2a2a4a;
}
.browser-bar .dots { display: flex; gap: 5px; }
.browser-bar .dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.browser-bar .url {
  flex: 1; margin-left: 8px; height: 20px; border-radius: 6px;
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; padding: 0 10px; color: #6B6B8A;
  font-family: 'Fira Code', monospace; font-size: 0.66rem; max-width: 280px;
}
.browser-shot { aspect-ratio: 1440 / 900; width: 100%; }
.browser-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

.phone {
  width: 210px; border-radius: 32px; padding: 8px; background: #07070f;
  border: 1px solid #2a2a4a;
  box-shadow: 0 32px 70px -20px rgba(0,0,0,0.7);
  position: relative; transition: box-shadow 0.3s;
  flex-shrink: 0;
}
[data-theme="light"] .phone {
  box-shadow: 0 24px 60px -16px rgba(26,26,60,0.14);
}
.phone::before {
  content: ''; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(58px, 27%); height: 4px; border-radius: 3px; background: rgba(255,255,255,0.18); z-index: 2;
}
.phone-shot { aspect-ratio: 390 / 844; border-radius: 25px; overflow: hidden; background: #0C0C1D; }
.phone-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Hero showcase */
.showcase { position: relative; margin-top: 44px; }
.showcase .browser { max-width: 900px; margin: 0 auto; }
.showcase .glow {
  position: absolute; inset: -10% 5% -20% 5%; z-index: -1;
  background: radial-gradient(closest-side, rgba(232,93,160,0.2), transparent 70%);
  filter: blur(28px);
}
/* Phone hidden on small screens; shown inline on tablet; overlapping on desktop */
.showcase .phone { display: none; }
@media (min-width: 560px) {
  .showcase .phone {
    display: block; width: min(160px, 36vw);
    position: relative; margin: -28px auto 0; right: auto; bottom: auto;
  }
}
@media (min-width: 960px) {
  .showcase .phone {
    width: 210px;
    position: absolute; right: max(2%, calc(50% - 490px)); bottom: -28px; margin: 0;
  }
}

/* === LOOP CARDS (how it works) === */
.loop-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.loop-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px;
  position: relative; overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease), background-color 0.25s;
}
.loop-card:hover { border-color: var(--border-hi); transform: translateY(-3px); }
.loop-card .idx { font-family: 'Fira Code', monospace; font-size: 0.66rem; color: var(--dim); }
.loop-card h4 { font-family: 'Syne', sans-serif; font-size: 1.02rem; margin: 0.4rem 0 0.32rem; }
.loop-card p { color: var(--sec); font-size: 0.87rem; }
.loop-card .ic {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  margin-bottom: 12px; background: rgba(128,128,160,0.06); border: 1px solid var(--border);
}
.loop-card .ic svg { width: 18px; height: 18px; }
.loop-card::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: var(--grad); opacity: 0; transition: opacity 0.25s;
}
.loop-card:hover::after { opacity: 1; }

@media (min-width: 560px) { .loop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .loop-grid { grid-template-columns: repeat(3, 1fr); } }

/* === FEATURE ROWS === */
.feature { display: grid; grid-template-columns: 1fr; gap: 36px; }
.feature + .feature { margin-top: 64px; }
.feature h3 { font-size: clamp(1.35rem, 3.5vw, 2rem); margin: 0.75rem 0 0.75rem; }
.feature p { color: var(--sec); font-size: 0.96rem; margin-bottom: 1.1rem; }
.feature .pain {
  font-family: 'Fira Code', monospace; font-size: 0.74rem; color: var(--pink-lt);
  background: rgba(232,93,160,0.07); border: 1px solid rgba(232,93,160,0.18);
  border-radius: 10px; padding: 0.62rem 0.82rem; margin-bottom: 1.1rem; display: block;
}
[data-theme="light"] .feature .pain {
  background: rgba(232,93,160,0.06); border-color: rgba(232,93,160,0.22);
}
.checks { list-style: none; display: grid; gap: 0.55rem; }
.checks li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--text); font-size: 0.9rem; }
.checks li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--teal); }
.checks li.desktop-only { display: none; }

.feature-media { position: relative; order: -1; }
.feature-media .glow {
  position: absolute; inset: 0; z-index: -1; filter: blur(40px); opacity: 0.5;
  background: radial-gradient(closest-side, rgba(58,88,158,0.35), transparent 70%);
}
.media-stack { position: relative; }
.media-stack .phone { position: relative; width: min(150px, 38vw); margin: 14px auto 0; }

@media (min-width: 768px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .feature + .feature { margin-top: 96px; }
  .feature.reverse .feature-media { order: 2; }
  .feature-media { order: 0; }
  .media-stack .phone { position: absolute; right: -14px; bottom: -22px; width: 155px; margin: 0; }
  .checks li.desktop-only { display: flex; }
}
@media (min-width: 960px) {
  .feature { gap: 68px; }
}

/* === PRODUCT TOUR === */
.tour-tabs {
  display: inline-flex; gap: 4px; padding: 4px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  margin: 0 auto 8px; transition: background 0.25s, border-color 0.25s;
}
.tour-tabs button {
  font-family: 'Fira Code', monospace; font-size: 0.74rem; letter-spacing: 0.05em;
  color: var(--sec); background: none; border: none; cursor: pointer;
  padding: 0.48rem 1.1rem; border-radius: 999px; transition: all 0.2s;
}
.tour-tabs button.active { background: var(--grad); color: #fff; }
.tour-panel { margin-top: 28px; }
.tour-panel[hidden] { display: none; }
.shot-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.shot-grid.mobile { grid-template-columns: repeat(2, 1fr); gap: 16px; }
/* Phones inside the mobile tour grid must scale with the column width */
.shot-grid.mobile figure {
  display: flex; flex-direction: column; align-items: center; width: 100%; overflow: hidden;
}
.shot-grid.mobile .phone { width: 100%; max-width: 210px; flex-shrink: 1; }
.shot-cap { font-family: 'Fira Code', monospace; font-size: 0.7rem; color: var(--dim); margin-top: 10px; text-align: center; }

@media (min-width: 560px) {
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
  .shot-grid.mobile { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .shot-grid.mobile .phone { width: 210px; }
}

/* === STATS === */
.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--surface); padding: 28px 20px;
  transition: background 0.25s, border-color 0.25s;
}
.stat .n { font-family: 'Syne', sans-serif; font-size: 1.9rem; font-weight: 800; }
.stat .l { color: var(--sec); font-size: 0.82rem; margin-top: 3px; }

@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); padding: 36px 40px; gap: 24px; }
  .stat .n { font-size: 2.4rem; }
  .stat .l { font-size: 0.88rem; }
}

/* === CTA BAND === */
.cta-band {
  text-align: center; border-radius: 20px; padding: 48px 24px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(58,88,158,0.16), rgba(232,93,160,0.16));
  border: 1px solid var(--border);
  transition: background 0.25s, border-color 0.25s;
}
[data-theme="light"] .cta-band {
  background: linear-gradient(135deg, rgba(58,88,158,0.07), rgba(232,93,160,0.07));
}
.cta-band h2 { font-size: clamp(1.75rem, 4.5vw, 3rem); margin-bottom: 0.85rem; }
.cta-band p { color: var(--sec); font-size: 0.98rem; max-width: 44ch; margin: 0 auto 1.8rem; }

@media (min-width: 768px) {
  .cta-band { padding: 72px 40px; }
}

/* === FOOTER === */
footer { border-top: 1px solid var(--border); padding: 44px 0 32px; transition: border-color 0.25s; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.foot-grid > div:first-child { grid-column: 1 / -1; }
.foot-grid h5 {
  font-family: 'Fira Code', monospace; font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 10px;
}
.foot-grid a { display: block; color: var(--sec); font-size: 0.88rem; padding: 3px 0; transition: color 0.2s; }
.foot-grid a:hover { color: var(--text); }
.foot-grid p { color: var(--sec); font-size: 0.88rem; max-width: 26ch; margin-top: 10px; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border);
  color: var(--dim); font-size: 0.76rem; font-family: 'Fira Code', monospace;
  flex-wrap: wrap; gap: 10px;
}
.strip { height: 3px; background: var(--grad-strip); }

@media (min-width: 768px) {
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: auto; }
}

/* === SCROLL REVEAL === */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.07s; }
.reveal[data-d="2"] { transition-delay: 0.14s; }
.reveal[data-d="3"] { transition-delay: 0.21s; }
.reveal[data-d="4"] { transition-delay: 0.28s; }
.reveal[data-d="5"] { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
  body, .bg-atmos, .browser, .phone, .loop-card, .stats, .cta-band, footer { transition: none; }
  .loop-pills .pill, .loop-pills .arrow { animation: none; }
}

/* === HERO CTA: full-width on small screens === */
@media (max-width: 420px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}
