/* Bouncr landing — dark-neon */
:root {
  --bg: #0a0d14;
  --bg-2: #0e1422;
  --panel: #11172a;
  --panel-2: #161e36;
  --line: #1d2742;
  --ink: #e7ecf7;
  --ink-2: #aab3c8;
  --ink-3: #6b7591;
  --accent: #5aa7ff;
  --cyan: #66e5ff;
  --warm: #f28d4d;
  --good: #6cf3a5;
  --danger: #ff6b8a;
  --shadow-cyan: 0 0 24px rgba(102, 229, 255, .35), 0 0 64px rgba(90, 167, 255, .18);
  --shadow-warm: 0 0 24px rgba(242, 141, 77, .32);
  --r: 14px;
  --r-sm: 8px;
  --r-lg: 22px;
  --maxw: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(60% 40% at 20% 0%, rgba(90, 167, 255, .14), transparent 70%),
    radial-gradient(50% 35% at 90% 10%, rgba(102, 229, 255, .10), transparent 70%),
    radial-gradient(40% 30% at 50% 100%, rgba(242, 141, 77, .08), transparent 70%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

/* ---------- Layout ---------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: .02em; font-size: 17px; color: var(--ink);
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(102, 229, 255, .35));
}

.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--ink-2); font-size: 14px; }
.nav-links a:hover { color: var(--cyan); text-decoration: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 32px var(--gutter) 96px;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 64px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(102, 229, 255, .08), rgba(90, 167, 255, .03));
  color: var(--cyan);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}

h1.title {
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 18px 0 12px;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 0%, #c9d6f5 60%, #6e7da3 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
h1.title .em {
  background: linear-gradient(90deg, var(--cyan), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 36px rgba(102, 229, 255, .35);
}

.tag {
  font-size: 18px; color: var(--ink-2); margin: 0 0 24px;
  letter-spacing: .02em;
}
.tag .dot { color: var(--accent); }

.lede { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; margin: 0 0 28px; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.app-store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, #161e36, #0d1224);
  color: var(--ink);
  box-shadow: var(--shadow-cyan);
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease;
}
.app-store:hover { transform: translateY(-1px); text-decoration: none; box-shadow: 0 0 28px rgba(102, 229, 255, .55), 0 0 64px rgba(90, 167, 255, .2); }
.app-store .small { font-size: 11px; color: var(--ink-3); display: block; line-height: 1; margin-bottom: 2px; }
.app-store .big { font-size: 17px; line-height: 1; }

.cta-secondary {
  padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink); background: transparent; font-size: 14px;
}
.cta-secondary:hover { border-color: var(--accent); text-decoration: none; }

.soon { font-size: 12px; color: var(--ink-3); margin-left: 4px; }

/* Phone frame */
.phone {
  position: relative;
  width: 280px; aspect-ratio: 9/19.5;
  border-radius: 38px;
  border: 8px solid #0c1120;
  box-shadow:
    0 0 0 2px #1d2742,
    0 30px 80px -20px rgba(0, 0, 0, .6),
    var(--shadow-cyan);
  overflow: hidden;
  background: #000;
  margin: 0 auto;
}
.phone::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; background: #0c1120;
  border-radius: 0 0 14px 14px;
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; }

.hero-orbits {
  position: absolute; inset: -80px -120px -40px auto; width: 540px; height: 540px;
  pointer-events: none; opacity: .55; z-index: -1;
}
.hero-orbits::before, .hero-orbits::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(102, 229, 255, .25);
}
.hero-orbits::after { inset: 60px; border-color: rgba(90, 167, 255, .22); }

/* ---------- Sections ---------- */

section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
h2.h {
  font-size: clamp(26px, 3.2vw, 38px);
  margin: 0 0 8px; letter-spacing: -.01em; color: var(--ink);
}
.kicker { color: var(--cyan); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.sub { color: var(--ink-2); margin-top: 8px; max-width: 60ch; margin-inline: auto; }

/* Feature grid */
.features {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.feature {
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.1)) , var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(102, 229, 255, .18), rgba(90, 167, 255, .08));
  display: grid; place-items: center; margin-bottom: 14px;
  border: 1px solid var(--line);
  color: var(--cyan);
}
.feature h3 { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
.feature p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }

/* Screenshot carousel — horizontal scroll-snap with phone frames */
.shots-section { padding: 80px 0 96px; }

.shots-rail {
  --shot-w: clamp(240px, 28vw, 340px);
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.shots-rail::-webkit-scrollbar { display: none; }

/* Edge fade so the rail visually bleeds into the page */
.shots-section { position: relative; }
.shots-section::before, .shots-section::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(40px, 8vw, 120px);
  pointer-events: none; z-index: 2;
}
.shots-section::before { left: 0;  background: linear-gradient(90deg, var(--bg) 0%, transparent 100%); }
.shots-section::after  { right: 0; background: linear-gradient(270deg, var(--bg) 0%, transparent 100%); }

.shots-track {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  padding: 24px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  width: max-content;
}

.shot {
  position: relative;
  flex: 0 0 var(--shot-w);
  width: var(--shot-w);
  aspect-ratio: 9 / 19.5;
  margin: 0;
  border-radius: 36px;
  border: 7px solid #0c1120;
  background: #000;
  box-shadow:
    0 0 0 2px var(--line),
    0 28px 70px -22px rgba(0, 0, 0, .55),
    var(--shadow-cyan);
  overflow: hidden;
  scroll-snap-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.shot::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 78px; height: 18px; background: #0c1120;
  border-radius: 0 0 12px 12px;
}
.shot:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 2px var(--accent),
    0 32px 80px -22px rgba(0, 0, 0, .6),
    0 0 28px rgba(102, 229, 255, .55);
}
.shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 28px;
}

/* Fairness panel */
.fair {
  padding: 44px;
  background: radial-gradient(120% 120% at 0% 0%, rgba(90, 167, 255, .08), transparent 60%), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.fair h2 { margin-top: 0; }
.fair-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 16px 0 0; padding: 0; list-style: none; }
.fair-list li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15px; }
.fair-list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--good); box-shadow: 0 0 10px var(--good);
  flex-shrink: 0; margin-top: 9px;
}

/* Footer */
footer.footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--line);
  margin-top: 32px;
  color: var(--ink-3);
  font-size: 14px;
}
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--ink-2); }
.footer-mail { color: var(--ink-2); }

/* ---------- Doc pages (support / privacy) ---------- */

.doc {
  max-width: 720px; margin: 0 auto; padding: 24px 24px 80px;
}
.doc h1 {
  font-size: clamp(28px, 3vw, 40px);
  margin: 16px 0 8px; letter-spacing: -.01em;
}
.doc h2 {
  font-size: 20px; margin: 36px 0 8px; color: var(--ink);
  border-bottom: 1px solid var(--line); padding-bottom: 8px;
}
.doc h3 { font-size: 16px; margin: 20px 0 4px; color: var(--ink); }
.doc p, .doc li { color: var(--ink-2); line-height: 1.65; font-size: 16px; }
.doc strong { color: var(--ink); }
.doc .meta { color: var(--ink-3); font-size: 13px; margin-bottom: 24px; }
.doc ul { padding-left: 20px; }
.doc .callout {
  margin: 24px 0;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(102, 229, 255, .06), transparent);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 15px;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 56px;
  }
  .hero-art { order: -1; }
  .phone { width: 240px; }
  .features { grid-template-columns: 1fr 1fr; }
  .fair-list { grid-template-columns: 1fr; }
  .shots-rail { --shot-w: 78vw; }
}

@media (max-width: 540px) {
  .features { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  section { padding: 56px 0; }
  .shots-section { padding: 56px 0 64px; }
  .fair { padding: 28px; }
  .shots-rail { --shot-w: 82vw; }
  .shots-track { padding: 16px var(--gutter); gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0s !important; transition-duration: 0s !important; }
  video[autoplay] { display: none; }
  .phone img.poster-fallback { display: block; }
}
