/* ══════════════════════════════════════════════════════════════════════════
   BR E-Bikes — Shared Design Tokens
   Single source of truth for the public-facing site (index, shop, booking,
   onboarding, portal). Edit this file to restyle every page at once.
   Inspired by the Stitch design exploration, adapted to the BR E-Bikes
   brand (neon green on matte black, kinetic/precision aesthetic).
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Brand colors ───────────────────────────────────────────────────── */
  --brand-primary:        #62df7d;  /* main accent — buttons, highlights   */
  --brand-primary-dim:    #1ca64d;  /* darker end of the kinetic gradient  */
  --brand-primary-glow:   rgba(98, 223, 125, 0.25);  /* hero glow halo     */
  --brand-primary-10:     rgba(98, 223, 125, 0.10);  /* subtle wash        */
  --brand-primary-20:     rgba(98, 223, 125, 0.20);
  --kinetic-gradient:     linear-gradient(135deg, #62df7d 0%, #1ca64d 100%);

  /* ── Surfaces (dark theme) ──────────────────────────────────────────── */
  --bg:                   #131313;  /* page background                     */
  --surface:              #1c1b1b;  /* cards, form fields                  */
  --surface-low:          #0e0e0e;  /* deeper wells, footers               */
  --surface-high:         #2a2a2a;  /* hover, raised                       */
  --surface-highest:      #353534;  /* active, selected                    */
  --surface-bright:       #3a3939;  /* edge highlights                     */

  /* ── Text ───────────────────────────────────────────────────────────── */
  --text:                 #e5e2e1;  /* primary body text                   */
  --text-muted:           #bdcaba;  /* secondary, helper text              */
  --text-dim:             #879485;  /* labels, placeholder                 */
  --text-faint:           rgba(229, 226, 225, 0.50);

  /* ── Borders ────────────────────────────────────────────────────────── */
  --border:               rgba(255, 255, 255, 0.08);
  --border-strong:        rgba(255, 255, 255, 0.14);
  --border-variant:       #3e4a3d;  /* green-tinted outline                */

  /* ── Status colors ──────────────────────────────────────────────────── */
  --ok:                   #4ae176;
  --warn:                 #ffd24d;  /* brightened from #ffb74d for WCAG AA on dark */
  --error:                #ffb4ab;
  --error-bg:             #93000a;

  /* ── Typography ─────────────────────────────────────────────────────── */
  --font-headline:        'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:            'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:            'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* ── Scale ──────────────────────────────────────────────────────────── */
  --radius-sm:            0.375rem;  /*  6px — chips, small buttons */
  --radius:               0.5rem;    /*  8px — default buttons      */
  --radius-lg:            0.75rem;   /* 12px — cards, panels        */
  --radius-xl:            1rem;      /* 16px — hero cards           */
  --radius-full:          9999px;    /*        pills, avatars       */

  /* ── Spacing helpers (use alongside Tailwind or vanilla) ────────────── */
  --space-1:              0.25rem;
  --space-2:              0.5rem;
  --space-3:              0.75rem;
  --space-4:              1rem;
  --space-6:              1.5rem;
  --space-8:              2rem;
  --space-12:             3rem;
  --space-16:             4rem;
  --space-24:             6rem;

  /* ── Shadows ────────────────────────────────────────────────────────── */
  --shadow-sm:            0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow:               0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg:            0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-glow:          0 0 40px rgba(98, 223, 125, 0.25);

  /* ── Motion ─────────────────────────────────────────────────────────── */
  --ease:                 cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:          cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:             120ms;
  --dur:                  200ms;
  --dur-slow:             320ms;

  /* ── Layout ─────────────────────────────────────────────────────────── */
  --max-width:            1280px;
  --nav-height:           72px;
}

/* ══════════════════════════════════════════════════════════════════════════
   FONTS
   ══════════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ══════════════════════════════════════════════════════════════════════════
   RESET
   ══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }

/* ══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY — visible keyboard focus across all interactive elements
   ══════════════════════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
button:focus-visible,
a:focus-visible,
.btn:focus-visible,
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--brand-primary-10);
}

/* ══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY UTILITIES
   ══════════════════════════════════════════════════════════════════════════ */
.font-headline {
  font-family: var(--font-headline);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.font-mono { font-family: var(--font-mono); }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Huge faded numeric markers (01, 02, 03…) shown next to section titles */
.step-number {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 3rem;
  color: var(--brand-primary);
  opacity: 0.20;
  line-height: 1;
}

/* ══════════════════════════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ══════════════════════════════════════════════════════════════════════════
   NAVIGATION — shared header across public pages
   ══════════════════════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(19, 19, 19, 0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
}
.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  object-fit: cover;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
  font-weight: 600;
  transition: color var(--dur) var(--ease);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-primary);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 2px;
}
.nav-burger {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px; height: 42px;
  border-radius: var(--radius);
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.nav-burger:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.nav-burger .material-symbols-outlined { font-size: 22px; }

@media (max-width: 768px) {
  .nav-burger { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(19,19,19,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4) var(--space-6);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--dur) var(--ease);
    z-index: 99;
  }
  .nav-links a {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.active::after { display: none; }
  .nav.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: var(--kinetic-gradient);
  color: #002109;
  box-shadow: 0 8px 24px var(--brand-primary-20);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px var(--brand-primary-20), 0 0 40px var(--brand-primary-glow);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface-high);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-outline {
  background: transparent;
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-primary);
}
.btn-outline:hover {
  background: var(--brand-primary-10);
}

.btn-lg { padding: 1rem 1.75rem; font-size: 14px; }
.btn-xl { padding: 1.25rem 2rem; font-size: 15px; border-radius: var(--radius-lg); }

/* ══════════════════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover {
  border-color: var(--border-strong);
}
.card-interactive:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}
.card-highlight {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 1px var(--brand-primary-20);
}

/* ══════════════════════════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════════════════════════ */
.input,
.select,
.textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  transition: all var(--dur) var(--ease);
}
.input::placeholder,
.textarea::placeholder {
  color: var(--text-dim);
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: var(--surface-high);
  box-shadow: 0 0 0 4px var(--brand-primary-10);
}

.label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

/* ══════════════════════════════════════════════════════════════════════════
   PILLS & BADGES
   ══════════════════════════════════════════════════════════════════════════ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.375rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pill-accent {
  background: var(--brand-primary-10);
  border-color: var(--brand-primary-20);
  color: var(--brand-primary);
}
.pill-accent::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 8px var(--brand-primary);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO IMAGE CONTAINER — the "neon glow behind bike" treatment
   ══════════════════════════════════════════════════════════════════════════ */
.hero-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-low);
  isolation: isolate;
}
.hero-frame::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 50%, var(--brand-primary-glow) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.hero-frame > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--surface-low);
  border-top: 1px solid var(--border);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-24);
  color: var(--text-muted);
  font-size: 13px;
}
.site-footer a {
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}
.site-footer a:hover { color: var(--brand-primary); }
.site-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
@media (max-width: 768px) {
  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}
.site-footer-col-title {
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--space-4);
}
.site-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: var(--space-8) 0;
}
