/* ============================================================
   Carzam — carzam.website
   Premium, dark, car-racing energy.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:ital,wght@0,400;0,600;0,700;0,800;1,600;1,700;1,800&display=swap');

:root {
  /* Surfaces */
  --bg: #07070A;
  --surface: #16161D;
  --surface-2: #1E1E27;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #F4F5F8;
  --text-dim: #A7ABB8;
  --text-faint: #6B6F7D;

  /* Brand accent (identity / links) */
  --blue: #2E8BFF;
  --cyan: #59C2FF;
  --brand-grad: linear-gradient(100deg, #2E8BFF 0%, #59C2FF 100%);

  /* Action / energy (CTA — starting lights) */
  --hot-grad: linear-gradient(100deg, #FFB020 0%, #FF5A1F 52%, #E51E3C 100%);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;

  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 12px 50px rgba(46, 139, 255, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(46, 139, 255, 0.18), transparent 60%),
    radial-gradient(700px 500px at 0% 0%, rgba(89, 194, 255, 0.10), transparent 55%);
  pointer-events: none;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Checkered finish-line strip ---------- */
.checker {
  height: 14px;
  width: 100%;
  background-image:
    linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%),
    linear-gradient(45deg, #fff 25%, #0d0d12 25%, #0d0d12 75%, #fff 75%);
  background-size: 14px 14px;
  background-position: 0 0, 7px 7px;
  opacity: 0.85;
}
.checker--thin { height: 10px; background-size: 10px 10px; background-position: 0 0, 5px 5px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 7, 10, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav__links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Wordmark ---------- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.wordmark:hover { text-decoration: none; }
.wordmark .zam {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding: 0.04em 0.12em;
  margin: -0.04em -0.1em;
}
.wordmark__icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(46, 139, 255, 0.4);
}
.mini-flag {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background-image:
    linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%),
    linear-gradient(45deg, #fff 25%, #111 25%, #111 75%, #fff 75%);
  background-size: 9px 9px;
  background-position: 0 0, 4.5px 4.5px;
  background-color: #111;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--hot {
  background: var(--hot-grad);
  color: #fff;
  box-shadow: 0 10px 30px rgba(229, 30, 60, 0.35);
}
.btn--hot:hover { box-shadow: 0 14px 38px rgba(229, 30, 60, 0.5); }
.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface-2); }

/* App Store badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.badge:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--blue); }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge__sub { font-size: 0.7rem; color: var(--text-dim); line-height: 1; }
.badge__main { font-size: 1.05rem; font-weight: 700; line-height: 1.2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(46, 139, 255, 0.06);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* Race-banner section header */
.banner-head {
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin: 0 0 14px;
  line-height: 1.1;
  padding-right: 0.1em; /* italic overhang room */
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 40px; }
/* Racing stripes accent */
.hero::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 220px;
  background:
    repeating-linear-gradient(115deg,
      transparent 0 38px,
      rgba(46, 139, 255, 0.05) 38px 42px,
      rgba(89, 194, 255, 0.05) 42px 46px,
      transparent 46px 84px);
  mask-image: linear-gradient(to left, #000, transparent);
  pointer-events: none;
  z-index: -1;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-style: italic;
  font-weight: 800;
  font-size: clamp(2.8rem, 6.5vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 22px 0 18px;
  padding-right: 0.12em; /* room for italic overhang on the last glyph */
}
.hero h1 .grad {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  /* extend the painted box so the italic lean isn't clipped */
  display: inline-block;
  padding: 0.05em 0.14em;
  margin: -0.05em -0.14em;
}
.hero__sub {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 30ch;
  margin: 0 0 30px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Phone — real screenshot in a device frame */
.phone {
  position: relative;
  width: 286px;
  margin: 0 auto;
  border-radius: 46px;
  background: linear-gradient(160deg, #23242f, #0a0a0f);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  padding: 9px;
}
.phone img {
  display: block;
  width: 100%;
  border-radius: 38px;
}
.phone--tilt { transform: rotate(-3deg); }

/* Showcase strip of real screens */
.showcase-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
}
.shot {
  width: 240px;
  border-radius: 38px;
  background: linear-gradient(160deg, #23242f, #0a0a0f);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
  padding: 8px;
  transition: transform 0.2s ease;
}
.shot img { display: block; width: 100%; border-radius: 31px; }
.shot:hover { transform: translateY(-6px); }
.shot__cap {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- Sections ---------- */
section { padding: 74px 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(22,22,29,0.5), transparent); }
.section-intro { max-width: 640px; margin-bottom: 48px; }
.section-intro p { color: var(--text-dim); font-size: 1.1rem; margin: 0; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.step__num {
  font-style: italic; font-weight: 800; font-size: 2.6rem;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1.1;
  display: inline-block;
  padding: 0.04em 0.14em;
  margin: -0.04em -0.14em;
}
.step h3 { font-style: italic; text-transform: uppercase; font-size: 1.2rem; margin: 14px 0 8px; }
.step p { color: var(--text-dim); margin: 0; font-size: 0.96rem; }

/* Features grid */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature {
  display: flex; gap: 18px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.feature:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.feature__icon {
  flex: none;
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(46, 139, 255, 0.12);
  border: 1px solid rgba(46, 139, 255, 0.25);
}
.feature__icon svg { width: 26px; height: 26px; color: var(--cyan); }
.feature h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 700; }
.feature p { margin: 0; color: var(--text-dim); font-size: 0.96rem; }

/* Rarity chips */
.rarity-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--text-dim);
}
.chip--leg { background: var(--hot-grad); color: #fff; border-color: transparent; }

/* Privacy band */
.privacy-band {
  text-align: center;
  padding: 64px 0;
  position: relative;
}
.privacy-band .banner-head { margin-bottom: 28px; }
.privacy-band__items {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
}
.privacy-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-strong);
  font-weight: 600;
}
.privacy-pill svg { width: 18px; height: 18px; color: var(--cyan); }

/* ---------- Legal / support pages ---------- */
.page { padding: 56px 0 40px; }
.page__head { max-width: 760px; margin-bottom: 36px; }
.page__head .banner-head { margin-bottom: 8px; }
.page__head .effective { color: var(--text-faint); font-size: 0.9rem; }
.prose {
  max-width: 760px;
  color: var(--text-dim);
}
.prose h2 {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 34px 0 10px;
}
.prose h3 { color: var(--text); font-size: 1.05rem; margin: 24px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose strong { color: var(--text); }
.prose em { color: var(--text); font-style: italic; }
.prose a { font-weight: 600; }

/* FAQ */
.faq { max-width: 760px; display: grid; gap: 14px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-dim); margin: 0 0 16px; }

.contact-card {
  max-width: 760px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  margin-bottom: 40px;
}
.contact-card h2 { margin: 0 0 4px; font-size: 1.2rem; }
.contact-card p { margin: 0; color: var(--text-dim); }
.contact-card a.email {
  font-size: 1.3rem; font-weight: 800; font-style: italic;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  display: inline-block;
  padding: 0.04em 0.14em;
  margin: -0.04em -0.14em;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 40px;
  margin-top: 30px;
}
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: space-between; align-items: center;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 26px; }
.footer__links a { color: var(--text-dim); font-weight: 600; font-size: 0.95rem; }
.footer__links a:hover { color: var(--text); text-decoration: none; }
.footer__copy { color: var(--text-faint); font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__sub { max-width: none; }
  .hero::after { display: none; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .nav__links { gap: 18px; }
}
@media (max-width: 640px) {
  .nav__links .nav-hide { display: none; }
  section { padding: 56px 0; }
  .hero { padding: 44px 0 20px; }
  .contact-card { flex-direction: column; align-items: flex-start; }
}

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