:root {
  --bg: #0b0b12;
  --bg-alt: #131320;
  --surface: #191927;
  --surface-2: #20202f;
  --border: #2a2a3c;
  --text: #f2f2f7;
  --text-dim: #a6a6bd;
  --accent: #7c5cff;
  --accent-2: #ff5c9d;
  --accent-3: #5ce1ff;
  --gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --radius: 16px;
  --max-width: 1180px;
  --shadow: 0 20px 60px -20px rgba(124, 92, 255, 0.35);
}

:root[data-theme="light"] {
  --bg: #f7f7fb;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f0f8;
  --border: #e3e3ee;
  --text: #14141f;
  --text-dim: #55556b;
  --shadow: 0 20px 60px -25px rgba(124, 92, 255, 0.25);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f7fb;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --surface-2: #f0f0f8;
    --border: #e3e3ee;
    --text: #14141f;
    --text-dim: #55556b;
    --shadow: 0 20px 60px -25px rgba(124, 92, 255, 0.25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.nav-cta:hover { transform: translateY(-2px); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -150px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(124,92,255,0.35), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -250px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,92,157,0.25), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 12px var(--accent-3);
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  font-weight: 800;
}

h1 .highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover { transform: translateY(-3px); }

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

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Stats bar */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 70px;
  padding-top: 50px;
  border-top: 1px solid var(--border);
}

.stat { text-align: center; }

.stat strong {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* Section shared */
section { padding: 90px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-tag {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 800;
}

.section-head p { color: var(--text-dim); font-size: 1.05rem; margin: 0; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  font-weight: 700;
}

.service-card p {
  color: var(--text-dim);
  font-size: 0.94rem;
  margin: 0;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.process-card { position: relative; padding-top: 10px; }

.process-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border);
  line-height: 1;
  margin-bottom: 16px;
}

.process-card h3 { font-size: 1.05rem; margin: 0 0 8px; }
.process-card p { color: var(--text-dim); font-size: 0.9rem; margin: 0; }

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

.pricing-grid.single {
  grid-template-columns: 1fr;
  max-width: 400px;
  margin: 0 auto;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  position: relative;
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.price-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.price-card .price { font-size: 2.2rem; font-weight: 800; margin: 10px 0 4px; }
.price-card .price span { font-size: 0.95rem; color: var(--text-dim); font-weight: 500; }
.price-card .desc { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 24px; }

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}

.price-list li {
  padding: 9px 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-dim);
  display: flex;
  gap: 10px;
}

.price-list li:first-child { border-top: none; }
.price-list li::before { content: "✓"; color: var(--accent-3); font-weight: 700; }

/* CTA band */
.cta-band {
  background: var(--gradient);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-band h2 { color: white; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0 0 32px; font-size: 1.05rem; }
.cta-band .btn-primary { background: white; color: #4527a0; box-shadow: none; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.5); color: white; }
.cta-band .btn-ghost:hover { border-color: white; color: white; background: rgba(255,255,255,0.1); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info p { color: var(--text-dim); margin-bottom: 32px; }

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-item strong { display: block; font-size: 0.92rem; margin-bottom: 2px; }
.contact-item span, .contact-item a { color: var(--text-dim); font-size: 0.88rem; text-decoration: none; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dim);
}

.field input, .field textarea, .field select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  resize: vertical;
}

.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-status {
  font-size: 0.88rem;
  margin-top: 14px;
  min-height: 20px;
  color: var(--accent-3);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p { color: var(--text-dim); font-size: 0.9rem; max-width: 280px; margin-top: 14px; }

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
  color: var(--text-dim);
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text); text-decoration: none; font-size: 0.9rem; opacity: 0.85; }
.footer-col a:hover { opacity: 1; color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.84rem;
  flex-wrap: wrap;
  gap: 12px;
}

.socials { display: flex; gap: 12px; }
.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .process-grid, .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .process-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 24px; }
  section { padding: 64px 0; }
  .hero { padding: 80px 0 60px; }
}
