:root {
  --bg: #060810;
  --surface: #0d1117;
  --surface2: #161b22;
  --border: #1e2733;
  --fg: #e8eaf0;
  --fg-2: #8892a4;
  --fg-3: #4a5568;
  --accent: #00d4c8;
  --accent-dim: rgba(0, 212, 200, 0.12);
  --accent-2: #ff6b35;
  --accent-2-dim: rgba(255, 107, 53, 0.1);
  --cyan-glow: rgba(0, 212, 200, 0.08);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Figtree', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 2px solid var(--accent);
  position: relative;
  display: inline-block;
}

.brand-mark::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--accent);
  opacity: 0.5;
}

.brand-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── HERO ── */
.hero {
  padding: 80px 48px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 3.8rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 48px;
}

.hero-stat-row {
  display: flex;
  gap: 40px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── HERO VISUAL ── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.scan-frame {
  width: 420px;
  height: 420px;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
}

.scan-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--accent);
  border-style: solid;
}

.scan-corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.scan-corner.tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.scan-corner.bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.scan-corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scanMove 3s ease-in-out infinite;
}

@keyframes scanMove {
  0%, 100% { top: 0; opacity: 0.8; }
  50% { top: calc(100% - 1px); opacity: 0.3; }
}

.scan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  height: 100%;
  gap: 0;
}

.grid-cell {
  border: 0.5px solid var(--border);
  position: relative;
}

.grid-cell.active {
  background: var(--accent-dim);
}

.cell-extract {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
}

.extract-label {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.extract-field {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 0.75rem;
}

.field-key { color: var(--fg-3); }
.field-val { color: var(--fg); font-weight: 500; }

.extract-badge {
  margin-top: 10px;
  font-size: 0.6rem;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 8px;
  border-radius: 3px;
  display: inline-block;
}

/* ── SECTION TITLE ── */
.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--fg);
}

.section-sub {
  color: var(--fg-2);
  font-size: 1rem;
  margin-top: 12px;
}

/* ── HOW ── */
.how {
  padding: 80px 48px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

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

.how-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}

.step {
  flex: 1;
  max-width: 280px;
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  position: relative;
}

.step-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.step-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--fg);
}

.step-desc {
  font-size: 0.85rem;
  color: var(--fg-2);
  line-height: 1.6;
}

.step-connector {
  width: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.connector-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--accent), var(--border));
}

/* ── FEATURES ── */
.features {
  padding: 80px 48px;
  border-top: 1px solid var(--border);
}

.features .section-title {
  text-align: center;
  margin-bottom: 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

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

.feature-card:hover {
  border-color: var(--accent);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 200, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.feature-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--fg);
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--fg-2);
  line-height: 1.65;
}

/* ── TECHNICALS ── */
.technicals {
  padding: 80px 48px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.tech-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #1a1f26;
  border: 1px solid var(--border);
  border-bottom: none;
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }

.code-filename {
  font-family: 'Figtree', monospace;
  font-size: 0.75rem;
  color: var(--fg-2);
  margin-left: 12px;
}

.code-block {
  background: #0d1117;
  border: 1px solid var(--border);
  border-top: 1px solid #2d333b;
  padding: 24px;
  font-family: 'Figtree', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  overflow-x: auto;
}

.code-keyword { color: #ff7b72; }
.code-string { color: #a5d6ff; }
.code-comment { color: #6a737d; }

.tech-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tech-desc {
  font-size: 1rem;
  color: var(--fg-2);
  line-height: 1.7;
}

.tech-specs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.spec-row {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.spec-label {
  color: var(--fg-3);
  width: 80px;
  flex-shrink: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 2px;
}

.spec-val { color: var(--fg); }

/* ── CLOSING ── */
.closing {
  padding: 100px 48px;
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  position: relative;
  z-index: 1;
}

.closing-badge {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.closing-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 16px;
  line-height: 1.1;
}

.closing-sub {
  font-size: 1rem;
  color: var(--fg-2);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

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

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-tagline {
  color: var(--fg-3);
  font-size: 0.8rem;
  flex: 1;
  margin-left: 8px;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-3);
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav-tagline { display: none; }
  
  .hero { padding: 48px 20px 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-headline { font-size: 2.6rem; }
  .hero-stat-row { gap: 24px; }
  .scan-frame { width: 280px; height: 280px; }
  
  .how { padding: 48px 20px; }
  .how-steps { flex-direction: column; }
  .step-connector { width: 1px; height: 40px; }
  .step { max-width: none; }
  
  .features { padding: 48px 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  
  .technicals { padding: 48px 20px; }
  .tech-layout { grid-template-columns: 1fr; gap: 40px; }
  
  .closing { padding: 60px 20px; }
  .closing-headline { font-size: 2rem; }
  
  .footer { padding: 32px 20px; }
  .footer-inner { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.2rem; }
  .hero-stat-row { flex-direction: column; gap: 16px; }
}