/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #4f46e5;
  --primary-dk: #3730a3;
  --accent:     #06b6d4;
  --bg:         #0f0f1a;
  --surface:    #1a1a2e;
  --surface2:   #16213e;
  --border:     #2d2d4a;
  --text:       #e2e8f0;
  --text-muted: #94a3b8;
  --green:      #10b981;
  --yellow:     #f59e0b;
  --red:        #ef4444;
  --radius:     12px;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --sans: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }

/* ========== Navbar ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* ========== Hero ========== */
.hero {
  padding: 80px 2rem 60px;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79,70,229,0.15) 0%, transparent 70%);
}

.hero-badge {
  display: inline-block;
  background: rgba(79,70,229,0.2);
  border: 1px solid rgba(79,70,229,0.4);
  color: #a5b4fc;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #e2e8f0 30%, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all .2s;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dk); color: #fff; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--accent); transform: translateY(-1px); }

/* ========== Stats Bar ========== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.stat { text-align: center; }
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ========== Sections ========== */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
}

.section-header p {
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== Cards ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color .2s, transform .2s;
}

.card:hover { border-color: var(--primary); transform: translateY(-3px); }

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ========== Pipeline ========== */
.pipeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.pipeline-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
  padding-bottom: 2rem;
}

.pipeline-step:last-child { padding-bottom: 0; }

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.pipeline-step:not(:last-child) .step-number::after {
  content: '';
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + 2rem - 48px);
  background: linear-gradient(to bottom, var(--primary), transparent);
}

.step-content { padding-top: 0.6rem; }
.step-content h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.step-content p { font-size: 0.875rem; color: var(--text-muted); }

/* ========== Code Blocks ========== */
.code-block {
  background: #0d0d1a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.7;
  overflow-x: auto;
  color: #e2e8f0;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red   { background: #ef4444; }
.dot-yellow{ background: #f59e0b; }
.dot-green { background: #10b981; }

/* ========== Architecture Diagram ========== */
.arch {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  font-family: var(--mono);
  font-size: 0.85rem;
}

.arch-layer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
  background: var(--surface2);
}

.arch-arrow {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  margin: 0.25rem 0;
}

.layer-embed { border-color: rgba(79,70,229,0.5); }
.layer-lstm  { border-color: rgba(6,182,212,0.5); }
.layer-dense { border-color: rgba(16,185,129,0.5); }

.layer-label { font-weight: 600; font-size: 0.8rem; }
.layer-detail { color: var(--text-muted); font-size: 0.75rem; margin-left: auto; }

/* ========== Results Table ========== */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

th {
  background: var(--surface2);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

tr:hover td { background: rgba(255,255,255,0.02); }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-green { background: rgba(16,185,129,0.15); color: var(--green); border: 1px solid rgba(16,185,129,0.3); }
.badge-blue  { background: rgba(79,70,229,0.15);  color: #a5b4fc;     border: 1px solid rgba(79,70,229,0.3); }

/* ========== Tech Stack Grid ========== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.tech-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: border-color .2s, transform .2s;
}

.tech-item:hover { border-color: var(--accent); transform: translateY(-2px); }

.tech-icon { font-size: 1.8rem; display: block; margin-bottom: 0.5rem; }
.tech-name { font-size: 0.85rem; font-weight: 600; }
.tech-role { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ========== CTA ========== */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(6,182,212,0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4rem 2rem;
  margin: 0 2rem 5rem;
}

.cta-section h2 { font-size: 1.8rem; margin-bottom: 0.75rem; }
.cta-section p { color: var(--text-muted); margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ========== Page Content ========== */
.page-hero {
  padding: 60px 2rem 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.page-hero h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; }

/* ========== Progress Bar ========== */
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  transition: width 1s ease;
}

/* ========== Footer ========== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }

/* ========== Responsive ========== */
@media (max-width: 640px) {
  .stats-bar { gap: 1.5rem; }
  .nav-links  { gap: 1rem; }
  .cta-section { margin: 0 1rem 3rem; }
}
