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

:root {
  --bg: #0a0a0f;
  --bg-alt: #12121a;
  --surface: #1a1a25;
  --border: #2a2a3a;
  --text: #e8e8f0;
  --text-dim: #8888a0;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.3);
  --green: #22c55e;
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.85; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  border: none; text-decoration: none;
}
.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-full { width: 100%; }

/* === Nav === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { color: var(--text); font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.logo-icon { color: var(--accent); font-size: 22px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-dim); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* === Hero === */
.hero {
  padding: 160px 0 80px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-bottom: 60px; }

/* === Terminal === */
.hero-terminal {
  max-width: 680px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  text-align: left;
  background: var(--bg-alt);
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.terminal-title { margin-left: auto; font-size: 12px; color: var(--text-dim); }
.terminal-body {
  padding: 20px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 13px;
  line-height: 1.8;
  overflow-x: auto;
}
.line { white-space: pre; }
.prompt { color: var(--accent); margin-right: 8px; }
.dim { color: var(--text-dim); }
.success { color: var(--green); }

/* === Logos === */
.logos { padding: 60px 0; border-bottom: 1px solid var(--border); }
.logos-label { text-align: center; color: var(--text-dim); font-size: 13px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 24px; }
.logos-row {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 16px;
  font-weight: 600;
  opacity: 0.4;
}

/* === Sections === */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-alt); }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 60px; }
.section-header h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-header p { color: var(--text-dim); font-size: 17px; }

/* === Pain Points === */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.pain-icon { font-size: 28px; margin-bottom: 16px; }
.pain-card h3 { font-size: 18px; margin-bottom: 8px; }
.pain-card p { color: var(--text-dim); font-size: 14px; line-height: 1.6; }

/* === Features === */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--accent); }
.feature-num { color: var(--accent); font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 14px; line-height: 1.6; }

/* === Architecture === */
.arch-diagram {
  max-width: 700px;
  margin: 0 auto;
}
.arch-layer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.arch-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 140px;
}
.arch-blocks { display: flex; gap: 10px; flex-wrap: wrap; }
.arch-blocks span {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
}
.arch-arrow { text-align: center; color: var(--text-dim); font-size: 18px; padding: 8px 0; }

/* === Pricing === */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
}
.pricing-featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  padding: 4px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
}
.pricing-tier { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.pricing-price { font-size: 40px; font-weight: 800; margin-bottom: 4px; }
.pricing-price span { font-size: 16px; font-weight: 500; color: var(--text-dim); }
.pricing-desc { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }
.pricing-card ul { list-style: none; margin-bottom: 28px; }
.pricing-card li {
  padding: 6px 0; font-size: 14px; color: var(--text-dim);
}
.pricing-card li::before { content: '✓ '; color: var(--green); font-weight: 700; }

/* === CTA === */
.cta-section { text-align: center; background: radial-gradient(ellipse at 50% 100%, rgba(99, 102, 241, 0.08) 0%, transparent 60%); }
.cta-section h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; margin-bottom: 12px; }
.cta-section > .container > p { color: var(--text-dim); font-size: 17px; margin-bottom: 32px; }
.cta-form {
  display: flex; gap: 12px; max-width: 440px; margin: 0 auto 16px;
}
.cta-form input {
  flex: 1; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 15px; outline: none;
}
.cta-form input:focus { border-color: var(--accent); }
.cta-note { color: var(--text-dim); font-size: 13px; }
.success-msg { color: var(--green); font-size: 16px; }

/* === Footer === */
.footer { padding: 60px 0 40px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; gap: 60px; }
.footer-brand p { color: var(--text-dim); font-size: 14px; margin-top: 12px; }
.footer-copy { margin-top: 20px; font-size: 13px; }
.footer-links { display: flex; gap: 60px; }
.footer-links h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; color: var(--text-dim); }
.footer-links a { display: block; color: var(--text-dim); font-size: 14px; padding: 4px 0; }
.footer-links a:hover { color: var(--text); }

/* === Responsive === */
@media (max-width: 768px) {
  .pain-grid, .features-grid, .pricing-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .arch-layer { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-links { gap: 40px; }
  .cta-form { flex-direction: column; }
  .nav-links a:not(.btn) { display: none; }
}
