/* ============================================================
   Aafiya Design System v2 — Premium Healthcare SaaS
   ============================================================ */

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

:root {
  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-200: #a7f3d0;
  --green-400: #34d399;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;
  --green-800: #065f46;
  --green-900: #064e3b;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-700: #b45309;

  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-700: #1d4ed8;

  --violet-50: #f5f3ff;
  --violet-100: #ede9fe;
  --violet-500: #8b5cf6;

  --primary: var(--green-600);
  --primary-hover: var(--green-700);
  --primary-light: var(--green-100);
  --primary-bg: var(--green-50);

  --bg: #ffffff;
  --bg-muted: var(--slate-50);
  --bg-card: #ffffff;
  --text: var(--slate-900);
  --text-secondary: var(--slate-600);
  --text-muted: var(--slate-400);
  --border: var(--slate-200);
  --border-light: var(--slate-100);

  --gradient-hero: linear-gradient(135deg, var(--slate-950) 0%, #0d2b1d 40%, #064e3b 100%);
  --gradient-primary: linear-gradient(135deg, var(--green-600), var(--green-700));
  --gradient-accent: linear-gradient(135deg, var(--green-500), var(--green-600));
  --gradient-dark: linear-gradient(180deg, var(--slate-900), var(--slate-950));

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.10), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 0 30px rgba(5, 150, 105, 0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1120px;
  --nav-h: 68px;
}

/* -- Reset --------------------------------------------------- */
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; display: block; }

::selection { background: var(--primary); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--slate-100); }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }

/* -- Layout -------------------------------------------------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--muted  { background: var(--bg-muted); }
.section--accent { background: var(--primary-bg); }
.section--primary { background: var(--gradient-primary); }
.section--dark { background: var(--slate-900); }
.section--gradient { background: var(--gradient-hero); }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* -- Section headings ---------------------------------------- */
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
  padding: 4px 12px; background: var(--primary-bg); border-radius: var(--radius-full);
}
.section-heading {
  font-size: clamp(28px, 4vw, 38px); font-weight: 800;
  margin-bottom: 14px; line-height: 1.2; letter-spacing: -0.02em;
}
.section-sub {
  color: var(--text-secondary); max-width: 640px;
  margin-bottom: 40px; font-size: 16px; line-height: 1.7;
}

/* -- Navigation --------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  height: var(--nav-h); transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 20px; font-weight: 900; color: var(--text); letter-spacing: -0.03em;
}
.nav-logo svg { width: 28px; height: 28px; }
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--primary); transition: width 0.2s; border-radius: 1px;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.nav-link--active { color: var(--primary); }
.nav-links a.nav-link--active::after { width: 100%; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gradient-primary); color: #fff !important;
  padding: 8px 20px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600; transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow); }
.nav-cta::after { display: none !important; }

.hamburger {
  display: none; font-size: 24px; color: var(--text);
  padding: 4px 8px; z-index: 101;
}

/* -- Buttons ------------------------------------------------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gradient-primary); color: #fff;
  padding: 12px 28px; border-radius: var(--radius-full);
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); color: #fff; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--primary); color: var(--primary);
  padding: 12px 28px; border-radius: var(--radius-full);
  font-size: 15px; font-weight: 600; transition: background 0.2s, transform 0.2s;
}
.btn-outline:hover { background: var(--primary-bg); transform: translateY(-2px); }

/* -- Hero ---------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; padding: 120px 0 80px;
  min-height: 100vh; display: flex; align-items: center;
  background: var(--gradient-hero);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(16,185,129,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16,185,129,0.05) 0%, transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(5,150,105,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(16,185,129,0.12); color: var(--green-400);
  font-size: 13px; font-weight: 600; padding: 6px 16px;
  border-radius: var(--radius-full); margin-bottom: 24px;
  border: 1px solid rgba(16,185,129,0.2);
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px); font-weight: 900; line-height: 1.08;
  margin-bottom: 20px; color: #fff; letter-spacing: -0.03em;
}
.hero h1 .highlight { color: var(--green-400); }
.hero-sub {
  font-size: 17px; color: var(--slate-400);
  max-width: 520px; margin-bottom: 36px; line-height: 1.7;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero illustration */
.hero-illustration {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.hero-illustration svg { width: 100%; max-width: 480px; height: auto; }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.3;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb--1 { width: 300px; height: 300px; background: var(--green-500); top: -80px; right: -40px; animation-delay: 0s; }
.hero-orb--2 { width: 200px; height: 200px; background: var(--green-400); bottom: -40px; left: -20px; animation-delay: -3s; }
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* -- Stats strip -------------------------------------------- */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); overflow: hidden;
  margin-top: 52px; backdrop-filter: blur(8px);
}
.stat-cell {
  padding: 24px 20px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08); position: relative;
}
.stat-cell:last-child { border-right: none; }
.stat-cell svg { width: 24px; height: 24px; margin-bottom: 8px; opacity: 0.7; }
.stat-number { font-size: 28px; font-weight: 900; color: var(--green-400); letter-spacing: -0.02em; }
.stat-label { font-size: 12px; color: var(--slate-400); margin-top: 4px; font-weight: 500; }

/* -- Decorative grid pattern sections ----------------------- */
.section--with-pattern {
  position: relative;
}
.section--with-pattern::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--slate-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--slate-200) 1px, transparent 1px);
  background-size: 48px 48px; opacity: 0.4; pointer-events: none;
}

/* -- Service Domain Cards (Home) ---------------------------- */
.domain-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-bottom: 40px;
}
.domain-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.domain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.domain-card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.domain-card-icon--clinical { background: var(--green-100); }
.domain-card-icon--engagement { background: var(--amber-100); }
.domain-card-icon--network { background: var(--blue-100); }
.domain-card-icon svg { width: 24px; height: 24px; }
.domain-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.domain-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.domain-card .domain-count {
  font-size: 13px; font-weight: 600; color: var(--primary);
}
.domain-module-list { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.domain-module-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-secondary); padding: 5px 0;
}
.domain-module-item::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0;
}

/* -- Badges -------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-full);
}
.badge-clinical    { background: var(--green-100); color: var(--green-800); }
.badge-engagement  { background: var(--amber-100); color: var(--amber-700); }
.badge-network     { background: var(--blue-100);  color: var(--blue-700); }

/* -- Feature tags ------------------------------------------- */
.feature-tag {
  display: inline-block; font-size: 12px; font-weight: 500;
  padding: 4px 10px; background: var(--primary-bg);
  border: 1px solid var(--green-200); border-radius: var(--radius-sm);
  color: var(--green-700); transition: background 0.2s;
}

/* -- Tech tags ---------------------------------------------- */
.tech-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; padding: 8px 16px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-secondary);
  transition: border-color 0.2s, background 0.2s;
}
.tech-tag:hover { border-color: var(--primary); background: var(--primary-bg); color: var(--primary); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }

/* -- Compliance --------------------------------------------- */
.compliance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.compliance-card {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; transition: transform 0.2s, box-shadow 0.2s;
}
.compliance-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.compliance-card svg { width: 20px; height: 20px; flex-shrink: 0; }
.compliance-detail {
  color: var(--text-secondary); font-size: 15px;
  max-width: 640px; line-height: 1.7;
  padding: 20px; background: var(--bg-muted); border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
}

/* -- Integration chips -------------------------------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.integration-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; padding: 8px 18px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-full); color: var(--text-secondary);
  transition: border-color 0.2s, background 0.2s;
}
.integration-chip:hover { border-color: var(--primary); background: var(--primary-bg); }

/* -- How it works / Process --------------------------------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.process-step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.process-step::before {
  counter-increment: step; content: '0' counter(step);
  position: absolute; top: 20px; right: 24px;
  font-size: 32px; font-weight: 900; color: var(--slate-200); line-height: 1;
}
.process-step-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; background: var(--primary-bg);
}
.process-step-icon svg { width: 22px; height: 22px; }
.process-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* -- Module cards (modules page) ---------------------------- */
.modules-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; padding: 40px 0;
}
.module-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.module-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.module-card.expanded { border-color: var(--primary); box-shadow: var(--shadow-glow); }
.module-card-header { display: flex; flex-direction: column; gap: 10px; }
.module-card-title { font-size: 16px; font-weight: 700; color: var(--text); }
.module-card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.module-card-toggle {
  align-self: flex-start; font-size: 13px; color: var(--primary);
  font-weight: 600; margin-top: 4px; padding: 4px 0;
  transition: gap 0.2s; display: inline-flex; align-items: center; gap: 4px;
}
.module-card-toggle:hover { gap: 8px; }
.module-card-details {
  display: none; margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
  animation: slideDown 0.25s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.module-card.expanded .module-card-details { display: block; }
.module-card-details p { font-size: 14px; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.7; }
.module-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* -- Domain filter tabs ------------------------------------- */
.filter-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  background: var(--bg-muted); padding: 4px;
  border-radius: var(--radius-md); margin-bottom: 4px;
}
.filter-tab {
  padding: 10px 20px; font-size: 14px; font-weight: 500;
  color: var(--text-secondary); border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.filter-tab:hover { color: var(--text); background: rgba(0,0,0,0.03); }
.filter-tab.active {
  background: #fff; color: var(--primary); font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* -- Modules page header ------------------------------------ */
.modules-header { padding: 120px 0 0; }
.modules-header h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; margin-bottom: 12px; letter-spacing: -0.02em; }
.modules-header p { font-size: 16px; color: var(--text-secondary); max-width: 640px; margin-bottom: 28px; }

/* -- Platform Domain (modules page) ------------------------- */
.platform-bar {
  margin: 40px 0 56px; padding: 32px;
  background: var(--bg-muted); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.platform-bar .section-label { margin-bottom: 16px; }
.platform-bar h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.platform-bar p { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; max-width: 640px; line-height: 1.6; }

/* -- CTA band ----------------------------------------------- */
.cta-band { text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.cta-band h2 {
  font-size: clamp(28px, 4vw, 38px); font-weight: 900;
  color: #fff; margin-bottom: 12px; letter-spacing: -0.02em;
}
.cta-band p { color: rgba(255,255,255,0.7); font-size: 17px; margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-band .btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--primary); padding: 14px 32px;
  border-radius: var(--radius-full); font-size: 15px; font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-band .btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.cta-band .cta-email {
  display: block; margin-top: 18px; color: rgba(255,255,255,0.5);
  font-size: 14px; transition: color 0.2s;
}
.cta-band .cta-email:hover { color: rgba(255,255,255,0.9); }

/* -- Footer ------------------------------------------------- */
.footer { padding: 32px 0; border-top: 1px solid var(--slate-800); }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-copyright { font-size: 13px; color: var(--slate-500); }
.footer-compliance { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--slate-500); }
.footer-compliance svg { width: 14px; height: 14px; opacity: 0.5; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--slate-500); transition: color 0.2s; }
.footer-links a:hover { color: var(--slate-300); }

/* -- Reveal animations -------------------------------------- */
.reveal {
  opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* -- Mobile touch targets ----------------------------------- */
.nav-links a, .filter-tab, .module-card-toggle, .btn-primary, .btn-outline, .hamburger {
  min-height: 44px; display: inline-flex; align-items: center;
}
.hamburger { min-width: 44px; justify-content: center; }
.nav-links a.nav-cta { min-height: auto; }
.nav-links.open a { padding: 8px 0; }

/* -- Table horizontal scroll wrapper ----------------------- */
.table-wrapper {
  width: 100%; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.table-wrapper table { margin-bottom: 0; border: none; }
.table-wrapper::-webkit-scrollbar { height: 4px; }
.table-wrapper::-webkit-scrollbar-track { background: var(--slate-100); border-radius: 2px; }
.table-wrapper::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 2px; }

/* -- Tap highlight fix ------------------------------------- */
* { -webkit-tap-highlight-color: transparent; }

/* -- Smooth nav animation ---------------------------------- */
.nav-links { transition: opacity 0.2s ease; }

/* -- Better mobile code blocks ----------------------------- */
pre { -webkit-overflow-scrolling: touch; }

/* -- Responsive --------------------------------------------- */
@media (max-width: 968px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-illustration { order: -1; }
  .hero-illustration svg { max-width: 320px; }
  .domain-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .compliance-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.08); }
  .stat-cell:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.08); border-right: none; }
  .modules-grid { grid-template-columns: 1fr; }
  .nav-logo span { font-size: 14px; }
  .chip-row { gap: 6px; }
  .integration-chip { font-size: 12px; padding: 6px 12px; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; flex-direction: column; align-items: flex-start; gap: 24px;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
    padding: 96px 28px 32px; justify-content: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 17px; width: 100%; }
  .nav-links a.nav-cta { width: auto; }
  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 14px; }
  .section { padding: 56px 0; }
  .section-heading { font-size: 22px; }
  .filter-tabs { gap: 0; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .filter-tab { padding: 10px 14px; font-size: 13px; white-space: nowrap; }
  .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
  .stat-number { font-size: 22px; }
  .stat-cell { padding: 16px 12px; }
  .stat-cell svg { width: 20px; height: 20px; }
  .compliance-card { font-size: 13px; padding: 12px; }
  .compliance-card svg { width: 16px; height: 16px; }
  .tag-cloud { gap: 6px; }
  .tech-tag { font-size: 12px; padding: 6px 12px; }
  .hero-badge { font-size: 11px; padding: 4px 12px; }
  .guide-card { padding: 20px; }
  .domain-card { padding: 24px; }
  .process-step { padding: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 26px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas a { text-align: center; justify-content: center; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { gap: 14px; }
  .module-card { padding: 18px; }
  .module-card-title { font-size: 15px; }
  .nav-links { padding: 88px 16px 24px; }
  .nav-links a { font-size: 16px; }
  .footer-links { gap: 12px; }
  .guides-grid { gap: 14px; }
}
