/* Rikuvo marketing site — hand-authored, no framework. Self-hosted Geist + Geist Mono. */

@font-face {
  font-family: 'Geist';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/Geist-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Geist';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/Geist-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Geist';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/Geist-SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Geist';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/Geist-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Geist Mono';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/GeistMono-Regular.ttf') format('truetype');
}

:root {
  --bg: #0a0a0b;
  --bg-soft: #131316;
  --border: #232328;
  --border-strong: #34343b;
  --fg: #f5f5f7;
  --fg-dim: #a1a1aa;
  --fg-faint: #80808a;
  --accent: #5dd39e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Geist', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(1100px 620px at 60% 8%, #17171b 0%, #0a0a0b 60%);
}

.mono, .mono-card h3 { font-family: 'Geist Mono', Menlo, monospace; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { max-width: 100%; }

/* Fireflies */
.ff { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.ff i {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  will-change: transform, opacity;
}

/* Nav */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 64px;
  position: sticky;
  top: 0;
  z-index: 20;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
nav.nav--compact {
  padding: 14px 64px;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 6px; }
.brand svg { width: 38px; height: 38px; color: #fff; display: block; }
.brand .wm svg { height: 22px; width: auto; display: block; color: #fff; }
.links { display: flex; gap: 30px; font-size: 14px; color: var(--fg-dim); }
.links a.on { color: var(--fg); }
.links a:hover { color: var(--fg); }
.cta { display: flex; gap: 10px; align-items: center; font-size: 13.5px; }

.pill, .ghost {
  display: inline-block;
  white-space: nowrap;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.pill {
  background: #fff;
  color: var(--bg);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.35);
}
.pill:hover { box-shadow: 0 0 50px rgba(255, 255, 255, 0.5); transform: translateY(-1px); }
.ghost {
  color: var(--fg);
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}
.ghost:hover { border-color: #fff; transform: translateY(-1px); }

/* Hero */
.hero { position: relative; text-align: center; padding: 118px 64px 0; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  color: var(--fg-dim);
}
.eyebrow i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
  animation: breathe 3s ease-in-out infinite;
}
h1 { font-size: 88px; font-weight: 700; letter-spacing: -0.04em; line-height: 0.98; margin-top: 26px; }
h2 { font-size: 46px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.lead { color: var(--fg-dim); font-size: 19px; max-width: 640px; margin: 24px auto 0; line-height: 1.5; }
.ctas { display: flex; justify-content: center; gap: 12px; margin-top: 34px; font-size: 14.5px; }

/* Word-by-word hero rise */
h1[data-rise] .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  filter: blur(6px);
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}
h1[data-rise].risen .word { opacity: 1; transform: translateY(0); filter: blur(0); }

/* Ticker */
.ticker {
  display: inline-flex; gap: 10px; align-items: center; margin-top: 22px;
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px 8px 10px;
  font-size: 13px; color: var(--fg-dim); background: rgba(19, 19, 22, 0.7);
  overflow: hidden;
}
.ticker i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent); flex: none;
}
.ticker span { display: inline-block; transition: transform 0.4s ease, opacity 0.4s ease; }
.ticker span.rolling-out { transform: translateY(-100%); opacity: 0; }
.ticker span.rolling-in { transform: translateY(0); opacity: 1; }

/* Studio frame */
.frame {
  margin: 0 auto; border-radius: 16px; background: var(--bg-soft);
  border: 1px solid var(--border-strong); overflow: hidden;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.08), 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 120px rgba(255, 255, 255, 0.05);
  transition: transform 0.1s linear;
}
.frame .bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  border-bottom: 1px solid var(--border); background: var(--bg);
}
.frame .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.frame .bar span { margin-left: 12px; font-size: 11px; color: var(--fg-faint); font-family: 'Geist Mono'; }
.frame img { width: 100%; display: block; }

section { padding: 110px 64px; position: relative; z-index: 1; }
.sec-h { max-width: 760px; margin: 0 auto 0 auto; }
section > .sec-h { margin-left: 0; }
.sec-h p { color: var(--fg-dim); font-size: 17px; line-height: 1.55; margin-top: 16px; }
.sec-p { color: var(--fg-dim); font-size: 17px; line-height: 1.55; margin-top: 16px; }
.kicker { font-size: 12.5px; font-weight: 500; color: var(--fg-faint); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.bring { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }

.card {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 18px; padding: 26px;
  position: relative; overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card p { color: var(--fg-dim); font-size: 14.5px; line-height: 1.5; margin-top: 10px; }
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.08), transparent 60%);
  transition: opacity 0.3s ease;
}
.card:hover::before { opacity: 1; }
.card[data-tilt] { transform-style: preserve-3d; will-change: transform; }
.num { font-family: 'Geist Mono'; font-size: 12px; color: var(--fg-faint); margin-bottom: 14px; }
.hr { height: 1px; background: var(--border); margin: 0 64px; }

/* Scroll reveal */
[data-reveal] {
  opacity: 0; transform: translateY(60px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].in { opacity: 1; transform: translateY(0); }

.stats { display: flex; gap: 64px; justify-content: center; padding: 70px 64px; position: relative; z-index: 1; }
.stats div { text-align: center; }
.stats b { font-size: 52px; font-weight: 700; letter-spacing: -0.04em; display: block; }
.stats span { color: var(--fg-dim); font-size: 14px; }

.motion {
  margin: 0 64px 64px; border: 1px dashed var(--border-strong); border-radius: 14px;
  padding: 22px 26px; font-size: 13px; color: var(--fg-dim); line-height: 1.6;
  position: relative; z-index: 1;
}
.motion .motion-h { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-faint); margin-bottom: 10px; }
.motion b { color: var(--fg); font-weight: 600; }
.motion .k { display: inline-block; font-family: 'Geist Mono'; font-size: 11px; color: var(--fg-faint); margin-right: 8px; }

footer {
  padding: 56px 64px; border-top: 1px solid var(--border); display: flex;
  justify-content: space-between; color: var(--fg-faint); font-size: 13px;
  position: relative; z-index: 1; flex-wrap: wrap; gap: 40px;
}
footer .foot-brand { display: flex; flex-direction: column; gap: 14px; }
footer .copy { display: block; }
footer .cols { display: flex; gap: 56px; }
footer .cols div { display: flex; flex-direction: column; }
footer b { display: block; color: var(--fg-dim); font-weight: 500; margin-bottom: 10px; }
footer a { display: block; margin-top: 6px; }
footer a:hover { color: var(--fg-dim); }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-weight: 500; color: var(--fg-faint); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; padding: 0 18px 14px; }
td { padding: 18px; border-top: 1px solid var(--border); transition: background 0.3s ease; }
td b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
td .per { color: var(--fg-faint); font-size: 13px; }
tr[data-row-active] td { background: rgba(255, 255, 255, 0.04); }
.tick { color: var(--accent); margin-right: 8px; }

/* Home: showcase, lanes, pricing preview */
.showcase { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.showcase.flip { grid-template-columns: 1fr 1.1fr; }

.pv { display: flex; gap: 16px; margin-top: 44px; }
.plan { flex: 1; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.plan.hot { border-color: #fff; box-shadow: 0 0 60px rgba(255, 255, 255, 0.08); }
.plan b { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; display: block; margin-top: 8px; }
.plan small { color: var(--fg-dim); font-size: 13.5px; }
.plan p { color: var(--fg-dim); font-size: 14px; line-height: 1.55; margin-top: 14px; }
.plan .from { font-size: 15px; font-weight: 400; color: var(--fg-dim); }
.tiers { margin-top: 18px; border-top: 1px solid var(--border); }
.tiers div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--fg-dim); }
.tiers div span:last-child { font-family: 'Geist Mono'; color: var(--fg); }

.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.lane {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 18px; padding: 30px;
  opacity: 0; transition: opacity 0.7s ease, transform 0.7s ease;
}
.lane[data-lane="left"] { transform: translateX(-40px); }
.lane[data-lane="right"] { transform: translateX(40px); }
.lane.in { opacity: 1; transform: translateX(0); }
.lanes:hover .lane:not(:hover) { opacity: 0.55; }
.lane .tag {
  display: inline-block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-faint); border: 1px solid var(--border-strong); border-radius: 999px; padding: 4px 10px;
}
.lane h3 { font-size: 26px; margin-top: 16px; letter-spacing: -0.02em; }
.lane p { color: var(--fg-dim); font-size: 15px; line-height: 1.6; margin-top: 12px; }
.chk { margin-top: 18px; font-size: 14px; color: var(--fg); line-height: 1.9; }

/* Pricing page: picker */
.picker { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-top: 44px; }
.pk { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.pk-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.table-note { color: var(--fg-dim); font-size: 13.5px; line-height: 1.55; margin-top: 18px; }

.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px; font-size: 13px; }
.seg span { padding: 7px 14px; border-radius: 999px; color: var(--fg-dim); cursor: pointer; transition: background 0.25s ease, color 0.25s ease; }
.seg span.on { background: #fff; color: var(--bg); font-weight: 600; }

.slider { margin-top: 26px; }
.slider-label { font-size: 14px; color: var(--fg-dim); }
.slider .range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; background: transparent;
  margin: 14px 0; position: relative; z-index: 2; cursor: pointer;
}
.slider .range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.7); margin-top: -7px;
}
.slider .range::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.slider .range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: #fff; border: none;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.7);
}
.slider .range::-moz-range-track { height: 4px; background: transparent; }
.track { height: 4px; border-radius: 2px; background: #1b1b1f; position: relative; margin: -18px 0 14px; pointer-events: none; }
.track i { position: absolute; left: 0; top: 0; height: 100%; background: #fff; border-radius: 2px; box-shadow: 0 0 12px rgba(255, 255, 255, 0.5); }
.track b { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 18px rgba(255, 255, 255, 0.7); }
.lbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-faint); font-family: 'Geist Mono'; }

.plan-on { border-color: #fff !important; }

.total { display: flex; align-items: flex-end; gap: 10px; margin-top: 26px; }
.total b {
  font-size: 56px; font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  display: inline-flex;
}
.total b .digit { display: inline-block; transition: transform 0.25s ease, opacity 0.25s ease; }
.total b.rolling .digit { transform: translateY(-0.4em); opacity: 0; }
.total span { color: var(--fg-dim); font-size: 14px; padding-bottom: 8px; }
.inc { margin-top: 22px; font-size: 14px; color: var(--fg-dim); line-height: 1.9; }

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; margin-top: 44px; }
.q h3 { font-size: 17px; }
.q .faq-q { display: flex; align-items: center; text-align: left; width: 100%; }
.faq-dot { color: var(--border-strong); font-size: 8px; transition: color 0.3s ease, text-shadow 0.3s ease; }
.q.open .faq-dot { color: var(--accent); text-shadow: 0 0 8px var(--accent); }
.q p {
  color: var(--fg-dim); font-size: 14.5px; line-height: 1.55; margin-top: 0;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin-top 0.35s ease;
}
.q.open p { max-height: 200px; opacity: 1; margin-top: 8px; }

/* How-it-works steps + loop line */
.steps { position: relative; max-width: 980px; margin: 0 auto; padding-left: 64px; padding-right: 64px; }
.step-section { padding: 0 0 70px; }
.step { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; position: relative; }
.step .n { font-family: 'Geist Mono'; font-size: 14px; color: var(--fg-faint); padding-top: 14px; position: sticky; top: 110px; }
.step p { color: var(--fg-dim); font-size: 17px; line-height: 1.55; margin-top: 14px; max-width: 640px; }
.loop-line { position: absolute; left: 60px; top: 8px; bottom: 70px; width: 1px; background: linear-gradient(var(--border-strong), var(--border-strong)); pointer-events: none; }
.loop-firefly {
  position: absolute; left: 56px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 14px 4px rgba(255, 255, 255, 0.6); top: 0;
  transition: top 0.1s linear;
}
.under-the-hood { position: relative; }
.mono-card h3 { text-transform: uppercase; font-size: 13px; letter-spacing: 0.06em; }

/* Legal pages, rendered markdown */
.legal { max-width: 760px; margin: 0 auto; padding-top: 0; }
.legal h1 { font-size: 40px; margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin-top: 48px; margin-bottom: 6px; }
.legal p { color: var(--fg-dim); font-size: 15px; line-height: 1.7; margin-top: 14px; }
.legal p strong { color: var(--fg); }
.legal ul { margin-top: 14px; padding-left: 22px; color: var(--fg-dim); font-size: 15px; line-height: 1.7; }
.legal li { margin-top: 6px; }
.legal table { margin-top: 18px; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--border); padding: 10px 14px; }
.legal a { text-decoration: underline; }
.legal-hero { padding-bottom: 0; }

/* Lead form */
.lead-form { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.lead-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--fg-dim); }
.lead-form input, .lead-form select, .lead-form textarea {
  background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 12px 14px; color: var(--fg); font: inherit; font-family: 'Geist', sans-serif;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 1px solid #fff; }
.lead-form button { align-self: flex-start; }
.lead-status { font-size: 13.5px; color: var(--fg-dim); min-height: 1.4em; }
.lead-status.ok { color: var(--accent); }

/* Honeypot: hidden from real visitors, a bot's form-filler still finds and fills it. */
.lead-form .hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Responsive */
@media (max-width: 900px) {
  h1 { font-size: 56px; }
  .grid3, .modes, .bring { grid-template-columns: 1fr; }
  .grid2, .lanes, .showcase, .showcase.flip, .picker, .faq { grid-template-columns: 1fr; }
  .showcase > div:first-child, .showcase.flip > div:first-child { order: 2; }
  .showcase > div:last-child, .showcase.flip > div:last-child { order: 1; }
  .pv { flex-direction: column; }
  .stats { flex-wrap: wrap; gap: 32px; }
  footer { flex-direction: column; }
}

@media (max-width: 640px) {
  nav { padding: 18px 20px; }
  nav.nav--compact { padding: 12px 20px; }
  .links { display: none; }
  .hero { padding: 64px 22px 0; }
  h1 { font-size: 40px; }
  .lead { font-size: 15px; }
  .ctas { flex-direction: column; align-items: center; }
  section { padding: 64px 22px; }
  .hr { margin: 0 22px; }
  .motion, .faq, .bring, .grid3, .modes { margin-left: 0; margin-right: 0; }
  .stats { padding: 40px 22px; gap: 24px; }
  .stats b { font-size: 36px; }
  .steps { padding-left: 22px; padding-right: 22px; }
  .step { grid-template-columns: 1fr; }
  .step .n { position: static; }
  .loop-line, .loop-firefly { display: none; }
  footer { padding: 40px 22px; }
  footer .cols { gap: 32px; flex-wrap: wrap; }
  .picker { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ff { display: none; }
  h1[data-rise] .word { opacity: 1; transform: none; filter: none; transition: none; }
  .eyebrow i { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .lane { opacity: 1; transform: none; transition: none; }
  .frame { transition: none; }
  .ticker span { transition: none; }
  .total b .digit { transition: none; }
  .q p { transition: none; }
  .card { transition: none; }
  .card::before { display: none; }
}

@keyframes breathe {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 6px var(--accent); }
  50% { opacity: 1; box-shadow: 0 0 14px var(--accent); }
}
