:root {
  --bg: #090a0c;
  --bg-soft: #101216;
  --panel: rgba(19, 21, 26, 0.84);
  --panel-solid: #151820;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f4ee;
  --muted: #b7b1a7;
  --soft: #7f7a72;
  --gold: #d9b464;
  --gold-strong: #f2cf79;
  --red: #bd332f;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 5%, rgba(189, 51, 47, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 15%, rgba(217, 180, 100, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(9, 10, 12, 0.74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #14110a;
  background: linear-gradient(135deg, var(--gold-strong), #9a7536);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.88rem;
  color: var(--muted);
}

.nav-links a,
.footer-links a {
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--gold-strong);
}

.header-cta,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 120px clamp(18px, 4vw, 54px) 70px;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/images/hero-cars.png");
  background-size: cover;
  background-position: center right;
  opacity: 0.9;
  filter: saturate(1.02) contrast(1.12) brightness(1.08);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 10, 12, 0.9) 0%, rgba(9, 10, 12, 0.58) 42%, rgba(9, 10, 12, 0.1) 100%),
    linear-gradient(180deg, rgba(9, 10, 12, 0.08) 0%, rgba(9, 10, 12, 0.76) 100%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  width: min(100%, var(--max));
  min-width: 0;
  min-height: calc(100vh - 190px);
  margin: 0 auto;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy h1 span {
  display: block;
}

.hero-lead {
  max-width: 600px;
  margin: 28px 0 0;
  color: #ddd6c9;
  font-size: clamp(1.14rem, 2vw, 1.45rem);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 650px;
  margin-top: 36px;
}

.hero-stats div,
.prize-card,
.mechanics-panel,
.legal-grid article,
.entry-form,
.thank-you-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-stats div {
  padding: 16px;
  backdrop-filter: blur(12px);
}

.hero-stats strong {
  display: block;
  color: var(--gold-strong);
  font-size: 1.2rem;
}

.hero-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.entry-form {
  padding: 24px;
  width: 100%;
  min-width: 0;
  background: rgba(18, 20, 25, 0.92);
  backdrop-filter: blur(20px);
}

.form-heading h2,
.section-heading h2,
.thank-you-card h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.form-heading h2 {
  font-size: 2rem;
}

.form-heading p,
.section-heading p,
.form-note,
.legal-grid p,
.prize-card p,
.mechanics-grid p,
.thank-you-card p {
  color: var(--muted);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: #d8d1c7;
  font-size: 0.78rem;
  font-weight: 700;
}

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

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.065);
  font: inherit;
}

select {
  appearance: none;
  padding-right: 42px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.065);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold-strong) 50%),
    linear-gradient(135deg, var(--gold-strong) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 15px) 50%;
  background-size:
    7px 7px,
    7px 7px;
  background-repeat: no-repeat;
}

select:invalid {
  color: var(--muted);
}

select option {
  color: #151820;
  background: #f7f4ee;
}

input:focus,
select:focus {
  outline: 2px solid rgba(217, 180, 100, 0.5);
  outline-offset: 2px;
}

.consent {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 12px;
  margin-top: 16px;
  cursor: pointer;
}

.consent input {
  appearance: none;
  display: grid;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.065);
  cursor: pointer;
}

.consent input::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #15100a;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.consent input:checked {
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold-strong), #b98d45);
}

.consent input:checked::after {
  opacity: 1;
}

.consent input:focus {
  outline: 2px solid rgba(217, 180, 100, 0.5);
  outline-offset: 2px;
}

.consent span {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  border: 0;
  border-radius: var(--radius);
  color: #15100a;
  background: linear-gradient(135deg, var(--gold-strong), #b98d45);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.primary-button:hover {
  filter: brightness(1.05);
}

.form-note,
.form-status {
  margin: 13px 0 0;
  font-size: 0.78rem;
}

.form-status.is-error {
  color: #ffaaa6;
}

.form-status.is-success {
  color: var(--gold-strong);
}

.section {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: 82px 0;
}

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

.section-heading p {
  margin: 16px 0 0;
  font-size: 1.02rem;
}

.draw-section {
  padding-top: 96px;
}

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

.prize-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
}

.prize-card.featured {
  background: linear-gradient(145deg, rgba(217, 180, 100, 0.16), rgba(255, 255, 255, 0.035));
}

.prize-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  margin-bottom: 24px;
  border-radius: var(--radius);
  background-image:
    linear-gradient(180deg, rgba(9, 10, 12, 0.08), rgba(9, 10, 12, 0.52)),
    url("assets/images/hero-cars.png");
  background-size: cover;
  filter: saturate(1.05) contrast(1.12) brightness(1.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.jeep-image {
  background-position: 36% 58%;
}

.lexus-image {
  background-position: 76% 58%;
}

.prize-card h3,
.mechanics-panel h3,
.legal-grid h3 {
  margin: 0;
  font-size: 1.35rem;
}

.mechanics-panel {
  margin-top: 18px;
  padding: 26px;
  background: var(--panel-solid);
}

.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.mechanics-grid strong {
  color: var(--gold-strong);
}

.logo-wrap {
  display: grid;
  min-height: 78px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.24);
}

.logo-wrap img {
  width: min(190px, 86%);
  max-height: 62px;
  object-fit: contain;
}

.text-logo {
  min-height: 78px;
  padding: 12px;
}

.text-logo span {
  color: var(--gold-strong);
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  font-weight: 900;
  text-align: center;
}

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

.legal-grid article {
  padding: 24px;
  background: var(--panel-solid);
}

.legal-grid a {
  color: var(--gold-strong);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #050607;
}

.site-footer p {
  max-width: 680px;
  margin: 6px 0 0;
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-size: 0.86rem;
}

.thank-you-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(9, 10, 12, 0.94), rgba(9, 10, 12, 0.74)),
    url("assets/images/hero-cars.png") center / cover;
}

.thank-you-wrap {
  display: grid;
  min-height: 100vh;
  align-content: center;
  gap: 28px;
  width: min(100% - 36px, 920px);
  margin: 0 auto;
  padding: 52px 0;
}

.thank-you-card {
  padding: clamp(28px, 5vw, 52px);
  background: rgba(18, 20, 25, 0.9);
  backdrop-filter: blur(18px);
}

.next-entry-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 22px;
  align-items: center;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(217, 180, 100, 0.34);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(217, 180, 100, 0.14), rgba(255, 255, 255, 0.04));
}

.next-entry-card h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.next-entry-card p {
  margin: 12px 0 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.next-entry-partner {
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
}

.next-entry-partner img {
  width: min(180px, 90%);
  max-height: 70px;
  object-fit: contain;
}

.next-entry-partner .primary-button {
  width: 100%;
  margin-top: 0;
}

.legal-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(9, 10, 12, 0.96), rgba(9, 10, 12, 0.8)),
    url("assets/images/hero-cars.png") center / cover fixed;
}

.legal-page .site-header {
  position: sticky;
}

.legal-doc {
  width: min(100% - 36px, 920px);
  margin: 0 auto;
  padding: 96px 0 72px;
}

.legal-doc-card {
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 20, 25, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.legal-doc-card h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.legal-updated {
  margin: 12px 0 30px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-doc-card h2 {
  margin: 30px 0 10px;
  color: var(--gold-strong);
  font-size: 1.18rem;
}

.legal-doc-card p,
.legal-doc-card li {
  color: #d2ccc1;
}

.legal-doc-card ul,
.legal-doc-card ol {
  padding-left: 22px;
}

.legal-doc-card a {
  color: var(--gold-strong);
}

.thank-you-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.thank-you-actions .primary-button {
  width: auto;
  margin: 0;
  padding: 0 20px;
}

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

  .hero {
    padding-top: 100px;
  }

  .hero-inner,
  .prize-grid,
  .mechanics-grid,
  .video-grid,
  .legal-grid,
  .next-entry-card {
    grid-template-columns: 1fr;
  }

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

  .hero-media {
    background-position: center;
    opacity: 0.42;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 13px 16px;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 14px;
  }

  .hero {
    min-height: auto;
    padding: 92px 14px 46px;
  }

  .hero-inner {
    min-height: auto;
    max-width: 362px;
    margin-left: 0;
    margin-right: auto;
  }

  .hero-copy,
  .hero-stats {
    max-width: 362px;
  }

  .hero-copy h1 {
    max-width: 320px;
    font-size: 2.72rem;
    line-height: 0.95;
    overflow-wrap: anywhere;
  }

  .hero-lead {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-stats,
  .field-grid,
  .thank-you-actions {
    grid-template-columns: 1fr;
  }

  .thank-you-actions {
    display: grid;
  }

  .site-footer {
    display: grid;
  }

  .entry-form {
    padding: 20px;
    max-width: 362px;
  }

  .consent {
    grid-template-columns: 16px minmax(0, 1fr);
  }

  .consent span,
  .form-heading p,
  .form-note {
    overflow-wrap: anywhere;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
