/* ============================================================
   Byvox Data — design system
   Deep navy marketplace aesthetic. One family (Inter), a single
   rich-blue accent used deliberately, understated depth via borders
   rather than shadows/glow.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0a0f1e;
  --bg-elevated: #0d1326;
  --surface: #101830;
  --surface-2: #16203f;
  --surface-hover: #1b2748;
  --border: #23304f;
  --border-strong: #2e3e66;

  --primary: #2e63f6;
  --primary-hover: #244fd1;
  --primary-soft: rgba(46, 99, 246, 0.14);
  --accent: #5ca8ff;

  --text: #f3f5fa;
  --text-muted: #93a0c2;
  --text-faint: #5f6d92;

  --success: #2fb67c;
  --success-soft: rgba(47, 182, 124, 0.14);
  --warning: #e3a73b;
  --warning-soft: rgba(227, 167, 59, 0.14);
  --danger: #e5484d;
  --danger-soft: rgba(229, 72, 77, 0.14);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  /* A very low-opacity wash of each network's color, fixed to the viewport so it
     reads as one continuous atmosphere rather than a hard-edged hero banner —
     subtle on purpose, this is background texture, not a rainbow. */
  background:
    radial-gradient(900px 500px at 8% -8%, rgba(255, 204, 8, 0.05), transparent 60%),
    radial-gradient(900px 500px at 96% 4%, rgba(228, 0, 43, 0.05), transparent 60%),
    radial-gradient(1000px 600px at 50% 30%, rgba(0, 114, 206, 0.04), transparent 65%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (max-width: 640px) {
  .container { padding: 0 var(--space-3); }
}

/* ── Type scale ── */
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: 3.25rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
p { margin: 0; color: var(--text-muted); }
.eyebrow { font-size: 0.875rem; color: var(--accent); font-weight: 600; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--primary-soft); border: 1px solid var(--primary);
  font-size: 0.82rem; font-weight: 600; color: var(--accent);
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }

@media (max-width: 720px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 13px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.875rem; }
.btn-xs { padding: 5px 11px; font-size: 0.75rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

/* ── Header / nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 800; color: #fff;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.nav-links a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); }

/* Always-visible action row on mobile — Track/Check/Contact stay one tap
   away without needing the hamburger menu. Desktop already shows these
   inline in the header, so this stays hidden until the nav collapses. */
.mobile-actions-bar { display: none; }
@media (max-width: 860px) {
  .mobile-actions-bar {
    display: flex; gap: 8px; padding: 10px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
  }
  .mobile-actions-bar .btn { flex: 1; padding: 9px 6px; font-size: 0.8rem; white-space: nowrap; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-actions .btn-secondary { display: none; }
}

/* ── Hero ── */
.hero {
  padding: var(--space-8) 0 var(--space-7);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-6);
  align-items: center;
}
.hero-copy p.lead {
  font-size: 1.125rem;
  margin-top: var(--space-3);
  max-width: 46ch;
}
.hero-actions { display: flex; gap: var(--space-3); margin-top: var(--space-5); flex-wrap: wrap; }
.hero-stats { display: flex; gap: var(--space-6); margin-top: var(--space-6); }
.hero-stats .stat-value { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.hero-stats .stat-label { font-size: 0.85rem; color: var(--text-faint); margin-top: 2px; }

.hero-visual {
  position: relative;
  height: 420px;
}
.stack-card {
  position: absolute;
  width: 300px;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--card-accent, var(--primary));
  border-radius: var(--radius-lg);
}
.stack-card .amt { font-size: 2rem; font-weight: 800; color: var(--text); }
.stack-card .meta { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.stack-card .row { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.stack-card .price { font-weight: 700; color: var(--accent); }
.stack-card.c1 { top: 20px; left: 40px; z-index: 3; }
.stack-card.c2 { top: 110px; left: 130px; z-index: 2; opacity: 0.85; }
.stack-card.c3 { top: 200px; left: 220px; z-index: 1; opacity: 0.6; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { height: 320px; }
  .stack-card { width: 240px; }
  .stack-card.c1 { left: 0; }
  .stack-card.c2 { left: 60px; }
  .stack-card.c3 { left: 120px; }
}

@media (max-width: 560px) {
  /* Full-width stacked CTAs on phones — easier to tap, and matches how a
     mobile-first checkout flow should read: one clear action at a time. */
  .hero-copy { text-align: center; }
  .hero-copy p.lead { margin-left: auto; margin-right: auto; }
  .live-pill { margin-left: auto; margin-right: auto; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { justify-content: center; gap: var(--space-5); text-align: center; }
  .hero-visual { display: none; } /* the floating cards don't add much on a narrow screen and just push content down */
}

/* ── Section scaffolding ── */
.section { padding: var(--space-8) 0; }
.section-head { max-width: 620px; margin-bottom: var(--space-6); }
.section-head h2 { margin-bottom: var(--space-2); }
.section-tight { padding: var(--space-6) 0; }

/* ── Network filter pills ── */
.filter-row { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-5); }
.filter-pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
}
.filter-pill.active { background: color-mix(in srgb, var(--pill-accent, var(--primary)) 16%, transparent); border-color: var(--pill-accent, var(--primary)); color: var(--text); }

/* ── Package grid ── */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-3);
}
.package-card {
  --card-accent: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--card-accent);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.package-card:hover { border-color: var(--border-strong); border-top-color: var(--card-accent); transform: translateY(-2px); box-shadow: 0 8px 24px -12px var(--card-accent); }
.package-card.popular { position: relative; }
.package-card.popular::before {
  content: 'Most bought';
  position: absolute; top: -11px; left: var(--space-4);
  background: var(--card-accent); color: #0a0f1e;
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.package-network { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-faint); font-weight: 600; letter-spacing: 0.01em; }
.network-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.package-amount { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; }
.package-validity { font-size: 0.85rem; color: var(--text-muted); }
.package-footer { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.package-price { font-size: 1.15rem; font-weight: 700; color: var(--accent); }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.step-card { padding: var(--space-4); }
.step-num { font-size: 0.85rem; color: var(--text-faint); font-weight: 600; margin-bottom: var(--space-2); }
.step-card h3 { margin-bottom: var(--space-2); }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

/* ── Trust band ── */
.trust-band { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.trust-item { padding: var(--space-5) var(--space-4); border-left: 1px solid var(--border); }
.trust-item:first-child { border-left: none; }
.trust-item h4 { margin-bottom: 6px; }
.trust-icon { font-size: 1.4rem; margin-bottom: var(--space-2); }

/* ── Network coverage rows ── */
.network-band { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.network-row {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4); border-bottom: 1px solid var(--border);
  transition: background 0.15s ease, border-left-color 0.15s ease;
  border-left: 3px solid transparent;
}
.network-row:hover { background: var(--surface-2); border-left-color: var(--card-accent); }
.network-row:last-child { border-bottom: none; }
.network-row .network-dot { width: 10px; height: 10px; }
.network-row-copy { display: flex; flex-direction: column; flex: 1; }
.network-row-copy strong { font-size: 1rem; }
.network-row-copy span { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }
.network-row-arrow { color: var(--text-faint); font-size: 1.1rem; }
.network-row:hover .network-row-arrow { color: var(--card-accent); }
.trust-item p { font-size: 0.9rem; }
@media (max-width: 780px) { .trust-band { grid-template-columns: 1fr 1fr; } .trust-item:nth-child(3) { border-left: none; } }
@media (max-width: 480px) { .trust-band { grid-template-columns: 1fr; } .trust-item { border-left: none !important; border-top: 1px solid var(--border); } .trust-item:first-child { border-top: none; } }

/* ── Forms ── */
.form-group { margin-bottom: var(--space-3); }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field-hint { font-size: 0.8rem; color: var(--text-faint); margin-top: 4px; }
.field-error { font-size: 0.8rem; color: var(--danger); margin-top: 4px; }

.auth-shell { max-width: 420px; margin: var(--space-8) auto; padding: 0 var(--space-4); }
.auth-card { padding: var(--space-6); }

/* ── Alerts / status badges ── */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-muted { background: var(--surface-2); color: var(--text-muted); }

.alert { padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); border: 1px solid; font-size: 0.9rem; margin-bottom: var(--space-3); }
.alert-success { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.alert-danger { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.alert-info { background: var(--primary-soft); border-color: var(--primary); color: var(--accent); }

/* ── Tables ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th { text-align: left; color: var(--text-faint); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.data-table td { padding: 12px; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }

/* ── Dashboard layout ── */
.dash-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.dash-sidebar { background: var(--bg-elevated); border-right: 1px solid var(--border); padding: var(--space-4); position: sticky; top: 0; height: 100vh; }
.dash-sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 0.9rem; font-weight: 500; margin-bottom: 2px; }
.dash-sidebar nav a:hover { background: var(--surface-2); color: var(--text); }
.dash-sidebar nav a.active { background: var(--primary-soft); color: var(--accent); }
.dash-main { padding: var(--space-5) var(--space-6); }
.dash-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-5); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); margin-bottom: var(--space-5); }
.stat-card { padding: var(--space-4); }
.stat-card .label { font-size: 0.85rem; color: var(--text-faint); }
.stat-card .value { font-size: 1.6rem; font-weight: 700; margin-top: 6px; }
@media (max-width: 980px) { .dash-shell { grid-template-columns: 1fr; } .dash-sidebar { position: static; height: auto; } .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr; } }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); padding: var(--space-7) 0 var(--space-5); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--space-5); }
.footer-grid h4 { font-size: 0.85rem; color: var(--text-faint); margin-bottom: var(--space-3); font-weight: 600; }
.footer-grid ul li { margin-bottom: var(--space-2); }
.footer-grid ul li a { color: var(--text-muted); font-size: 0.9rem; }
.footer-grid ul li a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-faint); flex-wrap: wrap; gap: var(--space-2); }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Utility ── */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); } .gap-3 { gap: var(--space-3); }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.25); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
.skeleton { background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
