/* ==========================================================================
   eBikeBeast — shared styles
   Brand: bold, dark, electric. "Ride Something Wild"
   ========================================================================== */

:root {
  --bg: #0a0a0a;
  --card: #1a1a1a;
  --accent: #e8ff00;
  --text: #ffffff;
  --muted: #9a9a9a;
  --border: #2a2a2a;
  --radius: 14px;
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.accent { color: var(--accent); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #0a0a0a; }
.btn-primary:hover { background: #f2ff4d; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.logo {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  line-height: 1;
}
.logo b { color: var(--accent); }
.logo-mark { display: block; width: 36px; height: 36px; flex-shrink: 0; }
.logo-text { display: inline-block; }
.site-footer .logo { color: var(--text); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { padding: 9px 18px; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 60px 0;
  overflow: hidden;
  isolation: isolate;
  background: #080808;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Push the bike + rider to the right; the baked-in "SURRON. BUILT TO FLY."
     text sits off the left edge, behind the dark side of the overlay. */
  object-position: right center;
  z-index: 0;
}
/* Left-to-right readability gradient: dark where the headline sits,
   clearing to fully transparent so the bike reads on the right. */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.7) 40%,
    rgba(0, 0, 0, 0.15) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
  pointer-events: none;
}
/* Bottom fade so the hero blends into the page background. */
.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, #080808 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-inner { max-width: 760px; position: relative; z-index: 3; }
@media (max-width: 720px) {
  .hero { min-height: 80vh; }
  /* Keep the bike visible on narrow screens. */
  .hero-image { object-position: 60% center; }
}
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}
.hero p.lead { font-size: 1.25rem; color: var(--muted); max-width: 580px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Trust bar ---- */
.trustbar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #0d0d0d; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 26px 0;
}
.trust-item { display: flex; align-items: center; gap: 12px; justify-content: center; }
.trust-item svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.trust-item span { font-weight: 600; font-size: .95rem; }

/* ---- Section ---- */
section { padding: 78px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* ---- Product grid ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.badge {
  align-self: flex-start;
  background: rgba(232, 255, 0, .14);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 6px; }
.price { font-size: 1.9rem; font-weight: 800; margin: 6px 0 12px; }
.card p { color: var(--muted); font-size: .96rem; flex: 1; }
.card .btn { margin-top: 18px; }

/* ---- Steps (how it works) ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.step-num {
  font-size: 2.6rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }

/* ---- Three-column feature ---- */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.col h3 { color: var(--accent); }
.col p { color: var(--muted); margin: 0; }

/* ---- FAQ ---- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 20px;
  margin-bottom: 14px;
  background: var(--card);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* ---- Product detail page ---- */
.product-hero { padding-top: 56px; }
.product-hero .price { font-size: 2.6rem; }
.product-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 620px; }
.specs-table { width: 100%; border-collapse: collapse; max-width: 560px; }
.specs-table th, .specs-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.specs-table th { color: var(--muted); font-weight: 600; width: 45%; }
.specs-table td { font-weight: 700; }
.info-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.info-box h3 { margin-bottom: 8px; }
.info-box p { color: var(--muted); margin: 0; }
.prose p { color: #cfcfcf; max-width: 720px; }

/* ---- Checkout ---- */
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 7px; color: var(--muted); }
.form-field input, .form-field select {
  width: 100%;
  padding: 13px 15px;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 88px;
}
.summary h3 { margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.summary-row.total { border-bottom: none; font-size: 1.3rem; font-weight: 800; padding-top: 16px; }
.summary-row.total .accent { color: var(--accent); }

/* ---- Confirmation ---- */
.confirm { min-height: 70vh; display: flex; align-items: center; }
.confirm-card {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px 36px;
}
.confirm-check {
  width: 70px; height: 70px; margin: 0 auto 24px; border-radius: 50%;
  background: rgba(232, 255, 0, .14); display: flex; align-items: center; justify-content: center;
}
.confirm-check svg { width: 36px; height: 36px; color: var(--accent); }
.order-ref {
  display: inline-block; background: #111; border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 16px; font-family: monospace; font-size: 1.05rem;
  color: var(--accent); margin: 12px 0 24px;
}

/* ---- Page header band (for sub-pages) ---- */
.page-band { padding: 64px 0 24px; border-bottom: 1px solid var(--border); }
.page-band p { color: var(--muted); font-size: 1.1rem; max-width: 640px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); background: #0c0c0c; padding: 54px 0 34px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 30px; }
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--muted); font-size: .95rem; margin-top: 10px; }
.footer-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 14px; }
.footer-col a { display: block; color: var(--muted); padding: 5px 0; font-size: .95rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---- Utilities ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 14px; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .cols { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .summary { position: static; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
