:root {
  --bg: #090c10;
  --bg-card: #0d1117;
  --bg-subtle: #161b22;
  --bg-hover: #1f242c;
  --border: #21262d;
  --border-strong: #30363d;
  --border-focus: #58a6ff;
  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --text-dim: #6e7681;
  --primary: #2f81f7;
  --primary-hover: #388bfd;
  --primary-glow: rgba(47, 129, 247, 0.15);
  --accent-green: #238636;
  --accent-green-bright: #3fb950;
  --accent-green-bg: rgba(46, 160, 67, 0.15);
  --accent-amber: #d29922;
  --accent-amber-bg: rgba(210, 153, 34, 0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --maxw: 1040px;
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  background: var(--bg);
  color: var(--text-main);
  font: 14.5px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

/* Status Bar */
.top-strip {
  background: #010409;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  padding: 6px 0;
  color: var(--text-muted);
}
.strip-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pulse-green {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-green-bright);
  box-shadow: 0 0 0 2px rgba(63, 185, 80, 0.25);
  flex-shrink: 0;
}

/* Navbar */
header.top {
  background: rgba(13, 17, 23, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
header.top .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 12px;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.4px;
  color: var(--text-main);
  text-decoration: none !important;
}
.brand-icon {
  width: 26px; height: 26px; border-radius: 6px;
  background: linear-gradient(135deg, #1f6feb, #238636);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px; color: #fff;
  flex-shrink: 0;
}
.brand-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

nav.links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  font-weight: 500;
}
nav.links a { color: var(--text-muted); text-decoration: none; white-space: nowrap; }
nav.links a:hover { color: var(--text-main); }
.nav-btn {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--border-focus);
}
.nav-btn:hover { background: var(--primary-hover) !important; text-decoration: none; }

/* Hero Section */
.hero {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border);
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(24px, 4.5vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.hero p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 65ch;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stat-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-chip b { color: var(--accent-green-bright); }

/* Payment & Gateway Strip */
.gateway-strip {
  padding: 16px 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.gateway-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.gateway-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  font-weight: 700;
}
.gateway-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gw-badge {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-main);
}

/* Order Steps Section */
.steps-sec {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.steps-sec h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 16px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.step-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}
.step-item:hover { border-color: var(--border-strong); }
.step-index {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-glow);
  border: 1px solid rgba(47, 129, 247, 0.3);
  width: 24px; height: 24px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.step-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
}
.step-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Catalog Section */
.catalog-sec {
  padding: 36px 0;
}
.catalog-head {
  margin-bottom: 20px;
}
.catalog-head h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.4px;
}
.catalog-head p { margin: 0; color: var(--text-muted); font-size: 13.5px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}

/* Product Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform .15s, border-color .15s;
}
.card:hover {
  border-color: var(--border-strong);
}
.card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.card-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card-flag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--accent-green-bg);
  border: 1px solid rgba(46, 160, 67, 0.4);
  color: var(--accent-green-bright);
}
.card-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.35;
  color: var(--text-main);
  word-break: break-word;
}
.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 14px;
  flex-grow: 1;
}

.card-specs {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 0 0 16px;
  list-style: none;
}
.card-specs li {
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  word-break: break-word;
}
.card-specs li::before {
  content: "▹";
  color: var(--primary);
  font-weight: bold;
}

.card-price-row {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.price-tag {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.4px;
}
.price-sub { font-size: 12px; color: var(--text-dim); }
.stock-badge {
  font-size: 11.5px;
  color: var(--accent-green-bright);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s;
  text-decoration: none !important;
  min-height: 44px; /* Touch target guideline */
}
.btn.primary {
  background: var(--primary);
  color: #fff !important;
}
.btn.primary:hover {
  background: var(--primary-hover);
}
.btn.block { width: 100%; }

/* Alerts / Notice */
.alert-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-amber);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 24px 0;
  font-size: 13px;
  color: #e3b341;
  line-height: 1.6;
  word-break: break-word;
}
.alert-box b { color: #f0f6fc; }

/* FAQ Section */
.faq-sec {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.faq-sec h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 18px;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}
.faq-item h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}
.faq-item p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Panel / Checkout */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  margin: 24px 0;
}
label.field { display: block; margin-bottom: 14px; }
label.field span { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  font: inherit;
  font-size: 16px; /* Prevents auto-zoom on mobile iOS & Android */
}
input:focus, select:focus {
  outline: 2px solid var(--border-focus); outline-offset: 1px;
}

/* Legal text */
.legal { max-width: 800px; padding: 28px 16px 50px; }
.legal h1 { font-size: 24px; font-weight: 800; margin: 0 0 10px; }
.legal h2 { font-size: 16px; font-weight: 700; margin: 24px 0 8px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.legal p { line-height: 1.6; color: var(--text-muted); margin: 0 0 12px; font-size: 13.5px; }
.legal ul { padding-left: 20px; margin: 0 0 16px; color: var(--text-muted); line-height: 1.6; font-size: 13.5px; }

/* Footer */
footer.bot {
  background: #010409;
  border-top: 1px solid var(--border);
  padding: 32px 0 20px;
  margin-top: auto;
  font-size: 12.5px;
  color: var(--text-muted);
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}
.footer-links a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 6px;
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-dim);
}

/* Strict Mobile Overrides (< 640px) */
@media (max-width: 640px) {
  .wrap {
    padding: 0 14px;
  }
  .top-strip {
    font-size: 11.5px;
  }
  .strip-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  header.top .row {
    height: 52px;
  }
  .brand-badge {
    display: none;
  }
  nav.links {
    gap: 12px;
    font-size: 12.5px;
  }
  nav.links a:not(.nav-btn) {
    display: none; /* Keep header completely clean and uncrowded on mobile */
  }
  nav.links a.nav-btn {
    padding: 5px 10px;
    font-size: 12px;
  }
  .hero {
    padding: 24px 0 20px;
  }
  .hero h1 {
    font-size: 22px;
  }
  .hero p {
    font-size: 13.5px;
  }
  .stat-chip {
    width: 100%;
    justify-content: space-between;
  }
  .gateway-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .price-tag {
    font-size: 21px;
  }
}
