:root {
  --radius: 22px;
}

:root[data-theme="dark"] {
  --bg: #0b1220;
  --bg-soft: #121c30;
  --bg-hero: radial-gradient(circle at top left, rgba(102, 166, 255, 0.22), transparent 30%), radial-gradient(circle at top right, rgba(124, 140, 255, 0.18), transparent 24%), linear-gradient(180deg, #08101d 0%, #0d1728 100%);
  --header-bg: rgba(8, 16, 29, 0.7);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --section-soft: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(18,28,48,0.28));
  --text: #edf2ff;
  --muted: #b4c0d3;
  --line: rgba(255, 255, 255, 0.08);
  --primary: #7c8cff;
  --primary-strong: #5b6cff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 16px 40px rgba(91, 108, 255, 0.18);
  --button-secondary-bg: var(--surface);
  --button-secondary-border: var(--line);
  --theme-toggle-bg: rgba(255,255,255,0.06);
}

:root[data-theme="light"] {
  --bg: #dfe6ef;
  --bg-soft: #d2dce8;
  --bg-hero: radial-gradient(circle at top left, rgba(111, 99, 255, 0.08), transparent 28%), linear-gradient(180deg, #e4ebf3 0%, #d2dce8 100%);
  --header-bg: rgba(227, 234, 243, 0.86);
  --surface: #edf2f7;
  --surface-strong: #e1e8f1;
  --section-soft: linear-gradient(180deg, rgba(236,241,247,0.82), rgba(210,220,232,0.98));
  --text: #142033;
  --muted: #556278;
  --line: rgba(20, 32, 51, 0.12);
  --primary: #6f63ff;
  --primary-strong: #4f46e5;
  --shadow: 0 20px 60px rgba(30, 41, 59, 0.12);
  --shadow-soft: 0 16px 40px rgba(79, 70, 229, 0.11);
  --button-secondary-bg: #e5ebf3;
  --button-secondary-border: rgba(20, 32, 51, 0.12);
  --theme-toggle-bg: rgba(111, 99, 255, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg-hero);
  transition: background 0.25s ease, color 0.25s ease;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 18px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.1rem;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--theme-toggle-bg);
}

.brand-tagline {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.2;
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--theme-toggle-bg);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav a:hover,
.nav a:focus {
  color: white;
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  border-color: transparent;
  box-shadow: var(--shadow-soft);
}

.theme-toggle,
.nav-cta {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--theme-toggle-bg);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.theme-toggle {
  opacity: 0.9;
}

.theme-toggle:hover {
  opacity: 1;
}

.theme-toggle-left {
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.nav-cta {
  text-decoration: none;
}

.hero {
  padding: 96px 0 74px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1, h2, h3 {
  margin: 0 0 14px;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  font-size: 1.08rem;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 28px 0 26px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
  box-shadow: var(--shadow-soft);
}

.hero-actions .btn-secondary {
  background: var(--button-secondary-bg);
  border: 1px solid var(--button-secondary-border);
  color: var(--text);
}

.hero-actions .btn-secondary:hover,
.hero-actions .btn-secondary:focus {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-soft);
}

.hero-actions:has(.btn-secondary:hover) .btn-primary,
.hero-actions:has(.btn-secondary:focus) .btn-primary {
  background: var(--button-secondary-bg);
  border: 1px solid var(--button-secondary-border);
  color: var(--text);
  box-shadow: none;
}

.btn-secondary {
  background: var(--button-secondary-bg);
  border: 1px solid var(--button-secondary-border);
  color: var(--text);
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}

.hero-points li {
  color: var(--muted);
  position: relative;
  padding-left: 22px;
}

.hero-points li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  position: absolute;
  left: 0;
  top: 10px;
}

.hero-card,
.card,
.panel-item,
.contact-box,
.timeline-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 22px;
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.stat-card {
  padding: 20px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--muted);
}

.stat-card strong {
  color: var(--muted);
  font-weight: 700;
}

.stat-label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-strong);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section {
  padding: 82px 0;
}

.section.light {
  background: transparent;
}

.section.soft {
  background: var(--section-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.cards.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  padding: 26px;
}

.card-title-uppercase {
  display: block;
  margin: 0 0 14px;
  color: var(--primary-strong);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.45;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.panel-list {
  display: grid;
  gap: 16px;
}

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

.faq-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.faq-card h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.faq-card p {
  margin: 0;
  color: var(--muted);
}

.panel-item {
  padding: 20px;
}

.panel-item strong {
  display: block;
  margin-bottom: 6px;
}

.card p,
.panel-item span,
.timeline-item p {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 22px;
  align-items: start;
}

.timeline-item h3 {
  margin-top: 0;
}

.timeline-item span {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124,140,255,0.18), rgba(91,108,255,0.22));
  color: var(--primary-strong);
  font-weight: 800;
}

.contact-box {
  padding: 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.form-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: stretch;
}

.contact-copy {
  padding-top: 6px;
  display: flex;
  flex-direction: column;
}

.contact-form-wrap {
  display: grid;
  align-content: start;
}

.contact-legal-note,
.form-legal-copy {
  font-size: 0.82rem;
  line-height: 1.55;
  opacity: 0.82;
}

.contact-legal-note {
  margin-top: 6px;
}

.form-legal-copy {
  margin: 10px 0 0;
  color: var(--muted);
}

.form-success,
.form-error {
  padding: 24px 28px;
  border-radius: 18px;
  margin-top: 16px;
}

.form-success {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 1px solid #4caf50;
}

.form-success .success-content,
.form-error .error-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

.form-success .success-icon {
  font-size: 1.8rem;
  color: #2e7d32;
  background: #c8e6c9;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-success h3 {
  margin: 0 0 6px;
  color: #2e7d32;
  font-size: 1.15rem;
}

.form-success p {
  margin: 0;
  color: #388e3c;
  line-height: 1.5;
}

.form-error {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border: 1px solid #f44336;
}

.form-error .error-icon {
  font-size: 1.8rem;
  color: #c62828;
  background: #ffcdd2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-error h3 {
  margin: 0 0 6px;
  color: #c62828;
  font-size: 1.15rem;
}

.form-error p {
  margin: 0;
  color: #d32f2f;
  line-height: 1.5;
}

[data-theme="dark"] .form-success {
  background: linear-gradient(135deg, #1b3320 0%, #14332a 100%);
  border-color: #66bb6a;
}

[data-theme="dark"] .form-success .success-icon {
  background: #2e7d32;
  color: #a5d6a7;
}

[data-theme="dark"] .form-success h3,
[data-theme="dark"] .form-success p {
  color: #a5d6a7;
}

[data-theme="dark"] .form-error {
  background: linear-gradient(135deg, #2d1b1b 0%, #321b1b 100%);
  border-color: #ef5350;
}

[data-theme="dark"] .form-error .error-icon {
  background: #c62828;
  color: #ef9a9a;
}

[data-theme="dark"] .form-error h3,
[data-theme="dark"] .form-error p {
  color: #ef9a9a;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  padding: 16px 18px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.checkbox-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.checkbox-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--primary-strong);
}

.checkbox-consent span {
  display: block;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124, 140, 255, 0.12);
  background: var(--surface);
}

.contact-form button {
  justify-self: start;
}

.hidden-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.9fr;
  gap: 28px;
  padding: 34px 0 28px;
}

.footer-brand {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.site-footer h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.site-footer a,
.site-footer li,
.site-footer span {
  color: var(--muted);
  text-decoration: none;
}

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

.footer-bottom {
  padding: 0 0 34px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  padding-top: 18px;
  font-size: 0.92rem;
  color: var(--muted);
}

.legal-strip {
  border-top: 1px solid var(--line);
  background: transparent;
}

.legal-strip-inner {
  padding: 10px 0 22px;
}

.legal-strip-inner p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
  opacity: 0.82;
}

.legal-strip-inner a {
  color: inherit;
}

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .cards.three,
  .footer-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-layout {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .brand-group,
  .nav {
    gap: 12px;
    flex-wrap: wrap;
  }

  .brand-tagline {
    width: 100%;
  }

  .nav {
    justify-content: flex-start;
  }

  .nav a,
  .theme-toggle {
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 60px;
  }

  .section {
    padding: 64px 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}
