:root {
  --color-primary: #ffcc00;
  --color-primary-dark: #a67c00;
  --color-dark: #0d0d0d;
  --color-dark-2: #1c1c1c;
  --color-cream: #ffffff;
  --color-text: #141414;
  --color-muted: #595959;
  --color-border: #e2e2e2;
  --font-heading: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --max-width: 1240px;

  /* Spacing scale — used consistently for every gap/padding/margin on the page */
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-section: clamp(3.5rem, 5vw + 1.5rem, 6rem);

  /* Typography scale */
  --text-h1: clamp(2.25rem, 1.7rem + 2.2vw, 3.5rem);
  --text-h2: clamp(1.75rem, 1.45rem + 1.3vw, 2.5rem);
  --text-h3: 1.25rem;
  --text-body: 1rem;
  --text-body-lg: 1.0625rem;
  --text-small: 0.875rem;

  --shadow-card: 0 24px 48px -28px rgba(13, 13, 13, 0.25);
  --shadow-btn: 0 12px 24px -12px rgba(255, 204, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-h1); line-height: 1.12; }
h2 { font-size: var(--text-h2); line-height: 1.18; }
h3 { font-size: var(--text-h3); font-weight: 700; line-height: 1.3; }

p {
  color: var(--color-muted);
  font-size: var(--text-body);
  line-height: 1.65;
}

a { color: inherit; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Buttons: single standardized size/shape for every CTA ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  border: none;
  border-radius: var(--radius);
  min-height: 3.25rem;
  padding: 0 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: var(--color-primary);
  color: var(--color-dark);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover { background: var(--color-primary-dark); }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: var(--text-small);
  margin-bottom: var(--space-sm);
  display: block;
}

/* ---------- Hero: centered, balanced, consistent vertical rhythm ---------- */

.hero {
  background:
    repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0px, rgba(0, 0, 0, 0.05) 40px, rgba(0, 0, 0, 0) 40px, rgba(0, 0, 0, 0) 160px),
    linear-gradient(160deg, #ffd23d 0%, #ffb400 100%);
  color: var(--color-dark);
  padding: var(--space-section) 0;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
}

.hero__brand {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-dark);
  font-size: var(--text-small);
  text-transform: uppercase;
}

.hero h1 {
  color: var(--color-dark);
  max-width: 46rem;
}

.hero__highlight {
  color: var(--color-primary);
  background: var(--color-dark);
  padding: 0.05em 0.45em;
  border-radius: 6px;
  display: inline-block;
}

.hero__subheadline {
  color: rgba(13, 13, 13, 0.72);
  font-size: var(--text-body-lg);
  max-width: 34rem;
}

.hero .btn-primary {
  margin-top: var(--space-2xs);
  background: var(--color-dark);
  color: var(--color-primary);
  box-shadow: 0 12px 24px -12px rgba(13, 13, 13, 0.45);
}

.hero .btn-primary:hover { background: var(--color-dark-2); }

.hero__video {
  width: 100%;
  max-width: 46rem;
  margin: var(--space-lg) auto 0;
  border-radius: var(--radius-lg);
  background: var(--color-dark-2);
  border: 1px solid rgba(13, 13, 13, 0.15);
  box-shadow: var(--shadow-card);
}

/* ---------- Ticker ---------- */

.ticker-section {
  background: var(--color-primary);
  overflow: hidden;
}

.ticker__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  padding: var(--space-sm) 0;
  animation: ticker-scroll 18s linear infinite;
  width: max-content;
}

.ticker__item {
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-small);
  letter-spacing: 0.03em;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Lead capture section: dark, card-based ---------- */

.lead-form-section {
  background: var(--color-dark);
  padding: var(--space-section) 0;
}

.lead-form-section .section-label { color: #d9a53f; }

.lead-form-section h2 {
  color: var(--color-cream);
  text-transform: uppercase;
}

.lead-form__inner {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
}

.lead-form__intro h2 { margin-bottom: var(--space-lg); }

.lead-form__steps {
  display: grid;
  gap: var(--space-md);
}

.lead-form__step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: var(--color-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.lead-form__step-number {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: #d9a53f;
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lead-form__step-body h3 { color: var(--color-cream); }

.lead-form__step-body p { margin-top: var(--space-2xs); color: rgba(255, 255, 255, 0.6); }

.lead-form__step-body p strong { color: rgba(255, 255, 255, 0.9); }

/* The form fields sit directly on the dark section — no outer card panel */

.lead-form {
  display: grid;
  gap: var(--space-md);
}

.field { display: flex; flex-direction: column; gap: var(--space-2xs); position: relative; }

.field label, .field legend {
  font-weight: 500;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.field input, .field select {
  width: 100%;
  min-height: 2.9rem;
  background: var(--color-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-cream);
}

.field input::placeholder { color: rgba(255, 255, 255, 0.4); }

.field input:invalid[data-touched="true"],
.field select:invalid[data-touched="true"] {
  border-color: var(--color-primary);
}

.field--phone input { padding-left: 2.5rem; }

.field__flag {
  position: absolute;
  left: 0.85rem;
  top: 1.45rem;
  transform: translateY(-50%);
  font-size: 1.1rem;
  line-height: 1;
}

.field__error {
  color: var(--color-primary);
  font-size: 0.8rem;
  min-height: 1em;
}

.lead-form__submit {
  margin-top: var(--space-2xs);
  width: 100%;
  background: #22c55e;
  color: #ffffff;
  box-shadow: 0 12px 24px -12px rgba(34, 197, 94, 0.5);
}

.lead-form__submit:hover { background: #16a34a; }

.lead-form__feedback {
  font-weight: 600;
  min-height: 1.2em;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

.lead-form__feedback[data-state="success"] { color: #4ade80; }
.lead-form__feedback[data-state="error"] { color: var(--color-primary); }

/* ---------- Responsive: tablet (768px–1024px) ---------- */

@media (min-width: 768px) {
  .lead-form { grid-template-columns: repeat(2, 1fr); }
  .lead-form__submit, .lead-form__feedback { grid-column: 1 / -1; }
}

/* ---------- Responsive: desktop (above 1024px) ---------- */

@media (min-width: 1025px) {
  .lead-form__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
