:root {
  --brand-blue: #3A57FF;
  --brand-indigo: #6C8CFF;
  --brand-cyan: #00D3FF;
  --brand-slate-900: #0B1220;
  --brand-slate-700: #1B2336;
  --brand-slate-500: #3F4A63;
  --brand-slate-300: #8A94A6;
  --brand-slate-100: #E8ECF4;
  --white: #FFFFFF;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;

  --font-sans: 'Inter', 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 8px rgba(11, 18, 32, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 18, 32, 0.12);
  --shadow-lg: 0 16px 40px rgba(11, 18, 32, 0.18);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--brand-slate-100);
  background: var(--brand-slate-900);
  font-family: var(--font-sans);
  line-height: 1.6;
}

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

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--responsive { grid-template-columns: 1fr; }

@media (min-width: 768px) { .grid--responsive { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--responsive { grid-template-columns: repeat(3, 1fr); } }

@media (min-width: 768px) {
  .header__menu-toggle { display: none; }
  .nav { position: static; display: flex; background: transparent; border: 0; padding: 0; flex-direction: row; align-items: center; gap: 16px; }
}

@media (min-width: 1024px) {
  .header__menu-toggle { display: none; }
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.7);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(138, 148, 166, 0.15);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; position: relative; }
.header__brand { display: flex; align-items: center; gap: 12px; }
.header__logo { width: 44px; height: 44px; }
.header__title { font-weight: 700; letter-spacing: 0.5px; }
.header__menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius-md); border: 1px solid rgba(138, 148, 166, 0.3); background: transparent; color: var(--brand-slate-100); cursor: pointer; transition: background 200ms var(--ease), border-color 200ms var(--ease); }
.header__menu-toggle:hover { background: rgba(58, 87, 255, 0.12); border-color: rgba(58, 87, 255, 0.35); }
.nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(11, 18, 32, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(138, 148, 166, 0.15); padding: 12px 24px; flex-direction: column; gap: 8px; opacity: 0; transform: translateY(-4px); transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.nav.is-open { display: flex; opacity: 1; transform: translateY(0); }
.nav__link { color: var(--brand-slate-100); text-decoration: none; padding: 12px 16px; border-radius: var(--radius-sm); transition: color 200ms var(--ease), background 200ms var(--ease); }
.nav__link:hover { color: var(--white); background: rgba(58, 87, 255, 0.12); }

.hero {
  position: relative; overflow: hidden; padding: 80px 0; border-bottom: 1px solid rgba(138, 148, 166, 0.15);
  background: radial-gradient(1200px 400px at 30% 10%, rgba(58, 87, 255, 0.15), transparent 60%),
              radial-gradient(900px 300px at 70% 20%, rgba(0, 211, 255, 0.12), transparent 60%);
}
.hero__eyebrow { color: var(--brand-cyan); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.hero__title { font-size: clamp(32px, 5vw, 56px); font-weight: 800; margin: 12px 0; }
.hero__subtitle { font-size: clamp(16px, 2.4vw, 22px); color: var(--brand-slate-300); max-width: 820px; }
.hero__actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius-md); padding: 12px 18px; font-weight: 600; text-decoration: none; transition: all 200ms var(--ease); cursor: pointer; }
.btn--primary { color: var(--white); background: linear-gradient(90deg, var(--brand-indigo), var(--brand-blue)); box-shadow: var(--shadow-md); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn--secondary { color: var(--brand-slate-100); background: rgba(58, 87, 255, 0.12); border-color: rgba(58, 87, 255, 0.3); }
.btn--secondary:hover { background: rgba(58, 87, 255, 0.18); }
.btn--ghost { color: var(--brand-slate-100); background: transparent; border-color: rgba(138, 148, 166, 0.3); }
.btn--ghost:hover { border-color: rgba(138, 148, 166, 0.6); }

.section { padding: 56px 0; }
.section__title { font-size: 28px; font-weight: 800; margin: 0 0 12px; }
.section__subtitle { color: var(--brand-slate-300); max-width: 760px; }

.card { background: rgba(27, 35, 54, 0.6); border: 1px solid rgba(138, 148, 166, 0.12); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(58, 87, 255, 0.3); }
.card__title { font-weight: 700; font-size: 20px; margin: 0 0 8px; }
.card__body { color: var(--brand-slate-300); }

.form { display: grid; gap: 12px; }
.form__row { display: grid; gap: 12px; }
.form__label { font-weight: 600; color: var(--brand-slate-100); }
.form__input, .form__textarea { width: 100%; background: rgba(27, 35, 54, 0.8); border: 1px solid rgba(138, 148, 166, 0.2); border-radius: var(--radius-md); color: var(--white); padding: 12px; transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.form__textarea { min-height: 140px; resize: vertical; }
.form__input:focus, .form__textarea:focus { outline: none; border-color: rgba(58, 87, 255, 0.5); box-shadow: 0 0 0 4px rgba(58, 87, 255, 0.15); }
.form__hint { color: var(--brand-slate-300); font-size: 14px; }

.tag { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(138, 148, 166, 0.2); color: var(--brand-slate-300); font-size: 13px; gap: 8px; }
.tag--success { border-color: rgba(34, 197, 94, 0.35); color: #A7F3D0; }
.tag--warning { border-color: rgba(245, 158, 11, 0.35); color: #FDE68A; }
.tag--danger { border-color: rgba(239, 68, 68, 0.35); color: #FCA5A5; }

.media { display: block; width: 100%; border-radius: var(--radius-md); border: 1px solid rgba(138, 148, 166, 0.15); }
.media--elevated { box-shadow: var(--shadow-md); }

.footer { border-top: 1px solid rgba(138, 148, 166, 0.15); padding: 24px 0 48px; color: var(--brand-slate-300); }
.footer__links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer__link { color: var(--brand-slate-300); text-decoration: none; }
.footer__link:hover { color: var(--white); }

/* status feedback uses .visually-hidden region; modal removed */

.typography h1 { font-size: 48px; font-weight: 800; }
.typography h2 { font-size: 36px; font-weight: 800; }
.typography h3 { font-size: 28px; font-weight: 700; }
.typography h4 { font-size: 22px; font-weight: 700; }
.typography p { font-size: 18px; }
.typography small { font-size: 14px; color: var(--brand-slate-300); }

.palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.swatch { border-radius: var(--radius-md); padding: 16px; border: 1px solid rgba(138, 148, 166, 0.15); }
.swatch__block { height: 72px; border-radius: var(--radius-md); }
.swatch__label { margin-top: 8px; font-size: 14px; color: var(--brand-slate-300); }

.animate-pop { animation: pop 500ms var(--ease); }
@keyframes pop { 0% { transform: scale(0.98); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* Override order: ensure desktop/tablet nav is inline after base mobile styles */
@media (min-width: 768px) {
  .nav { position: static; display: flex; background: transparent; border: 0; padding: 0; flex-direction: row; align-items: center; gap: 16px; opacity: 1; transform: none; }
  .header__menu-toggle { display: none; }
  .header__logo { width: 56px; height: 56px; }
}

@media (min-width: 1024px) {
  .header__menu-toggle { display: none; }
  .header__logo { width: 64px; height: 64px; }
}
