:root {
  color-scheme: dark;
  --bg: #0d1117;
  --bg-elevated: #111826;
  --bg-panel: rgba(17, 24, 38, 0.88);
  --bg-panel-strong: #151d2d;
  --bg-panel-muted: #0f1725;
  --bg-field: #0d1522;
  --bg-accent-soft: rgba(116, 161, 255, 0.12);
  --bg-overlay: rgba(4, 8, 14, 0.66);
  --bg-canvas:
    radial-gradient(circle at top left, rgba(79, 113, 178, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(185, 142, 67, 0.12), transparent 20%),
    linear-gradient(180deg, #0b1017 0%, #0d1117 100%);

  --text: #edf2fb;
  --text-strong: #ffffff;
  --text-muted: #97a4bc;
  --text-subtle: #6f7c92;

  --border: rgba(154, 168, 193, 0.16);
  --border-strong: rgba(174, 188, 214, 0.24);
  --border-soft: rgba(154, 168, 193, 0.1);
  --focus: #8cb0ff;

  --primary: #d5a35b;
  --primary-strong: #e6b874;
  --primary-contrast: #1b1308;
  --info: #90b7ff;

  --shadow-sm: 0 12px 24px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 24px 60px rgba(0, 0, 0, 0.26);
  --shadow-lg: 0 36px 96px rgba(0, 0, 0, 0.34);

  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;

  --font-body: "Source Sans 3", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
  --site-max-width: 1240px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #edf1f6;
  --bg-elevated: #f5f7fb;
  --bg-panel: rgba(255, 255, 255, 0.88);
  --bg-panel-strong: #ffffff;
  --bg-panel-muted: #f4f6fa;
  --bg-field: #fbfcfe;
  --bg-accent-soft: rgba(64, 104, 182, 0.1);
  --bg-overlay: rgba(23, 31, 46, 0.2);
  --bg-canvas:
    radial-gradient(circle at top left, rgba(109, 149, 224, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(202, 164, 101, 0.12), transparent 20%),
    linear-gradient(180deg, #f4f6fa 0%, #edf1f6 100%);

  --text: #192235;
  --text-strong: #0f1726;
  --text-muted: #556277;
  --text-subtle: #758198;

  --border: rgba(55, 74, 104, 0.14);
  --border-strong: rgba(55, 74, 104, 0.22);
  --border-soft: rgba(55, 74, 104, 0.08);
  --focus: #2956b8;

  --primary: #9b6820;
  --primary-strong: #b17922;
  --primary-contrast: #ffffff;
  --info: #376dc7;

  --shadow-sm: 0 8px 18px rgba(50, 67, 92, 0.08);
  --shadow-md: 0 20px 40px rgba(50, 67, 92, 0.12);
  --shadow-lg: 0 28px 60px rgba(50, 67, 92, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-canvas);
}

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

button {
  font: inherit;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.site-shell {
  width: min(calc(100% - 32px), var(--site-max-width));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.site-main {
  display: grid;
  gap: var(--space-6);
}

.site-header,
.page-card,
.surface-card,
.hero-card,
.site-footer,
.theme-toggle {
  backdrop-filter: blur(20px);
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  padding: 14px var(--space-5);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: rgba(11, 16, 23, 0.72);
}

:root[data-theme="light"] .site-header {
  background: rgba(245, 247, 251, 0.76);
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo-image,
.footer-logo-image {
  display: block;
  height: auto;
  object-fit: contain;
}

.brand-logo-image {
  width: 176px;
  filter: brightness(0) invert(1) drop-shadow(0 10px 24px rgba(255, 255, 255, 0.08));
}

.footer-logo-image {
  width: 164px;
  filter: brightness(0) invert(1) drop-shadow(0 10px 24px rgba(255, 255, 255, 0.08));
}

:root[data-theme="light"] .brand-logo-image,
:root[data-theme="light"] .footer-logo-image {
  filter: brightness(0) invert(0) drop-shadow(0 8px 20px rgba(12, 18, 28, 0.12));
}

.site-nav,
.header-actions,
.footer-links,
.hero-actions,
.hero-pill-row,
.legal-link-grid {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
}

.site-nav a,
.footer-links a {
  color: var(--text-muted);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.legal-link-card:hover strong,
.legal-link-card:focus-visible strong {
  color: var(--text-strong);
}

.button,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(226, 179, 85, 0.16), rgba(226, 179, 85, 0.08));
  color: var(--text-strong);
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

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

.button {
  background: linear-gradient(180deg, rgba(226, 179, 85, 0.22), rgba(226, 179, 85, 0.14));
  color: var(--text-strong);
  border-color: rgba(226, 179, 85, 0.22);
}

.button-secondary,
.theme-toggle {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text);
}

.hero-card,
.page-card,
.surface-card,
.site-footer {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.hero-card,
.page-card,
.site-footer {
  background: var(--bg-panel);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: var(--space-6);
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hero-copy,
.hero-side,
.section-heading,
.surface-card,
.pricing-stack,
.step-card {
  display: grid;
  gap: var(--space-4);
}

.eyebrow,
.section-kicker {
  margin: 0;
  width: fit-content;
  min-height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(226, 179, 85, 0.12);
  border: 1px solid rgba(226, 179, 85, 0.22);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

h1,
h2,
h3,
strong {
  margin: 0;
  font-family: var(--font-display);
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  color: var(--text-strong);
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--text-strong);
}

.hero-lead,
.section-heading p,
.surface-card p,
.helper-copy,
.site-footer p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.62;
  font-size: 1.02rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  color: var(--text);
  font-weight: 600;
}

.surface-card {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

:root[data-theme="light"] .surface-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.92));
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-field);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.feature-grid,
.steps-grid,
.split-section {
  display: grid;
  gap: var(--space-5);
}

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

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

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

.pricing-card-highlight {
  border-color: rgba(226, 179, 85, 0.28);
  background:
    linear-gradient(180deg, rgba(226, 179, 85, 0.12), rgba(226, 179, 85, 0.05)),
    rgba(255, 255, 255, 0.02);
}

.pricing-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.step-card {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(116, 161, 255, 0.08), rgba(255, 255, 255, 0.015));
}

.step-index {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(226, 179, 85, 0.16);
  color: var(--primary-strong);
  font-weight: 700;
}

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

.legal-link-card {
  min-height: 100%;
}

.legal-link-card span {
  color: var(--primary);
  font-weight: 700;
}

.legal-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: var(--space-2);
  color: var(--text);
}

.final-cta-card {
  background:
    radial-gradient(circle at top left, rgba(79, 113, 178, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02)),
    var(--bg-panel);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  align-items: center;
  margin-top: var(--space-6);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
}

.legal-body .site-main,
.legal-page {
  display: grid;
  gap: var(--space-6);
}

.legal-page .page-card {
  padding: clamp(24px, 4vw, 40px);
}

@media (max-width: 1100px) {
  .site-header,
  .site-footer,
  .hero-card,
  .split-section,
  .feature-grid,
  .steps-grid,
  .legal-link-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    gap: var(--space-2) var(--space-4);
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--site-max-width));
    padding-bottom: 24px;
  }

  .site-header,
  .hero-card,
  .page-card,
  .site-footer {
    padding: 18px;
  }

  .header-actions,
  .hero-actions {
    width: 100%;
  }

  .header-actions > *,
  .hero-actions > * {
    width: 100%;
  }

  h1 {
    max-width: 100%;
  }
}

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

  .button,
  .theme-toggle {
    transition: none;
  }
}
