﻿:root {
  --bg: #0b1020;
  --bg-soft: #0f1a2f;
  --primary: #3ab1ff;
  --primary-dark: #1a66d1;
  --accent: #59e4ff;
  --text: #eef4ff;
  --muted: #a2b5d5;
  --card: #141f38;
  --card-border: rgba(59, 168, 255, 0.25);
  --shadow: 0 18px 50px rgba(9, 16, 34, 0.6);
}

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

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #1a2b4f 0%, var(--bg) 55%);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      rgba(89, 228, 255, 0.16) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(89, 228, 255, 0.16) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.5;
  pointer-events: none;
  mask-image: radial-gradient(circle at 30% 10%, black, transparent 60%);
}

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(20px);
  background: rgba(8, 14, 29, 0.7);
  border-bottom: 1px solid rgba(59, 168, 255, 0.2);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 18px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: #1a2542;
  border: 2px solid rgba(255, 255, 255, 0.1);
  padding: 6px;
}

.logo-text {
  display: grid;
}

.logo-title {
  font-family: "Rubik Mono One", monospace;
  letter-spacing: 2px;
  font-size: 20px;
}

.logo-tag {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.cta,
.ghost,
.card button,
.card a {
  border: none;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.cta {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #06121f;
  box-shadow: 0 8px 20px rgba(59, 168, 255, 0.4);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ghost {
  background: transparent;
  border: 1px solid rgba(89, 228, 255, 0.6);
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  padding: 80px 0 60px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  margin-bottom: 18px;
}

.pill {
  display: inline-block;
  background: rgba(58, 177, 255, 0.2);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.stats {
  display: flex;
  gap: 20px;
}

.stat {
  display: block;
  font-size: 22px;
  font-weight: 700;
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
}

.hero-card {
  position: relative;
  background: linear-gradient(140deg, rgba(20, 31, 56, 0.9), rgba(10, 18, 36, 0.9));
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card .glow {
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(89, 228, 255, 0.55), transparent 70%);
  top: -40px;
  right: -40px;
}

.hero-card h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.hero-card p {
  color: var(--muted);
  margin-bottom: 16px;
}

.hero-card .price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-card li::before {
  content: "◆";
  color: var(--accent);
  margin-right: 8px;
}

.wide {
  width: 100%;
}

.section {
  padding: 70px 0;
}

.section.alt {
  background: rgba(13, 22, 40, 0.8);
  border-top: 1px solid rgba(59, 168, 255, 0.15);
  border-bottom: 1px solid rgba(59, 168, 255, 0.15);
}

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

.section-head h2 {
  font-size: 32px;
}

.section-head p {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid rgba(59, 168, 255, 0.15);
  box-shadow: 0 10px 30px rgba(5, 10, 20, 0.4);
  transition: transform 0.2s ease, border 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(89, 228, 255, 0.6);
}

.card.featured {
  border-color: rgba(89, 228, 255, 0.8);
  background: linear-gradient(135deg, rgba(26, 45, 84, 0.9), rgba(13, 22, 40, 0.9));
}

.card h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.card p {
  color: var(--muted);
  margin-bottom: 16px;
}

.crate-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(89, 228, 255, 0.25);
  margin-bottom: 2px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  margin-top: auto;
  gap: 8px;
}

.card-actions {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.info-btn {
  background: rgba(18, 39, 72, 0.92);
  border: 1px solid rgba(89, 228, 255, 0.4);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  min-height: 36px;
  cursor: pointer;
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.info-btn:hover {
  border-color: rgba(89, 228, 255, 0.8);
  background: rgba(24, 52, 92, 0.95);
}

.card button,
.card a {
  background: rgba(89, 228, 255, 0.2);
  color: var(--text);
  padding: 8px 14px;
  min-height: 36px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.crate-specs {
  margin-top: 22px;
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.crate-specs.is-visible {
  display: grid;
}

.crate-spec {
  display: none;
  background: rgba(11, 21, 40, 0.8);
  border: 1px solid rgba(89, 228, 255, 0.22);
  border-radius: 14px;
  padding: 14px;
}

.crate-spec.is-visible {
  display: block;
}

.crate-spec h3 {
  margin-bottom: 10px;
}

.crate-spec ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.crate-spec li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.crate-spec li::before {
  content: "◆";
  color: var(--accent);
  margin-right: 8px;
}

.crate-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 8, 20, 0.8);
}

.crate-modal.is-open {
  display: flex;
}

.crate-modal-card {
  width: min(700px, 100%);
  max-height: 78vh;
  overflow: auto;
  background: linear-gradient(140deg, rgba(12, 23, 43, 0.98), rgba(14, 30, 58, 0.96));
  border: 1px solid rgba(89, 228, 255, 0.35);
  border-radius: 18px;
  padding: 18px 18px 14px;
  position: relative;
}

.crate-modal-head {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  margin-bottom: 8px;
}

.crate-modal-title {
  text-align: center;
  font-size: 24px;
}

.crate-modal-spacer {
  width: 34px;
  height: 34px;
}

.crate-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 110, 110, 0.8);
  background: rgba(181, 20, 20, 0.26);
  color: #ffd6d6;
  font-weight: 800;
  cursor: pointer;
}

.crate-modal-close:hover {
  background: rgba(214, 32, 32, 0.4);
}

.crate-modal .crate-spec {
  display: block;
  margin-top: 8px;
}

.crate-modal .crate-spec h3 {
  display: none;
}

.deal-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px;
  border-radius: 22px;
  border: 1px solid rgba(89, 228, 255, 0.4);
  background: linear-gradient(120deg, rgba(44, 86, 148, 0.7), rgba(16, 28, 52, 0.9));
  box-shadow: var(--shadow);
  gap: 20px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.faq {
  background: var(--card);
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(59, 168, 255, 0.15);
}

.faq h3 {
  margin-bottom: 10px;
}

.faq p {
  color: var(--muted);
}

.site-footer {
  background: #090f1f;
  border-top: 1px solid rgba(59, 168, 255, 0.15);
  padding: 30px 0 50px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.cart-page {
  padding: 60px 0 80px;
}

.cart-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.cart-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
}

.cart-panel {
  background: var(--card);
  border-radius: 20px;
  border: 1px solid rgba(59, 168, 255, 0.2);
  padding: 16px;
  max-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
}

.cart-panel::-webkit-scrollbar {
  width: 10px;
}

.cart-panel::-webkit-scrollbar-thumb {
  background: rgba(89, 228, 255, 0.35);
  border-radius: 999px;
}

.cart-list {
  display: grid;
  gap: 16px;
}

.cart-list.is-hidden {
  display: none;
}

.cart-empty {
  background: transparent;
  border-radius: 20px;
  padding: 20px 12px;
  border: none;
  display: grid;
  gap: 16px;
}

.cart-item {
  background: var(--card);
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(59, 168, 255, 0.15);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  --hold-progress: 0;
}

.cart-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(197, 28, 28, 0.42), rgba(255, 53, 53, 0.6));
  transform-origin: left center;
  transform: scaleX(var(--hold-progress));
  transition: transform 0.12s linear;
  pointer-events: none;
  z-index: 1;
}

.cart-item > * {
  position: relative;
  z-index: 2;
}

.cart-item.is-removing {
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-remove {
  border: 1px solid rgba(255, 124, 124, 0.75);
  background: rgba(176, 22, 22, 0.3);
  color: #ffd8d8;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  flex: 0 0 auto;
}

.cart-remove:hover {
  background: rgba(208, 31, 31, 0.46);
}

.cart-item h3 {
  margin-bottom: 6px;
}

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

.cart-product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.cart-thumb {
  width: 58px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(89, 228, 255, 0.3);
  flex: 0 0 auto;
  display: block;
}

.cart-meta {
  display: grid;
  justify-items: end;
  gap: 10px;
  font-weight: 600;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(89, 228, 255, 0.12);
  padding: 6px 10px;
  border-radius: 999px;
}

.qty button {
  background: transparent;
  border: none;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.cart-summary {
  background: linear-gradient(140deg, rgba(19, 31, 56, 0.95), rgba(10, 18, 36, 0.95));
  border-radius: 20px;
  padding: 22px;
  border: 1px solid rgba(59, 168, 255, 0.2);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  height: fit-content;
}

.cart-summary.is-empty {
  opacity: 0.7;
}

.cart-summary button:disabled {
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.4);
}

.checkout-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 22, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 40;
}

.checkout-modal.show {
  display: flex;
}

.checkout-card {
  width: min(460px, 100%);
  background: #0c1730;
  border: 1px solid rgba(89, 228, 255, 0.3);
  border-radius: 20px;
  padding: 24px;
  display: grid;
  gap: 14px;
}

.checkout-options {
  display: grid;
  gap: 10px;
}

.checkout-option {
  border: 1px solid rgba(89, 228, 255, 0.35);
  background: rgba(59, 168, 255, 0.12);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.checkout-option:hover {
  border-color: rgba(89, 228, 255, 0.75);
}

.checkout-result {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: #0e1d3a;
  border: 1px solid rgba(89, 228, 255, 0.35);
  border-radius: 16px;
  padding: 14px 16px;
  max-width: min(720px, 92vw);
  width: fit-content;
  display: none;
  z-index: 35;
}

.checkout-result.show {
  display: block;
}

.summary-row,
.summary-total {
  display: flex;
  justify-content: space-between;
}

.summary-total {
  font-size: 20px;
  padding-top: 10px;
  border-top: 1px solid rgba(59, 168, 255, 0.2);
}

.summary-note {
  color: var(--muted);
  font-size: 12px;
}

.cart-toast {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 30;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.cart-toast.hide {
  opacity: 0;
  transform: translateY(20px);
}

.toast-card {
  background: #0b1428;
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(59, 168, 255, 0.25);
  box-shadow: 0 18px 40px rgba(5, 12, 28, 0.6);
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 260px;
}

.toast-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(16, 227, 108, 0.1);
}

.toast-icon svg {
  width: 48px;
  height: 48px;
}

.toast-text h4 {
  margin-bottom: 4px;
  font-size: 16px;
}

.toast-text p {
  color: var(--muted);
  font-size: 13px;
}

.section,
.hero,
.site-footer {
  opacity: 0;
  transform: translateY(30px);
  animation: rise 0.9s ease forwards;
}

.hero {
  animation-delay: 0.1s;
}

.section:nth-of-type(2) {
  animation-delay: 0.25s;
}

.section:nth-of-type(3) {
  animation-delay: 0.35s;
}

.section:nth-of-type(4) {
  animation-delay: 0.45s;
}

.section:nth-of-type(5) {
  animation-delay: 0.55s;
}

.site-footer {
  animation-delay: 0.65s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .cart-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats {
    flex-direction: column;
    gap: 12px;
  }

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

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

  .cart-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .cart-meta {
    grid-column: 1 / -1;
    width: 100%;
    grid-auto-flow: column;
    justify-content: space-between;
  }

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

  .card-actions {
    width: 100%;
    align-items: stretch;
  }
}
