/* River — simple site. Mirrors the app's default neutral dark theme (graphite
   ramp, white glass) with the River colorway accent, from
   rotom-ai/src/constants/theme.ts and colorways.ts. */

:root {
  --bg0: #1A1B1E; --bg1: #131416; --bg2: #0C0C0E;
  --accent: #3B9DF2; --accent-soft: #7CC0FF; --ice: 255 255 255;
  color-scheme: dark;
}

:root {
  --text: #fff;
  --body: #EDEDEF;
  --muted: rgb(var(--ice) / .58);
  --faint: rgb(var(--ice) / .36);
  --glass: rgb(var(--ice) / .055);
  --glass-line: rgb(var(--ice) / .08);
  --radius: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--body);
  background: var(--bg2);
  background-image: linear-gradient(180deg, var(--bg0) 0, var(--bg1) 900px, var(--bg2) 1800px);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s var(--ease);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--text); margin: 0; letter-spacing: -0.025em; line-height: 1.08; font-weight: 700; }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: #fff; color: #000; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 8px; }

/* App icons: squircle */
.brand-icon { border-radius: 22.5%; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 26px;
  border-radius: 999px;
  background: #fff; color: #0b0b0d;
  font-weight: 600; font-size: 16px;
  transition: transform .2s var(--ease), opacity .2s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; margin-top: -2px; }
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn:active { transform: scale(.98); }
.btn-small { height: 38px; padding: 0 18px 0 15px; font-size: 14px; gap: 7px; }
.btn-small svg { width: 16px; height: 16px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  background: color-mix(in srgb, var(--bg0) 72%, transparent);
  border-bottom: 1px solid rgb(var(--ice) / .06);
}
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; }
.nav-inner .brand { justify-self: start; }
.nav-inner .btn { justify-self: end; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.nav-links { display: flex; gap: 32px; font-size: 15px; color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { padding: 88px 0 0; text-align: center; overflow: hidden; }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero-icon { width: 96px; height: 96px; margin-bottom: 32px; box-shadow: 0 20px 50px -12px rgb(0 0 0 / .5); }
h1 { font-size: clamp(44px, 7.4vw, 84px); letter-spacing: -0.035em; }
.lead { max-width: 560px; margin-top: 22px; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.cta-row { margin-top: 36px; }
.fine { margin-top: 14px; font-size: 14px; color: var(--faint); }
.hero-device { margin-top: 72px; display: flex; justify-content: center; position: relative;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.hero-device::before {
  content: ""; position: absolute; inset: 10% 15% auto; height: 70%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 35%, transparent), transparent);
  filter: blur(40px); z-index: -1;
}
.hero-device .phone { width: min(340px, 78vw); margin-bottom: -18%; }

/* Phone frame */
.phone {
  padding: 9px;
  border-radius: 54px;
  background: #0a0a0c;
  box-shadow: 0 0 0 1px rgb(var(--ice) / .14), 0 40px 80px -30px rgb(0 0 0 / .7);
}
.phone img, .phone video { display: block; border-radius: 45px; width: 100%; height: auto; }

/* App preview video */
.preview-device { display: flex; justify-content: center; position: relative; }
.preview-device::before {
  content: ""; position: absolute; inset: 15% 20%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 28%, transparent), transparent);
  filter: blur(40px);
}
.preview-device .phone { width: min(340px, 78vw); }

/* Sections */
.section { padding: 120px 0; }
.section-tight { padding: 40px 0; }
.heading { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.heading h2, .row-text h2, .closing h2 { font-size: clamp(34px, 5vw, 52px); }
.heading p { margin-top: 14px; color: var(--muted); font-size: 18px; }

/* Glass card */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trio .card { display: flex; flex-direction: column; }
.card-text { padding: 32px 30px 0; }
.card-text h3 { font-size: 22px; letter-spacing: -0.015em; }
.card-text p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.card-text { padding-bottom: 32px; }
/* Pinned to the card bottom so phones line up even when copy wraps differently. */
.card-shot { margin-top: auto; padding: 0 36px; height: 340px; overflow: hidden; }
/* Same bezel as the other phones, cut off by the card's bottom edge. */
.card-shot .phone { padding: 8px 8px 0; border-radius: 48px 48px 0 0; }
.card-shot .phone img { border-radius: 40px 40px 0 0; }

/* Rows */
.rows { display: grid; gap: 140px; }
.row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.row-flip .row-text { order: 2; }
.row-text { max-width: 460px; }
.row-text p:not(.kicker) { margin-top: 18px; color: var(--muted); font-size: 18px; }
.kicker { color: var(--accent-soft); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.row-device { display: flex; justify-content: center; }
.row-device .phone { width: min(300px, 72vw); }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--glass-line); border-bottom: 1px solid var(--glass-line); }
.fact { padding: 36px 28px; display: grid; gap: 6px; }
.fact + .fact { border-left: 1px solid var(--glass-line); }
.fact strong { color: var(--text); font-size: 22px; letter-spacing: -0.015em; }
.fact span { color: var(--muted); font-size: 15px; line-height: 1.45; }

/* FAQ */
.faq { max-width: 760px; }
.faq-list { border-top: 1px solid var(--glass-line); }
details { border-bottom: 1px solid var(--glass-line); }
summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; color: var(--text); font-weight: 600; font-size: 18px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease);
}
details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
details p { padding: 0 0 26px; color: var(--muted); max-width: 640px; }

/* Closing */
.closing { text-align: center; }
.closing .wrap { display: flex; flex-direction: column; align-items: center; }
.closing-icon { width: 88px; height: 88px; margin-bottom: 28px; box-shadow: 0 20px 50px -12px rgb(0 0 0 / .5); }
.closing p { margin: 16px 0 36px; color: var(--muted); font-size: 18px; }

/* Footer */
.footer { border-top: 1px solid var(--glass-line); padding: 32px 0 48px; font-size: 14px; color: var(--faint); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 24px; }
.footer a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 900px) {
  .trio { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .row, .row-flip { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .row-flip .row-text { order: 0; }
  .row-text { margin-inline: auto; }
  .rows { gap: 110px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--glass-line); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 56px; }
  .section { padding: 88px 0; }
  .card-text { padding: 26px 24px 28px; }
  .card-shot { padding: 0 28px; height: 300px; }
  .fact { padding: 26px 16px; }
  .fact strong { font-size: 19px; }
  summary { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
