@import url('https://fonts.googleapis.com/css2?family=Michroma&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --black: #0b0b0d;
  --black-rich: #050505;
  --white: #f5f5f7;
  --red: #e30613;
  --red-bright: #ff1f2d;
  --metal: #8b8f96;
  --metal-light: #b7bcc4;
  --metal-dark: #4c5056;
  --sheet: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02) 35%,
    rgba(0, 0, 0, 0.35) 70%
  );
  --glow: 0 0 24px rgba(255, 31, 45, 0.35);
  --radius: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background: radial-gradient(circle at top, #1f1f24, #0a0a0c 60%);
  color: var(--white);
  min-height: 100vh;
}

.page {
  position: relative;
  overflow: hidden;
}

.page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 2px,
    transparent 2px,
    transparent 12px
  );
  opacity: 0.4;
  pointer-events: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 6vw;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(8, 8, 10, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-dev-banner {
  position: relative;
  z-index: 1;
  margin: 18px 6vw 0;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 31, 45, 0.6);
  background: linear-gradient(90deg, rgba(255, 31, 45, 0.22), rgba(255, 255, 255, 0.08));
  color: var(--white);
  font-family: 'Michroma', sans-serif;
  font-size: clamp(1.2rem, 2.6vw, 2.4rem);
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(255, 31, 45, 0.65);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Michroma', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-logo {
  height: 92px;
  width: auto;
  max-width: 480px;
  object-fit: contain;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.55));
}

.brand-mark {
  background: var(--red-bright);
  color: var(--white);
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: var(--glow);
}

.brand-text span {
  display: block;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--red-bright);
  transition: width 0.2s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.account-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-quick {
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 6px;
}

.account-quick-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

.account-quick-bike {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.2;
}

.account-quick-select {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  font-size: 0.78rem;
}

.primary-button,
.ghost-button {
  border: none;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  background: var(--red-bright);
  color: var(--white);
  box-shadow: var(--glow);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 31, 45, 0.45);
}

.ghost-button {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ghost-button:hover {
  transform: translateY(-2px);
  border-color: var(--red-bright);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
}

.mobile-toggle span {
  width: 28px;
  height: 2px;
  background: var(--white);
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  padding: 70px 6vw 40px;
  position: relative;
  z-index: 1;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: reveal 0.7s ease;
}

.hero-left h1 {
  font-size: clamp(2.5rem, 3vw + 1rem, 4rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-left p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  background: rgba(255, 255, 255, 0.06);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stats span {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--red-bright);
}

.hero-stats p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: reveal 0.7s ease 0.1s both;
}

.vendor-card {
  padding: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.01));
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vendor-top {
  font-family: 'Michroma', sans-serif;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--metal-light);
}

.vendor-image {
  width: 100%;
  height: 165px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.vendor-card h3 {
  font-size: 1.35rem;
  text-transform: uppercase;
}

.vendor-tagline {
  color: var(--red-bright);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.vendor-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.vendor-card .primary-button {
  align-self: flex-start;
}

.helmet-card {
  padding: 26px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.helmet-top {
  font-family: 'Michroma', sans-serif;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--metal-light);
  margin-bottom: 12px;
}

.hero-visual {
  position: relative;
  min-height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.6));
}

.metal-slice {
  position: absolute;
  inset: 0;
  background: var(--sheet);
}

.red-slash {
  position: absolute;
  width: 80%;
  height: 100%;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 31, 45, 0.75) 40%, rgba(255, 31, 45, 0.2) 70%, transparent 70%);
}

.hero-copy {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 24px 6vw;
}

.feature-strip div {
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-strip h4 {
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--metal-light);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 50px 6vw 20px;
}

.category-card {
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.category-card h3 {
  font-size: 1.2rem;
}

.product-section {
  padding: 40px 6vw;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 2rem;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.chip.active {
  border-color: var(--red-bright);
  box-shadow: var(--glow);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  transition: transform 0.2s ease, border 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 31, 45, 0.5);
}

.product-card h4 {
  font-size: 1.1rem;
}

.product-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--red-bright);
}

.favorite-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  color: var(--white);
  cursor: pointer;
}

.favorite-toggle.active {
  background: var(--red-bright);
}

.events {
  padding: 40px 6vw 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.event-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.event-cards article {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.cta {
  padding: 50px 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: linear-gradient(120deg, rgba(255, 31, 45, 0.25), rgba(0, 0, 0, 0.7));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer {
  padding: 40px 6vw 80px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  background: var(--black-rich);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter {
  display: flex;
  gap: 10px;
}

.newsletter input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100vh;
  background: #0c0c10;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 20;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel.active {
  transform: translateX(0);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon-button {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

.panel-copy {
  color: rgba(255, 255, 255, 0.65);
}

.settings-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.settings-shortcuts .ghost-button {
  width: 100%;
  text-align: center;
}

.panel-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-mode-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.auth-mode-row .chip {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
}

.auth-mode-row .chip.active {
  background: rgba(255, 31, 45, 0.2);
}

.panel-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.panel-form input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.rider-terms {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.rider-terms h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.rider-initial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rider-term-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 8px;
}

.rider-term-item label {
  margin: 0;
}

.rider-term-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
  line-height: 1.35;
}

.rider-submit-row {
  display: flex;
}

.rider-submit-row .primary-button {
  width: 100%;
}

.panel-copy.tiny {
  font-size: 0.8rem;
  line-height: 1.4;
}

.panel-status {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 31, 45, 0.15);
  border: 1px solid rgba(255, 31, 45, 0.3);
  display: none;
}

.panel-status.visible {
  display: block;
}

.panel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-item {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.panel-item button {
  background: transparent;
  border: none;
  color: var(--red-bright);
  cursor: pointer;
}

.cart-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.discount-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.discount-row {
  display: flex;
  gap: 8px;
}

.discount-row input {
  flex: 1;
}

.discount-status {
  font-size: 0.85rem;
  color: var(--metal-light);
}

.cart-total {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-total div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-total .total {
  font-size: 1.1rem;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 15;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .product-grid,
  .event-cards,
  .feature-strip,
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .site-header {
    flex-wrap: wrap;
    gap: 20px;
  }

  .header-actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .account-quick {
    min-width: 200px;
  }
}

@media (max-width: 700px) {
  .hero-stats,
  .category-grid,
  .product-grid,
  .event-cards,
  .feature-strip,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .newsletter {
    flex-direction: column;
  }

  .rider-initial-grid {
    grid-template-columns: 1fr;
  }

  .settings-shortcuts {
    grid-template-columns: 1fr;
  }
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background: rgba(8, 8, 10, 0.95);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 18;
  padding: 90px 6vw 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav.active {
  transform: translateY(0);
}

.mobile-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}


.is-hidden {
  display: none !important;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 0;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.panel-note {
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  display: none;
}

.panel-note.visible {
  display: block;
}

.price-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.price-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.price-line strong {
  color: var(--white);
  font-weight: 600;
}

.price-line.msrp strong {
  text-decoration: line-through;
  color: var(--metal-light);
}

.price-line.mxpb strong {
  color: var(--red-bright);
  font-size: 1rem;
}

.price-line.yourcost strong {
  color: #7dffb4;
}


.ai-section {
  padding: 40px 6vw 10px;
}

.ai-card {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.ai-controls label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
  font-size: 0.9rem;
}

.ai-controls select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.ai-note {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.ai-output {
  display: grid;
  gap: 12px;
}

.ai-output ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.ai-output li {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-form select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}


.ai-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ai-part {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ai-part.missing {
  opacity: 0.6;
}

.ai-part .ghost-button {
  padding: 8px 14px;
}

.deploy-stamp {
  margin-top: 8px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}
