/* ── Base ── */
:root {
  --bg: #05060f;
  --bg-2: #0b0d1a;
  --bg-3: #10122a;
  --border: rgba(139, 92, 246, 0.15);
  --border-bright: rgba(139, 92, 246, 0.35);
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --radius: 12px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.65em 1.4em;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-bright);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--purple-light);
  background: rgba(139, 92, 246, 0.08);
}

.btn-nav {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple-light);
  border: 1px solid var(--border-bright);
  font-size: 0.875rem;
}
.btn-nav:hover {
  background: rgba(139, 92, 246, 0.25);
}

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

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-icon {
  font-size: 1.4rem;
  color: var(--purple-light);
  animation: spin-slow 8s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.logo-text { letter-spacing: -0.02em; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.hero-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}
.glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
  top: -100px; left: -100px;
  animation: float-a 12s ease-in-out infinite;
}
.glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15), transparent 70%);
  bottom: 100px; right: -50px;
  animation: float-b 15s ease-in-out infinite;
}

@keyframes float-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 30px); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, -40px); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  padding: 0.35em 0.9em;
  font-size: 0.8rem;
  color: var(--purple-light);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

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

.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.metric strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--purple-light);
  letter-spacing: -0.02em;
}

.metric span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
  max-width: 90px;
  display: block;
}

.metric-sep {
  width: 1px;
  height: 40px;
  background: var(--border-bright);
  flex-shrink: 0;
}

/* ── Terminal ── */
.hero-visual {
  position: relative;
  z-index: 1;
}

.terminal {
  background: rgba(11, 13, 26, 0.9);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.05),
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(139, 92, 246, 0.08);
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255, 0.03);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca42; }

.terminal-title {
  margin-left: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: system-ui, sans-serif;
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  min-height: 180px;
}

.t-line {
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  opacity: 0;
  animation: fade-in-line 0.5s forwards;
}

.t-line:nth-child(1) { animation-delay: 0.4s; }
.t-line:nth-child(2) { animation-delay: 1.2s; }
.t-line:nth-child(3) { animation-delay: 2.2s; }

@keyframes fade-in-line {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.t-prompt { color: var(--purple); flex-shrink: 0; }

.t-highlight {
  color: var(--cyan);
  font-weight: 600;
}

.t-highlight .t-prompt { color: var(--cyan); }

.t-typing {
  color: var(--text);
  opacity: 1 !important;
}

/* ── Sections ── */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-dark {
  background: var(--bg-2);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  color: var(--purple-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(139, 92, 246, 0.1);
}

.card-featured {
  grid-column: span 1;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(59, 130, 246, 0.05));
  border-color: var(--border-bright);
}

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

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.card-list {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-list li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.card-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--purple);
}

/* ── Steps ── */
.steps {
  max-width: 700px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(139, 92, 246, 0.2);
  line-height: 1;
  letter-spacing: -0.04em;
  flex-shrink: 0;
  width: 3rem;
  padding-top: 0.15rem;
  font-variant-numeric: tabular-nums;
}

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.step-connector {
  height: 2.5rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--border-bright), transparent);
  margin: 0.5rem 0 0.5rem 1.4rem;
}

/* ── Stats ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s;
}

.stat-card:hover { border-color: var(--border-bright); }

.stat-num {
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ── Testimonials ── */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.testimonial {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.testimonial-text {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-text::before { content: '"'; }
.testimonial-text::after  { content: '"'; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── CTA ── */
.section-cta {
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 60%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-box {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  position: relative;
}

.cta-box h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.cta-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.cta-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto 1rem;
}

.cta-input {
  flex: 1;
  background: rgba(255,255,255, 0.05);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  padding: 0.7em 1em;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.cta-input::placeholder { color: var(--text-muted); }
.cta-input:focus { border-color: var(--purple-light); }

.cta-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
  flex: 1;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 7rem;
  }
  .hero-visual { display: none; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-metrics { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .metric-sep { display: none; }
  .cta-form { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
}
