:root {
  --bg: #0b0c12;
  --surface: rgba(19, 21, 32, 0.92);
  --surface-strong: rgba(20, 23, 35, 0.98);
  --ink: #f8fafc;
  --muted: #cbd5f5;
  --line: rgba(148, 163, 184, 0.2);
  --accent: #4fd1ff;
  --accent-2: #8b5cf6;
  --accent-3: #ec4899;
  --shadow: 0 30px 90px rgba(10, 12, 24, 0.6);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(81, 99, 255, 0.15), transparent 40%),
    radial-gradient(circle at top right, rgba(80, 209, 255, 0.18), transparent 38%),
    linear-gradient(180deg, #0a0b12 0%, #0f111c 55%, #0a0b12 100%);
}

img {
  max-width: 100%;
  display: block;
}

.page {
  min-height: 100vh;
  padding: 28px clamp(20px, 6vw, 96px) 64px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.8px;
}

.brand span {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.brand img {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 12px 24px rgba(88, 101, 242, 0.35));
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.nav-links .nav-cta {
  color: #fff;
}

.nav-cta {
  padding: 11px 20px;
  border-radius: 999px;
  background: linear-gradient(120deg, #3b82f6 0%, #8b5cf6 45%, #ec4899 100%);
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 16px 40px rgba(76, 93, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding-bottom: 72px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  margin: 12px 0 16px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 28px 0 22px;
}

.btn {
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, #3b82f6 0%, #8b5cf6 45%, #ec4899 100%);
  color: #fff;
  box-shadow: 0 20px 50px rgba(76, 93, 255, 0.4);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--ink);
}

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

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
}

.meta-label {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-value {
  font-size: 16px;
  font-weight: 600;
}

.hero-visual {
  display: grid;
  gap: 20px;
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.hero-card.mini {
  display: grid;
  gap: 18px;
}

.micro {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin: 0 0 6px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  background: rgba(79, 209, 255, 0.12);
  color: #d7f5ff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(79, 209, 255, 0.2);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin-bottom: 8px;
}

.section-kicker.inverse {
  color: rgba(255, 255, 255, 0.7);
}

.icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(130deg, rgba(79, 209, 255, 0.9), rgba(139, 92, 246, 0.9), rgba(236, 72, 153, 0.9));
  box-shadow: 0 10px 24px rgba(76, 93, 255, 0.4);
}

.icon-badge img {
  width: 18px;
  height: 18px;
}

.icon-badge.inverse {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.ba-slot {
  background: rgba(15, 17, 28, 0.75);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  display: grid;
  gap: 10px;
}

.ba-slot.before {
  opacity: 0.85;
}

.ba-slot.after {
  background: radial-gradient(circle at top left, rgba(79, 209, 255, 0.16), transparent 55%),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.2), transparent 50%),
    rgba(12, 15, 26, 0.9);
  border: 1px solid rgba(79, 209, 255, 0.4);
  box-shadow: 0 20px 50px rgba(79, 209, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.ba-slot.after::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 160%;
  height: 160%;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 45%, transparent 60%);
  transform: rotate(12deg);
  pointer-events: none;
}

.ba-slot img {
  border-radius: 12px;
}

.ba-slot.after img {
  box-shadow: 0 20px 50px rgba(79, 209, 255, 0.35);
}

.ba-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.ba-arrow {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(140deg, rgba(79, 209, 255, 0.9), rgba(139, 92, 246, 0.95));
  display: grid;
  place-items: center;
  box-shadow: 0 16px 40px rgba(76, 93, 255, 0.4);
}

.ba-arrow img {
  width: 22px;
  height: 22px;
}

.value {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 80px;
}

.value article {
  background: var(--surface);
  padding: 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.section-title {
  margin-bottom: 24px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.work-card {
  background: var(--surface);
  padding: 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.testimonials {
  margin: 80px 0;
}

.testimonials-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.testimonial-card {
  background: var(--surface);
  padding: 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  min-width: 260px;
  flex: 0 0 260px;
  scroll-snap-align: start;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.testimonial-card img {
  border-radius: 14px;
  padding: 12px;
  background: radial-gradient(circle at top, rgba(79, 209, 255, 0.2), transparent 60%),
    rgba(12, 15, 26, 0.9);
  box-shadow: 0 18px 40px rgba(79, 209, 255, 0.35);
}

.testimonial-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.testimonial-card span {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}

.process {
  margin: 80px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.steps > div {
  background: var(--surface);
  padding: 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.step-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.pricing {
  margin: 80px 0;
}

.pricing-card {
  background: linear-gradient(120deg, rgba(15, 17, 28, 0.95), rgba(22, 26, 40, 0.95));
  color: #fff;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.pricing-card li::before {
  content: "•";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.6);
}

.pricing-sub {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
}

.pricing-buy {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.price {
  font-size: 44px;
  font-weight: 700;
}

.faq {
  margin: 80px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.faq-grid > div {
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.form-section {
  margin: 80px 0;
}

.intake {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  max-width: 680px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.intake label {
  font-size: 14px;
  font-weight: 600;
  display: grid;
  gap: 8px;
}

.intake input,
.intake select,
.intake textarea {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(9, 12, 20, 0.6);
  color: var(--ink);
  font-family: var(--font);
}

.intake .fine {
  color: var(--muted);
}

.portal {
  max-width: 980px;
}

.portal-output {
  background: rgba(9, 12, 20, 0.6);
  border: 1px dashed rgba(148, 163, 184, 0.2);
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.portal-note {
  font-size: 13px;
  color: var(--muted);
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.code-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(148, 163, 184, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
}

.client-meta {
  background: var(--surface);
  padding: 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.code-entry {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.code-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.code-form input {
  flex: 1 1 220px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(9, 12, 20, 0.6);
  color: var(--ink);
  font-family: var(--font);
}

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

.fine {
  font-size: 12px;
  color: rgba(248, 250, 252, 0.65);
}

.missing {
  display: none;
  color: var(--muted);
  font-size: 13px;
}

.portal-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.6);
  color: var(--ink);
  font-size: 13px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.portal-status[data-tone='error'] {
  background: rgba(239, 68, 68, 0.15);
  color: #fecaca;
}

.portal-status[data-tone='success'] {
  background: rgba(34, 197, 94, 0.15);
  color: #bbf7d0;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-card {
    padding: 18px;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .ba-arrow {
    margin: 0 auto;
    transform: rotate(90deg);
  }

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

@media (prefers-reduced-motion: no-preference) {
  .hero,
  .value article,
  .work-card,
  .testimonial-card,
  .steps > div,
  .pricing-card,
  .faq-grid > div,
  .intake,
  .client-meta {
    animation: fadeUp 0.9s ease both;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
