/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #080c14;
  color: #e2e8f0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Colors ── */
:root {
  --bg:       #080c14;
  --bg-panel: #0f1520;
  --bg-card:  #141c2b;
  --border:   #1e2d42;
  --t1:       #f0f4ff;
  --t2:       #94a3b8;
  --t3:       #4a5568;
  --blue:     #3b82f6;
  --blue-d:   #1d4ed8;
  --cyan:     #38bdf8;
  --green:    #22c55e;
  --amber:    #f59e0b;
  --purple:   #a855f7;
}

/* ── Layout ── */
.container       { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow{ max-width: 760px;  margin: 0 auto; padding: 0 24px; }
.text-center     { text-align: center; }
.section         { padding: 100px 0; }
.section-dark    { background: var(--bg-panel); }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8,12,20,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, #1d4ed8, #38bdf8);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.logo-text { font-size: 16px; font-weight: 700; color: var(--t1); }
.logo-ai   { color: var(--cyan); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--t2); transition: color 0.15s; }
.nav-links a:hover { color: var(--t1); }
.nav-cta {
  padding: 8px 20px; background: var(--blue); border-radius: 8px;
  font-size: 13px; font-weight: 600; color: #fff;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--blue-d); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 120px 24px 80px;
  text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59,130,246,0.15), transparent);
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 20px;
  font-size: 13px; font-weight: 500; color: var(--cyan);
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900; line-height: 1.1;
  color: var(--t1); letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--cyan), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  max-width: 600px; font-size: 18px; color: var(--t2);
  margin-bottom: 36px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.hero-note { font-size: 12px; color: var(--t3); }

/* ── Buttons ── */
.btn-primary {
  padding: 14px 28px;
  background: var(--blue); border-radius: 10px;
  font-size: 15px; font-weight: 700; color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.15s, background 0.15s;
}
.btn-primary:hover { background: var(--blue-d); transform: translateY(-1px); }
.btn-large { padding: 18px 40px; font-size: 17px; }
.btn-secondary {
  padding: 14px 24px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--t2);
  transition: color 0.15s, border-color 0.15s;
}
.btn-secondary:hover { color: var(--t1); border-color: rgba(59,130,246,0.4); }

/* ── Code Preview ── */
.code-preview {
  margin-top: 60px;
  width: 100%; max-width: 620px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(59,130,246,0.1);
  text-align: left;
}
.code-preview-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--bg-panel);
  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; }
.code-preview-title { font-size: 12px; color: var(--t3); margin-left: 8px; font-family: 'JetBrains Mono', monospace; }
.code-body { padding: 20px; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.8; }
.code-line  { min-height: 1.8em; }
.code-comment { color: #4a6278; }
.code-keyword { color: #c792ea; }
.code-fn  { color: #82aaff; }
.code-var { color: #f78c6c; }
.code-str { color: #c3e88d; }
.code-num { color: #f78c6c; }
.code-const { color: #ffcb6b; }
.code-cursor { display: inline-block; color: var(--cyan); animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Section Labels ── */
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--blue); text-transform: uppercase;
  margin-bottom: 12px; text-align: center;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800;
  color: var(--t1); line-height: 1.2; letter-spacing: -0.02em;
  text-align: center; margin-bottom: 16px;
}
.section-sub {
  font-size: 16px; color: var(--t2); text-align: center;
  max-width: 560px; margin: 0 auto 56px; line-height: 1.7;
}

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; margin-top: 56px;
}
.feature-card {
  padding: 28px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 14px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: rgba(59,130,246,0.35); transform: translateY(-2px); }
.feature-icon { font-size: 30px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 700; color: var(--t1); margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--t2); line-height: 1.65; }

/* ── Steps ── */
.steps {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 20px; margin-top: 56px; flex-wrap: wrap;
}
.step {
  display: flex; align-items: flex-start; gap: 16px;
  max-width: 280px;
}
.step-num {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #fff;
}
.step-content h3 { font-size: 15px; font-weight: 700; color: var(--t1); margin-bottom: 6px; }
.step-content p  { font-size: 13px; color: var(--t2); }
.step-arrow { font-size: 24px; color: var(--t3); margin-top: 10px; }

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-top: 56px;
}
.pricing-card {
  position: relative;
  padding: 30px 26px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 16px;
}
.pricing-card-popular {
  border-color: rgba(59,130,246,0.5);
  background: linear-gradient(to bottom, rgba(59,130,246,0.08), var(--bg-card));
}
.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 14px;
  background: var(--blue); border-radius: 20px;
  font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap;
}
.plan-name   { font-size: 13px; font-weight: 700; color: var(--t2); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.plan-price  { font-size: 40px; font-weight: 900; color: var(--t1); margin-bottom: 6px; }
.plan-period { font-size: 16px; font-weight: 400; color: var(--t2); }
.plan-desc   { font-size: 13px; color: var(--t3); margin-bottom: 24px; }
.plan-features { display: flex; flex-direction: column; gap: 9px; margin-bottom: 28px; }
.plan-features li { font-size: 13.5px; color: var(--t2); }
.plan-features li:has(✗) { color: var(--t3); }
.plan-btn {
  display: block; text-align: center;
  padding: 12px; border-radius: 9px;
  font-size: 14px; font-weight: 700;
  transition: all 0.15s;
}
.plan-btn-primary { background: var(--blue); color: #fff; }
.plan-btn-primary:hover { background: var(--blue-d); }
.plan-btn-outline {
  background: transparent; border: 1px solid var(--border); color: var(--t2);
}
.plan-btn-outline:hover { border-color: rgba(59,130,246,0.4); color: var(--t1); }
.pricing-note {
  text-align: center; margin-top: 32px;
  font-size: 13px; color: var(--t3);
}

/* ── FAQ ── */
.faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 0; }
.faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.faq-q { font-size: 15px; font-weight: 700; color: var(--t1); margin-bottom: 8px; }
.faq-a { font-size: 14px; color: var(--t2); line-height: 1.65; }

/* ── CTA Section ── */
.cta-section {
  background: radial-gradient(ellipse 60% 60% at 50% 100%, rgba(59,130,246,0.15), transparent);
}
.cta-title { font-size: clamp(28px, 4vw, 48px); font-weight: 900; color: var(--t1); margin-bottom: 16px; }
.cta-sub   { font-size: 17px; color: var(--t2); margin-bottom: 36px; }
.cta-note  { margin-top: 16px; font-size: 12px; color: var(--t3); }

/* ── Footer ── */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { font-size: 15px; font-weight: 700; color: var(--t2); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--t3); transition: color 0.15s; }
.footer-links a:hover { color: var(--t2); }
.footer-copy { font-size: 13px; color: var(--t3); }

/* ── Contact Form ── */
.contact-form {
  margin-top: 40px;
  display: flex; flex-direction: column; gap: 16px;
  text-align: left;
}
.contact-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.contact-field {
  display: flex; flex-direction: column; gap: 6px;
}
.contact-field label {
  font-size: 12px; font-weight: 700; color: var(--t2);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.contact-field input,
.contact-field textarea {
  background: var(--bg-card);
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 10px;
  color: var(--t1);
  font-family: inherit;
  font-size: 14px;
  padding: 12px 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: vertical;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder { color: var(--t3); }
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: rgba(59,130,246,0.5);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.08);
}
.contact-submit { align-self: center; margin-top: 8px; }
.contact-note { font-size: 12px; color: var(--t3); text-align: center; margin-top: 4px; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; align-items: center; }
  .contact-row { grid-template-columns: 1fr; }
}
