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

:root {
  --bg:          #0a0a0f;
  --bg-alt:      #0f0f18;
  --surface:     #141420;
  --surface-2:   #1c1c2e;
  --border:      rgba(255,255,255,0.07);
  --border-hover:rgba(255,255,255,0.15);

  --text:        #f0f0fa;
  --text-muted:  #8b8ba7;
  --text-dim:    #4a4a6a;

  --accent:      #7c6fff;
  --accent-2:    #ff6b9d;
  --accent-glow: rgba(124,111,255,0.25);

  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   20px;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

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

/* ─── Utilities ─────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(124,111,255,0.12);
  border: 1px solid rgba(124,111,255,0.3);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn-primary:hover {
  background: #9183ff;
  box-shadow: 0 0 32px rgba(124,111,255,0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface); color: var(--text); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hover);
}
.btn-outline:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 14px 30px; font-size: 1rem; border-radius: var(--radius-sm); }
.btn-full { width: 100%; margin-top: auto; }

/* ─── Nav ───────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.03em;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.logo span { color: var(--accent); }
.logo-icon {
  height: 1.8rem;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  margin-left: 16px;
  flex: 1;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }

.nav-cta { margin-left: auto; }

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

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,111,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,111,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(124,111,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}

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

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

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 32px;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.stat-number { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.stat-label  { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

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

.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.feature-card--highlight {
  background: linear-gradient(135deg, rgba(124,111,255,0.12) 0%, rgba(255,107,157,0.06) 100%);
  border-color: rgba(124,111,255,0.3);
}

.feature-icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 4px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.feature-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(124,111,255,0.15);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  align-self: flex-start;
}

/* ─── Steps ─────────────────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
}

.step-content { padding-top: 10px; }
.step-content h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.step-content p  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

.step-connector {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(124,111,255,0.4), rgba(255,107,157,0.2));
  margin-left: 23px;
}

/* ─── Tech Stack ────────────────────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.tech-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.tech-category-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.pill--orange { background: rgba(255,140,50,0.1);  border-color: rgba(255,140,50,0.25);  color: #ff8c32; }
.pill--red    { background: rgba(255,80,80,0.1);   border-color: rgba(255,80,80,0.25);   color: #ff5050; }
.pill--blue   { background: rgba(50,150,255,0.1);  border-color: rgba(50,150,255,0.25);  color: #3296ff; }
.pill--green  { background: rgba(50,200,100,0.1);  border-color: rgba(50,200,100,0.25);  color: #32c864; }
.pill--teal   { background: rgba(50,200,180,0.1);  border-color: rgba(50,200,180,0.25);  color: #32c8b4; }
.pill--yellow { background: rgba(255,200,50,0.1);  border-color: rgba(255,200,50,0.25);  color: #ffc832; }
.pill--purple { background: rgba(150,80,255,0.1);  border-color: rgba(150,80,255,0.25);  color: #9650ff; }

.arch-note {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.arch-note-icon { font-size: 1.3rem; }
.arch-note p    { font-size: 0.9rem; color: var(--text-muted); }
.arch-note strong { color: var(--text); }

/* ─── Pricing ───────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

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

.pricing-card--featured {
  border-color: rgba(124,111,255,0.4);
  background: linear-gradient(160deg, rgba(124,111,255,0.1) 0%, var(--surface) 60%);
  box-shadow: 0 0 0 1px rgba(124,111,255,0.2), 0 20px 60px rgba(124,111,255,0.1);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }

.pricing-desc { font-size: 0.875rem; color: var(--text-muted); }

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-features li {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-features li:not(.dim) { color: var(--text); }
.pricing-features .dim { opacity: 0.4; }

/* ─── CTA Section ───────────────────────────────────────── */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(124,111,255,0.08) 0%, rgba(255,107,157,0.05) 100%);
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.cta-inner p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
  flex: 1;
  text-align: center;
}

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

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

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta   { margin-left: auto; }

  .hero { padding: 80px 0 70px; }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px 20px;
    justify-content: center;
  }
  .stat-divider { display: none; }

  .steps { padding: 0 8px; }

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

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-copy  { order: 2; }
  .footer-links { order: 3; justify-content: center; }
}
