/* Core theme and layout */
:root {
  --bg: #0b0c10;
  --bg-deep: #07070b;
  --text: #f4f1ea;
  --muted: #b5aea3;
  --accent: #f0b064;
  --accent-strong: #ffd39a;
  --surface: rgba(14, 17, 23, 0.76);
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --max-width: 1120px;
}

html[data-theme="light"] {
  --bg: #f7f8fa;
  --bg-deep: #f7f8fa;
  --text: #333333;
  --muted: #8c8e91;
  --accent: #889DAE;
  --accent-strong: #0098da;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-border: rgba(196, 198, 200, 0.8);
  --surface-shadow: 0 18px 40px rgba(51, 51, 51, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 8% 10%, rgba(152, 108, 62, 0.25), transparent 65%),
    radial-gradient(900px 520px at 92% -10%, rgba(54, 101, 118, 0.28), transparent 60%),
    linear-gradient(180deg, #0b0c10 0%, #07070b 100%);
  position: relative;
  overflow-x: hidden;
}

html[data-theme="light"] body {
  background-color: var(--bg);
  background-image: none;
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  background: radial-gradient(circle at 50% 20%, transparent 0%, rgba(5, 5, 8, 0.78) 68%);
  pointer-events: none;
  z-index: 0;
}

html[data-theme="light"] body::before {
  background: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("assets/noise-512.png");
  background-size: 512px 512px;
  opacity: 0.08;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
}

html[data-theme="light"] body::after {
  opacity: 0.02;
  mix-blend-mode: multiply;
}

body>* {
  position: relative;
  z-index: 2;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 48px, var(--max-width));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  background: #ffffff;
  color: #0b0c10;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  transition: top 0.2s ease;
  z-index: 5;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 8, 12, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

html[data-theme="light"] .site-header {
  background: rgba(247, 248, 250, 0.92);
  border-bottom: 1px solid var(--surface-border);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.site-nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
  background: linear-gradient(130deg, #f4bb6a 0%, #ffdcaa 100%);
  color: #1a1209;
  box-shadow: 0 16px 40px rgba(240, 176, 100, 0.35);
}

html[data-theme="light"] .button.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 12px rgba(51, 51, 51, 0.14);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

html[data-theme="light"] .button.ghost {
  border-color: var(--surface-border);
  background: transparent;
}

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

.hero {
  padding: 120px 0 80px;
}

html[data-theme="light"] .hero {
  padding: 160px 0 120px;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 16px;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
}

html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3 {
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
}

h3 {
  font-size: 1.1rem;
}

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

.lead {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  color: var(--text);
}

html[data-theme="light"] .lead {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.hero-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.hero-card {
  padding: 28px;
}

.section {
  padding: 72px 0;
}

html[data-theme="light"] .section {
  padding: 108px 0;
}

.section-header {
  margin-bottom: 32px;
}

html[data-theme="light"] .section-header {
  margin-bottom: 56px;
}

.section-intro {
  max-width: 640px;
}

.surface {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  box-shadow: var(--surface-shadow);
  backdrop-filter: blur(8px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.card {
  padding: 28px;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}

.timeline li {
  position: relative;
  padding-left: 28px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(240, 176, 100, 0.7);
}

html[data-theme="light"] .timeline li::before {
  box-shadow: none;
}

html[data-theme="light"] .timeline li::after {
  background: var(--surface-border);
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 22px;
  width: 2px;
  height: calc(100% - 22px);
  background: rgba(255, 255, 255, 0.08);
}

.timeline li:last-child::after {
  display: none;
}

.outcomes {
  list-style: none;
  margin: 0;
  padding: 24px 28px;
  display: grid;
  gap: 12px;
}

.outcomes li::before {
  content: "*";
  margin-right: 10px;
  color: var(--accent-strong);
}

.fit-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.fit-grid .surface {
  padding: 28px;
}

.fit-grid ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 24px 28px;
  display: grid;
  gap: 14px;
}

.steps li {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}

.steps li::before {
  content: ">";
  color: var(--accent);
}

.form {
  padding: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 600;
  color: var(--text);
}

input,
textarea,
select {
  background: rgba(9, 11, 16, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  font: inherit;
}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
  background: #ffffff;
  border-color: var(--surface-border);
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(240, 176, 100, 0.5);
  border-color: rgba(240, 176, 100, 0.7);
}

html[data-theme="light"] input:focus,
html[data-theme="light"] textarea:focus,
html[data-theme="light"] select:focus {
  outline: 2px solid rgba(0, 152, 218, 0.2);
  border-color: rgba(0, 152, 218, 0.4);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 12px) calc(50% + 2px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-status {
  margin: 16px 0 0;
  font-size: 0.95rem;
  color: var(--accent-strong);
}

.form-status[data-state="error"] {
  color: #ffb3b3;
}

.form-status[data-state="success"] {
  color: var(--accent-strong);
}

.button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .site-footer {
  border-top: 1px solid var(--surface-border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner a:hover,
.footer-inner a:focus {
  color: var(--text);
}

.glow {
  position: relative;
}

.glow::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  right: -10%;
  height: 70%;
  background: radial-gradient(circle at 30% 30%, rgba(240, 176, 100, 0.3), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

html[data-theme="light"] .glow::before {
  background: radial-gradient(circle at 50% 20%, rgba(71, 177, 230, 0.12), transparent 75%);
}

.glow>* {
  position: relative;
  z-index: 1;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, var(--max-width));
  }

  .hero {
    padding-top: 100px;
  }

  .form {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}