/* Maree-DB Website — Shared Stylesheet
   © 2026 SupportCALL ICT Solutions & David H. Maree. All rights reserved.
   Design: dark enterprise theme, blue accent, frosted glass navbar
*/

/* ─── Design Tokens ───────────────────────────────────────────────────────── */
:root {
  --bg:          #060a14;
  --bg-surface:  #0c1220;
  --bg-card:     #111827;
  --bg-card2:    #0f1929;
  --border:      rgba(255,255,255,0.07);
  --accent:      #1E6BFF;
  --accent-glow: rgba(30,107,255,0.35);
  --accent-2:    #00c3ff;
  --accent-grad: linear-gradient(135deg, #1E6BFF 0%, #00c3ff 100%);
  --text:        #e8edf5;
  --text-muted:  #7a8899;
  --text-faint:  #3d4d62;
  --success:     #22d3a0;
  --warning:     #f59e0b;
  --danger:      #ef4444;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 60px rgba(30,107,255,0.15);
  --font:        system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --nav-h:       64px;
}

/* ─── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* ─── Typography ──────────────────────────────────────────────────────────── */
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-muted); line-height: 1.8; }

.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Layout Helpers ──────────────────────────────────────────────────────── */
.container  { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.text-center { text-align: center; }
.flex { display: flex; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ─── Navbar ──────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(6,10,20,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 800;
  color: var(--text) !important;
}
.nav-logo img {
  height: 40px; width: auto;
  display: block; flex-shrink: 0;
  filter: brightness(1);
}
.nav-logo-mark {
  width: 32px; height: 32px;
  background: var(--accent-grad);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 900; color: #fff;
  flex-shrink: 0;
}
.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-ham { display: none; flex-direction: column; gap: 5px; padding: 6px; background: none; border: none; }
.nav-ham span { display: block; width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; transition: 0.3s; }
body { padding-top: var(--nav-h); }

/* ─── .nav — simplified fixed navbar used on inner pages ─────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(6,10,20,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 40px);
  gap: 16px;
}
.nav > a.nav-logo { display: flex; align-items: center; gap: 6px; font-size: 1.15rem; font-weight: 800; color: var(--text) !important; flex-shrink: 0; }
.nav > a.nav-logo span { color: var(--accent); }
.nav ul.nav-links { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 2px; }
.nav ul.nav-links li { display: flex; }
.nav ul.nav-links li a { color: var(--text-muted); font-size: 0.875rem; font-weight: 500; padding: 6px 12px; border-radius: 8px; transition: color 0.2s, background 0.2s; white-space: nowrap; }
.nav ul.nav-links li a:hover, .nav ul.nav-links li a.active { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-cta {
  display: inline-flex; align-items: center; padding: 7px 16px;
  border-radius: var(--radius); background: var(--accent-grad);
  color: #fff !important; font-size: 0.85rem; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 0 20px var(--accent-glow);
}
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); color: #fff !important; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 0 30px var(--accent-glow);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--accent-glow);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
  color: var(--text);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.10);
  color: var(--text);
}
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ─── Section Labels ──────────────────────────────────────────────────────── */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(30,107,255,0.1);
  border: 1px solid rgba(30,107,255,0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.section-header { margin-bottom: 56px; }
.section-header p { max-width: 600px; font-size: 1.1rem; margin-top: 16px; }
.section-header.text-center p { margin: 16px auto 0; }

/* ─── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: rgba(30,107,255,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: rgba(30,107,255,0.1);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p  { font-size: 0.9rem; }

/* ─── Feature Table ───────────────────────────────────────────────────────── */
.feature-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.feature-table th, .feature-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.feature-table th {
  background: var(--bg-surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.feature-table tr:hover td { background: rgba(255,255,255,0.02); }
.check  { color: var(--success); font-size: 1.1rem; }
.cross  { color: var(--text-faint); font-size: 1.1rem; }

/* ─── Pricing Cards ───────────────────────────────────────────────────────── */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 60px rgba(30,107,255,0.2);
}
.pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent-grad);
  color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 4px 16px; border-radius: 100px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.pricing-tier { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 8px; }
.pricing-price { font-size: 2.8rem; font-weight: 800; line-height: 1; margin-bottom: 4px; color: var(--text); }
.pricing-price sub { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.pricing-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.pricing-features { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.pricing-features li { font-size: 0.9rem; display: flex; align-items: flex-start; gap: 10px; }
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ─── Stat / Metric Callouts ──────────────────────────────────────────────── */
.stat-card {
  text-align: center;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.9rem; color: var(--text-muted); margin-top: 6px; }

/* ─── Code Block ──────────────────────────────────────────────────────────── */
.code-block {
  background: #0a0e1a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.7;
  overflow-x: auto;
  position: relative;
}
.code-block .code-label {
  position: absolute; top: 12px; right: 16px;
  font-family: var(--font);
  font-size: 0.7rem; font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.code-kw  { color: #c792ea; }
.code-str { color: #c3e88d; }
.code-num { color: #f78c6c; }
.code-cmt { color: #546e7a; font-style: italic; }
.code-fn  { color: #82aaff; }
.code-type{ color: #ffcb6b; }

/* ─── Terminal ────────────────────────────────────────────────────────────── */
.terminal {
  background: #080c16;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.terminal-bar {
  background: #0f1522;
  padding: 12px 18px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc2e; }
.terminal-dot:nth-child(3) { background: #28c840; }
.terminal-title { font-size: 0.8rem; color: var(--text-faint); margin-left: 8px; }
.terminal-body {
  padding: 20px 24px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #a8c0d0;
  white-space: normal;
}
.terminal-body .prompt { color: var(--accent); }
.terminal-body .cmd    { color: #e8edf5; }
.terminal-body .out    { color: var(--text-muted); }
.terminal-body .ok     { color: var(--success); }
.terminal-body .hi     { color: #ffcb6b; }

/* ─── Glow Orbs (background decoration) ──────────────────────────────────── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}
.glow-orb-blue  { background: radial-gradient(circle, #1E6BFF 0%, transparent 70%); }
.glow-orb-cyan  { background: radial-gradient(circle, #00c3ff 0%, transparent 70%); }
.glow-orb-purple{ background: radial-gradient(circle, #6e40c9 0%, transparent 70%); }

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
  min-height: 85vh;
  display: flex; align-items: center;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  display: block; width: 24px; height: 2px;
  background: var(--accent);
}
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: normal; display: block; }
.hero p.lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; }
.hero-stat-num {
  font-size: 2rem; font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.hero-stat-lab { font-size: 0.8rem; color: var(--text-muted); }

/* ─── Badges / Pills ──────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-blue  { background: rgba(30,107,255,0.15); color: #6ea8ff; border: 1px solid rgba(30,107,255,0.25); }
.badge-green { background: rgba(34,211,160,0.12); color: #22d3a0; border: 1px solid rgba(34,211,160,0.25); }
.badge-amber { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.25); }
.badge-purple{ background: rgba(110,64,201,0.15); color: #a78bfa; border: 1px solid rgba(110,64,201,0.25); }

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

/* ─── Banner strips ───────────────────────────────────────────────────────── */
.banner-strip {
  background: linear-gradient(90deg, rgba(30,107,255,0.08) 0%, rgba(0,195,255,0.08) 100%);
  border-top: 1px solid rgba(30,107,255,0.15);
  border-bottom: 1px solid rgba(30,107,255,0.15);
  padding: 18px 0;
  overflow: hidden;
}
.banner-strip-inner {
  display: flex; align-items: center; gap: 40px;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}
.banner-strip-inner span { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.banner-strip-inner span::before { content: '●'; color: var(--accent); font-size: 0.5rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── Compliance Logos ────────────────────────────────────────────────────── */
.compliance-grid {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center;
}
.compliance-chip {
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem; font-weight: 700; color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ─── Accordion ───────────────────────────────────────────────────────────── */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger {
  width: 100%; background: none; border: none; text-align: left;
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1rem; font-weight: 600; color: var(--text);
  cursor: pointer;
}
.accordion-trigger:after { content: '+'; font-size: 1.4rem; color: var(--accent); font-weight: 300; }
.accordion-trigger.open:after { content: '−'; }
.accordion-body { padding: 0 0 20px; color: var(--text-muted); font-size: 0.95rem; display: none; }
.accordion-body.open { display: block; }

/* ─── Alert Boxes ─────────────────────────────────────────────────────────── */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: flex; gap: 12px; align-items: flex-start;
  margin: 20px 0;
}
.alert-info  { background: rgba(30,107,255,0.08); border: 1px solid rgba(30,107,255,0.2); }
.alert-warn  { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); }
.alert-success { background: rgba(34,211,160,0.08); border: 1px solid rgba(34,211,160,0.2); }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
/* Inner-page footer uses .footer-grid as direct child (no .container wrapper) */
.footer > .footer-grid { max-width: 1200px; margin-left: auto; margin-right: auto; padding: 0 clamp(16px, 3vw, 40px); }
/* Brand block styles for inner-page footer */
.footer-brand { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.footer-brand span { color: var(--accent); }
.footer-tagline { font-size: 0.88rem; color: var(--text-muted); margin-top: 4px; }
.footer-copy { font-size: 0.8rem; color: var(--text-faint); margin-top: 10px; line-height: 1.65; }
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); max-width: 320px; margin-top: 12px; }
.footer-col h4, .footer-grid > div h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul, .footer-grid > div ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a, .footer-grid > div ul li a { font-size: 0.9rem; color: var(--text-muted); transition: color 0.2s; }
.footer-col ul li a:hover, .footer-grid > div ul li a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: var(--text-faint);
}
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--text-muted); }

/* ─── Page Hero (inner pages) ─────────────────────────────────────────────── */
.page-hero {
  padding: 72px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero .section-label { margin-bottom: 20px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: 1.1rem; max-width: 580px; margin: 0 auto; }

/* ─── Download Cards ──────────────────────────────────────────────────────── */
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex; align-items: center; gap: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.download-card:hover { border-color: rgba(30,107,255,0.3); box-shadow: var(--shadow-glow); }
.download-card-icon { font-size: 2rem; flex-shrink: 0; }
.download-card-info { flex: 1; }
.download-card-info h3 { font-size: 1rem; margin-bottom: 4px; }
.download-card-info p  { font-size: 0.85rem; }
.download-card-info .meta { display: flex; gap: 12px; margin-top: 6px; }
.download-card-info .meta span { font-size: 0.78rem; color: var(--text-faint); }

/* ─── Animations ──────────────────────────────────────────────────────────── */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes glow     { 0%,100% { opacity: 0.3; } 50% { opacity: 0.6; } }
@keyframes pulse    { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes spin     { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.anim-fade-up { animation: fadeUp 0.6s ease forwards; }
.anim-glow    { animation: glow 4s ease infinite; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */

/* Mobile-first base — applies at all sizes */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
table { max-width: 100%; }

/* pre/code: horizontal scroll on all sizes */
pre, code, .code-block {
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal-body { overflow-x: auto; }
.code-block { white-space: pre; overflow-x: auto; }

/* Touch targets: min 44px for all interactive elements */
button, .btn, .nav-links a, .nav ul.nav-links li a, .nav-cta,
.accordion-trigger, input[type="submit"], input[type="button"] {
  min-height: 44px;
}

/* Tables: scrollable wrapper on small screens */
.table-scroll { overflow-x: auto; display: block; width: 100%; }
.feature-table-wrap, .feature-matrix-wrap, .compare-table-wrap { overflow-x: auto; }

/* ── Tablet (769px – 1024px) ─────────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .hero { padding: 80px 0 64px; }
}

/* ── Desktop (≥1025px) ───────────────────────────────────────────────────── */
@media (min-width: 1025px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .nav-ham { display: none !important; }
}

/* ── Large (≤1024px) ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile (≤768px) ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Sections */
  .section    { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .container, .container-wide { padding: 0 16px; }

  /* Grids → single column */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Navigation — hide links, show hamburger */
  .nav-links { display: none; }
  .nav ul.nav-links { display: none; }
  .nav-ham { display: flex; }

  /* When hamburger is open */
  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(6,10,20,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    z-index: 999;
    gap: 4px;
  }
  .nav-links.open a { padding: 10px 14px; display: block; }

  /* .nav style pages — open state */
  .nav ul.nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(6,10,20,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    z-index: 999;
    gap: 4px;
  }
  .nav ul.nav-links.open li a { padding: 10px 14px; display: block; }

  /* Hide desktop nav-actions on mobile when hamburger is present */
  .nav-actions { display: none; }

  /* Hero */
  .hero { padding: 48px 0 40px; min-height: auto; }
  .hero-stats { gap: 20px; }
  .hero p.lead { font-size: 1rem; }

  /* Cards full-width */
  .card { padding: 20px; }
  .pricing-card { padding: 28px 20px; }
  .download-card { flex-direction: column; align-items: flex-start; }

  /* Tables scroll on mobile */
  .feature-table, .compare-table, .matrix-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .feature-matrix-wrap, .compare-table-wrap { overflow-x: auto; }

  /* Code blocks scroll */
  .code-block { white-space: pre; overflow-x: auto; word-break: normal; }
  .terminal-body { font-size: 0.78rem; padding: 14px 16px; }

  /* Callout boxes stack */
  .callout-box { flex-direction: column; padding: 20px; }

  /* Hero two-column → single column */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Page hero */
  .page-hero { padding: 48px 0 36px; }
  .page-hero p { font-size: 1rem; }

  /* Nav CTA stays visible but smaller */
  .nav-cta { font-size: 0.8rem; padding: 6px 12px; }

  /* Accordion triggers */
  .accordion-trigger { font-size: 0.95rem; }

  /* Alert boxes */
  .alert { flex-direction: column; gap: 8px; }

  /* Banner strip — pause animation */
  .banner-strip-inner { animation-play-state: paused; }
}

/* ── Small Mobile (≤480px) ───────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-lg { width: 100%; justify-content: center; }
  .btn { white-space: normal; text-align: center; }

  /* Platform tabs wrap */
  .platform-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
  .ptab { flex: 1 1 calc(50% - 8px); min-width: 120px; }

  /* Stat bar stacks */
  .stats-bar { grid-template-columns: 1fr 1fr !important; }

  /* Download card meta */
  .download-card-info .meta { flex-wrap: wrap; }

  /* Pricing price smaller */
  .pricing-price { font-size: 2.2rem; }

  /* FAQ grid */
  .faq-grid { grid-template-columns: 1fr !important; }

  /* Section headers */
  .section-header { margin-bottom: 36px; }

  /* Hero grid columns forced to 1 on very small screens */
  .hero-content { text-align: left; }

  /* Compliance chips wrap better */
  .compliance-grid { gap: 8px; }
  .compliance-chip { font-size: 0.72rem; padding: 6px 12px; }
}

/* ── SVG icon sizing ──────────────────────────────────────────────────────── */
.fc-icon svg            { width: 28px; height: 28px; display: block; }
.card-icon svg          { width: 32px; height: 32px; display: block; }
.entry-icon svg         { width: 40px; height: 40px; display: block; }
.dl-icon svg            { width: 48px; height: 48px; display: block; margin: 0 auto; }
.work-icon svg          { width: 36px; height: 36px; display: block; }
.partner-tier-icon svg  { width: 40px; height: 40px; display: block; margin: 0 auto; }
.callout-icon svg       { width: 36px; height: 36px; display: block; }
.proto-icon svg         { width: 40px; height: 40px; display: block; margin: 0 auto; }
.key-icon svg           { width: 24px; height: 24px; display: block; }
.docs-category-icon svg { width: 32px; height: 32px; display: block; }
.doc-card-icon svg      { width: 22px; height: 22px; display: block; }
.icon-block             { display: flex; align-items: center; justify-content: center; }
.icon-block svg         { width: 28px; height: 28px; display: block; }
.icon-badge             { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-badge svg         { width: 22px; height: 22px; display: block; }
.icon-inline            { display: inline-flex; align-items: center; vertical-align: -0.2em; flex-shrink: 0; margin-right: 4px; }
.icon-inline svg        { width: 1em; height: 1em; display: block; }
