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

:root {
  --bg: #0A0A0A;
  --bg-raised: #111111;
  --bg-card: #141414;
  --border: #1E1E1E;
  --border-light: #2A2A2A;
  --text: #E8E8E8;
  --text-dim: #888888;
  --text-muted: #555555;
  --accent: #00D4AA;
  --accent-dim: rgba(0, 212, 170, 0.12);
  --red: #FF4444;
  --yellow: #FFAA00;
  --green: #00CC66;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', -apple-system, sans-serif;
  --max-w: 1120px;
  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

code {
  font-family: var(--mono);
  background: var(--bg-raised);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.logo span { margin-left: 4px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a { color: var(--text-dim); font-size: 0.9rem; text-decoration: none; }
.nav-links a:hover { color: var(--text); }

/* ── Language Switch ── */
.lang-switch {
  display: flex;
  gap: 4px;
  margin-left: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
}
.lang-btn {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn:hover { color: var(--text-dim); }
.lang-btn.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.mobile-menu { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dim);
  margin: 4px 0;
  transition: 0.3s;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { display: flex; justify-content: center; width: 100%; }

.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn-primary:hover { background: #00e8bb; text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border-light);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); text-decoration: none; }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 140px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 170, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--mono);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.accent { color: var(--accent); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 212, 170, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ── Terminal ── */
.terminal {
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  background: var(--bg-raised);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.terminal-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green { background: var(--green); }

.terminal-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 16px;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.8;
  min-height: 240px;
}

.term-line { opacity: 0; transform: translateY(4px); transition: all 0.4s ease; }
.term-line.visible { opacity: 1; transform: translateY(0); }

.term-user {
  color: var(--accent);
  font-weight: 500;
}
.term-user::after { content: ' ›'; color: var(--text-muted); }

.term-bot {
  color: var(--yellow);
  font-weight: 500;
}
.term-bot::after { content: ' ›'; color: var(--text-muted); }

.term-cmd { color: var(--text); }
.term-text { color: var(--text-dim); }

/* ── Sections ── */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-raised); }

.section-title {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text-dim);
  text-align: center;
  font-size: 1.05rem;
  margin-bottom: 60px;
}

/* ── Split (Problem/Solution) ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.split-card {
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-raised);
}
.split-card h3 {
  font-family: var(--mono);
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.split-card ul { list-style: none; }
.split-card li {
  padding: 8px 0;
  color: var(--text-dim);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.split-card .icon { font-weight: 700; flex-shrink: 0; width: 20px; text-align: center; }
.problem .icon { color: var(--red); }
.solution .icon { color: var(--accent); }

/* ── Steps ── */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.step-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.step-icon { font-size: 2rem; margin-bottom: 16px; }
.step h4 { font-family: var(--mono); font-size: 1rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 0.9rem; }

.step-arrow {
  font-family: var(--mono);
  color: var(--text-muted);
  font-size: 1.5rem;
  padding-top: 70px;
}

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--border-light); }
.feature-icon { font-size: 1.5rem; margin-bottom: 14px; }
.feature-card h4 { font-family: var(--mono); font-size: 0.95rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 0.85rem; line-height: 1.6; }

/* ── Pricing ── */
.pricing-card {
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
}

.pricing-badge {
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  padding: 8px;
  letter-spacing: 0.05em;
}

.pricing-header {
  padding: 28px 32px 0;
}
.pricing-header h3 { font-family: var(--mono); font-size: 1.3rem; margin-bottom: 4px; }
.pricing-header p { color: var(--text-dim); font-size: 0.9rem; }

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}
.pricing-table th {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: left;
  padding: 8px 32px;
  border-bottom: 1px solid var(--border);
}
.pricing-table td {
  padding: 12px 32px;
  border-bottom: 1px solid var(--border);
}
.pricing-table .per { color: var(--text-muted); font-size: 0.8em; }

.pricing-note {
  padding: 0 32px;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 24px;
}

.pricing-card .btn-block { margin: 0 32px 28px; width: calc(100% - 64px); }

/* ── FAQ ── */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  font-family: var(--mono);
  font-size: 0.95rem;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  color: var(--text-dim);
  font-size: 0.9rem;
  padding-bottom: 20px;
  line-height: 1.7;
}

/* ── CTA Section ── */
.section-cta {
  text-align: center;
  padding: 100px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.section-cta h2 {
  font-family: var(--mono);
  font-size: 2rem;
  margin-bottom: 8px;
}
.section-cta p {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
  background: var(--bg-raised);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand { max-width: 280px; }
.footer-brand .logo { font-size: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 8px; }

.footer-links { display: flex; gap: 60px; }

.footer-col h5 {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 4px 0;
  text-decoration: none;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-dim); }

/* ── Mobile ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
  }

  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 1.8rem; }

  .split { grid-template-columns: 1fr; }

  .steps { flex-direction: column; align-items: center; }
  .step-arrow { display: none; }

  .features-grid { grid-template-columns: 1fr 1fr; }

  .footer-links { gap: 32px; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 24px; }
}
