* { box-sizing: border-box; }

/* ---------- Shared theme tokens (same palette as the homepage) ---------- */
:root {
  --bg: #070b12;
  --surface: #0d151f;
  --surface-raised: #101c29;
  --border: #1e2a38;
  --text: #e8edf2;
  --text-muted: #8ea0b3;
  --cyan: #3fd0e0;
  --amber: #f5a623;
  --up: #2bb3a3;
  --down: #ef5350;
}

/* ---------- Smooth navigation between pages (Home <-> Datasets <-> Admin) ---------- */
/* Native cross-fade for full-page navigations, in browsers that support it (progressive
   enhancement - other browsers just keep the normal instant page change). */
@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.32s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Fallback/complement: the new page's content fades and settles in on every load,
     so navigation feels smooth even in browsers without the View Transitions API. */
  main {
    animation: page-enter 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
  @keyframes page-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Site-wide HUD grid backdrop — inert by default, only switched on for the
   homepage (below) so other pages (checkout, admin, etc.) stay plain. */
.site-hud-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.home-page .site-hud-bg {
  background-image:
    linear-gradient(rgba(63, 208, 224, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 208, 224, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: hud-grid-drift-site 34s linear infinite;
}
@keyframes hud-grid-drift-site {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 56px 112px, 112px 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .site-hud-bg { animation: none; }
}
/* Everything else on the page must sit above the fixed backdrop. */
.home-page .navbar,
.home-page main,
.home-page footer { position: relative; z-index: 1; }

h1, h2, h3 {
  font-family: "Space Grotesk", -apple-system, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

.navbar {
  view-transition-name: site-navbar;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0b111a;
  padding: 14px 32px;
  border-bottom: 1px solid var(--border);
}
.navbar-left { display: flex; align-items: center; gap: 22px; }
.brand-link { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); text-decoration: none; }
.logo-dot { color: var(--amber); }
.logo-text { letter-spacing: 0.5px; }
.nav-link { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-link:hover { color: var(--cyan); }
.navbar-right { display: flex; align-items: center; gap: 12px; }
.avatar { width: 24px; height: 24px; border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.user-chip { display: flex; align-items: center; font-size: 14px; color: var(--text); }

.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.btn-primary { background: var(--amber); color: #14100a; }
.btn-primary:hover { background: #ffb43d; }
.btn-outline { background: transparent; border: 1px solid #2c3a4a; color: var(--text); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-small { padding: 6px 12px; font-size: 13px; }
.btn-cart { background: var(--amber); color: #14100a; }
.btn-cart:hover { background: #ffb43d; }
.btn-download { background: var(--up); color: #fff; }
.btn-disabled { background: var(--surface-raised); color: var(--text-muted); cursor: default; }
.btn-checkout { width: 100%; background: var(--cyan); color: #072024; padding: 10px; border-radius: 6px; margin-top: 12px; }
.btn-checkout:hover { background: #5fdce9; }

.container { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.page-title { font-size: 22px; margin-bottom: 20px; color: #fff; }

.layout { display: flex; gap: 20px; align-items: flex-start; }
.datasets-panel { flex: 1; background: var(--surface); border-radius: 8px; border: 1px solid var(--border); overflow: hidden; }
.cart-panel { width: 260px; background: var(--surface); border-radius: 8px; border: 1px solid var(--border); padding: 16px; }
.cart-panel h2 { color: #fff; margin-top: 0; }

.dataset-table { width: 100%; border-collapse: collapse; }
.dataset-table th, .dataset-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}
.dataset-table th { background: var(--surface-raised); font-size: 13px; color: var(--text-muted); text-transform: uppercase; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ds-name { font-weight: 600; color: #fff; }
.reviews { color: var(--text-muted); font-size: 12px; }
.empty { text-align: center; color: var(--text-muted); padding: 24px; }

.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 16px; flex-wrap: wrap; }
.page-btn {
  display: inline-block;
  min-width: 32px;
  text-align: center;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
}
.page-btn:hover { background: var(--border); }
.page-btn.active { background: var(--cyan); color: #072024; border-color: var(--cyan); font-weight: 700; }
.page-btn.disabled { color: var(--text-muted); cursor: default; opacity: 0.5; }
.page-btn.ellipsis { border: none; background: transparent; cursor: default; }

.cart-list { list-style: none; padding: 0; margin: 0 0 12px; }
.cart-list li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--border); color: var(--text); }
.cart-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; }
.cart-subtotal { font-weight: 700; margin-top: 8px; color: #fff; }
.empty-cart { color: var(--text-muted); font-size: 14px; }

.checkout-box { max-width: 480px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 24px; }

.section-title { font-size: 17px; margin: 28px 0 12px; color: #fff; }
.stats-row { display: flex; gap: 16px; margin-bottom: 8px; }
.stat-card { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 18px; text-align: center; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--cyan); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.tag { display: inline-block; background: rgba(245, 166, 35, 0.12); color: var(--amber); border-radius: 4px; padding: 3px 8px; font-size: 12px; margin: 2px 4px 2px 0; }

.flash-container { max-width: 1100px; margin: 12px auto 0; padding: 0 16px; }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 8px; font-size: 14px; }
.flash-success { background: rgba(43, 179, 163, 0.15); color: #5fe3d1; }
.flash-error { background: rgba(239, 83, 80, 0.15); color: #ff8b88; }

/* ---------- Footer (site-wide) ---------- */
.site-footer { view-transition-name: site-footer; background: #050810; color: var(--text-muted); margin-top: 48px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 32px 16px 20px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { font-weight: 700; color: #fff; max-width: 360px; }
.footer-brand p { font-weight: 400; color: var(--text-muted); font-size: 13px; margin: 8px 0 0; line-height: 1.5; }
.footer-links { display: flex; gap: 18px; align-items: flex-start; padding-top: 4px; }
.footer-links a { color: #c3c9d6; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-columns { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col .footer-heading { color: #fff; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; font-weight: 600; }
.footer-col a { display: block; color: #c3c9d6; text-decoration: none; font-size: 14px; margin-bottom: 8px; }
.footer-col a:hover { color: var(--cyan); }
.footer-social { display: flex; flex-direction: column; gap: 8px; }
.footer-social a { display: flex; align-items: center; gap: 8px; color: #c3c9d6; text-decoration: none; font-size: 14px; margin-bottom: 0; }
.footer-social a:hover { color: var(--cyan); }
.footer-social svg { flex-shrink: 0; opacity: 0.85; }
.footer-social a:hover svg { opacity: 1; }
.footer-legal { max-width: 1100px; margin: 0 auto; padding: 16px 16px 0; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 13px; }
.footer-legal a { color: #9aa7b8; text-decoration: none; }
.footer-legal a:hover { color: #fff; }
.footer-legal .sep { color: #3a4656; }
.nav-visits { display: inline-flex; align-items: center; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.nav-visits strong { color: var(--cyan); font-weight: 500; margin-left: 5px; }
.visits-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--up); margin-right: 8px; box-shadow: 0 0 6px var(--up); vertical-align: middle; }
.footer-bottom { text-align: center; font-size: 12px; color: #5b6472; padding: 14px 16px 22px; margin-top: 8px; }

/* ---------- Legal / long-form content pages ---------- */
.page-subtitle { color: var(--text-muted); font-size: 14px; margin: -12px 0 8px; }
.legal-page { max-width: 820px; margin: 8px auto 64px; padding: 0 16px; color: var(--text); }
.legal-page h1 { font-size: 28px; color: #fff; margin-bottom: 4px; }
.legal-updated { color: var(--text-muted); font-size: 13px; margin-bottom: 28px; }
.legal-page h2 { font-size: 19px; color: #fff; margin: 30px 0 10px; scroll-margin-top: 90px; }
.legal-page h3 { font-size: 16px; color: var(--cyan); margin: 18px 0 6px; scroll-margin-top: 90px; }
.legal-page p { line-height: 1.7; color: var(--text-muted); margin: 0 0 12px; }
.legal-page ul, .legal-page ol { color: var(--text-muted); line-height: 1.7; margin: 0 0 12px; padding-left: 20px; }
.legal-page a { color: var(--cyan); }
.legal-page strong { color: var(--text); }
.legal-note { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px 18px; margin-top: 28px; font-size: 14px; color: var(--text-muted); }
.legal-note a { color: var(--cyan); }

.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item-last { border-bottom: none; }
.faq-item h2 { color: #fff; font-size: 15px; margin: 0 0 6px; }
.faq-item p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 0; }
.faq-item a { color: var(--cyan); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 24px; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; }
.blog-tag { color: var(--amber); font-size: 12px; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.blog-card h2 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.blog-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; flex: 1; margin: 0 0 12px; }
.blog-date { color: var(--text-muted); font-size: 12px; margin-bottom: 10px; }
.blog-post { max-width: 760px; margin: 8px auto 64px; padding: 0 16px; }
.blog-post h1 { color: #fff; font-size: 28px; margin: 10px 0 6px; }
.blog-meta { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }
.blog-post-body p { color: var(--text-muted); line-height: 1.75; margin: 0 0 14px; }
.blog-post-body h2 { color: #fff; font-size: 19px; margin: 26px 0 10px; }
.blog-post-body ul { color: var(--text-muted); line-height: 1.75; padding-left: 20px; margin: 0 0 14px; }

/* ---------- Contact ---------- */
.contact-page { max-width: 560px; margin: 24px auto 64px; padding: 0 16px; text-align: center; }
.contact-page h1 { color: #fff; font-size: 26px; }
.contact-page p { color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }
.contact-email-btn { font-size: 16px; padding: 12px 26px; }
.contact-tips { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 18px 20px; margin-top: 28px; }
.contact-tips h2.contact-tips-heading { color: #fff; margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.contact-tips ul { color: var(--text-muted); font-size: 13px; line-height: 1.7; margin: 0; padding-left: 18px; }
.contact-note { color: var(--text-muted); font-size: 13px; margin: 12px 0 0; }

/* ============================================================
   Homepage-specific styles (merged from home.css to cut an
   extra render-blocking CSS request on the homepage).
   ============================================================ */
/* ============================================================
   DSViewer marketing homepage — page-specific layout on top of
   the shared dark theme defined in style.css (same palette,
   fonts, and CSS variables are used site-wide now).
   ============================================================ */

.home-main {
  --up: #2bb3a3;
  --down: #ef5350;
}

.home-main .mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

.hs { padding: 88px 24px; }
.hs-tight { padding: 64px 24px; }
.hs-inner { max-width: 1180px; margin: 0 auto; }
.hs-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 520px at 15% -10%, #0f2530 0%, #070b12 60%);
  padding: 72px 24px 64px;
  border-bottom: 1px solid var(--border);
}

/* HUD grid: faint drifting terminal grid lines behind the hero content */
.hud-grid {
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(63, 208, 224, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 208, 224, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(900px 480px at 22% 10%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 480px at 22% 10%, #000 0%, transparent 75%);
  animation: hud-grid-drift 22s linear infinite;
}
@keyframes hud-grid-drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 42px 84px, 84px 42px; }
}

/* HUD scanline: slow light sweep down the hero, like a terminal refresh */
.hud-scanline {
  position: absolute;
  left: 0; right: 0;
  height: 140px;
  top: -140px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(63, 208, 224, 0.05) 45%,
    rgba(63, 208, 224, 0.12) 50%,
    rgba(63, 208, 224, 0.05) 55%,
    transparent 100%
  );
  animation: hud-scanline-sweep 6s ease-in-out infinite;
}
@keyframes hud-scanline-sweep {
  0%   { transform: translateY(0); }
  100% { transform: translateY(calc(100% + 640px)); }
}

@media (prefers-reduced-motion: reduce) {
  .hud-grid, .hud-scanline { animation: none; }
}

.hero-grid { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: 44px; line-height: 1.14; color: #fff; }
.hero-copy .highlight { color: var(--cyan); }
.hero-copy p { color: var(--text-muted); font-size: 17px; line-height: 1.6; max-width: 46ch; margin: 20px 0 30px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-amber { background: var(--amber); color: #14100a; font-weight: 700; }
.btn-amber:hover { background: #ffb43d; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid #2c3a4a; }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.frame {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.frame-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  background: #0b121c;
  border-bottom: 1px solid var(--border);
}
.frame-dot { width: 9px; height: 9px; border-radius: 50%; background: #2c3a4a; }
.frame-label { margin-left: 8px; font-size: 12px; color: var(--text-muted); letter-spacing: 0.02em; }
.frame img,
.frame video { display: block; width: 100%; height: auto; }
.feature-video { aspect-ratio: 16 / 9; object-fit: cover; background: #0b121c; }
.frame-light { background: #fff; }
.frame-light .frame-bar { background: #f4f5f7; border-bottom: 1px solid #e5e7eb; }
.frame-light .frame-label { color: #6b7280; }

/* ---------- Intro / what-is ---------- */
.intro-lede { max-width: 62ch; }
.intro-lede h2 { font-size: 28px; color: #fff; }
.intro-lede p { color: var(--text-muted); font-size: 16px; line-height: 1.65; margin-top: 14px; }

.point-list { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border); }
.point {
  padding: 22px 22px 22px 0;
  border-bottom: 1px solid var(--border);
}
.point:not(:last-child) { border-right: 1px solid var(--border); padding-right: 22px; }
.point + .point { padding-left: 22px; }
.point-mark { color: var(--cyan); font-family: "JetBrains Mono", monospace; font-size: 13px; }
.point h3 { font-size: 17px; color: #fff; margin-top: 10px; }
.point p { color: var(--text-muted); font-size: 14px; margin-top: 6px; line-height: 1.55; }

/* ---------- Two-column feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }
.feature-copy .kicker { color: var(--amber); font-family: "JetBrains Mono", monospace; font-size: 12.5px; }
.feature-copy h2 { font-size: 30px; color: #fff; margin-top: 10px; }
.feature-copy p { color: var(--text-muted); font-size: 15.5px; line-height: 1.65; margin-top: 14px; max-width: 48ch; }
.cta-link { display: inline-block; margin-top: 18px; color: var(--cyan); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.cta-link:hover { text-decoration: underline; }

/* Minute-by-minute timeline */
.tick-row { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.tick { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--text-muted); background: var(--surface-raised); border: 1px solid var(--border); padding: 6px 10px; border-radius: 5px; }
.tick-sep { color: #3c4b5c; }
.replay-transport { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--text-muted); }
.transport-btn { width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text); background: var(--surface-raised); }

/* Dynamic vs static definition rows */
.mode-defs { margin-top: 24px; display: grid; gap: 14px; }
.mode-def { border-left: 3px solid var(--cyan); padding: 4px 0 4px 16px; }
.mode-def.static { border-left-color: var(--amber); }
.mode-def strong { display: block; color: #fff; font-size: 15px; }
.mode-def span { color: var(--text-muted); font-size: 14px; }

/* Speed chips */
.speed-row { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.speed-chip { font-family: "JetBrains Mono", monospace; font-size: 13px; padding: 6px 12px; border-radius: 5px; border: 1px solid var(--border); color: var(--text-muted); }
.speed-chip.active { border-color: var(--cyan); color: var(--cyan); }

/* ---------- How it works ---------- */
.steps { margin-top: 40px; max-width: 720px; }
.step { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--border); }
.step:last-child { border-bottom: 1px solid var(--border); }
.step-num { font-family: "JetBrains Mono", monospace; color: var(--cyan); font-size: 14px; min-width: 28px; padding-top: 2px; }
.step h3 { font-size: 17px; color: #fff; }
.step p { color: var(--text-muted); font-size: 14.5px; margin-top: 6px; line-height: 1.55; max-width: 56ch; }

/* ---------- Dataset cards ---------- */
.ds-cards { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.ds-card { background: var(--surface-raised); border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.ds-card-cat { font-family: "JetBrains Mono", monospace; font-size: 11.5px; color: var(--amber); }
.ds-card h3 { font-size: 16px; color: #fff; margin-top: 8px; line-height: 1.35; }
.ds-card-meta { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 13px; margin-top: 14px; }
.ds-card .btn { display: block; width: 100%; text-align: center; margin-top: 16px; }
.ds-empty { color: var(--text-muted); font-size: 14px; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; padding: 96px 24px; background: radial-gradient(900px 400px at 50% 120%, #10222b 0%, #070b12 65%); }
.final-cta h2 { font-size: 34px; color: #fff; max-width: 22ch; margin: 0 auto; line-height: 1.2; }
.final-cta p { color: var(--text-muted); font-size: 16px; margin: 16px auto 30px; max-width: 50ch; }
.final-cta .hero-ctas { justify-content: center; }

@media (max-width: 860px) {
  .hero-grid, .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-copy, .feature-row.reverse .feature-visual { order: initial; }
  .point-list { grid-template-columns: 1fr; }
  .point, .point:not(:last-child) { border-right: none; padding-left: 0 !important; }
  .hero-copy h1 { font-size: 32px; }
}

/* ============================================================
   Site-wide mobile responsiveness (navbar, dataset/cart layout,
   tables, admin stats, footer) - applies on top of every page.
   ============================================================ */
@media (max-width: 720px) {
  .navbar { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .navbar-left { flex-wrap: wrap; row-gap: 8px; column-gap: 16px; }
  .navbar-right { flex-wrap: wrap; row-gap: 8px; }

  .container { margin: 16px auto; padding: 0 12px; }
  .page-title { font-size: 19px; }

  /* Dataset list + cart stack vertically, cart panel goes full width below */
  .layout { flex-direction: column; }
  .cart-panel { width: 100%; }

  /* Table keeps its columns but scrolls horizontally instead of squashing */
  .dataset-table th, .dataset-table td { padding: 10px; font-size: 13px; white-space: nowrap; }

  .stats-row { flex-wrap: wrap; }
  .stat-card { min-width: 45%; }

  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-columns { gap: 32px; }
  .footer-legal { flex-wrap: wrap; row-gap: 6px; }

  .hero-ctas, .final-cta .hero-ctas { justify-content: flex-start; }
  .hs, .hs-tight { padding: 48px 16px; }
  .hero { padding: 48px 16px 40px; }
  .final-cta { padding: 56px 16px; }
  .final-cta h2 { font-size: 26px; }

  .checkout-box { padding: 18px; }
}
