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

*, *::before, *::after { box-sizing: border-box; }

:root {
  --emerald: #10b981;
  --emerald-dim: #059669;
  --emerald-glow: rgba(16,185,129,0.12);
  --surface: #0f0f0f;
  --surface-raised: #161616;
  --surface-card: #1a1a1a;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(16,185,129,0.4);
  --text-primary: #f5f5f5;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --sans: 'Space Grotesk', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--surface);
  color: var(--text-primary);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--mono);
}
.nav-logo span { color: var(--emerald); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cart-link {
  position: relative;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 20px;
  transition: color 0.15s;
  display: flex;
  align-items: center;
}
.cart-link:hover { color: var(--emerald); }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--emerald);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--mono);
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.btn-nav {
  background: var(--emerald);
  color: #000;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, opacity 0.15s;
}
.btn-nav:hover { background: #34d399; }

/* Mobile nav */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-primary);
}
.mobile-menu {
  display: none;
  background: #0a0a0a;
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  flex-direction: column;
  gap: 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}
.mobile-menu a:hover { color: var(--emerald); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--emerald);
  color: #000;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: #34d399; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.btn-outline:hover {
  border-color: var(--emerald);
  background: var(--emerald-glow);
  color: var(--emerald);
}

/* ── PRODUCT CARDS ── */
.product-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.product-card-image {
  background: var(--surface-raised);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.product-card-image svg {
  opacity: 0.7;
}
.product-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.3;
}
.product-card-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.chip {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--emerald);
  background: var(--emerald-glow);
  border: 1px solid rgba(16,185,129,0.2);
  padding: 3px 8px;
  border-radius: 4px;
}
.chip-gray {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border-color: var(--border);
}
.product-price {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 500;
  color: var(--emerald);
  margin: auto 0 16px;
}
.product-card button.btn-primary {
  width: 100%;
  text-align: center;
}

/* ── BADGES ── */
.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--emerald);
  background: var(--emerald-glow);
  border: 1px solid rgba(16,185,129,0.25);
  padding: 4px 10px;
  border-radius: 20px;
}
.badge-uk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ── TERMINAL ── */
.terminal {
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 14px;
}
.terminal-bar {
  background: #1a1a1a;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: var(--emerald); }
.terminal-body { padding: 20px; line-height: 2; }
.t-dim { color: var(--text-muted); }
.t-green { color: var(--emerald); }
.t-white { color: var(--text-primary); }
.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--emerald);
  vertical-align: text-bottom;
  animation: blink 1.2s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── PAGE SECTIONS ── */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--emerald);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.6;
  margin: 0;
}

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── TRUST ROW ── */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.trust-icon {
  width: 28px;
  height: 28px;
  background: var(--emerald-glow);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ── CART PAGE ── */
.cart-row {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cart-row-name { font-size: 16px; font-weight: 500; }
.cart-row-price {
  font-family: var(--mono);
  color: var(--emerald);
  font-size: 18px;
}
.btn-remove {
  background: none;
  border: 1px solid rgba(239,68,68,0.2);
  color: #ef4444;
  font-size: 12px;
  font-family: var(--mono);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-remove:hover { background: rgba(239,68,68,0.1); }

/* ── PRODUCT DETAIL ── */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.product-visual {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.feature-list li::before {
  content: '✓';
  font-family: var(--mono);
  color: var(--emerald);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── ABOUT / CONTACT ── */
.prose {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 680px;
}
.prose p { margin: 0 0 20px; }
.prose strong { color: var(--text-primary); font-weight: 600; }

/* ── PAYMENT ── */
.payment-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.crypto-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 24px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 56px 0; }
  .trust-row { gap: 16px; }
}
