:root {
  --bg: #06070f;
  --bg-alt: #0a0e1a;
  --surface: #10142a;
  --surface-border: #232a4a;
  --text: #e8ebf5;
  --text-muted: #9aa3bd;
  --accent: #9b8cff;
  --accent-2: #42d9ff;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
  --radius: 14px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,0.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 140px 90px, rgba(255,255,255,0.25) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 260px 40px, rgba(255,255,255,0.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 320px 160px, rgba(255,255,255,0.2) 50%, transparent 51%),
    radial-gradient(1px 1px at 60px 200px, rgba(255,255,255,0.2) 50%, transparent 51%);
  background-repeat: repeat;
  background-size: 360px 240px;
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-word {
  font-family: "Space Grotesk", "Inter", -apple-system, sans-serif;
  letter-spacing: -0.01em;
}

a { color: inherit; }

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 7, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand img { width: 32px; height: 32px; }

.brand-word .accent-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0;
  transition: color 0.15s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible,
.nav-dropdown-toggle[aria-expanded="true"] {
  color: var(--text);
}

.nav-chevron {
  transition: transform 0.15s ease;
}

.nav-dropdown-toggle[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  min-width: 210px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 30;
}

.nav-dropdown-menu.open {
  display: flex;
}

.nav-dropdown-menu a {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--surface-border);
  margin: 6px 4px;
}

.nav-dropdown-all {
  color: var(--accent-2) !important;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--gradient);
  color: #06070f;
}

.btn-primary:hover, .btn-primary:focus-visible {
  box-shadow: 0 0 0 1px rgba(155,140,255,0.4), 0 8px 24px -8px rgba(66,217,255,0.5);
  transform: translateY(-1px);
}

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

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

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

.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(155,140,255,0.25), rgba(66,217,255,0.08) 45%, transparent 70%);
  filter: blur(10px);
  animation: pulse 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  html { scroll-behavior: auto; }
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 20px;
  line-height: 1.1;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 32px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-split {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  text-align: left;
}

.hero-split .hero-text {
  max-width: 560px;
}

.hero-split .eyebrow,
.hero-split h1,
.hero-split p.lead {
  margin-left: 0;
}

.hero-visual {
  flex: none;
}

.hero-visual img {
  width: 200px;
  height: 200px;
  filter: drop-shadow(0 0 60px rgba(155, 140, 255, 0.35));
}

.hero-link {
  display: inline-block;
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-link:hover, .hero-link:focus-visible { color: var(--text); }

@media (max-width: 760px) {
  .hero-split {
    flex-direction: column;
    text-align: center;
  }
  .hero-split .hero-text { max-width: 100%; }
  .hero-visual { order: -1; }
  .hero-visual img { width: 120px; height: 120px; }
}

/* Work list (homepage) */
.work-list {
  display: flex;
  flex-direction: column;
}

.work-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 4px;
  border-bottom: 1px solid var(--surface-border);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.2s ease, background 0.2s ease;
}

.work-item:first-child { border-top: 1px solid var(--surface-border); }

.work-item:hover, .work-item:focus-visible {
  background: rgba(255, 255, 255, 0.02);
  padding-left: 16px;
}

.work-item-text h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.work-item-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.work-item-arrow {
  flex: none;
  font-size: 1.3rem;
  color: var(--accent-2);
  transition: transform 0.2s ease;
}

.work-item:hover .work-item-arrow { transform: translateX(4px); }

/* Sections */
section { padding: 72px 0; }

.section-head {
  max-width: 640px;
  margin: 0 0 40px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 12px;
}

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

.section-head p + p {
  margin-top: 12px;
}

/* Program cards */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

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

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

.program-card .eyebrow { margin-bottom: 0; }

.program-card h3 { font-size: 1.5rem; margin: 0; }

.program-card p { color: var(--text-muted); margin: 0; }

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
}

.feature-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--gradient);
}

.card-links {
  display: flex;
  gap: 18px;
  margin-top: auto;
  padding-top: 8px;
  flex-wrap: wrap;
}

.card-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.link-external { color: var(--accent-2); }
.link-internal { color: var(--text-muted); }
.link-external:hover, .link-internal:hover { color: var(--text); }

/* Feature grid (product pages) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

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

.feature-item h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.feature-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 44px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gradient);
  color: #06070f;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 700px;
}

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

.price-card .price {
  font-size: 2rem;
  font-weight: 700;
  margin: 8px 0 16px;
}

.price-card .price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* FAQ */
.faq-list { max-width: 720px; }

details.faq-item {
  border-bottom: 1px solid var(--surface-border);
  padding: 18px 0;
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent-2);
  flex: none;
}

details.faq-item[open] summary::after { content: "\2212"; }

details.faq-item p {
  color: var(--text-muted);
  margin: 12px 0 0;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

/* CTA band */
.cta-band {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 48px 24px;
}

.cta-band h2 { margin: 0 0 12px; }
.cta-band p { color: var(--text-muted); margin: 0 0 24px; }

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

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

.footer-inner .brand { font-size: 1rem; }
.footer-inner .brand img { width: 24px; height: 24px; }

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

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

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

.footer-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 16px;
}

/* 404 */
.not-found {
  text-align: center;
  padding: 120px 24px;
}

.not-found h1 { font-size: 3rem; margin-bottom: 12px; }
.not-found p { color: var(--text-muted); margin-bottom: 24px; }
