:root {
  --violet: #6d4aff;
  --violet-deep: #372580;
  --violet-ink: #1b143f;
  --lavender: #f7f5ff;
  --lavender-2: #e2dbff;
  --white: #ffffff;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --mint: #27ddb1;
  --shadow-soft: 0 14px 34px rgba(59, 37, 128, 0.08);
  --shadow-lift: 0 24px 54px rgba(59, 37, 128, 0.12);
  --font-ui: "Inter", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at top right, rgba(109, 74, 255, 0.11), transparent 24%),
    radial-gradient(circle at top left, rgba(39, 221, 177, 0.10), transparent 18%),
    var(--lavender);
  color: var(--violet-ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.layout-wrapper {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  min-width: 0;
}

/* ── Sidebar ── */
.sidebar {
  width: 260px;
  flex: 0 0 260px;
  background: rgba(247, 245, 255, 0.82);
  backdrop-filter: blur(14px);
  border-right: 1px solid rgba(229, 231, 235, 0.9);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  z-index: 100;
}

.sidebar-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--violet-deep);
  cursor: pointer;
  padding: 4px;
}

.sidebar-nav {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-nav-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-nav-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.nav-brand { color: var(--violet-ink); text-decoration: none; font-weight: 800; letter-spacing: -0.03em; font-size: 18px; }
.nav-brand-mark {
  display: block;
  width: 155px;
  max-width: 100%;
  height: auto;
}
.nav-links { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--violet-deep); font-size: 14px; font-weight: 600; display: block; padding: 4px 0; }
.nav-links a:hover { color: var(--violet); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Buttons ── */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 14px 26px rgba(109, 74, 255, 0.22); }
.btn-secondary { color: var(--violet); background: transparent; box-shadow: inset 0 0 0 2px rgba(109, 74, 255, 0.24); }
.btn-primary:hover,
.btn-secondary:hover { transform: translateY(-1px); }

/* ── Hero ── */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 32px 42px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: stretch;
}

.eyebrow {
  color: var(--violet);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero h1,
.section-title {
  font-family: var(--font-display);
  letter-spacing: -0.05em;
}

.hero h1 {
  font-size: 72px;
  line-height: 0.95;
  margin-bottom: 18px;
}

.hero p,
.section-intro,
.step-card p,
.step-card li,
.callout p {
  color: var(--violet-deep);
}

.hero p { font-size: 19px; max-width: 38rem; margin-bottom: 22px; }
.hero-actions, .hero-pills { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions { margin-bottom: 18px; }

.pill {
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(229, 231, 235, 0.95);
  color: var(--violet-deep);
  font-size: 13px;
  font-weight: 700;
}

/* ── Cards / panels ── */
.hero-panel,
.card,
.stat-card,
.step-card,
.callout {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(229, 231, 235, 0.98);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  border-radius: 28px;
  overflow: hidden;
  padding: 22px;
}

.hero-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(226, 219, 255, 0.9);
  color: var(--violet-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-side-note { color: var(--gray-500); font-size: 13px; font-weight: 700; }

.hero-panel img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
}

/* ── Mock UI ── */
.mock-field { margin-top: 16px; padding: 14px; border-radius: 16px; background: #fbfbff; border: 1px solid var(--gray-200); }
.mock-label { display: block; font-size: 12px; color: var(--gray-500); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.mock-input { border-radius: 14px; background: #fff; border: 1px solid var(--gray-200); padding: 11px 12px; color: var(--violet-deep); font-weight: 700; overflow-wrap: anywhere; }
.mock-button { display: inline-flex; margin-top: 16px; border-radius: 999px; padding: 12px 18px; background: var(--violet); color: #fff; font-weight: 800; }

/* ── Stat grid ── */
.stat-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  width: 100%;
}
.stat-card { border-radius: 20px; padding: 18px; width: 100%; max-width: none; }
.stat-card strong { display: block; font-size: 28px; line-height: 1; margin-bottom: 8px; letter-spacing: -0.04em; }
.stat-card span { color: var(--gray-500); font-size: 13px; }

/* ── Sections ── */
.divider { max-width: 1200px; margin: 0 auto; border: none; border-top: 1px solid rgba(229, 231, 235, 0.9); }
.section { max-width: 1200px; margin: 0 auto; padding: 56px 32px; }
.section-title { font-size: 50px; line-height: 0.97; margin-bottom: 14px; }
.section-intro { color: var(--violet-deep); max-width: 45rem; margin-bottom: 26px; }

/* ── Step grid ── */
.step-grid { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: none; }
.step-card { border-radius: 24px; padding: 22px; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.step-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.step-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.step-num {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(226, 219, 255, 0.95);
  color: var(--violet-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex: 0 0 auto;
}
.step-card h3 { font-size: 24px; line-height: 1.1; letter-spacing: -0.04em; }
.step-card p { margin-bottom: 12px; }
.step-card ul { padding-left: 18px; color: var(--violet-deep); margin-bottom: 14px; }
.step-card li { margin-bottom: 8px; }

/* ── Figure cards ── */
figure.card {
  margin-top: 14px;
  overflow: hidden;
  border-radius: 20px;
}
figure.card img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  background: #fff;
}
figcaption {
  padding: 12px 14px;
  color: var(--gray-500);
  font-size: 13px;
  border-top: 1px solid var(--gray-200);
}

/* ── Callout ── */
.callout { border-radius: 22px; padding: 20px; margin-top: 24px; }
.callout strong { display: block; margin-bottom: 8px; font-size: 18px; }
.success { background: linear-gradient(145deg, rgba(109, 74, 255, 0.08) 0%, rgba(39, 221, 177, 0.10) 100%); }
.next-step { border-left: 4px solid var(--mint); }

/* ── Utilities ── */
.highlight { color: var(--violet); font-weight: 700; }
.codebox {
  margin-top: 12px;
  border-radius: 16px;
  background: #fbfbff;
  border: 1px solid var(--gray-200);
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.domain-note {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(109, 74, 255, 0.08);
  border: 1px solid rgba(109, 74, 255, 0.18);
  color: var(--violet-deep);
  font-size: 14px;
  line-height: 1.55;
}
.domain-note strong { color: var(--violet-ink); }

/* ── Footer ── */
.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px;
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  color: var(--gray-500);
  font-size: 13px;
}
.footer-brand {
  display: inline-flex;
  margin-bottom: 14px;
}
.footer-brand-mark {
  display: block;
  width: 140px;
  max-width: 100%;
  height: auto;
}

/* ── Responsive ── */
@media (max-width: 920px) {
  .layout-wrapper { flex-direction: column; }
  .sidebar {
    width: 100%;
    flex: none;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  }
  .sidebar-nav {
    display: none;
  }
  .sidebar.is-open .sidebar-nav {
    display: flex;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .nav-brand-mark {
    width: 138px;
  }
  .hero { padding-top: 54px; }
  .hero h1 { font-size: 54px; }
  .section-title { font-size: 40px; }
}
