:root {
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --bg: #f6f2ea;
  --bg-deep: #efe8de;
  --surface: rgba(255, 255, 255, .68);
  --surface-solid: #ffffff;
  --surface-soft: rgba(255, 255, 255, .52);
  --text: #2b2f33;
  --muted: #5f646c;
  --faint: #99938b;
  --border: #ddd4ca;
  --divider: rgba(221, 212, 202, .65);
  --petrol: #0d7a83;
  --petrol-strong: #095b62;
  --petrol-soft: rgba(13, 122, 131, .09);
  --coral: #e38a72;
  --coral-soft: #f6e1da;
  --coral-text: #c66f58;
  --amber: #d4a21f;
  --amber-soft: rgba(255, 243, 200, .82);
  --radius-md: .75rem;
  --radius-lg: 1.35rem;
  --radius-full: 99rem;
  --shadow-sm: 0 8px 22px rgba(32, 37, 40, .06);
  --shadow-md: 0 22px 60px rgba(32, 37, 40, .12);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background:
    linear-gradient(180deg, #fcf8f3 0%, #f8f3ec 52%, #f3ece3 100%);
  background-attachment: fixed;
  font-family: var(--font-sans);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("/assets/img/logoYellow.png?v=20260502b");
  background-repeat: no-repeat;
  background-position: center 46%;
  background-size: min(68%, 760px) auto;
  opacity: .055;
  filter: grayscale(1) contrast(.92);
  pointer-events: none;
}

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

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.5rem;
  padding: .875rem 4rem;
  color: var(--text);
  background: rgba(248, 243, 236, .86);
  border-bottom: 1px solid var(--divider);
  box-shadow: 0 10px 30px rgba(32, 37, 40, .06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand,
.header-login,
.header-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: .625rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}

.header-nav {
  justify-content: center;
  gap: .5rem;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 700;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 .875rem;
  border-radius: var(--radius-full);
}

.header-nav a:hover,
.header-login:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .65);
}

.header-login {
  gap: .5rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface-solid);
  color: var(--petrol);
  box-shadow: var(--shadow-sm);
  font-size: .875rem;
  font-weight: 800;
}

.header-login svg,
.btn svg,
.signal-item svg,
.race-preview svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  min-height: 78svh;
  overflow: hidden;
  color: var(--text);
}

.hero-media {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  opacity: .18;
  pointer-events: none;
}

.hero-media img {
  width: min(58%, 720px);
  min-width: 28rem;
  margin-right: 2rem;
  filter: saturate(.88) contrast(1.03);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, .72fr);
  align-items: center;
  gap: 4.5rem;
  max-width: 1180px;
  min-height: 78svh;
  margin: 0 auto;
  padding: 7.25rem 2.25rem 3rem;
}

.hero-copy {
  max-width: 48rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  padding: .375rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .65);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: .4375rem;
  height: .4375rem;
  border-radius: var(--radius-full);
  background: var(--coral);
  box-shadow: 0 0 0 .3125rem rgba(227, 138, 114, .15);
}

h1 {
  max-width: 51rem;
  margin-bottom: 1.375rem;
  color: var(--text);
  font-size: 4rem;
  font-weight: 850;
}

h2 {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 2.625rem;
  font-weight: 820;
}

h3 {
  margin-bottom: .375rem;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 800;
}

.hero-lead {
  max-width: 44rem;
  margin-bottom: 1.875rem;
  color: var(--muted);
  font-size: 1.1875rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  min-height: 3.5rem;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: .9375rem;
  font-weight: 800;
  line-height: 1;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.btn-primary {
  color: #fff;
  background: var(--petrol);
  border-color: var(--petrol);
  box-shadow: 0 10px 24px rgba(13, 122, 131, .2);
}

.btn-primary:hover {
  background: var(--petrol-strong);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--text);
  background: var(--surface-solid);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg);
  transform: translateY(-1px);
}

.season-panel {
  padding: 1.5rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.season-panel__top {
  padding-bottom: 1.125rem;
  border-bottom: 1px solid var(--divider);
}

.season-panel span,
.demo-grid span {
  display: block;
  margin-bottom: .25rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.season-panel strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.15;
}

.season-panel__grid,
.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.125rem;
}

.season-panel__grid div {
  min-height: 4.75rem;
  padding-left: .875rem;
  border-left: .25rem solid rgba(13, 122, 131, .24);
}

.season-panel__grid div:nth-child(2n) {
  border-left-color: rgba(227, 138, 114, .34);
}

.season-panel__grid strong,
.demo-grid strong {
  font-size: 1.375rem;
}

.signal-band {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  max-width: 1180px;
  margin: -1rem auto 0;
  padding: 0 2.25rem;
}

.signal-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 4.875rem;
  padding: 1rem 1.125rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 800;
}

.signal-item svg {
  color: var(--petrol);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5.75rem 2.25rem;
}

.section-copy {
  max-width: 45rem;
}

.section-copy p {
  color: var(--muted);
  font-size: 1.125rem;
}

.flow-list {
  display: grid;
  gap: 0;
  margin-top: 2.125rem;
}

.flow-list article {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: center;
  gap: 1.375rem;
  padding: 1.125rem 0;
  border-top: 1px solid var(--divider);
}

.flow-list article:last-child {
  border-bottom: 1px solid var(--divider);
}

.flow-list img {
  width: 4.75rem;
  height: 4.75rem;
  object-fit: contain;
}

.flow-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-demo {
  max-width: none;
  padding: 0;
  background: linear-gradient(135deg, rgba(232, 248, 247, .72), rgba(255, 252, 240, .76));
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.demo-shell {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(20rem, .8fr);
  gap: 4rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 5.75rem 2.25rem;
}

.demo-copy p {
  color: var(--muted);
  font-size: 1.125rem;
}

.demo-grid div {
  min-height: 6rem;
  padding: 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.section-races {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(19rem, .74fr);
  align-items: start;
  gap: 4rem;
}

.race-preview {
  display: grid;
  gap: .625rem;
}

.race-preview a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.125rem;
  min-height: 3.875rem;
  padding: 0 1.125rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-weight: 850;
}

.race-preview a:hover {
  border-color: rgba(13, 122, 131, .28);
  background: rgba(255, 255, 255, .78);
}

.race-preview svg {
  color: var(--petrol);
}

.final-cta {
  max-width: 1180px;
  margin: 0 auto 2.625rem;
  padding: 4rem 2.25rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(13, 122, 131, .96), rgba(9, 91, 98, .96));
  border: 1px solid rgba(13, 122, 131, .22);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.final-cta .eyebrow {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .82);
}

.final-cta h2 {
  max-width: 47.5rem;
  color: #fff;
}

.final-cta .btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .26);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.625rem 2.25rem 2.5rem;
  color: var(--muted);
  font-size: .875rem;
}

.site-footer span {
  color: var(--text);
  font-weight: 900;
}

.site-footer__brand {
  display: grid;
  gap: .375rem;
  max-width: 30rem;
}

.site-footer__note {
  margin: 0;
  line-height: 1.45;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .875rem;
}

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

@media (max-width: 980px) {
  .site-header {
    padding: .75rem 1.5rem;
  }

  .hero-inner,
  .demo-shell,
  .section-races {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .hero-inner {
    padding: 6.5rem 1.5rem 2.5rem;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.125rem;
  }

  .hero-lead {
    font-size: 1.0625rem;
  }

  .season-panel {
    max-width: 32.5rem;
  }

  .signal-band {
    grid-template-columns: 1fr;
    margin-top: 0;
    padding: 0 1.5rem;
  }

  .section,
  .demo-shell,
  .final-cta,
  .site-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .final-cta {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: auto auto;
    min-height: 4.125rem;
    padding: .75rem 1rem;
  }

  .brand img {
    width: 2.125rem;
    height: 2.125rem;
  }

  .header-nav {
    display: none;
  }

  .header-login {
    min-height: 2.375rem;
    padding: 0 .75rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding: 5.75rem 1rem 2rem;
  }

  .hero-media {
    opacity: .12;
    align-items: flex-start;
    padding-top: 5.5rem;
  }

  .hero-media img {
    width: 30rem;
    min-width: 30rem;
    margin-right: -9rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    min-height: 3rem;
    padding: 0 1rem;
  }

  .season-panel,
  .final-cta {
    padding: 1.125rem;
  }

  .season-panel__grid,
  .demo-grid {
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
  }

  .season-panel__grid div {
    min-height: 4.25rem;
    padding-left: .625rem;
  }

  .season-panel__grid strong,
  .demo-grid strong {
    font-size: 1.125rem;
  }

  .section {
    padding-top: 4.25rem;
    padding-bottom: 4.25rem;
  }

  .flow-list article {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 1rem;
  }

  .flow-list img {
    width: 4rem;
    height: 4rem;
  }

  .demo-shell {
    padding-top: 4.25rem;
    padding-bottom: 4.25rem;
  }

  .site-footer {
    flex-direction: column;
  }

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