:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --surface: #11151a;
  --surface-2: #151b22;
  --surface-3: #1b232c;
  --line: #2a3440;
  --line-soft: rgba(169, 184, 199, 0.16);
  --text: #f4f7f9;
  --soft: #c9d3dc;
  --muted: #8d9ca8;
  --accent: #42d392;
  --accent-2: #4fb3ff;
  --warning: #e6b85c;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(79, 179, 255, 0.08), transparent 420px),
    linear-gradient(140deg, rgba(66, 211, 146, 0.08), transparent 520px),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(169, 184, 199, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 184, 199, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.62), transparent 70%);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(11, 13, 16, 0.84);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-weight: 820;
}

.brand img {
  display: block;
}

.top-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.top-nav a {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 6px;
  transition: color 160ms ease, background 160ms ease;
}

.top-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.cart-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  color: #07110d;
  background: var(--accent);
  border-radius: 6px;
}

.hero {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 90px);
  min-height: calc(100vh - 72px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(18px, 4vw, 56px) 64px;
}

.hero-copy {
  width: 100%;
  min-width: 0;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: min(100%, 720px);
  margin: 12px 0 0;
  font-size: 5.7rem;
  line-height: 0.94;
}

h1 span {
  display: block;
}

.hero-lede {
  width: 100%;
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: 1.15rem;
  line-height: 1.65;
}

.hero-actions,
.card-buy,
.buy-band {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 30px;
}

.primary-action,
.secondary-action,
.checkout-button,
.card-buy button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.primary-action,
.checkout-button {
  color: #07110d;
  background: var(--accent);
  border: 0;
  font-weight: 850;
}

.secondary-action {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
}

.primary-action:hover,
.secondary-action:hover,
.checkout-button:hover,
.card-buy button:hover {
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
  margin: 34px 0 0;
}

.hero-stats div {
  min-height: 92px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-stats dt {
  font-size: 1.65rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.product-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  width: 100%;
  min-height: min(620px, 68vh);
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-stage::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(169, 184, 199, 0.08);
  border-radius: 6px;
  pointer-events: none;
}

.hero-product {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.36));
  animation: board-float 5s ease-in-out infinite;
}

.pin-label {
  position: absolute;
  z-index: 2;
  min-height: 32px;
  padding: 7px 10px;
  color: var(--soft);
  background: rgba(11, 13, 16, 0.82);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.label-one {
  left: 28px;
  top: 28px;
}

.label-two {
  right: 24px;
  top: 24%;
}

.label-three {
  right: 32px;
  bottom: 32px;
}

.product-section,
.parts-section,
.spec-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 76px clamp(18px, 4vw, 56px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.42fr);
  gap: 28px;
  align-items: end;
}

.section-heading h2,
.spec-copy h2 {
  max-width: 760px;
  margin: 8px 0 0;
  font-size: 3.55rem;
  line-height: 1;
}

.section-heading p,
.spec-copy p,
.feature-card p,
.part-card p {
  color: var(--soft);
  line-height: 1.62;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.feature-card,
.part-card,
.spec-table,
.buy-band {
  background: rgba(17, 21, 26, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 52px rgba(0, 0, 0, 0.22);
}

.feature-card {
  display: grid;
  gap: 12px;
  min-height: 232px;
  padding: 22px;
}

.feature-card h3,
.part-card h3 {
  margin: 6px 0 0;
  font-size: 1.18rem;
}

.feature-card p,
.part-card p {
  margin: 0;
}

.buy-band {
  justify-content: space-between;
  margin-top: 14px;
  padding: 22px;
}

.price {
  display: block;
  font-size: 2.1rem;
  font-weight: 950;
}

.buy-band small {
  color: var(--muted);
}

.parts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.part-card {
  display: grid;
  gap: 12px;
  min-height: 286px;
  padding: 20px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.part-card:hover {
  transform: translateY(-3px);
  border-color: #3b4957;
}

.card-buy {
  justify-content: space-between;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line-soft);
}

.card-buy span {
  font-size: 1.2rem;
  font-weight: 900;
}

.card-buy button {
  min-width: 74px;
  color: var(--text);
  background: var(--surface-3);
  border: 1px solid var(--line);
}

.spec-section {
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(360px, 1fr);
  gap: 26px;
  align-items: start;
  padding-bottom: 112px;
}

.spec-copy {
  min-width: 0;
}

.spec-table {
  display: grid;
  overflow: hidden;
}

.spec-table div {
  display: grid;
  grid-template-columns: minmax(150px, 0.48fr) minmax(0, 1fr);
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.spec-table div:last-child {
  border-bottom: 0;
}

.spec-table span {
  color: var(--muted);
}

.spec-table strong {
  color: var(--text);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  pointer-events: none;
}

.cart-drawer.is-open {
  pointer-events: auto;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 180ms ease;
}

.cart-drawer.is-open .cart-backdrop {
  background: rgba(0, 0, 0, 0.48);
}

.cart-panel {
  justify-self: end;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  gap: 14px;
  width: min(100vw, 430px);
  height: 100%;
  padding: 24px;
  background: rgba(15, 19, 24, 0.96);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(18px);
}

.cart-drawer.is-open .cart-panel {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.cart-head h2 {
  margin: 4px 0 0;
  font-size: 2rem;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.55rem;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 160px;
  overflow: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cart-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qty-controls button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--text);
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.cart-empty,
.checkout-note {
  color: var(--muted);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.cart-total span {
  color: var(--muted);
}

.cart-total strong {
  font-size: 1.7rem;
}

.checkout-button {
  width: 100%;
}

.checkout-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
}

.checkout-note {
  min-height: 22px;
  margin: 0;
  font-size: 0.9rem;
}

@keyframes board-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1040px) {
  .hero,
  .spec-section {
    grid-template-columns: 1fr;
  }

  .product-stage {
    order: -1;
    min-height: 440px;
  }

  h1 {
    font-size: 4.4rem;
  }

  .parts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    display: none;
  }

  .section-heading,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section-heading h2,
  .spec-copy h2 {
    font-size: 2.7rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 66px;
    padding-inline: 14px;
  }

  .brand span {
    max-width: 158px;
    line-height: 1.05;
  }

  .cart-button {
    min-height: 38px;
    padding-inline: 10px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
    gap: 24px;
    padding-top: 28px;
    padding-inline: 20px;
    overflow: hidden;
  }

  .hero-copy,
  .hero-stats,
  .hero-actions {
    max-width: calc(100vw - 40px);
  }

  .hero-copy {
    order: 2;
  }

  h1 {
    font-size: 2.58rem;
    line-height: 0.98;
    overflow-wrap: anywhere;
  }

  .hero-stats,
  .parts-grid,
  .spec-table div {
    grid-template-columns: 1fr;
  }

  .product-stage {
    order: 1;
    width: 100%;
    min-height: 350px;
    max-width: calc(100vw - 40px);
    margin-bottom: 26px;
    padding: 20px;
  }

  .hero-lede {
    max-width: 31ch;
    font-size: 1.04rem;
  }

  .hero-product {
    width: min(100%, 300px);
  }

  .pin-label {
    display: none;
  }

  .cart-panel {
    width: 100vw;
  }
}
