/* =========================================================
   Iqwex — Landing Page Styles
   Brand: vibrant teal-green primary, deep navy ink, light surface
   ========================================================= */

:root {
  /* Brand */
  --teal-50:  #ecfdf5;
  --teal-100: #d1fae5;
  --teal-200: #a7f3d0;
  --teal-300: #6ee7b7;
  --teal-400: #34d399;
  --teal-500: #10b981;
  --teal-600: #0ea5a3;
  --teal-700: #0d9488;
  --teal-800: #115e59;
  --teal-900: #064e3b;

  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;

  /* Ink / neutrals */
  --ink-950: #06121f;
  --ink-900: #0a1929;
  --ink-800: #0f2438;
  --ink-700: #1f364f;
  --ink-600: #334e6c;
  --ink-500: #5b7691;
  --ink-400: #8aa1b8;
  --ink-300: #b8c8d8;
  --ink-200: #dbe4ee;
  --ink-100: #eef3f8;
  --ink-50:  #f6f9fc;

  --bg:        #ffffff;
  --bg-soft:   #f8fbfd;
  --surface:   #ffffff;
  --surface-2: #f4f8fb;
  --border:    #e6edf3;
  --border-strong: #d6e1ea;

  /* Accents (matched to product stat cards) */
  --acc-mint: #d1fae5;
  --acc-blue: #dbeafe;
  --acc-lavender: #ede9fe;
  --acc-peach: #ffedd5;
  --acc-rose:  #ffe4e6;
  --acc-amber: #fef3c7;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15,36,56,0.04), 0 1px 1px rgba(15,36,56,0.04);
  --shadow-md: 0 4px 12px rgba(15,36,56,0.06), 0 2px 4px rgba(15,36,56,0.04);
  --shadow-lg: 0 24px 48px -16px rgba(10,25,41,0.18), 0 8px 16px -8px rgba(10,25,41,0.10);
  --shadow-xl: 0 40px 80px -20px rgba(10,25,41,0.30), 0 12px 24px -12px rgba(10,25,41,0.18);
  --shadow-glow: 0 0 0 1px rgba(16,185,129,0.18), 0 24px 60px -20px rgba(16,185,129,0.45);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --grad-brand: linear-gradient(135deg, #0a3a52 0%, #0e7c7b 38%, #14b88a 72%, #5fd697 100%);
  --grad-brand-soft: linear-gradient(135deg, #0a3a52 0%, #0e7c7b 50%, #14b88a 100%);
  --grad-text: linear-gradient(135deg, #0e7c7b 0%, #14b88a 50%, #5fd697 100%);
  --grad-hero-bg: radial-gradient(1200px 600px at 85% -10%, rgba(20,184,138,0.15), transparent 60%),
                  radial-gradient(900px 500px at 0% 30%, rgba(34,211,238,0.10), transparent 60%),
                  linear-gradient(180deg, #f8fdfb 0%, #ffffff 100%);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--teal-800); }

h1, h2, h3, h4 { font-family: inherit; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink-950); margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0; color: var(--ink-700); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; position: relative; }
@media (max-width: 768px) { section { padding: 64px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(16,185,129,0.08);
  color: var(--teal-700);
  border: 1px solid rgba(16,185,129,0.18);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

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

.section-head {
  text-align: center; margin-bottom: 56px;
}
.section-head .eyebrow { margin-bottom: 18px; }
.section-head p {
  margin: 14px auto 0; max-width: 640px;
  font-size: 1.07rem; color: var(--ink-600);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad-brand-soft);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(20,184,138,0.55), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover {
  box-shadow: 0 14px 32px -8px rgba(20,184,138,0.7), inset 0 1px 0 rgba(255,255,255,0.22);
  color: #fff;
}
.btn-ghost {
  background: rgba(255,255,255,0.6);
  color: var(--ink-900);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: #fff; border-color: var(--teal-400); color: var(--teal-800); }
.btn-dark {
  background: var(--ink-900); color: #fff; border-color: var(--ink-900);
}
.btn-dark:hover { background: var(--ink-800); color: #fff; }
.btn-sm { padding: 9px 14px; font-size: 0.85rem; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(214,225,234,0.7);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: -0.02em;
  color: var(--ink-950); font-size: 1.25rem;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand .brand-mark {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 14px; border-radius: 10px;
  color: var(--ink-700); font-weight: 500; font-size: 0.95rem;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--ink-100); color: var(--ink-950); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }
@media (max-width: 960px) {
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .nav-actions .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 80px; padding-bottom: 96px;
  background: var(--grad-hero-bg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,36,56,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,36,56,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 30%, transparent 75%);
  pointer-events: none;
  opacity: 0.55;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero h1 { margin: 18px 0 22px; }
.hero h1 em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.15rem; color: var(--ink-600);
  max-width: 560px; line-height: 1.6;
}
.hero-cta {
  display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap;
}
.hero-trust {
  display: flex; gap: 20px; margin-top: 36px; flex-wrap: wrap;
}
.hero-trust-item {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink-600); font-size: 0.9rem;
}
.hero-trust-item svg {
  width: 18px; height: 18px; color: var(--teal-600);
}

/* Hero visual — product mockup */
.hero-visual {
  position: relative;
  perspective: 2000px;
}
.mockup {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #fff;
  border: 1px solid var(--border);
  transform: rotateY(-6deg) rotateX(2deg) translateZ(0);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.mockup:hover { transform: rotateY(-2deg) rotateX(0) translateZ(0); }
.mockup-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #f7fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border);
}
.mockup-head .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: #e2e8f0;
}
.mockup-head .dot.r { background: #ff5f57; }
.mockup-head .dot.y { background: #ffbd2e; }
.mockup-head .dot.g { background: #28c940; }
.mockup-head .url {
  margin-left: 12px; font-size: 0.78rem; color: var(--ink-500);
  background: #fff; padding: 4px 10px; border-radius: 6px;
  border: 1px solid var(--border);
}
.mockup img { display: block; width: 100%; height: auto; }

/* Floating cards over hero */
.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.float-card.fc-1 {
  left: -22px; top: 24px;
  animation-delay: -1s;
}
.float-card.fc-2 {
  right: -16px; bottom: 28px;
  animation-delay: -3s;
}
.float-card .icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal-700);
}
.float-card .ico-rose { background: #fff1f2; color: #e11d48; }
.float-card strong { display: block; font-size: 0.92rem; color: var(--ink-950); font-weight: 700; }
.float-card span { font-size: 0.78rem; color: var(--ink-500); }

@media (max-width: 700px) {
  .float-card { display: none; }
  .mockup { transform: none; }
}

/* ---------- Stats strip ---------- */
.stats {
  padding: 0 0 32px;
  background: transparent;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 28px;
  background: var(--ink-950);
  border-radius: var(--radius-lg);
  color: #fff;
  box-shadow: var(--shadow-xl);
  background-image: radial-gradient(800px 300px at 20% 0%, rgba(20,184,138,0.18), transparent 70%),
                    radial-gradient(600px 300px at 100% 100%, rgba(34,211,238,0.12), transparent 70%);
}
@media (max-width: 800px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
}
.stat .num {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .lbl { font-size: 0.85rem; color: var(--ink-300); margin-top: 4px; }

/* ---------- Roles section ---------- */
.roles { background: var(--bg-soft); }
.role-tabs {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 40px;
}
.role-tab {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-weight: 600; font-size: 0.92rem;
  color: var(--ink-700);
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
}
.role-tab:hover { border-color: var(--teal-400); color: var(--teal-800); }
.role-tab.active {
  background: var(--ink-950);
  color: #fff;
  border-color: var(--ink-950);
  box-shadow: 0 8px 24px -8px rgba(10,25,41,0.4);
}
.role-tab .role-ico {
  width: 22px; height: 22px;
  display: grid; place-items: center;
}
.role-tab .role-count {
  font-size: 0.74rem;
  background: var(--ink-100);
  padding: 2px 8px;
  border-radius: 100px;
  color: var(--ink-600);
}
.role-tab.active .role-count {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.role-panel {
  display: none;
  animation: fadeUp .35s ease both;
}
.role-panel.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.role-hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  align-items: center;
  margin-bottom: 32px;
  padding: 32px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
@media (max-width: 880px) { .role-hero { grid-template-columns: 1fr; } }
.role-hero h3 {
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--ink-950);
}
.role-hero .role-tag {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 12px;
}
.role-hero ul {
  margin: 18px 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px;
}
.role-hero li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 0.92rem;
  color: var(--ink-700);
}
.role-hero li::before {
  content: ''; flex: none;
  width: 18px; height: 18px; border-radius: 50%;
  margin-top: 2px;
  background: var(--teal-50) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/14px no-repeat;
}
.role-hero .role-img {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--surface-2);
}
.role-hero .role-img img { width: 100%; height: auto; display: block; }

/* Feature gallery (per role) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: pointer;
  display: flex; flex-direction: column;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-200);
}
.feature-card .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.feature-card .thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .4s ease;
}
.feature-card:hover .thumb img { transform: scale(1.04); }
.feature-card .thumb::after {
  content: 'Click to expand';
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(10,25,41,0.85);
  color: #fff; font-size: 0.72rem; font-weight: 600;
  padding: 6px 10px; border-radius: 100px;
  opacity: 0; transition: opacity .2s ease;
}
.feature-card:hover .thumb::after { opacity: 1; }
.feature-card .body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.feature-card h4 { margin: 0; font-size: 1.02rem; color: var(--ink-950); font-weight: 700; }
.feature-card p { font-size: 0.88rem; color: var(--ink-600); margin: 0; line-height: 1.5; }

/* ---------- Pillars / Capabilities ---------- */
.pillars {
  background: #fff;
}
.pillar-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 980px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.pillar::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(20,184,138,0.04) 0%, transparent 60%);
  opacity: 0; transition: opacity .25s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-200); }
.pillar:hover::before { opacity: 1; }
.pillar > * { position: relative; }
.pillar .pico {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--teal-50); color: var(--teal-700);
  display: grid; place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(16,185,129,0.18);
}
.pillar h3 { font-size: 1.18rem; margin-bottom: 8px; }
.pillar p { font-size: 0.95rem; line-height: 1.55; color: var(--ink-600); }

/* ---------- Workflow showcase ---------- */
.workflow {
  background: linear-gradient(180deg, #f6fafc 0%, #ffffff 100%);
}
.workflow-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center;
}
@media (max-width: 1000px) { .workflow-grid { grid-template-columns: 1fr; } }
.workflow ol { margin: 24px 0 0; padding: 0; counter-reset: step; list-style: none; }
.workflow li {
  display: grid; grid-template-columns: 44px 1fr; gap: 18px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--border);
}
.workflow li:last-child { border-bottom: none; }
.workflow li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--ink-950); color: #fff;
  font-weight: 800; font-size: 0.85rem;
  display: grid; place-items: center;
  letter-spacing: 0;
}
.workflow li h4 { font-size: 1.05rem; margin: 4px 0 4px; }
.workflow li p { font-size: 0.93rem; color: var(--ink-600); }
.workflow .wf-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.workflow .wf-img img { width: 100%; height: auto; display: block; }

/* ---------- Architecture ---------- */
.arch {
  background: var(--ink-950);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.arch::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(20,184,138,0.18), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(34,211,238,0.12), transparent 60%);
  pointer-events: none;
}
.arch h2 { color: #fff; }
.arch .section-head p { color: var(--ink-300); }
.arch .eyebrow {
  background: rgba(20,184,138,0.14);
  color: var(--teal-300);
  border-color: rgba(20,184,138,0.28);
}
.tech-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  position: relative;
}
@media (max-width: 980px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
.tech {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 20px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.tech:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(20,184,138,0.4);
  transform: translateY(-3px);
}
.tech .tech-name { font-weight: 700; color: #fff; margin-bottom: 4px; }
.tech .tech-desc { font-size: 0.85rem; color: var(--ink-300); }
.tech .tech-ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(20,184,138,0.16);
  color: var(--teal-300);
  display: grid; place-items: center;
  margin-bottom: 12px;
  font-weight: 800; font-size: 0.9rem;
}

.security-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 56px;
  position: relative;
}
@media (max-width: 900px) { .security-grid { grid-template-columns: repeat(2, 1fr); } }
.sec-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 18px;
}
.sec-card .sico {
  flex: none;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(20,184,138,0.14);
  color: var(--teal-300);
  display: grid; place-items: center;
}
.sec-card strong { color: #fff; font-size: 0.95rem; display: block; }
.sec-card span { font-size: 0.83rem; color: var(--ink-300); }

/* ---------- Compliance strip ---------- */
.compliance {
  padding: 36px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.compliance-row {
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: center;
}
.comp-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-700);
}
.comp-pill svg { width: 16px; height: 16px; color: var(--teal-600); }

/* ---------- Why Iqwex ---------- */
.why { background: #fff; }
.why-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px;
  align-items: center;
}
@media (max-width: 980px) { .why-grid { grid-template-columns: 1fr; } }
.why-list { margin-top: 28px; display: grid; gap: 18px; }
.why-item {
  display: grid; grid-template-columns: 48px 1fr; gap: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.why-item:hover { border-color: var(--teal-300); box-shadow: var(--shadow-md); }
.why-item .wico {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--teal-50); color: var(--teal-700);
  display: grid; place-items: center;
  border: 1px solid rgba(16,185,129,0.18);
}
.why-item h4 { margin: 4px 0 4px; font-size: 1.05rem; }
.why-item p { font-size: 0.92rem; color: var(--ink-600); }

.why-card {
  background: var(--ink-950);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 32px;
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(600px 300px at 100% 0%, rgba(20,184,138,0.22), transparent 60%);
  box-shadow: var(--shadow-xl);
}
.why-card .wc-quote {
  font-size: 1.3rem; line-height: 1.45; font-weight: 600; letter-spacing: -0.01em;
  color: #fff;
  margin: 18px 0 24px;
}
.why-card .wc-row { display: flex; gap: 14px; align-items: center; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.08); }
.why-card .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad-brand-soft);
  color: #fff; display: grid; place-items: center; font-weight: 800;
  font-size: 0.92rem;
}
.why-card .wc-row strong { color: #fff; font-size: 0.95rem; display: block; }
.why-card .wc-row span { color: var(--ink-300); font-size: 0.82rem; }

/* ---------- About Enstrics ---------- */
.about {
  background: linear-gradient(180deg, #f6fafc 0%, #fff 100%);
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 980px) { .about-grid { grid-template-columns: 1fr; } }
.about h2 strong { color: var(--teal-700); }
.about p { font-size: 1.05rem; color: var(--ink-700); }
.about .about-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.about .about-card h3 { margin-bottom: 8px; }
.about .about-meta {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  margin-top: 22px;
}
.about-meta div { padding: 16px; background: var(--bg-soft); border-radius: 12px; border: 1px solid var(--border); }
.about-meta strong { color: var(--ink-950); display: block; font-size: 0.9rem; }
.about-meta span { color: var(--ink-600); font-size: 0.86rem; }

/* ---------- CTA / Contact ---------- */
.cta {
  position: relative;
  padding: 96px 0;
  background: var(--ink-950);
  color: #fff;
  overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(20,184,138,0.30), transparent 60%),
    radial-gradient(700px 400px at 100% 100%, rgba(34,211,238,0.18), transparent 60%);
}
.cta-inner {
  position: relative;
  text-align: center;
}
.cta h2 { color: #fff; margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3.2rem); }
.cta p { color: var(--ink-300); font-size: 1.1rem; max-width: 640px; margin: 0 auto 32px; }
.cta-actions {
  display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.cta-email {
  margin-top: 24px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 600;
}
.cta-email svg { color: var(--teal-300); }
.cta-email a { color: #fff; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-950);
  color: var(--ink-300);
  padding: 56px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-grid > div:last-child { grid-column: 1 / -1; display: flex; gap: 28px; flex-wrap: wrap; } }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:last-child { grid-column: span 2; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } .footer-grid > div:last-child { grid-column: 1; display: block; } }
.footer h5 { color: #fff; font-size: 0.86rem; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--ink-300); font-size: 0.9rem; transition: color .15s ease; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; }
.footer p { color: var(--ink-400); font-size: 0.9rem; max-width: 360px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.84rem; color: var(--ink-400);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(6,18,31,0.88);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 32px;
}
.lightbox.open { display: flex; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-inner {
  position: relative;
  max-width: 1280px;
  width: 100%;
  max-height: 92vh;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.lightbox-img {
  width: 100%; height: auto; display: block;
  max-height: 80vh; object-fit: contain; background: #f8fbfd;
}
.lightbox-cap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 22px;
  background: #fff;
  border-top: 1px solid var(--border);
}
.lightbox-cap h4 { margin: 0; font-size: 1rem; color: var(--ink-950); }
.lightbox-cap p { font-size: 0.84rem; color: var(--ink-600); margin: 4px 0 0; }
.lightbox-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(10,25,41,0.85);
  color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s ease;
}
.lightbox-close:hover { background: var(--ink-900); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10,25,41,0.85);
  color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s ease;
}
.lightbox-nav:hover { background: var(--ink-900); }
.lightbox-nav.prev { left: -56px; }
.lightbox-nav.next { right: -56px; }
@media (max-width: 1100px) {
  .lightbox-nav.prev { left: 14px; }
  .lightbox-nav.next { right: 14px; }
}

/* ---------- Reveal (no-op: kept as a hook for future animations) ----------
   Content is always visible. Add CSS here later if you want a fade-in. */
.reveal { /* no hidden state — visibility is critical */ }

/* ---------- Hide scrollbar on horizontal scroll areas ---------- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* =========================================================
   Patient login flow strip (inside the patient role panel)
   ========================================================= */
.flow-strip {
  margin: 32px 0;
  padding: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fafc 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.flow-strip-head {
  text-align: center; margin-bottom: 24px;
}
.flow-strip-head h4 {
  font-size: 1.2rem; margin: 0 0 6px; color: var(--ink-950);
}
.flow-strip-head p { color: var(--ink-600); font-size: 0.95rem; margin: 0; }
.flow-strip-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 980px) { .flow-strip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .flow-strip-grid { grid-template-columns: 1fr; } }
.flow-strip figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.flow-strip figure:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-200);
}
.flow-strip img {
  width: 100%; height: 200px; object-fit: cover; object-position: top center;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.flow-strip figcaption {
  padding: 12px 14px;
  font-size: 0.86rem;
  color: var(--ink-700);
}
.flow-strip figcaption strong { display: block; color: var(--ink-950); font-weight: 700; font-size: 0.92rem; margin-bottom: 2px; }
.flow-strip figcaption span { color: var(--ink-500); }

/* =========================================================
   Engagement section (WhatsApp · SMS · Email)
   ========================================================= */
.engagement {
  background: linear-gradient(180deg, #f6fafc 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}
.engagement::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 350px at 90% 0%, rgba(34,197,94,0.08), transparent 60%),
    radial-gradient(600px 300px at 10% 100%, rgba(34,211,238,0.06), transparent 60%);
  pointer-events: none;
}
.engagement > * { position: relative; }

.channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 56px;
}
@media (max-width: 980px) { .channels { grid-template-columns: 1fr; } }

.channel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.channel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-brand-soft);
}
.channel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-200);
}
.ch-whatsapp::before { background: linear-gradient(90deg, #25D366 0%, #128C7E 100%); }
.ch-sms::before      { background: linear-gradient(90deg, #06b6d4 0%, #0891b2 100%); }
.ch-email::before    { background: linear-gradient(90deg, #8b5cf6 0%, #6366f1 100%); }

.ch-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.ch-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  flex: none;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.ch-whatsapp .ch-icon { background: #dcfce7; color: #128C7E; border-color: #bbf7d0; }
.ch-sms .ch-icon      { background: #cffafe; color: #0891b2; border-color: #a5f3fc; }
.ch-email .ch-icon    { background: #ede9fe; color: #6d28d9; border-color: #ddd6fe; }
.ch-head h4 { margin: 0; font-size: 1.1rem; color: var(--ink-950); }
.ch-head span { font-size: 0.84rem; color: var(--ink-500); display: block; margin-top: 2px; }

.ch-list { margin: 0; padding: 0; list-style: none; }
.ch-list li {
  position: relative;
  padding: 10px 0 10px 26px;
  font-size: 0.93rem;
  color: var(--ink-700);
  border-bottom: 1px dashed var(--border);
}
.ch-list li:last-child { border-bottom: none; }
.ch-list li::before {
  content: '';
  position: absolute; left: 0; top: 14px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal-50) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
}

/* Scenario block */
.scenario-block {
  margin-top: 16px;
  padding: 36px;
  background: var(--ink-950);
  color: #fff;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(800px 300px at 0% 0%, rgba(20,184,138,0.18), transparent 60%),
    radial-gradient(700px 300px at 100% 100%, rgba(34,211,238,0.12), transparent 60%);
}
.scenario-title { color: #fff; font-size: 1.4rem; margin: 0 0 6px; letter-spacing: -0.02em; }
.scenario-sub { color: var(--ink-300); margin: 0 0 28px; font-size: 0.96rem; max-width: 640px; }
.scenario-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 900px) { .scenario-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .scenario-grid { grid-template-columns: 1fr; } }
.scenario {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 18px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.scenario:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(20,184,138,0.4);
  transform: translateY(-2px);
}
.scenario .sc-ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(20,184,138,0.16); color: var(--teal-300);
  display: grid; place-items: center;
  margin-bottom: 12px;
}
.scenario h4 { color: #fff; margin: 0 0 6px; font-size: 0.98rem; }
.scenario p  { color: var(--ink-300); font-size: 0.86rem; margin: 0; line-height: 1.5; }

/* Engagement screenshots */
.engagement-screens {
  margin-top: 36px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px;
}
@media (max-width: 880px) { .engagement-screens { grid-template-columns: 1fr; } }
.es-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.es-head {
  padding: 12px 18px;
  font-size: 0.85rem; font-weight: 600;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  color: var(--ink-700);
}
.es-card img { width: 100%; height: auto; display: block; }

/* =========================================================
   Operations section
   ========================================================= */
.operations {
  background: linear-gradient(180deg, #ffffff 0%, #f6fafc 100%);
}
.ops-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 980px) { .ops-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ops-grid { grid-template-columns: 1fr; } }
.ops-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ops-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-200);
}
.ops-ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--teal-50); color: var(--teal-700);
  display: grid; place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(16,185,129,0.18);
}
.ops-card h4 { font-size: 1.05rem; margin: 0 0 6px; color: var(--ink-950); }
.ops-card p  { font-size: 0.92rem; color: var(--ink-600); line-height: 1.55; }


/* =========================================================
   Legal pages (Terms, Privacy)
   ========================================================= */
.legal-hero {
  padding: 64px 0 48px;
  background: var(--grad-hero-bg);
  border-bottom: 1px solid var(--border);
}
.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 14px;
}
.legal-hero p {
  margin-top: 12px; max-width: 680px; color: var(--ink-600); font-size: 1.05rem;
}
.legal-hero .legal-meta {
  display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px;
  font-size: 0.88rem; color: var(--ink-600);
}
.legal-hero .legal-meta strong { color: var(--ink-950); }

.legal-wrap {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  padding: 56px 0 96px;
}
@media (max-width: 980px) { .legal-wrap { grid-template-columns: 1fr; gap: 28px; } }

.legal-toc {
  position: sticky;
  top: 92px;
  align-self: start;
  font-size: 0.92rem;
  border-left: 2px solid var(--border);
  padding-left: 16px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.legal-toc strong {
  display: block; font-size: 0.78rem; color: var(--ink-500);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 12px;
}
.legal-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; display: grid; gap: 8px; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: block; color: var(--ink-700);
  padding: 4px 0;
  border-radius: 4px;
  transition: color .15s ease;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero) ' ';
  color: var(--teal-600); font-weight: 700; margin-right: 6px;
  font-feature-settings: 'tnum';
}
.legal-toc a:hover { color: var(--teal-700); }
@media (max-width: 980px) {
  .legal-toc { position: static; max-height: none; }
}

.legal-body {
  font-size: 1rem;
  color: var(--ink-700);
  line-height: 1.7;
  max-width: 760px;
}
.legal-body section { padding: 0 0 36px; counter-reset: none; }
.legal-body h2 {
  font-size: 1.45rem; margin: 36px 0 12px;
  color: var(--ink-950); letter-spacing: -0.02em;
  scroll-margin-top: 96px;
  padding-top: 8px;
}
.legal-body h2 .num {
  color: var(--teal-600); font-weight: 800;
  margin-right: 10px;
  font-feature-settings: 'tnum';
}
.legal-body h3 {
  font-size: 1.05rem; margin: 22px 0 8px;
  color: var(--ink-950); font-weight: 700;
}
.legal-body p { margin: 0 0 14px; color: var(--ink-700); }
.legal-body ul, .legal-body ol {
  padding-left: 22px; margin: 6px 0 16px;
}
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--ink-950); font-weight: 700; }
.legal-body .callout {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal-500);
  padding: 16px 20px;
  border-radius: 8px;
  margin: 18px 0;
  font-size: 0.95rem;
}
.legal-body .callout.warn {
  border-left-color: #ef4444;
  background: #fff7f7;
}
.legal-body a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: var(--teal-800); }

.legal-foot-note {
  margin-top: 40px;
  padding: 22px;
  background: var(--ink-950);
  color: var(--ink-300);
  border-radius: var(--radius);
  font-size: 0.92rem;
}
.legal-foot-note strong { color: #fff; }
.legal-foot-note a { color: var(--teal-300); }

