/* Voltenberg — brand design system (see brand-design-guide.html) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-950: #0c0a1d;
  --brand-900: #13103a;
  --brand-800: #1e1a52;
  --brand-700: #2d2674;
  --brand-600: #4338a0;
  --brand-500: #5b4fc8;
  --brand-400: #7c73e0;
  --brand-300: #a9a2ef;
  --brand-200: #c8c4f6;
  --brand-100: #e8e7fb;
  --brand-50:  #f4f3fe;

  --accent-600: #2563eb;
  --accent-500: #3b82f6;
  --accent-400: #60a5fa;

  --success: #10b981;
  --warning: #f59e0b;
  --danger:  #ef4444;

  --gray-950: #0a0a0a;
  --gray-900: #171717;
  --gray-800: #262626;
  --gray-700: #404040;
  --gray-600: #525252;
  --gray-500: #737373;
  --gray-400: #a3a3a3;
  --gray-300: #d4d4d4;
  --gray-200: #e5e5e5;
  --gray-100: #f5f5f5;
  --gray-50:  #fafafa;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ── Nav ─────────────────────────────────────── */
.nav {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--gray-900);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.3px;
}
.brand svg { display: block; }
.nav-links {
  display: flex;
  gap: 4px;
  margin: 0 auto;
}
.nav-links a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-500);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--brand-600); background: var(--brand-50); }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); }
.btn-outline { background: transparent; color: var(--brand-600); border: 1.5px solid var(--brand-300); }
.btn-outline:hover { border-color: var(--brand-500); background: var(--brand-50); }
.btn-white { background: #fff; color: var(--brand-700); }
.btn-white:hover { background: var(--brand-100); }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.35); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 10px; }

/* ── Section scaffolding ─────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.overline {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-600);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.overline-light { color: var(--brand-300); }
.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--gray-950);
  margin-bottom: 12px;
}
.section-desc {
  font-size: 16px;
  color: var(--gray-500);
  max-width: 620px;
  line-height: 1.7;
}

/* ── Hero ────────────────────────────────────── */
.hero {
  background: var(--brand-950);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 120px 0 128px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(91,79,200,0.18) 0%, transparent 70%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(169,162,239,0.13) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 75% 75% at 70% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 70% 40%, #000 0%, transparent 70%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 1.08;
  margin: 18px 0 20px;
  color: #fff;
}
.hero .lead {
  font-size: 18px;
  color: rgba(255,255,255,0.62);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0 24px 80px rgba(124,115,224,0.35));
}
.hero-meta {
  position: relative;
  z-index: 1;
  margin-top: 72px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-meta div { font-size: 13px; color: rgba(255,255,255,0.4); }
.hero-meta strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.5px;
}

/* ── Cards ───────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow-lg); border-color: var(--brand-200); transform: translateY(-2px); }
.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card h3 { font-size: 17px; font-weight: 600; color: var(--gray-900); margin-bottom: 8px; letter-spacing: -0.2px; }
.card p { font-size: 13.5px; color: var(--gray-500); line-height: 1.65; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Split layout ────────────────────────────── */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.sticky-note { position: sticky; top: 96px; }

/* ── Why-existing bullets ────────────────────── */
.asset-list { list-style: none; display: grid; gap: 14px; }
.asset-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 14px;
  color: var(--gray-600);
  box-shadow: var(--shadow-sm);
}
.asset-list .dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--brand-400);
  margin-top: 5px;
  opacity: 0.85;
}
.asset-list strong { color: var(--gray-900); font-weight: 600; }

/* ── Day-cycle chart ─────────────────────────── */
.cycle-panel {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-top: 48px;
}
.cycle-panel figcaption {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 12px;
  text-align: center;
}
.legend { display: flex; gap: 20px; justify-content: center; margin-bottom: 14px; font-size: 12px; color: var(--gray-500); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ── Funnel ──────────────────────────────────── */
.funnel { display: grid; gap: 10px; margin-top: 8px; }
.funnel-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  align-items: center;
}
.funnel-count {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-700);
  text-align: right;
}
.funnel-bar-wrap {
  background: var(--gray-100);
  border-radius: 6px;
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.funnel-bar {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-500));
  min-width: fit-content;
  box-shadow: var(--shadow-sm);
}
.funnel-note { font-size: 12px; color: var(--gray-400); margin-top: 16px; }

/* ── Whitepaper band ─────────────────────────── */
.whitepaper-band {
  background: var(--brand-950);
  border-radius: 16px;
  padding: 64px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.whitepaper-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 85% 20%, rgba(91,79,200,0.22) 0%, transparent 70%);
}
.whitepaper-band > * { position: relative; }
.wp-mock {
  background: #fff;
  border-radius: 6px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  transform: rotate(-1.5deg);
  max-width: 340px;
  margin: 0 auto;
  transition: transform .3s;
}
.whitepaper-band:hover .wp-mock { transform: rotate(0deg); }
.wp-mock .bar { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--brand-600), var(--brand-400)); margin-bottom: 24px; }
.wp-mock .t { font-size: 17px; font-weight: 700; color: var(--gray-900); letter-spacing: -0.3px; margin-bottom: 10px; line-height: 1.3; }
.wp-mock .s { font-size: 12px; color: var(--gray-500); margin-bottom: 20px; }
.wp-mock .lines { display: grid; gap: 8px; }
.wp-mock .lines i { display: block; height: 5px; border-radius: 3px; background: var(--gray-100); }
.wp-mock .lines i:nth-child(2) { width: 92%; }
.wp-mock .lines i:nth-child(3) { width: 97%; }
.wp-mock .lines i:nth-child(4) { width: 61%; background: var(--brand-100); }
.wp-contents { list-style: none; display: grid; gap: 10px; margin: 24px 0 32px; }
.wp-contents li {
  font-size: 14px;
  color: rgba(255,255,255,0.66);
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.wp-contents .n { font-family: var(--font-mono); font-size: 11px; color: var(--brand-300); }
.wp-contents li strong { color: rgba(255,255,255,0.92); font-weight: 500; }

/* ── Form ────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.form-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.form-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}
.form-heading span { font-size: 17px; font-weight: 700; color: var(--gray-900); letter-spacing: -0.2px; }
.form-heading small { color: var(--gray-500); font-size: 12px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-grid label {
  display: grid;
  gap: 6px;
  align-content: start;
}
.form-grid label > span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-600);
}
.form-span-2 { grid-column: span 2; }
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-grid input,
.form-grid select { height: 44px; }
.form-grid textarea { resize: vertical; min-height: 110px; padding-top: 10px; }
.form-grid input::placeholder,
.form-grid textarea::placeholder { color: #9ba3af; }
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.form-grid label.invalid input,
.form-grid label.invalid select,
.form-grid label.invalid textarea { border-color: var(--danger); }
.form-grid label.invalid input:focus,
.form-grid label.invalid select:focus,
.form-grid label.invalid textarea:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }
.form-grid .err { font-size: 12px; color: var(--danger); margin-top: 2px; }
.checkbox-label {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px !important;
  cursor: pointer;
}
.checkbox-label input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 2px;
  accent-color: var(--brand-600);
  cursor: pointer;
  height: auto;
}
.checkbox-label span {
  font-weight: 400 !important;
  font-size: 12.5px !important;
  color: var(--gray-500) !important;
  line-height: 1.55;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list span {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--brand-100);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--gray-600); margin-bottom: 6px; }
.field label .req { color: var(--brand-500); }
.field .err { font-size: 12px; color: var(--danger); margin-top: 5px; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: 12px; color: var(--gray-400); margin-top: 14px; text-align: center; }
.form-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 18px;
}

/* contact side panel */
.contact-info { display: grid; gap: 20px; }
.contact-info .item h4 { font-size: 13px; font-weight: 600; color: var(--gray-900); margin-bottom: 4px; }
.contact-info .item p, .contact-info .item a { font-size: 13.5px; color: var(--gray-500); text-decoration: none; line-height: 1.65; }
.contact-info .item a:hover { color: var(--brand-600); }
.info-panel {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 12px;
  padding: 22px;
  font-size: 13.5px;
  color: var(--brand-700);
  line-height: 1.65;
}

/* ── Thanks page ─────────────────────────────── */
.page-shell { max-width: 720px; margin: 0 auto; padding: 96px 24px 128px; }
.check-hero { text-align: center; margin-bottom: 40px; }
.check-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
}
.page-shell h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.8px; color: var(--gray-950); margin-bottom: 10px; }
.page-shell .sub { color: var(--gray-500); font-size: 15.5px; line-height: 1.7; }
.download-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-md);
  margin-top: 36px;
}
.download-card .dl-title { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.download-card .dl-title h3 { font-size: 16px; font-weight: 600; color: var(--gray-900); }
.file-badge {
  width: 38px; height: 46px;
  border-radius: 6px;
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  color: var(--brand-600);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.5px;
}
.download-card .dl-sub { font-size: 13px; color: var(--gray-500); margin: 4px 0 20px; }
.dl-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-500);
  background: var(--gray-100);
  border-radius: 6px;
  padding: 10px 14px;
  word-break: break-all;
  margin-bottom: 20px;
}
.expiry {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--gray-500);
  margin-top: 16px;
}
.expiry .clock { color: var(--brand-500); }

/* ── Expired / 404 ───────────────────────────── */
.expired-hero { text-align: center; }
.expired-hero .x-circle {
  width: 64px; height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400);
}
.actions { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────── */
.footer { background: var(--gray-950); color: #fff; padding: 72px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--gray-800);
}
.footer .brand { color: #fff; }
.footer .tagline { font-size: 13px; color: var(--gray-500); margin-top: 14px; line-height: 1.7; max-width: 260px; }
.footer h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-400);
  margin-bottom: 16px;
}
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { font-size: 13.5px; color: var(--gray-500); text-decoration: none; }
.footer ul a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 12.5px;
  color: var(--gray-500);
}

/* ── Legal pages ─────────────────────────────── */
.legal h1 { margin-bottom: 8px; }
.legal .sub { margin-bottom: 40px; }
.legal-section { margin-bottom: 32px; }
.legal-section h2 { font-size: 18px; font-weight: 600; color: var(--gray-900); margin-bottom: 8px; letter-spacing: -0.2px; }
.legal-section p { font-size: 14.5px; color: var(--gray-600); line-height: 1.75; max-width: 640px; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-logo { order: -1; }
  .hero-logo svg { width: 96px; height: 96px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .sticky-note { position: static; }
  .whitepaper-band { grid-template-columns: 1fr; padding: 48px 40px; }
}
@media (max-width: 768px) {
  .container, .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .section { padding: 64px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-span-2 { grid-column: auto; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 80px 0 88px; }
  .whitepaper-band { padding: 40px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
