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

:root {
  --bg: #07070f;
  --bg-alt: #0d0d1a;
  --surface: #111127;
  --surface-2: #16162e;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(129,140,248,0.3);
  --text: #e8e8f0;
  --text-muted: #6b6b8a;
  --text-dim: #3a3a5c;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-hover: #4f52d4;
  --green: #34d399;
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(7,7,15,0.85);
  backdrop-filter: blur(16px);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.logo-sm { font-size: 15px; }
.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost {
  color: var(--text-muted);
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: 10px; }

/* ── HERO ── */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 22px;
}
.gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.hero-stat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.hero-stat {
  flex: 1;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}
.hero-stat strong { font-size: 14px; font-weight: 600; color: var(--text); }
.hero-stat span { font-size: 12px; color: var(--text-muted); }
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── DEMO CARD ── */
.demo-section {
  padding: 0 0 80px;
}
.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(99,102,241,0.08);
}
.demo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.demo-dots {
  display: flex;
  gap: 6px;
}
.demo-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-hover);
}
.demo-title {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.demo-table { padding: 4px 0; }
.demo-table-head {
  display: grid;
  grid-template-columns: 120px 160px 130px 130px 1fr;
  gap: 0;
  padding: 10px 20px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.demo-row {
  display: grid;
  grid-template-columns: 120px 160px 130px 130px 1fr;
  gap: 0;
  padding: 12px 20px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.15s;
  opacity: 0;
  animation: fadeInRow 0.4s ease forwards;
}
.demo-row:hover { background: rgba(255,255,255,0.02); }
.demo-footer {
  padding: 12px 20px;
  font-size: 12px;
  color: var(--text-dim);
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

@keyframes fadeInRow {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { opacity: 0; }

.text-muted { color: var(--text-muted); }
.text-green { color: var(--green); font-weight: 500; }
.tag {
  display: inline-block;
  background: rgba(99,102,241,0.12);
  color: var(--accent-light);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
  display: block;
}

/* ── SECTIONS ── */
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(99,102,241,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── USE CASES ── */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.usecase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s;
}
.usecase-card:hover { border-color: var(--border-hover); }
.usecase-emoji {
  font-size: 28px;
  margin-bottom: 12px;
}
.usecase-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.usecase-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}
.usecase-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.usecase-fields span {
  font-size: 11px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ── HOW IT WORKS ── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 56px;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.step-arrow {
  font-size: 20px;
  color: var(--text-dim);
  padding: 0 24px;
  padding-top: 12px;
  flex-shrink: 0;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  color: var(--accent-light);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.step-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── CTA ── */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}
.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
}
.cta-section h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
}
.cta-section p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
  flex: 1;
  text-align: center;
}
.footer-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--text); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  h1 { letter-spacing: -1px; }
  .hero-stat-row { flex-direction: column; }
  .hero-stat-divider { width: 80px; height: 1px; }
  .features-grid { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr 1fr; }
  .steps { flex-direction: column; gap: 32px; }
  .step-arrow { display: none; }
  .demo-table-head, .demo-row {
    grid-template-columns: 100px 120px 100px 0 1fr;
  }
  .demo-table-head span:nth-child(4),
  .demo-row span:nth-child(4) { display: none; }
}

@media (max-width: 480px) {
  .usecases-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .demo-table-head, .demo-row {
    grid-template-columns: 90px 110px 1fr;
  }
  .demo-table-head span:nth-child(3),
  .demo-table-head span:nth-child(4),
  .demo-row span:nth-child(3),
  .demo-row span:nth-child(4) { display: none; }
}
