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

:root {
  --bg: #0a0e14;
  --bg2: #131920;
  --bg3: #1a2029;
  --border: #2a3140;
  --text: #e2e8f0;
  --text2: #94a3b8;
  --cyan: #00d9ff;
  --green: #10b981;
  --purple: #7c3aed;
  --red: #ef4444;
  --yellow: #f59e0b;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.2; font-weight: 700; }

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 16px;
}

.gradient {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  text-align: center;
  color: var(--text2);
  font-size: 1.125rem;
  margin-bottom: 48px;
}

/* === Hero === */
.hero {
  padding: 100px 0 60px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,217,255,0.08) 0%, transparent 60%);
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text2);
  max-width: 600px;
  margin: 0 auto 36px;
}

/* === Signup Form === */
.signup-form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
}

.signup-form input {
  flex: 1;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.signup-form input:focus {
  border-color: var(--cyan);
}

.signup-form button {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.1s;
}

.signup-form button:hover { opacity: 0.9; }
.signup-form button:active { transform: scale(0.98); }
.signup-form button:disabled { opacity: 0.5; cursor: not-allowed; }

.form-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text2);
  margin-top: 12px;
}

.form-hint.success { color: var(--green); }
.form-hint.error { color: var(--red); }

/* === Terminal === */
.terminal {
  max-width: 560px;
  margin: 48px auto 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-align: left;
}

.terminal-bar {
  background: var(--bg3);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.r { background: var(--red); }
.dot.y { background: var(--yellow); }
.dot.g { background: var(--green); }

.terminal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text2);
  margin-left: 8px;
}

.terminal-body {
  background: var(--bg);
  padding: 16px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
}

.terminal-body .line { opacity: 0; animation: fadeIn 0.3s forwards; }
.terminal-body .line:nth-child(1) { animation-delay: 0.2s; }
.terminal-body .line:nth-child(2) { animation-delay: 0.6s; }
.terminal-body .line:nth-child(3) { animation-delay: 0.9s; }
.terminal-body .line:nth-child(4) { animation-delay: 1.2s; }
.terminal-body .line:nth-child(5) { animation-delay: 1.5s; }

.prompt { color: var(--cyan); margin-right: 8px; }
.line.ok { color: var(--green); }
.line.ok .icon { margin-right: 6px; }
.line.healed { color: var(--yellow); }
.line.healed .icon { margin-right: 6px; }
.line.dim { color: var(--text2); font-size: 0.8rem; margin-top: 4px; }

@keyframes fadeIn { to { opacity: 1; } }

/* === Sections === */
.problem, .solution, .how, .deploy, .pricing, .cta {
  padding: 96px 0;
}

.problem { background: var(--bg); }
.solution { background: var(--bg2); }
.how { background: var(--bg); }
.deploy { background: var(--bg2); }
.pricing { background: var(--bg); }

.cta {
  background: radial-gradient(ellipse at 50% 100%, rgba(124,58,237,0.1) 0%, transparent 60%);
  padding-bottom: 120px;
}

/* === Cards === */
.cards {
  display: grid;
  gap: 20px;
  margin-top: 48px;
}

.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}

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

.card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--text2);
  font-size: 0.95rem;
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 12px;
}

/* === Steps === */
.steps {
  max-width: 640px;
  margin: 48px auto 0;
}

.step {
  display: flex;
  gap: 24px;
  margin-bottom: 36px;
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.step-content h3 { margin-bottom: 12px; }

.step-content p {
  color: var(--text2);
  font-size: 0.95rem;
}

.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text2);
  overflow-x: auto;
}

.code-block .ok { color: var(--green); }

/* === Pricing Cards === */
.pricing-cards .price-card {
  text-align: center;
  position: relative;
}

.price-card h3 {
  font-size: 1rem;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text2);
}

.price-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.price-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text2);
}

.price-card li::before {
  content: "\2713 ";
  color: var(--green);
  margin-right: 8px;
}

.price-note {
  font-size: 0.8rem;
  color: var(--text2);
}

.price-card.featured {
  border-color: var(--cyan);
  background: linear-gradient(180deg, rgba(0,217,255,0.05) 0%, var(--bg3) 100%);
}

.featured-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  border-radius: 100px;
}

.contact-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.contact-btn {
  display: inline-block;
  padding: 10px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.contact-btn:hover {
  background: var(--cyan);
  color: var(--bg);
}

/* === Footer === */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
}

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

.footer-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--cyan); }

.footer-copy {
  color: var(--text2);
  font-size: 0.8rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  .cards.two, .cards.three, .cards.four { grid-template-columns: 1fr; }

  .signup-form {
    flex-direction: column;
  }

  .signup-form button {
    width: 100%;
  }

  .step {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero { padding: 72px 0 40px; }
  .problem, .solution, .how, .pricing, .cta { padding: 64px 0; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .cards.four { grid-template-columns: repeat(2, 1fr); }
}
