/* === BASE === */
:root {
  --bg: #07070f;
  --bg-2: #0d0d1a;
  --bg-3: #13132a;
  --fg: #e8e8f0;
  --fg-muted: #8888aa;
  --accent: #00d4ff;
  --accent-2: #8b5cf6;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --danger: #ff6b6b;
  --border: rgba(255,255,255,0.06);
  --font-head: 'Sora', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-head);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(7,7,15,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.nav-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 40px 80px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 36px;
}

.hero-code-tag {
  display: inline-block;
}

.hero-code-tag code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 8px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-container {
  position: relative;
  width: 380px;
  height: 380px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  animation: orbFloat 6s ease-in-out infinite;
}

.orb-1 {
  width: 280px;
  height: 280px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0,212,255,0.12) 0%, transparent 70%);
  border: 1px solid rgba(0,212,255,0.15);
}

.orb-2 {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
  border: 1px solid rgba(139,92,246,0.2);
  animation-delay: -2s;
}

.orb-3 {
  width: 120px;
  height: 120px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0,212,255,0.25) 0%, transparent 70%);
  animation-delay: -4s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -52%) scale(1.05); }
}

.memory-lines {
  position: absolute;
  inset: 0;
}

.line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.4), transparent);
  height: 1px;
  animation: linePulse 4s ease-in-out infinite;
}

.line-1 { top: 20%; left: 5%; width: 40%; transform: rotate(-20deg); animation-delay: 0s; }
.line-2 { top: 35%; right: 5%; width: 35%; transform: rotate(15deg); animation-delay: -0.7s; }
.line-3 { top: 55%; left: 10%; width: 30%; transform: rotate(-10deg); animation-delay: -1.4s; }
.line-4 { bottom: 30%; right: 8%; width: 38%; transform: rotate(25deg); animation-delay: -2.1s; }
.line-5 { top: 75%; left: 20%; width: 25%; transform: rotate(-5deg); animation-delay: -2.8s; }
.line-6 { bottom: 15%; left: 40%; width: 45%; transform: rotate(8deg); animation-delay: -3.5s; }

@keyframes linePulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; }
}

.node {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.25);
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.node-1 { top: 10%; left: 5%; animation: nodeGlow 4s ease-in-out infinite 0s; }
.node-2 { top: 50%; right: 2%; animation: nodeGlow 4s ease-in-out infinite -1.3s; }
.node-3 { bottom: 12%; left: 25%; animation: nodeGlow 4s ease-in-out infinite -2.6s; }

@keyframes nodeGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(0,212,255,0.1); }
  50% { box-shadow: 0 0 20px rgba(0,212,255,0.3); }
}

/* === SECTION LABELS === */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(0,212,255,0.15);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* === THE PROBLEM === */
.problem {
  padding: 100px 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.problem-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.problem-header {
  margin-bottom: 56px;
}

.problem-header h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.muted { color: var(--fg-muted); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.problem-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.problem-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,107,107,0.1);
  border: 1px solid rgba(255,107,107,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.problem-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.problem-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

.problem-quote {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 24px 28px;
  margin-top: 8px;
}

.quote-mark {
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  font-family: serif;
  display: block;
  margin-bottom: -12px;
  opacity: 0.5;
}

.problem-quote p {
  font-size: 15px;
  color: var(--fg-muted);
  font-style: italic;
  line-height: 1.7;
}

/* === HOW IT WORKS === */
.how-it-works {
  padding: 100px 40px;
}

.how-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.how-header {
  text-align: center;
  margin-bottom: 72px;
}

.how-header h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 72px;
}

.step {
  flex: 1;
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

.step-connector {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  margin-top: 60px;
  flex-shrink: 0;
}

.how-visual {
  display: flex;
  justify-content: center;
}

.pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 32px;
}

.pipe-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pipe-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-3);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pipe-stage span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.pipe-arrow {
  padding: 0 16px;
}

/* === CODE DEMO === */
.code-demo {
  padding: 100px 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.code-demo-inner {
  max-width: 900px;
  margin: 0 auto;
}

.code-header {
  margin-bottom: 40px;
}

.code-header h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
}

.code-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.code-dots {
  display: flex;
  gap: 6px;
}

.code-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-3);
}

.code-dots span:first-child { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:last-child { background: #28c840; }

.code-filename {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  margin-left: 4px;
}

.code-content {
  padding: 28px 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
  color: #c8c8e0;
  overflow-x: auto;
}

.code-comment { color: #55557a; }
.code-keyword { color: #c792ea; }
.code-string { color: #c3e88d; }
.code-number { color: #f78c6c; }
.code-method { color: #82aaff; }

.code-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 13px;
  color: var(--fg-muted);
}

/* === FEATURES === */
.features {
  padding: 100px 40px;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 56px;
}

.features-header h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: rgba(0,212,255,0.25);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-glow);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* === CLOSING === */
.closing {
  padding: 120px 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.closing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0,212,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.closing-headline {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--fg) 60%, var(--fg-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.closing-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 36px;
}

.closing-tags {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(0,212,255,0.15);
  padding: 6px 14px;
  border-radius: 20px;
}

/* === FOOTER === */
.footer {
  padding: 32px 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.footer-note {
  font-size: 13px;
  color: var(--fg-muted);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { padding: 100px 24px 60px; }
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .problem-grid, .features-grid { grid-template-columns: 1fr; }
  .how-steps { flex-direction: column; }
  .step-connector { width: 2px; height: 24px; margin: 0 auto; }
  .code-stats { gap: 24px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  nav { padding: 0 24px; }
}