/* ============ Voka landing — dark cinematic, red accent ============ */
:root {
  --red: #fd3436;
  /* Deepened accent for solid fills under white content: #fd3436 white-on-red
     lands at 3.7:1 and fails AA body text; #e02b2e passes at 4.6:1. */
  --red-deep: #e02b2e;
  --bg: #0d0d0d;
  --card: #1a1a1a;
  --card-2: #222;
  --text: #ffffff;
  --text-2: #9c9891;
  --text-3: #8a8a8a;
  --divider: #2c2c2c;
  --phone-w: 320px;
  --phone-h: 660px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Golos Text", system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Sora", sans-serif; }
.accent { color: var(--red); }

/* ============ Nav ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 48px;
  background: linear-gradient(to bottom, rgba(13,13,13,.92), rgba(13,13,13,0));
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: "Sora"; font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.nav-brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-cta {
  color: #fff; text-decoration: none; font-size: 14px; font-weight: 600;
  border: 1px solid rgba(253,52,54,.5); border-radius: 999px; padding: 9px 20px;
  transition: background .25s, border-color .25s;
}
.nav-cta:hover { background: var(--red-deep); border-color: var(--red); }

/* ============ Hero ============ */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-glow {
  position: absolute; width: 900px; height: 900px; right: -200px; top: -250px;
  background: radial-gradient(circle, rgba(253,52,54,.16) 0%, transparent 62%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  max-width: 1200px; width: 100%; margin: 0 auto; padding: 120px 48px 60px;
}
.eyebrow { color: var(--red); font-weight: 600; letter-spacing: 3px; text-transform: uppercase; font-size: 13px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1.04; font-weight: 800; letter-spacing: -1.5px; }
.hero .sub, .cta .sub { color: var(--text-2); font-size: 18px; line-height: 1.65; max-width: 520px; margin-top: 22px; }

.store-row { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.store-row.center { justify-content: center; }
.store-btn {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff;
  background: var(--card); border: 1px solid var(--divider); border-radius: 14px; padding: 12px 22px;
  transition: transform .25s, border-color .25s;
}
.store-btn:hover { transform: translateY(-3px); border-color: var(--red); }
.store-btn small { display: block; font-size: 11px; color: var(--text-2); }
.store-btn strong { font-size: 16px; }
.store-ico { font-size: 24px; }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: var(--text-3); font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: opacity 0.4s ease;
}
.scroll-hint.hidden { opacity: 0; pointer-events: none; }
.scroll-hint span { width: 1px; height: 42px; background: linear-gradient(var(--red), transparent); display: block; animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============ Anchors (invisible slots the phone flies to) ============ */
.phone-anchor { width: var(--phone-w); height: var(--phone-h); justify-self: center; pointer-events: none; }

/* ============ Showcase ============ */
.showcase { position: relative; }
.showcase-pin { height: 100vh; display: flex; align-items: center; overflow: hidden; }
.showcase-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 48px;
}
.chapters { position: relative; min-height: 420px; }
.chapter { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; }
.chapter-index { color: var(--red); font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; font-size: 13px; margin-bottom: 16px; }
.chapter h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.1; font-weight: 700; letter-spacing: -1px; }
.chapter p:last-child { color: var(--text-2); font-size: 17px; line-height: 1.7; max-width: 480px; margin-top: 20px; }

.chapter-dots { position: absolute; left: 0; bottom: 0; display: flex; gap: 10px; }
.chapter-dots i { width: 26px; height: 4px; border-radius: 2px; background: var(--divider); transition: background .3s; }
.chapter-dots i.active { background: var(--red); }

/* ============ CTA ============ */
.cta { position: relative; padding: 100px 48px 60px; text-align: center; overflow: hidden; }
.cta-glow { position: absolute; width: 1000px; height: 700px; left: 50%; top: 0; transform: translateX(-50%); background: radial-gradient(ellipse at top, rgba(253,52,54,.14), transparent 65%); pointer-events: none; }

/* Logo + ring */
.cta-logo-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 36px; }
.cta-logo { width: 100px; height: 100px; border-radius: 26px; box-shadow: 0 0 60px rgba(253,52,54,.35); position: relative; z-index: 2; }
.cta-logo-ring {
  position: absolute; inset: -18px; border-radius: 44px;
  border: 1.5px solid rgba(253,52,54,.3);
  animation: ring-pulse 2.4s ease-in-out infinite;
}
@keyframes ring-pulse { 0%,100% { transform: scale(1); opacity:.6; } 50% { transform: scale(1.06); opacity:1; } }

.cta h2 { font-size: clamp(38px, 5vw, 64px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.07; }
.cta .sub { margin: 22px auto 0; }
.cta .store-row { margin-top: 40px; }
.footer { margin-top: 80px; padding-top: 28px; border-top: 1px solid var(--divider); display: flex; justify-content: space-between; color: var(--text-3); font-size: 13px; flex-wrap: wrap; gap: 8px; }
.footer a { color: var(--text-3); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 1px; transition: color .2s, border-color .2s; }
.footer a:hover { color: var(--red); border-color: var(--red); }

/* ============ The phone ============ */
.phone { position: fixed; top: 0; left: 0; width: var(--phone-w); height: var(--phone-h); z-index: 40; will-change: transform; pointer-events: none; }
.phone-frame {
  position: relative; width: 100%; height: 100%;
  background: #000; border-radius: 44px; padding: 12px;
  border: 1px solid #2e2e2e;
  box-shadow: 0 0 0 2px #151515, 0 30px 80px -20px rgba(0,0,0,.85), 0 0 120px -30px rgba(253,52,54,.25);
}
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #000; border-radius: 0 0 16px 16px; z-index: 5; }
.phone-viewport { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--bg); }
.phone-shadow { position: absolute; left: 8%; right: 8%; bottom: -34px; height: 40px; background: radial-gradient(ellipse, rgba(0,0,0,.55), transparent 70%); }

/* ============ Screens (recreated app UI) ============ */
.screen { position: absolute; inset: 0; padding: 40px 16px 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; background: var(--bg); }
.screen[data-screen="0"] { opacity: 1; visibility: visible; }

.scr-header { padding: 6px 4px 12px; }
.scr-header.center { text-align: center; }
.scr-header h3 { font-size: 24px; font-weight: 700; }
.scr-title-sm { font-size: 12px; letter-spacing: 3px; color: var(--text-2); font-weight: 600; }

/* Record screen */
.screen-record { align-items: center; text-align: center; }
.rec-timer { font-family: "Sora"; font-size: 46px; font-weight: 700; margin-top: 48px; font-variant-numeric: tabular-nums; }
.rec-state { color: var(--red); font-size: 11px; letter-spacing: 4px; margin-top: 10px; font-weight: 600; }
.waveform { display: flex; align-items: center; justify-content: center; gap: 3px; height: 110px; margin-top: 60px; width: 86%; }
.waveform i { width: 3px; border-radius: 2px; background: var(--red); height: 12%; animation: wave 1.1s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: scaleY(.35); opacity: .65; } 50% { transform: scaleY(1); opacity: 1; } }
.rec-controls { display: flex; gap: 16px; margin-top: auto; margin-bottom: 18px; }
.rec-btn { width: 74px; height: 56px; border-radius: 18px; border: none; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.rec-btn.ghost { background: #3a3a3a; color: #cfcbc5; }
.rec-btn.primary { background: var(--red-deep); color: #fff; }
.rec-btn.light { background: #fff; color: #000; }
.rec-btn.pulse { animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(253,52,54,.55); } 100% { box-shadow: 0 0 0 18px rgba(253,52,54,0); } }
.rec-hint { color: var(--text-3); font-size: 13px; margin-bottom: 26px; }

/* Notes screen */
.search-pill { background: var(--card); border-radius: 14px; padding: 12px 16px; color: var(--text-3); font-size: 14px; margin-bottom: 14px; }
.note-card { background: var(--card); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; }
.note-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14.5px; }
.note-row .time { color: var(--text-3); font-size: 12px; }
.note-meta { display: flex; gap: 10px; align-items: center; margin-top: 7px; }
.dur { color: var(--text-2); font-size: 12px; }
.badge { font-size: 10px; letter-spacing: .5px; padding: 3px 9px; border-radius: 999px; background: #2a2a2a; color: var(--text-2); font-weight: 600; }
.badge.ok { background: rgba(253,52,54,.15); color: var(--red); }
.badge.live { background: rgba(80,220,120,.15); color: #50dc78; }
.mini-wave { display: flex; gap: 3px; align-items: center; height: 22px; margin-top: 10px; }
.mini-wave i { width: 3px; border-radius: 2px; background: #4a4a4a; }
.mini-wave i:nth-child(odd) { height: 60%; } .mini-wave i:nth-child(even) { height: 100%; }
.mini-wave i:nth-child(3n) { height: 35%; background: var(--red); }

.fab { position: absolute; right: 18px; bottom: 86px; width: 56px; height: 56px; border-radius: 18px; background: var(--red); display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 10px 24px rgba(253,52,54,.35); }
.tabbar { margin-top: auto; display: flex; justify-content: space-around; padding: 12px 6px 22px; border-top: 1px solid var(--divider); background: #111; margin-left: -16px; margin-right: -16px; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 17px; color: var(--text-3); filter: grayscale(1); }
.tab small { font-size: 10px; }
.tab.active { color: var(--red); filter: none; }

/* Projects screen */
.proj-card { display: flex; align-items: center; gap: 13px; background: var(--card); border-radius: 16px; padding: 15px 16px; margin-bottom: 10px; }
.proj-ico { font-size: 22px; }
.proj-body { display: flex; flex-direction: column; gap: 3px; font-size: 14.5px; }
.proj-body span { color: var(--text-3); font-size: 12px; }
.chev { margin-left: auto; color: var(--text-3); font-size: 20px; }

/* Settings screen */
.setup-card { background: var(--card); border-radius: 16px; padding: 16px; margin-bottom: 16px; }
.setup-row { display: flex; justify-content: space-between; align-items: center; font-size: 17px; }
.setup-sub { color: var(--text-2); font-size: 12.5px; display: block; margin-top: 4px; }
.setup-stats { display: flex; gap: 8px; margin-top: 14px; }
.setup-stats div { flex: 1; background: #111; border-radius: 12px; padding: 10px 6px; text-align: center; }
.setup-stats b { color: var(--red); font-size: 18px; font-family: "Sora"; display: block; }
.setup-stats small { color: var(--text-2); font-size: 8.5px; letter-spacing: .5px; }
.section-label { font-size: 13px; font-weight: 600; margin: 2px 2px 10px; color: var(--text); }
.provider-row { display: flex; align-items: center; gap: 11px; background: var(--card); border-radius: 14px; padding: 11px 13px; margin-bottom: 8px; font-size: 13.5px; }
.provider-row div { display: flex; flex-direction: column; gap: 2px; }
.provider-row span:first-child { font-size: 17px; }
.provider-row div span { color: var(--text-3); font-size: 11px; }
.provider-row .badge { margin-left: auto; }
.p-ico { filter: grayscale(.2); }

/* ============ Mobile ============ */
@media (max-width: 900px) {
  :root { --phone-w: 250px; --phone-h: 516px; }
  .nav { padding: 14px 20px; }
  .hero-inner, .showcase-inner { grid-template-columns: 1fr; gap: 24px; padding: 100px 24px 40px; text-align: center; }
  .showcase-inner { padding-top: 0; }
  .hero .sub { margin-inline: auto; }
  .store-row { justify-content: center; }
  .phone-anchor { justify-self: center; }
  .chapters { min-height: 300px; order: 2; }
  .chapter p:last-child { margin-inline: auto; font-size: 15px; }
  .chapter h2 { font-size: 28px; }
  .chapter-dots { left: 50%; transform: translateX(-50%); }
  .cta { padding: 110px 24px 40px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .waveform i, .rec-btn.pulse, .scroll-hint span { animation: none; }
}
