/* ============================================================
   Car Boot Crazy — teaser site styles
   Palette + type pulled from the game's own art direction.
   ============================================================ */

:root {
  --sky:        #7fc2ec;
  --sky-deep:   #5aa9dd;
  --grass:      #6cb043;
  --grass-deep: #559537;
  --cream:      #efe6cf;
  --cream-2:    #f6efdc;
  --wood:       #8a5a34;
  --wood-deep:  #6a4526;
  --navy:       #1d2437;
  --navy-2:     #262f47;
  --red:        #d9483b;
  --yellow:     #f6c333;
  --ink:        #2a2620;
  --ink-soft:   #5c554a;
  --white:      #fffdf7;

  --shadow-sm: 0 3px 0 rgba(0,0,0,0.16);
  --shadow-md: 0 10px 26px rgba(29,36,55,0.18);
  --shadow-lg: 0 22px 50px rgba(29,36,55,0.28);

  --radius: 18px;
  --radius-lg: 26px;

  --font-display: "Press Start 2P", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Fredoka", "Segoe UI", system-ui, -apple-system, sans-serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

/* ---------- Bunting ---------- */
.bunting {
  height: 26px;
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0 34px, transparent 34px 68px);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 34px, transparent 34px 34px);
  position: relative;
}
.bunting-strip {
  display: flex;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  background: linear-gradient(var(--sky), var(--sky));
}
.flag {
  width: 0; height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-top: 30px solid var(--red);
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.12));
  transform-origin: top center;
  animation: sway 4s ease-in-out infinite;
}
.flag:nth-child(4n+1) { border-top-color: var(--red); }
.flag:nth-child(4n+2) { border-top-color: var(--yellow); animation-delay: .3s; }
.flag:nth-child(4n+3) { border-top-color: var(--grass); animation-delay: .6s; }
.flag:nth-child(4n+4) { border-top-color: var(--sky-deep); animation-delay: .9s; }
@keyframes sway {
  0%,100% { transform: rotate(-2deg); }
  50%     { transform: rotate(2deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 15px 28px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  box-shadow: 0 6px 0 rgba(0,0,0,0.18);
}
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,0.18); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 8px 0 rgba(0,0,0,0.2); }
.btn-ghost {
  background: rgba(255,255,255,0.85);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px rgba(42,38,32,0.14), 0 6px 0 rgba(0,0,0,0.08);
}
.btn-ghost:hover { transform: translateY(-2px); }

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,239,220,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(138,90,52,0.18);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: .82rem;
  color: var(--wood-deep);
  letter-spacing: .5px;
}
.brand-coin {
  width: 38px; height: 38px;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.22));
}
.topbar nav { display: flex; gap: 22px; align-items: center; }
.topbar nav a { text-decoration: none; font-weight: 500; color: var(--ink-soft); }
.topbar nav a:hover { color: var(--ink); }
.topbar .btn { padding: 10px 20px; font-size: .95rem; box-shadow: 0 4px 0 rgba(0,0,0,0.18); }
.nav-links { display: flex; gap: 22px; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 50% -220px, #a9dcf6 0%, var(--sky) 45%, var(--sky-deep) 100%);
  padding: 60px 0 0;
  overflow: hidden;
}
.hero-clouds::before, .hero-clouds::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  filter: blur(1px);
  animation: drift 26s linear infinite;
}
.hero-clouds::before { width: 160px; height: 60px; top: 70px; left: -180px; box-shadow: 60px 10px 0 10px rgba(255,255,255,.9), 120px -6px 0 -4px rgba(255,255,255,.9); }
.hero-clouds::after  { width: 120px; height: 46px; top: 150px; left: -160px; animation-duration: 38s; box-shadow: 46px 8px 0 6px rgba(255,255,255,.85); }
@keyframes drift { to { transform: translateX(120vw); } }

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy);
  color: #ffe9a8;
  font-weight: 600;
  font-size: .82rem;
  padding: 7px 16px;
  border-radius: 999px;
  letter-spacing: .3px;
}
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: #57e08a; box-shadow: 0 0 0 0 rgba(87,224,138,.7); animation: ping 1.8s infinite; }
@keyframes ping { 0%{box-shadow:0 0 0 0 rgba(87,224,138,.7);} 70%{box-shadow:0 0 0 8px rgba(87,224,138,0);} 100%{box-shadow:0 0 0 0 rgba(87,224,138,0);} }

.logo {
  font-family: var(--font-display);
  color: #fff;
  line-height: 1.08;
  margin: 18px 0 10px;
  font-size: clamp(1.9rem, 5vw, 3.3rem);
  text-shadow:
    3px 3px 0 var(--red),
    6px 6px 0 rgba(0,0,0,0.18);
  letter-spacing: 1px;
}
.logo .crazy { color: var(--yellow); display: inline-block; }

.hero-tag {
  font-size: 1.28rem;
  font-weight: 600;
  color: #0d3a54;
  margin: 6px 0 14px;
}
.hero-sub {
  font-size: 1.08rem;
  color: #114a68;
  max-width: 40ch;
  margin: 0 0 26px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: .9rem; color: #0e435f; margin-top: 14px; opacity: .9; }

/* hero art / screenshot */
.hero-art { position: relative; }
.screen-frame {
  background: var(--navy);
  padding: 14px 14px 34px;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  position: relative;
}
.screen-frame img { border-radius: 8px; }
.screen-frame::after {
  content: "● ● ●";
  position: absolute;
  bottom: 9px; left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,.35);
  letter-spacing: 6px;
  font-size: .7rem;
}
.float-plush {
  position: absolute;
  width: 96px; height: 96px;
  filter: drop-shadow(0 10px 10px rgba(0,0,0,0.22));
  animation: bob 4s ease-in-out infinite;
  z-index: 3;
}
.float-plush.p1 { top: -46px; left: -34px; width: 110px; animation-delay: .1s; }
.float-plush.p2 { bottom: -40px; right: -28px; width: 118px; animation-delay: .7s; }
.float-plush.p3 { top: 40%; right: -54px; width: 84px; animation-delay: 1.2s; }
@keyframes bob {
  0%,100% { transform: translateY(0) rotate(-4deg); }
  50%     { transform: translateY(-16px) rotate(4deg); }
}

/* grass base of hero */
.hero-ground {
  height: 70px;
  margin-top: 34px;
  background: var(--grass);
  border-top: 8px solid var(--grass-deep);
  position: relative;
  z-index: 2;
}

/* ---------- Marquee strip ---------- */
.strip {
  background: var(--navy);
  color: #ffe9a8;
  font-family: var(--font-display);
  font-size: .82rem;
  padding: 16px 0;
  text-align: center;
  letter-spacing: 1px;
}
.strip span { color: var(--yellow); }

/* ---------- Sections ---------- */
section { position: relative; }
.section-pad { padding: 78px 0; }
.eyebrow {
  font-family: var(--font-display);
  font-size: .74rem;
  color: var(--red);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  margin: 0 0 14px;
  line-height: 1.15;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- How it works ---------- */
.steps {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px 28px;
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(138,90,52,0.10);
  position: relative;
  transition: transform .15s ease;
}
.step:hover { transform: translateY(-6px); }
.step .num {
  position: absolute; top: -16px; left: 22px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: .78rem;
  box-shadow: var(--shadow-sm);
}
.step .emoji {
  width: 62px; height: 62px; margin: 6px 0 12px;
  display: grid; place-items: center;
  font-size: 1.9rem;
  background: linear-gradient(180deg, #fff5da, #ffe9ad);
  border: 2px solid rgba(217,154,28,0.35);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.step h3 { margin: 0 0 6px; font-size: 1.22rem; font-weight: 700; }
.step p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* ---------- Screenshots ---------- */
.shots-bg { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.shots {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.shot {
  background: var(--navy);
  border-radius: 16px;
  padding: 12px 12px 16px;
  box-shadow: var(--shadow-md);
  transition: transform .18s ease, box-shadow .18s ease;
}
.shot:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-lg); }
.shot img { border-radius: 8px; }
.shot .cap {
  color: #cbd4e6; font-size: .95rem; font-weight: 500;
  padding: 12px 6px 2px; display: flex; align-items: center; gap: 8px;
}
.shot .cap b { color: #fff; }

/* ---------- Collectibles ---------- */
.collect-bg {
  background:
    linear-gradient(180deg, var(--sky) 0%, #9fd6f2 100%);
  color: #0d3a54;
}
.gallery {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 18px;
}
.card {
  background: rgba(255,255,255,0.72);
  border-radius: var(--radius);
  padding: 18px 12px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(255,255,255,0.6);
  transition: transform .15s ease, background .15s ease;
}
.card:hover { transform: translateY(-6px) rotate(-1deg); background: #fff; }
.card img { width: 96px; height: 96px; margin: 0 auto 8px; animation: bob 4.6s ease-in-out infinite; }
.card .nm { font-weight: 600; font-size: .98rem; }
.card .rar { font-size: .78rem; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.rar.legendary { color: #c9821b; }
.rar.rare { color: #7a3fb0; }
.rar.common { color: #3f7a4a; }
.collect-note { margin-top: 30px; font-weight: 600; font-size: 1.05rem; }

/* ---------- The business (pillars) ---------- */
.pillars {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  text-align: left;
}
.pillar {
  background: rgba(255,255,255,0.88);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(255,255,255,0.7);
  transition: transform .15s ease;
}
.pillar:hover { transform: translateY(-6px); }
.p-icon {
  display: inline-grid; place-items: center;
  width: 66px; height: 66px; margin-bottom: 16px;
  font-size: 2.05rem;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.pillar h3 { margin: 0 0 8px; font-size: 1.32rem; font-weight: 700; color: #0d3a54; }
.pillar p { margin: 0; color: #14506e; font-size: 1.02rem; }

/* ---------- Money ladder ---------- */
.ladder {
  margin: 32px auto 6px;
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; justify-content: center;
}
.ladder .rung {
  background: rgba(255,255,255,0.9);
  color: #0d3a54; font-weight: 700;
  padding: 9px 17px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.ladder .rung.gold {
  background: linear-gradient(180deg, #ffd766, #f0b429);
  color: #5b3d05;
  box-shadow: 0 3px 0 rgba(0,0,0,0.16), 0 0 0 2px rgba(255,255,255,0.5) inset;
}
.ladder i { color: #0d3a54; opacity: .55; font-weight: 700; }

/* ---------- Jackpot / legendary coin ---------- */
.jackpot-bg {
  background: radial-gradient(900px 420px at 22% 25%, #3a2f4d 0%, var(--navy) 58%, #12172a 100%);
  color: #fff;
}
.jackpot {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 46px; align-items: center;
}
.jackpot-coin { display: grid; place-items: center; }
.coin-spin {
  width: 224px; height: 224px;
  filter: drop-shadow(0 16px 30px rgba(0,0,0,0.45)) drop-shadow(0 0 26px rgba(246,195,51,0.35));
  animation: coinbob 4.6s ease-in-out infinite;
}
@keyframes coinbob {
  0%,100% { transform: translateY(0) rotate(-6deg); }
  50%     { transform: translateY(-14px) rotate(6deg); }
}
.jackpot-copy .lead { max-width: 52ch; }
.coin-value { margin-top: 16px; font-weight: 600; }
.coin-value span {
  font-family: var(--font-display); font-size: 1.55rem; color: var(--yellow);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.3); margin-right: 10px;
}
.coin-value em { font-style: normal; color: #e7d4a6; }

/* ---------- Newsletter ---------- */
.signup-bg { background: var(--navy); color: #fff; }
.signup-card {
  max-width: 720px; margin: 0 auto; text-align: center;
}
.signup-card .h2 { color: #fff; }
.signup-card .lead { color: #c9d2e6; margin: 0 auto 8px; }
.beta-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 20px 0 26px; }
.beta-badges span {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 8px 16px; border-radius: 999px; font-size: .92rem; font-weight: 500;
}
.form-shell {
  background: var(--cream-2);
  border-radius: var(--radius-lg);
  padding: 26px 26px 10px;
  box-shadow: var(--shadow-lg);
}
.form-plush { display: flex; justify-content: center; gap: 14px; margin-bottom: 6px; }
.form-plush img { width: 60px; height: 60px; animation: bob 4s ease-in-out infinite; }
.form-plush img:nth-child(2){ animation-delay:.5s; } .form-plush img:nth-child(3){ animation-delay:1s; }

/* Kit form theming overrides */
.form-shell .formkit-form { max-width: 560px !important; margin: 0 auto; }
.form-shell .formkit-input {
  border-radius: 999px !important;
  padding: 15px 20px !important;
  font-size: 1.02rem !important;
  border: 2px solid rgba(42,38,32,0.16) !important;
}
.form-shell .formkit-submit {
  border-radius: 999px !important;
}
.form-shell .formkit-submit > span {
  background-color: var(--red) !important;
  padding: 15px 30px !important;
  font-size: 1.02rem !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
}

/* ---------- Footer ---------- */
footer {
  background: var(--wood-deep);
  color: #f0e2cf;
  padding: 42px 0 30px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer .f-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: .8rem; }
footer .f-brand img { width: 40px; height: 40px; }
footer .muted { color: #d8c7ad; opacity: .85; font-size: .92rem; }
footer small { color: #d8c7ad; }
footer small { display: block; margin-top: 8px; opacity: .75; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { max-width: 460px; margin: 20px auto 0; }
  .shots { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .jackpot { grid-template-columns: 1fr; text-align: center; gap: 22px; }
  .jackpot-copy .lead { margin-left: auto; margin-right: auto; }
  .coin-spin { width: 160px; height: 160px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .section-pad { padding: 58px 0; }
  .screen-frame { transform: none; }
  .float-plush.p3 { display: none; }
}
@media (max-width: 480px) {
  .topbar .wrap { height: 58px; }
  .brand { font-size: .56rem; gap: 8px; white-space: nowrap; }
  .brand-coin { width: 30px; height: 30px; }
  .topbar .btn { padding: 9px 13px; font-size: .78rem; box-shadow: 0 4px 0 rgba(0,0,0,0.18); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}
