/* ── TOKENS ── */
:root {
  --bg: #07080F;
  --surface: #0E1235;
  --surface-2: #13172A;
  --accent: #AAFF3C;
  --purple: #7C3AED;
  --text: #FFFFFF;
  --text-muted: rgba(255,255,255,0.5);
  --border: rgba(255,255,255,0.08);
  --radius: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ── */
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: clamp(52px, 11vw, 999px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hero-title mark {
  color: var(--accent);
  background: none;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 7vw, 90px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.section-title mark {
  color: var(--accent);
  background: none;
}
.section-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ── BOTTOM NAV ── */
.bottom-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 32px;
  background: rgba(14, 18, 53, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  white-space: nowrap;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
}
.nav-bird {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: var(--bg);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 999px;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* ── REVEAL ANIMATION BASE ── */
.reveal-section,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* ── HERO ── */
.s-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0 0 12vh 8vw;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 15% 60%, rgba(124,58,237,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(170,255,60,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 50% 100%, rgba(0,212,168,0.08) 0%, transparent 60%),
    var(--bg);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(170,255,60,0.08);
  border: 1px solid rgba(170,255,60,0.3);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
  width: fit-content;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.hero-title {
  display: flex;
  flex-direction: column;
  max-width: 80vw;
}
.hero-line {
  display: block;
  overflow: hidden;
  transform: translateY(110%);
  opacity: 0;
}
.scroll-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3rem;
  width: fit-content;
  transition: border-color 0.2s;
}
.scroll-pill:hover { border-color: rgba(255,255,255,0.2); }
.pill-arrow {
  animation: bounce-arrow 2s ease-in-out infinite;
}
@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}
.hero-mascot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28vw;
  min-width: 240px;
  animation: float-mascot 3.5s ease-in-out infinite;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 75% 85% at 52% 58%, white 40%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 52% 58%, white 40%, transparent 70%);
}
.hero-mascot img { width: 100%; display: block; }
@keyframes float-mascot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

/* Gradient blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.3), transparent 70%);
  top: -100px; left: -100px;
  animation: blob-drift 8s ease-in-out infinite;
}
.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(170,255,60,0.15), transparent 70%);
  bottom: -50px; right: 200px;
  animation: blob-drift 10s ease-in-out infinite reverse;
}
.blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,212,168,0.15), transparent 70%);
  top: 30%; right: -50px;
  animation: blob-drift 12s ease-in-out infinite;
}
@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 10px) scale(0.95); }
}

/* ── WHAT IS KORVI ── */
.s-what {
  padding: 120px 8vw;
}
.s-what__inner {
  display: flex;
  align-items: center;
  gap: 8vw;
}
.s-what__text { flex: 1.2; }
.s-what__text p { color: var(--text-muted); margin-top: 1.2rem; max-width: 480px; }
.s-what__text strong { color: var(--text); }
.s-what__visual { flex: 1; }
.browser-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(124,58,237,0.2);
}
.browser-bar {
  background: var(--surface);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.browser-dots {
  display: flex;
  gap: 5px;
}
.browser-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.browser-url {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  padding: 2px 10px;
}
.browser-frame > img { display: block; }

/* ── LIVE DEMO ── */
.s-demo {
  padding: 100px 8vw;
  text-align: center;
}
.demo-widget {
  max-width: 860px;
  margin: 3rem auto 0;
  text-align: left;
}
.demo-instructions {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-align: center;
}
.demo-text {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,0.8);
  cursor: text;
  user-select: text;
}
.demo-text p + p { margin-top: 1rem; }
.demo-text ::selection { background: rgba(59,111,255,0.5); }
.demo-hint {
  text-align: center;
  margin-top: 1rem;
  font-size: 13px;
  color: var(--text-muted);
}
.hint-cursor {
  animation: blink 1s step-end infinite;
  color: var(--accent);
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.demo-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1rem;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  animation: toolbar-appear 0.2s var(--ease);
}
@keyframes toolbar-appear {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}
.toolbar-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-size: 13px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.toolbar-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}
.toolbar-btn--custom {
  border-style: dashed;
  color: var(--accent);
  border-color: rgba(170,255,60,0.4);
}
.demo-custom {
  display: flex;
  gap: 8px;
  margin-top: 0.75rem;
  animation: toolbar-appear 0.2s var(--ease);
}
.demo-custom input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  padding: 8px 14px;
  outline: none;
}
.demo-custom input:focus { border-color: var(--accent); }
#demo-custom-submit {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  cursor: pointer;
}
.demo-result {
  margin-top: 1rem;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 12px;
  padding: 20px;
  animation: toolbar-appear 0.25s var(--ease);
}
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.result-mode-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.05em;
}
.result-saved {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}
.result-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  min-height: 1.7em;
}
.result-voice-hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── HOW IT WORKS (SCROLL CARDS) ── */
.s-how {
  display: flex;
  min-height: 320vh;
  padding: 0 8vw;
  gap: 6vw;
  align-items: flex-start;
}
.how-left {
  flex: 0 0 38%;
  position: sticky;
  top: 30vh;
  padding-top: 10vh;
}
.how-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.how-right {
  flex: 1;
  position: relative;
  padding-top: 10vh;
  padding-bottom: 10vh;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: sticky;
  top: 15vh;
  margin-bottom: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  transform-origin: top center;
}
.step-card:nth-child(1) { z-index: 1; }
.step-card:nth-child(2) { z-index: 2; }
.step-card:nth-child(3) { z-index: 3; }
.step-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 13px;
  background: var(--accent);
  color: var(--bg);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-tag-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.step-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.step-card p { color: var(--text-muted); margin-bottom: 1.5rem; }
.step-card img {
  border-radius: 10px;
  border: 1px solid var(--border);
  width: 100%;
}

/* ── KNOWLEDGE MAP ── */
.s-map {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 80px;
}
.map-header {
  padding: 0 8vw 40px;
  text-align: center;
}
.map-layout {
  display: flex;
  flex: 1;
  min-height: 70vh;
}
.map-sidebar {
  width: 260px;
  flex-shrink: 0;
  padding: 32px 24px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.map-sidebar__label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.map-sidebar__node-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
}
.map-sidebar__explanation {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}
.map-sidebar__sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.source-pill {
  font-size: 11px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--text-muted);
}
.map-sidebar__hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: auto;
}
#mindmap-canvas {
  flex: 1;
  display: block;
  cursor: default;
}

/* ── FEATURES QUESTION ── */
.s-question {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 8vw;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(124,58,237,0.12) 0%, transparent 70%),
    var(--bg);
}
.q-intro {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.q-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 8vw, 100px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}
.q-highlight {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 0 0.15em;
  border-radius: 4px;
}
.q-bird {
  width: clamp(160px, 20vw, 280px);
  animation: float-mascot 3.5s ease-in-out infinite;
}

/* ── FEATURE GRID ── */
.s-features {
  padding: 80px 8vw;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}
.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.feat-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.feat-icon { font-size: 28px; margin-bottom: 12px; display: block; }
.feat-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}
.feat-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* ── WAITLIST ── */
.s-waitlist {
  padding: 100px 8vw;
  text-align: center;
}
.waitlist-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.waitlist-form {
  display: flex;
  gap: 8px;
  max-width: 500px;
  margin: 0 auto 1rem;
}
.waitlist-form input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  padding: 12px 18px;
  outline: none;
  transition: border-color 0.2s;
}
.waitlist-form input:focus { border-color: var(--accent); }
.waitlist-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.waitlist-btn:hover { opacity: 0.85; }
.waitlist-note { font-size: 12px; color: var(--text-muted); }
.waitlist-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: toolbar-appear 0.3s var(--ease);
}
.success-bird { width: 120px; }
.waitlist-success p {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
}

/* ── FOOTER ── */
.s-footer {
  padding: 40px 8vw 0;
  overflow: hidden;
}
.footer-meta {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.footer-meta a:hover { color: var(--text); }
.footer-word {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: clamp(80px, 18vw, 220px);
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}
.footer-nav-spacer { height: 90px; }
