:root {
  /* Midnight palette */
  --midnight-950: #070b1a;
  --midnight-900: #0b1226;
  --midnight-800: #111a36;
  --midnight-700: #17224a;
  --midnight-600: #223066;
  
  /* Iris (primary purple) */
  --iris-500: #7c5cff;
  --iris-400: #9175ff;
  --iris-300: #b2a5ff;
  
  /* Mint (accent cyan) */
  --mint-500: #00c2ff;
  --mint-400: #43d4ff;
  
  /* Blue support */
  --blue-support-500: #4f8cff;
  --blue-support-400: #79a7ff;
  
  /* Blush */
  --blush-100: #e9eeff;
  --blush-50: #f5f7ff;
  
  /* Rose (destructive) */
  --rose-500: #ff5d7a;
  --rose-400: #ff7e95;
  
  /* Theme tokens */
  --background: #070b1a;
  --foreground: #ecf0ff;
  --card: #0b1226;
  --card-foreground: #ecf0ff;
  --popover: #111a36;
  --primary: #7c5cff;
  --primary-foreground: #f7f8ff;
  --secondary: #17224a;
  --secondary-foreground: #ecf0ff;
  --muted: #111a36;
  --muted-foreground: #9fb0ea;
  --accent: #00c2ff;
  --accent-foreground: #070b1a;
  --border: #2c3a72;
  --input: #384b91;
  --ring: #9175ff;
  
  /* Legacy aliases for compatibility */
  --bg: var(--background);
  --text: var(--foreground);
  --line: var(--border);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
}

.site-header,
.section,
.site-footer {
  width: min(100% - 3rem, 1120px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  margin-top: 1rem;
  backdrop-filter: blur(8px);
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
}

.logo {
  color: var(--iris-400);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: 'Space Grotesk', Manrope, ui-sans-serif, sans-serif;
}

.top-cta {
  color: var(--mint-500);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.section {
  padding: clamp(2.2rem, 5vw, 4rem) 0;
}

.hero {
  padding-top: clamp(4.2rem, 8vw, 6.5rem);
}

.kicker,
.section-kicker {
  margin: 0;
  color: var(--mint-500);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 650;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-family: 'Space Grotesk', Manrope, ui-sans-serif, sans-serif;
  text-rendering: optimizeLegibility;
}

h1 {
  margin-top: 0.8rem;
  max-width: 14ch;
  font-size: clamp(2.3rem, 5.8vw, 4.8rem);
}

.lead,
.section-lead,
.supporting-text {
  max-width: 70ch;
}

.lead {
  margin: 1.3rem 0 0;
  color: var(--blush-100);
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
}

.supporting-text {
  margin: 0.9rem 0 0;
  color: var(--muted-foreground);
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.08rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 620;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.button.primary {
  color: var(--primary-foreground);
  background: var(--primary);
}

.button.secondary {
  color: var(--secondary-foreground);
  border-color: var(--border);
  background: var(--secondary);
}

h2 {
  margin-top: 0.7rem;
  max-width: 26ch;
  font-size: clamp(1.7rem, 3.3vw, 2.4rem);
}

.section-lead {
  margin: 0.9rem 0 0;
  color: var(--muted-foreground);
}

.grid {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.25rem;
}

.grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 1rem 1.05rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 1px 0 rgba(124, 92, 255, 0.08), 0 12px 32px rgba(7, 11, 26, 0.22);
}

.card h3 {
  font-size: 1rem;
}

.card p {
  margin: 0.5rem 0 0;
  color: var(--muted-foreground);
}

.steps {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.85rem;
}

.steps li {
  counter-increment: step;
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: var(--muted);
}

.steps h3::before {
  content: counter(step, decimal-leading-zero) ". ";
  color: var(--mint-500);
}

.steps p {
  margin: 0.4rem 0 0;
  color: var(--muted-foreground);
}

.principles {
  margin: 1.25rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
  color: var(--muted-foreground);
}

.contact {
  margin-bottom: 2.2rem;
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--popover);
}

.contact h2 {
  max-width: 16ch;
}

.site-footer {
  padding: 0.2rem 0 2.4rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: rgba(158, 172, 191, 0.8);
  font-size: 0.9rem;
}

.site-footer a {
  color: rgba(158, 172, 191, 0.8);
  text-decoration: underline;
}

.site-footer a:hover {
  color: var(--foreground);
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--foreground);
  max-width: none;
}

.privacy-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--foreground);
  font-size: 1.1rem;
}

.privacy-content p,
.privacy-content ul,
.privacy-content li {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.privacy-content ul {
  padding-left: 1.5rem;
}

.privacy-content a {
  color: var(--mint-500);
  text-decoration: underline;
}

.privacy-content a:hover {
  color: var(--mint-400);
}

@media (max-width: 900px) {
  .grid.two-col,
  .grid.cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header,
  .section,
  .site-footer {
    width: min(100% - 1.4rem, 1120px);
  }

  .top-nav {
    border-radius: 0.75rem;
  }
}
