:root {
      --bg: #0b1220;
      --panel: #111a2b;
      --panel-2: #162238;
      --text: #eaf0f8;
      --muted: #aab7cb;
      --line: #26344f;
      --accent: #ffb000;
      --accent-2: #ff6a00;
      --success: #6dd3a0;
      --danger: #ff7b7b;
      --shadow: 0 20px 60px rgba(0,0,0,.35);
      --radius: 18px;
      --max: 1180px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      background:
        radial-gradient(circle at top right, rgba(255,176,0,.12), transparent 30%),
        radial-gradient(circle at top left, rgba(255,106,0,.10), transparent 28%),
        linear-gradient(180deg, #09101c 0%, #0b1220 100%);
      color: var(--text);
      line-height: 1.5;
    }

    a { color: inherit; text-decoration: none; }
    img { max-width: 50%; display: block; margin: auto;}

    .container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(14px);
      background: rgba(8, 14, 24, .78);
      border-bottom: 1px solid rgba(255,255,255,.06);
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 0;
      gap: 16px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 700;
      letter-spacing: .3px;
    }

    .brand-badge {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      color: #111;
      font-weight: 900;
      box-shadow: var(--shadow);
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 18px;
      color: var(--muted);
      font-size: 15px;
    }

    .nav-links a:hover { color: var(--text); }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      border: 0;
      border-radius: 12px;
      padding: 14px 20px;
      font-weight: 700;
      cursor: pointer;
      transition: .18s ease;
    }

    .btn:hover { transform: translateY(-1px); }
    .btn-primary {
      color: #101010;
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      box-shadow: 0 16px 40px rgba(255, 140, 0, .2);
    }
    .btn-secondary {
      color: var(--text);
      background: rgba(255,255,255,.05);
      border: 1px solid rgba(255,255,255,.08);
    }

    .hero {
      padding: 72px 0 44px;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 28px;
      align-items: center;
    }

    .inventory-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
    }

    .inventory-product {
      display: flex;
      flex-direction: column;
      margin: 0;
      min-width: 0;
    }

    .inventory-product .image {
      display: grid;
      place-items: center;
      width: 100%;
      height: clamp(220px, 24vw, 290px);
      margin: 12px 0;
      padding: 12px;
      overflow: hidden;
      border-radius: 12px;
      background: rgba(9,15,26,.55);
    }

    .inventory-product .image img {
      width: 100%;
      height: 100%;
      max-width: none;
      max-height: none;
      margin: 0;
      object-fit: contain;
    }

    .status-banner {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      min-height: 38px;
      margin-bottom: 12px;
      padding: 9px 12px;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 999px;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .02em;
    }

    .status-light {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      flex: 0 0 auto;
    }

    .status-banner.sold {
      color: #ffc5c5;
      background: rgba(255,77,77,.09);
      border-color: rgba(255,77,77,.22);
    }

    .status-banner.sold .status-light {
      background: #ff4d4d;
      box-shadow: 0 0 6px #ff4d4d, 0 0 15px rgba(255,77,77,.85);
    }

    .status-banner.available-soon {
      color: #ffeaa0;
      background: rgba(255,216,77,.09);
      border-color: rgba(255,216,77,.22);
    }

    .status-banner.available-soon .status-light {
      background: #ffd84d;
      box-shadow: 0 0 6px #ffd84d, 0 0 15px rgba(255,216,77,.85);
    }

    .status-banner.in-stock {
      color: #bdffd3;
      background: rgba(77,255,136,.09);
      border-color: rgba(77,255,136,.22);
    }

    .status-banner.in-stock .status-light {
      background: #4dff88;
      box-shadow: 0 0 6px #4dff88, 0 0 15px rgba(77,255,136,.85);
    }
    .inventory-product h3 {
      margin-top: 12px;
      font-size: 18px;
      line-height: 1.3;
    }

    .serial-number {
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
      letter-spacing: .04em;
    }

    .inventory-product .price { font-size: 28px; }
    .inventory-product .small { margin-top: 0; }

    .inventory-product .pill {
      align-self: flex-start;
      margin-top: 14px;
    }

    .inventory-product .view-item-button {
      width: 100%;
      margin-top: 14px;
      justify-content: center;
      border: 1px solid rgba(255,255,255,.12);
      font: inherit;
      cursor: pointer;
    }
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 999px;
      background: rgba(255,176,0,.12);
      border: 1px solid rgba(255,176,0,.18);
      color: #ffd27a;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: .3px;
      margin-bottom: 16px;
    }

    h1 {
      margin: 0 0 14px;
      font-size: clamp(34px, 5vw, 62px);
      line-height: 1.02;
      letter-spacing: -.03em;
      max-width: 13ch;
    }

    .hero p {
      margin: 0 0 24px;
      font-size: 18px;
      color: var(--muted);
      max-width: 60ch;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 24px;
    }

    .hero-points {
      display: flex;
      flex-wrap: wrap;
      gap: 18px;
      color: var(--muted);
      font-size: 14px;
    }

    .hero-card, .card {
      background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
      border: 1px solid rgba(255,255,255,.08);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }

    .hero-card {
      padding: 22px;
      position: relative;
      overflow: hidden;
    }

    .hero-card::before {
      content: "";
      position: absolute;
      inset: -1px;
      background: radial-gradient(circle at top right, rgba(255,176,0,.18), transparent 28%);
      pointer-events: none;
    }

    .mockup {
      min-height: 430px;
      border-radius: 16px;
      padding: 18px;
      background: linear-gradient(180deg, rgba(9,15,26,.95), rgba(17,26,43,.95));
      border: 1px solid rgba(255,255,255,.06);
    }

    .mockup-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 18px;
      color: var(--muted);
      font-size: 13px;
    }

    .dots { display: flex; gap: 7px; }
    .dots span {
      width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18);
    }

    .inventory-card {
      background: linear-gradient(180deg, rgba(255,176,0,.12), rgba(255,255,255,.03));
      border: 1px solid rgba(255,176,0,.18);
      border-radius: 16px;
      padding: 18px;
      margin-bottom: 16px;
    }

    .inventory-card h3, .card h3 { margin: 0 0 8px; }
    .price {
      font-size: 32px;
      font-weight: 800;
      margin: 2px 0 12px;
    }

    .tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
    .tag {
      font-size: 12px;
      font-weight: 700;
      padding: 7px 10px;
      border-radius: 999px;
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.08);
      color: var(--text);
    }

    .trade-box {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-top: 14px;
    }

    .trade-box div {
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.06);
      border-radius: 14px;
      padding: 12px;
      text-align: center;
    }

    section { padding: 28px 0; }

    .section-head {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 18px;
    }

    .section-head h2 {
      margin: 0;
      font-size: clamp(26px, 4vw, 40px);
      line-height: 1.05;
      letter-spacing: -.03em;
    }

    .section-head p {
      margin: 6px 0 0;
      color: var(--muted);
      max-width: 60ch;
    }

    .grid-3, .grid-2 {
      display: grid;
      gap: 18px;
    }

    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-2 { grid-template-columns: repeat(2, 1fr); }

    .card {
      padding: 22px;
    }

    .icon {
      width: 46px;
      height: 46px;
      display: grid;
      place-items: center;
      border-radius: 14px;
      margin-bottom: 14px;
      background: linear-gradient(135deg, rgba(255,176,0,.18), rgba(255,106,0,.16));
      border: 1px solid rgba(255,176,0,.16);
      font-size: 22px;
    }

    .card p, .list, .small { color: var(--muted); }
    .list { padding-left: 18px; margin: 10px 0 0; }
    .list li + li { margin-top: 8px; }

    .steps {
      counter-reset: step;
      display: grid;
      gap: 14px;
    }

    .step {
      position: relative;
      padding: 18px 18px 18px 68px;
      border-radius: 16px;
      background: rgba(255,255,255,.035);
      border: 1px solid rgba(255,255,255,.07);
    }

    .step::before {
      counter-increment: step;
      content: counter(step);
      position: absolute;
      left: 18px;
      top: 18px;
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border-radius: 10px;
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      color: #111;
      font-weight: 800;
    }

    .pricing-table {
      width: 100%;
      border-collapse: collapse;
      overflow: hidden;
      border-radius: 16px;
      background: rgba(255,255,255,.03);
      border: 1px solid rgba(255,255,255,.08);
    }

    .pricing-table th,
    .pricing-table td {
      padding: 14px 16px;
      text-align: left;
      border-bottom: 1px solid rgba(255,255,255,.06);
    }

    .pricing-table th {
      color: #fff;
      background: rgba(255,255,255,.03);
      font-size: 14px;
    }

    .pricing-table td { color: var(--muted); }
    .pricing-table tr:last-child td { border-bottom: 0; }

    .cta {
      padding: 28px;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 20px;
      align-items: center;
      background:
        radial-gradient(circle at right top, rgba(255,176,0,.18), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.03));
    }

    form {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
      margin-top: 14px;
    }

    .full { grid-column: 1 / -1; }

    label {
      display: block;
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 7px;
      color: #f3f6fb;
    }

    input, select, textarea {
      width: 100%;
      padding: 14px 14px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,.09);
      background: rgba(255,255,255,.04);
      color: var(--text);
      outline: none;
    }

    textarea { min-height: 140px; resize: vertical; }
    input::placeholder, textarea::placeholder { color: #8997ac; }
    .note { color: var(--muted); font-size: 13px; margin-top: 10px; }

    footer {
      padding: 34px 0 60px;
      color: var(--muted);
      font-size: 14px;
    }

    .footer-grid {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      align-items: center;
      flex-wrap: wrap;
      border-top: 1px solid rgba(255,255,255,.08);
      padding-top: 22px;
      margin-top: 10px;
    }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 10px;
      border-radius: 999px;
      background: rgba(109,211,160,.10);
      border: 1px solid rgba(109,211,160,.16);
      color: #bdf0d4;
      font-size: 12px;
      font-weight: 700;
    }

    @media (max-width: 980px) {
      .hero-grid, .grid-3, .grid-2, .cta { grid-template-columns: 1fr; }
      .inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      form { grid-template-columns: 1fr; }
      .section-head { align-items: start; flex-direction: column; }
    }

    @media (max-width: 760px) {
      .nav { flex-wrap: wrap; }
      .nav-links { width: 100%; justify-content: center; flex-wrap: wrap; }
      h1 { max-width: none; }
      .hero { padding-top: 44px; }
      .trade-box { grid-template-columns: 1fr; }
      .inventory-grid { grid-template-columns: 1fr; }
    }

.cta-heading {
  margin: 0 0 8px;
}

.cta-copy {
  margin: 0;
  color: var(--muted);
}

.contact-reasons {
  margin-bottom: 18px;
}
.form-message {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: 12px;
  font-weight: 700;
}

.form-message-success {
  color: #bdffd3;
  background: rgba(77,255,136,.09);
  border-color: rgba(77,255,136,.25);
}

.form-message-error {
  color: #ffc5c5;
  background: rgba(255,77,77,.09);
  border-color: rgba(255,77,77,.25);
}


/* Single inventory item page */
.item-page {
  padding: 40px 0 64px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 700;
}

.back-link:hover { color: var(--text); }

.item-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
  gap: 28px;
  align-items: start;
}

.product-gallery {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  outline: none;
}

.product-gallery:focus-visible {
  border-radius: var(--radius);
  box-shadow: 0 0 0 3px rgba(255,176,0,.45);
}

.thumbnail-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 650px;
  padding-right: 5px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.thumbnail {
  display: grid;
  place-items: center;
  width: 76px;
  min-height: 76px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.thumbnail:hover { transform: translateY(-1px); }

.thumbnail.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255,176,0,.2);
}

.thumbnail img {
  width: 100%;
  height: 62px;
  max-width: none;
  margin: 0;
  object-fit: contain;
}

.main-image-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 650px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(9,15,26,.75));
  box-shadow: var(--shadow);
  touch-action: pan-y;
}

.main-image-stage > img {
  width: 100%;
  max-width: 620px;
  max-height: 590px;
  margin: 0;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 0 4px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  color: var(--text);
  background: rgba(9,16,28,.78);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.gallery-arrow:hover { background: rgba(255,176,0,.22); }
.gallery-previous { left: 16px; }
.gallery-next { right: 16px; }

.image-counter {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(9,16,28,.82);
  font-size: 13px;
  font-weight: 700;
}

.item-details {
  position: sticky;
  top: 96px;
}

.item-title {
  max-width: none;
  margin: 12px 0 8px;
  font-size: clamp(28px, 3.2vw, 44px);
}

.item-price {
  margin: 20px 0 8px;
  font-size: 38px;
  font-weight: 800;
}

.item-description { color: var(--muted); }

.item-facts {
  margin: 24px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.item-facts div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.item-facts dt { color: var(--muted); }
.item-facts dd { margin: 0; font-weight: 700; }

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

@media (max-width: 980px) {
  .item-layout { grid-template-columns: 1fr; }
  .item-details { position: static; }
}

@media (max-width: 760px) {
  .item-page { padding-top: 26px; }

  .product-gallery {
    display: flex;
    flex-direction: column;
  }

  .main-image-stage {
    order: 1;
    min-height: 390px;
    padding: 22px;
  }

  .thumbnail-rail {
    order: 2;
    flex-direction: row;
    max-height: none;
    padding: 2px 0 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }

  .thumbnail {
    flex: 0 0 68px;
    width: 68px;
    min-height: 68px;
    scroll-snap-align: start;
  }

  .thumbnail img { height: 54px; }
  .gallery-arrow { display: none; }
  .item-details { padding: 18px; }
}