:root {
  --bg0: #080512;
  --bg1: #120a24;
  --bg2: #1a1230;
  --surface: rgba(26, 18, 48, 0.78);
  --surface-strong: rgba(26, 18, 48, 0.94);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --indigo: #7c6bff;
  --indigo-soft: rgba(124, 107, 255, 0.2);
  --gold: #e8c547;
  --gold-soft: rgba(232, 197, 71, 0.18);
  --teal: #3dd6c8;
  --text: #f0ebff;
  --muted: rgba(240, 235, 255, 0.68);
  --muted-strong: rgba(240, 235, 255, 0.86);
  --ok: #5dffb1;
  --r-card: 20px;
  --r-panel: 28px;
  --r-pill: 999px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.5);
  --glow-indigo: 0 0 0 1px rgba(124, 107, 255, 0.3), 0 0 32px rgba(124, 107, 255, 0.2);
  --glow-gold: 0 0 0 1px rgba(232, 197, 71, 0.25), 0 0 28px rgba(232, 197, 71, 0.15);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --grad-brand: linear-gradient(135deg, var(--indigo), var(--gold));
  --grad-text: linear-gradient(120deg, #fff, var(--indigo) 40%, var(--gold) 90%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg0);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 60% at 10% -5%, rgba(124, 107, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 80% 60% at 95% 10%, rgba(232, 197, 71, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(61, 214, 200, 0.06), transparent 45%);
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--s-5);
}

a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--gold); }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--text);
  text-decoration: none;
}

.brand-mark-img { width: 38px; height: 38px; }

.brand-logo {
  display: block;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: var(--s-4);
  margin-left: auto;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted-strong);
  font-size: 0.92rem;
  text-decoration: none;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 0.55rem 1rem;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
  color: #120a24 !important;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}

.nav-home {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-7);
  align-items: center;
  padding: var(--s-7) 0 var(--s-8);
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.78rem;
  color: var(--muted-strong);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.hero h1 {
  margin: var(--s-5) 0 var(--s-4);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero .lede {
  font-size: 1.08rem;
  color: var(--muted-strong);
  max-width: 52ch;
}

.pronunciation {
  font-size: 0.95rem !important;
  color: var(--muted) !important;
  margin-top: var(--s-4);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--grad-brand);
  color: #120a24;
  box-shadow: var(--glow-gold);
}

.btn-ghost {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.btn-quiet {
  color: var(--muted-strong);
  background: transparent;
  border-color: transparent;
}

.hero-visual {
  position: relative;
  border-radius: var(--r-panel);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: var(--shadow-md), var(--glow-indigo);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.hero-visual svg { width: 100%; height: 100%; display: block; }

.hero-badge {
  position: absolute;
  bottom: var(--s-4);
  right: var(--s-4);
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-pill);
  background: rgba(8, 5, 18, 0.75);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--mono);
}

section { padding: var(--s-7) 0; }

.section-head { margin-bottom: var(--s-6); max-width: 720px; }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 var(--s-3);
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-4);
}

.card {
  padding: var(--s-5);
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  background: var(--surface);
}

.card h3 {
  margin: 0 0 var(--s-3);
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.95rem;
}

.card .tag {
  display: inline-block;
  margin-bottom: var(--s-3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-family: var(--mono);
  background: var(--indigo-soft);
  color: var(--indigo);
}

.butterfly-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  align-items: center;
  padding: var(--s-6);
  border-radius: var(--r-panel);
  border: 1px solid var(--border-strong);
  background: linear-gradient(145deg, var(--surface-strong), rgba(124, 107, 255, 0.08));
  box-shadow: var(--glow-indigo);
}

@media (max-width: 768px) {
  .butterfly-panel { grid-template-columns: 1fr; }
}

.butterfly-panel ul {
  margin: var(--s-4) 0 0;
  padding-left: 1.2rem;
  color: var(--muted-strong);
}

.butterfly-panel li { margin-bottom: 0.5rem; }

.mode-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}

@media (max-width: 640px) {
  .mode-strip { grid-template-columns: 1fr; }
}

.mode-card {
  padding: var(--s-5);
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}

.mode-card strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: var(--s-3);
  color: var(--gold);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-5);
}

.video-feature h3 {
  margin: var(--s-4) 0 var(--s-2);
  font-size: 1rem;
}

.video-feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.video-frame {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg2);
}

.video-frame iframe,
.video-frame .video-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--s-3);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
  padding: var(--s-4);
}

.ae-strip {
  padding: var(--s-6);
  border-radius: var(--r-panel);
  border: 1px solid var(--border);
  background: linear-gradient(120deg, rgba(232, 197, 71, 0.08), rgba(124, 107, 255, 0.1));
}

.ae-strip h2 { margin-top: 0; }

.contact {
  display: flex;
  justify-content: center;
}

.contact-card {
  max-width: 560px;
  width: 100%;
  padding: var(--s-6);
  border-radius: var(--r-panel);
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.contact-card h2 { margin-top: 0; }

.mailto {
  display: inline-block;
  margin-top: var(--s-4);
  font-family: var(--mono);
  font-size: 0.95rem;
}

footer {
  margin-top: var(--s-8);
  padding: var(--s-5) 0 var(--s-7);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  justify-content: space-between;
}

footer a { color: var(--muted-strong); }
