/* =========================================================================
   xMedEMR — Design System
   Modern, premium, global healthcare SaaS
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --brand-primary: #0B5FFF;
  --brand-primary-600: #0A52E0;
  --brand-primary-700: #083FB0;
  --brand-deep: #001D54;
  --brand-accent: #E63946;
  --brand-accent-600: #C1303C;
  --brand-mint: #00B884;
  --brand-amber: #F5A524;
  --brand-violet: #7C3AED;

  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #F6F9FF;
  --bg-mute: #EEF2F7;
  --bg-dark: #061027;
  --bg-dark-2: #0B1530;

  /* Text */
  --ink-1: #0B1220;
  --ink-2: #2A3447;
  --ink-3: #4A566B;
  --ink-4: #6B7689;
  --ink-5: #98A2B3;
  --ink-on-dark: #E6ECFA;
  --ink-on-dark-2: #A6B2CC;

  /* Borders */
  --line: #E4E9F2;
  --line-strong: #CBD3E1;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 40px rgba(8, 63, 176, 0.10);
  --shadow-xl: 0 30px 80px rgba(8, 63, 176, 0.16);
  --ring: 0 0 0 4px rgba(11, 95, 255, 0.18);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-pill: 999px;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* Layout */
  --container: 1200px;
  --container-wide: 1320px;
  --nav-h: 76px;

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  cursor: pointer;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--brand-primary-700);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding: clamp(64px, 8vw, 112px) 0;
}

.section--tight {
  padding: clamp(48px, 6vw, 80px) 0;
}

.section--dark {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
}

.section--soft {
  background: var(--bg-soft);
}

.section--gradient {
  background:
    radial-gradient(ellipse 1200px 600px at 80% 0%, rgba(124, 58, 237, 0.10), transparent 60%),
    radial-gradient(ellipse 1000px 600px at 0% 100%, rgba(11, 95, 255, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #F4F8FF 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(11, 95, 255, 0.08);
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.eyebrow--accent {
  background: rgba(230, 57, 70, 0.10);
  color: var(--brand-accent);
}

.eyebrow--dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.eyebrow--mint {
  background: rgba(0, 184, 132, 0.10);
  color: #007F5C;
}

.eyebrow--violet {
  background: rgba(124, 58, 237, 0.10);
  color: var(--brand-violet);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--sp-7);
}

.section-head__eyebrow {
  margin-bottom: var(--sp-3);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-3);
  color: var(--ink-1);
}

.section--dark .section-head h2 {
  color: #fff;
}

.section-head p {
  color: var(--ink-3);
  font-size: 17px;
  margin: 0;
}

.section--dark .section-head p {
  color: var(--ink-on-dark-2);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-1);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 var(--sp-4);
}

h3 { font-size: clamp(20px, 2.4vw, 24px); }
h4 { font-size: 18px; }

p { margin: 0 0 var(--sp-4); color: var(--ink-2); }
p:last-child { margin-bottom: 0; }

.text-grad {
  background: linear-gradient(120deg, var(--brand-primary) 0%, var(--brand-violet) 50%, var(--brand-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-grad--blue {
  background: linear-gradient(120deg, var(--brand-primary), var(--brand-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Top status bar ---------- */
.topbar {
  background: var(--bg-dark);
  color: var(--ink-on-dark-2);
  font-size: 13px;
  padding: 8px 0;
  position: relative;
  z-index: 60;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .topbar__left:nth-child(2) span:nth-child(2) { display: none; }
  .topbar { font-size: 12px; padding: 6px 0; }
  .topbar__left { gap: 10px; }
}

.topbar__left span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar__left .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-mint);
  box-shadow: 0 0 0 0 rgba(0,184,132,0.6);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,184,132,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(0,184,132,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,184,132,0); }
}

.topbar a { color: var(--ink-on-dark); }
.topbar a:hover { color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav.is-stuck {
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink-1);
  letter-spacing: -0.02em;
}

.nav__logo img {
  height: 38px;
  width: auto;
}

.nav__logo .dot-x {
  color: var(--brand-accent);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__menu a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s, background 0.2s;
}

.nav__menu a:hover {
  color: var(--brand-primary);
  background: rgba(11, 95, 255, 0.06);
}

.nav__menu a.is-active {
  color: var(--brand-primary);
  background: rgba(11, 95, 255, 0.08);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 44px; height: 44px;
  border-radius: 12px;
  color: var(--ink-1);
  align-items: center;
  justify-content: center;
}

.nav__toggle span {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  position: relative;
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
}

.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top:  6px; }

@media (max-width: 1024px) {
  .nav__menu,
  .nav__cta .btn--primary { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__menu {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    align-items: stretch;
  }
  .nav.is-open .nav__menu a { padding: 12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(180deg, var(--brand-primary) 0%, var(--brand-primary-600) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 95, 255, 0.25);
}

.btn--primary:hover {
  background: linear-gradient(180deg, var(--brand-primary-600), var(--brand-primary-700));
  color: #fff;
  box-shadow: 0 12px 28px rgba(11, 95, 255, 0.35);
}

.btn--ghost {
  background: rgba(255,255,255,0.6);
  color: var(--ink-1);
  border-color: var(--line);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink-1);
}

.btn--dark {
  background: var(--bg-dark);
  color: #fff;
}

.btn--dark:hover {
  background: #000;
  color: #fff;
}

.btn--wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.30);
}

.btn--wa:hover {
  background: #1FB957;
  color: #fff;
}

.btn--lg { padding: 16px 26px; font-size: 16px; border-radius: 14px; }
.btn--sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn--block { width: 100%; }

/* Hero CTA cluster */
.cta-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

@media (max-width: 480px) {
  .cta-cluster .btn { width: 100%; }
  .container { padding-inline: 16px; }
  .dash-mock__body { grid-template-columns: 1fr; }
  .dash-side { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 8vw, 120px) 0 clamp(40px, 5vw, 80px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(124, 58, 237, 0.10), transparent 60%),
    radial-gradient(ellipse 70% 60% at 0% 50%, rgba(11, 95, 255, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #F4F8FF 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 95, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 95, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000, transparent 80%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.04;
  margin-bottom: 18px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .hero .lede { font-size: 16px; }
  .page-hero h1 { font-size: 30px; }
  .eyebrow { font-size: 11px; padding: 5px 10px; }
}

.hero .lede {
  font-size: 18px;
  color: var(--ink-3);
  max-width: 540px;
  margin-bottom: 8px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero__trust .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}

.hero__trust .pill svg { color: var(--brand-mint); }

/* Hero visual */
.hero-visual {
  position: relative;
  perspective: 1500px;
}

.dash-mock {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: rotateY(-6deg) rotateX(4deg);
  transition: transform 0.6s var(--ease-out);
}

.hero-visual:hover .dash-mock { transform: rotateY(-2deg) rotateX(2deg); }

.dash-mock__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #F1F4FA;
  border-bottom: 1px solid var(--line);
}

.dash-mock__bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-mock__bar .dot--r { background: #FF5F57; }
.dash-mock__bar .dot--y { background: #FFBD2E; }
.dash-mock__bar .dot--g { background: #28C840; }
.dash-mock__bar .url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--ink-4);
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  margin-left: 8px;
}

.dash-mock__body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 380px;
}

.dash-side {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  padding: 18px 14px;
  font-size: 13px;
}

.dash-side .brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.dash-side ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
}

.dash-side li {
  padding: 8px 10px;
  border-radius: 8px;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-on-dark-2);
}

.dash-side li.is-active {
  background: rgba(11, 95, 255, 0.20);
  color: #fff;
}

.dash-side li svg { width: 16px; height: 16px; flex: 0 0 16px; opacity: 0.85; }

.dash-main {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-soft);
}

.dash-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dash-kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
}

.dash-kpi .label { font-size: 11px; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.04em; }
.dash-kpi .val { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink-1); margin-top: 4px; }
.dash-kpi .delta { font-size: 11px; color: var(--brand-mint); font-weight: 600; }

.dash-chart {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
  flex: 1;
  display: flex; flex-direction: column;
}

.dash-chart__head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink-3);
  margin-bottom: 8px;
}

.dash-chart__head strong { color: var(--ink-1); font-size: 13px; }

.dash-chart svg { width: 100%; height: 130px; }

.dash-rows {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-size: 12px;
}

.dash-rows__row {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.6fr 0.5fr;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-3);
  align-items: center;
}

.dash-rows__row:last-child { border-bottom: 0; }
.dash-rows__row.head { color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.04em; font-size: 10px; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag--ok    { background: rgba(0,184,132,0.12); color: #007F5C; }
.tag--warn  { background: rgba(245,165,36,0.14); color: #B45309; }
.tag--crit  { background: rgba(230,57,70,0.12); color: #B91C1C; }

.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  z-index: 2;
}

.float-card--top {
  top: -16px; left: -32px;
  animation: float 6s ease-in-out infinite;
}

.float-card--bottom {
  bottom: 24px; right: -28px;
  animation: float 7s ease-in-out -2s infinite;
}

.float-card__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11,95,255,0.10);
  color: var(--brand-primary);
}

.float-card--bottom .float-card__icon { background: rgba(0,184,132,0.12); color: #007F5C; }
.float-card strong { display: block; color: var(--ink-1); font-size: 13px; }
.float-card small { color: var(--ink-4); font-size: 11px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 700px) {
  .float-card--top { left: 8px; top: -8px; }
  .float-card--bottom { right: 8px; }
  .dash-mock { transform: none; }
}

/* ---------- Logo strip / global presence ---------- */
.logo-strip {
  padding: 36px 0;
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.logo-strip__label {
  text-align: center;
  font-size: 13px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  font-weight: 600;
}

.logo-strip__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 48px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-3);
  font-size: 18px;
  letter-spacing: -0.01em;
  opacity: 0.85;
}

.logo-strip__row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.flag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 14px;
}

.flag-pill .flag {
  width: 22px; height: 16px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-deep));
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}

/* ---------- Cards / feature grid ---------- */
.grid {
  display: grid;
  gap: 20px;
}

.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(11, 95, 255, 0.30);
}

.card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 16px;
  background: rgba(11, 95, 255, 0.10);
  color: var(--brand-primary);
}

.card__icon--violet { background: rgba(124, 58, 237, 0.10); color: var(--brand-violet); }
.card__icon--mint   { background: rgba(0, 184, 132, 0.12); color: #007F5C; }
.card__icon--amber  { background: rgba(245, 165, 36, 0.14); color: #B45309; }
.card__icon--accent { background: rgba(230, 57, 70, 0.10); color: var(--brand-accent); }
.card__icon--deep   { background: rgba(0, 29, 84, 0.10); color: var(--brand-deep); }

.card h3, .card h4 { margin-bottom: 8px; }
.card p { color: var(--ink-3); font-size: 15px; margin: 0; }

.card--link::after {
  content: '→';
  position: absolute;
  top: 28px; right: 24px;
  font-size: 20px;
  color: var(--ink-5);
  transition: color 0.2s, transform 0.2s;
}

.card--link:hover::after { color: var(--brand-primary); transform: translateX(3px); }

.card--soft { background: var(--bg-soft); }
.card--dark { background: var(--bg-dark); color: var(--ink-on-dark); border-color: rgba(255,255,255,0.06); }
.card--dark p, .card--dark h3, .card--dark h4 { color: var(--ink-on-dark); }
.card--dark h3, .card--dark h4 { color: #fff; }
.card--gradient {
  background: linear-gradient(160deg, #001D54 0%, #0B5FFF 100%);
  color: #fff;
  border: 0;
}
.card--gradient h3, .card--gradient p { color: #fff; }
.card--gradient p { color: rgba(255,255,255,0.85); }
.card--gradient .card__icon { background: rgba(255,255,255,0.16); color: #fff; }

/* Module cards (deeper) */
.module-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.module-card__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px;
}

.module-card__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14px;
  color: var(--ink-3);
}

.module-card__list li {
  display: flex; align-items: flex-start; gap: 8px;
}

.module-card__list li::before {
  content: '';
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--brand-mint) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
  flex: 0 0 16px;
  margin-top: 4px;
}

.module-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center; gap: 6px;
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 14px;
}

/* ---------- Stats ---------- */
.stats {
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(124, 58, 237, 0.30), transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(11, 95, 255, 0.35), transparent 60%),
    linear-gradient(180deg, #001D54 0%, #061027 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 800px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

.stat {
  padding: 12px;
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(120deg, #fff 0%, #B6CDF7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__num .plus { color: var(--brand-accent); -webkit-text-fill-color: var(--brand-accent); }

.stat__label {
  font-size: 14px;
  color: var(--ink-on-dark-2);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* ---------- Steps / process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

.step {
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
}

.step__num {
  position: absolute;
  top: -18px; left: 24px;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-deep));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(11, 95, 255, 0.30);
}

.step h4 { margin-top: 16px; }
.step p { color: var(--ink-3); font-size: 14px; margin: 0; }

/* ---------- Testimonial ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  position: relative;
}

.testimonial::before {
  content: '“';
  position: absolute;
  top: 16px; left: 24px;
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 1;
  color: var(--brand-primary);
  opacity: 0.20;
}

.testimonial p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-1);
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.testimonial__person {
  display: flex; align-items: center; gap: 12px;
}

.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-violet));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  flex: 0 0 44px;
}

.testimonial__person strong { display: block; color: var(--ink-1); font-size: 15px; }
.testimonial__person small { color: var(--ink-4); font-size: 13px; }

/* ---------- FAQ ---------- */
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq__item[open] {
  border-color: rgba(11,95,255,0.35);
  box-shadow: var(--shadow-sm);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-1);
  list-style: none;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-3);
  transition: transform 0.2s;
}

.faq__item[open] .faq__q::after {
  content: '−';
  color: var(--brand-primary);
}

.faq__a {
  padding: 0 20px 20px;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex; flex-direction: column;
  position: relative;
}

.plan--featured {
  background: linear-gradient(160deg, #001D54 0%, #0B5FFF 100%);
  color: #fff;
  border: 0;
  box-shadow: var(--shadow-xl);
  transform: scale(1.02);
}

@media (max-width: 980px) { .plan--featured { transform: none; } }

.plan__badge {
  position: absolute;
  top: -12px; right: 24px;
  padding: 6px 12px;
  background: var(--brand-accent);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan h3 { font-size: 22px; }
.plan--featured h3 { color: #fff; }

.plan__price {
  display: flex; align-items: baseline; gap: 6px;
  margin: 8px 0 4px;
  font-family: var(--font-display);
}

.plan__price .num { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.plan__price .per { color: var(--ink-4); font-size: 14px; }
.plan--featured .plan__price .per { color: rgba(255,255,255,0.75); }

.plan__sub { color: var(--ink-3); font-size: 14px; margin-bottom: 24px; }
.plan--featured .plan__sub { color: rgba(255,255,255,0.85); }

.plan ul {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
}

.plan ul li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--ink-2);
}

.plan--featured ul li { color: rgba(255,255,255,0.92); }

.plan ul li::before {
  content: '';
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(0,184,132,0.18) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007F5C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
  flex: 0 0 18px;
  margin-top: 2px;
}

.plan--featured ul li::before {
  background: rgba(255,255,255,0.20) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
}

/* ---------- WhatsApp cards (contact) ---------- */
.wa-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 720px) { .wa-grid { grid-template-columns: 1fr; } }

.wa-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  color: inherit;
}

.wa-card:hover {
  border-color: #25D366;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.18);
  transform: translateY(-2px);
  color: inherit;
}

.wa-card__flag {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  flex: 0 0 56px;
}

.wa-card__flag--uk  { background: linear-gradient(135deg, #012169, #C8102E); }
.wa-card__flag--uae { background: linear-gradient(135deg, #00732F, #fff 50%, #000 50%); }
.wa-card__flag--ksa { background: linear-gradient(135deg, #006C35, #fff); }
.wa-card__flag--pk  { background: linear-gradient(135deg, #01411C, #fff); }

.wa-card__body { flex: 1; }
.wa-card__country { font-size: 12px; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.wa-card__num { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink-1); margin-top: 2px; letter-spacing: -0.01em; }
.wa-card__hint { font-size: 13px; color: var(--ink-4); margin-top: 2px; }

.wa-card__arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 40px;
  transition: transform 0.2s;
}

.wa-card:hover .wa-card__arrow { transform: translateX(3px) scale(1.05); }

/* ---------- Forms ---------- */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-1); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--ink-4); margin-top: 4px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  font: inherit;
  font-size: 15px;
  color: var(--ink-1);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--brand-primary);
  box-shadow: var(--ring);
}

.field textarea { min-height: 110px; resize: vertical; }

.field--check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--ink-3);
}

.field--check input { width: auto; margin-top: 3px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

@media (max-width: 960px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer__top { grid-template-columns: 1fr; }
}

.footer__brand p { color: var(--ink-on-dark-2); font-size: 14px; max-width: 320px; }

.footer__brand .socials {
  display: flex; gap: 10px;
  margin-top: 20px;
}

.footer__brand .socials a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--ink-on-dark);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer__brand .socials a:hover {
  background: var(--brand-primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  font-family: var(--font-sans);
}

.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  color: var(--ink-on-dark-2);
  font-size: 14px;
  transition: color 0.2s;
}
.footer ul a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-on-dark-2);
}

/* ---------- Floating WhatsApp button ---------- */
.float-wa {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 40;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.40);
  text-decoration: none;
  transition: transform 0.2s;
}

.float-wa:hover { transform: scale(1.08); color: #fff; }

.float-wa::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.6;
  animation: ring 1.8s infinite;
}

@keyframes ring {
  0%   { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 640px) {
  .float-wa { bottom: 16px; right: 16px; width: 54px; height: 54px; }
}

/* ---------- Reveal animation ---------- */
/* Only hide when JS is available — graceful fallback for no-JS / SEO crawlers */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal--delay-1 { transition-delay: 0.05s; }
.reveal--delay-2 { transition-delay: 0.10s; }
.reveal--delay-3 { transition-delay: 0.15s; }
.reveal--delay-4 { transition-delay: 0.20s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0 clamp(48px, 6vw, 80px);
  background:
    radial-gradient(ellipse 60% 60% at 80% 0%, rgba(124, 58, 237, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(11, 95, 255, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #F4F8FF 100%);
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 95, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 95, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000, transparent 80%);
  pointer-events: none;
}

.page-hero .container { position: relative; }

.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--ink-3);
  font-size: 18px;
  max-width: 720px;
  margin-inline: auto;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-4);
  margin-bottom: 24px;
}

.breadcrumb a { color: var(--ink-4); }
.breadcrumb a:hover { color: var(--brand-primary); }
.breadcrumb span { color: var(--ink-5); }

/* ---------- Feature category block (features page) ---------- */
.feature-cat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 24px;
}

@media (max-width: 800px) { .feature-cat { grid-template-columns: 1fr; } }

.feature-cat__head {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.feature-cat__head .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(11,95,255,0.08);
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.feature-cat__list {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}

@media (max-width: 600px) { .feature-cat__list { grid-template-columns: 1fr; } }

.feature-cat__list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}

.feature-cat__list li::before {
  content: '🔴'; /* the brand accent */
  position: absolute;
  left: 0; top: 0;
  font-size: 10px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(230,57,70,0.10);
  color: var(--brand-accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ---------- Filter (features page) ---------- */
.filter {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}

.filter__chip {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s;
}

.filter__chip:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.filter__chip.is-active {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

/* ---------- Blog ---------- */
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  display: flex; flex-direction: column;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(11,95,255,0.30);
}

.post-card__cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-violet));
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.post-card__cover svg { width: 60%; height: 60%; }

.post-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-card__meta { font-size: 13px; color: var(--ink-4); margin-bottom: 8px; }
.post-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--ink-1);
}

.post-card__excerpt { color: var(--ink-3); font-size: 14px; margin-bottom: 16px; }
.post-card__more {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600;
  color: var(--brand-primary);
  font-size: 14px;
}

.post-content {
  max-width: 760px;
  margin: 0 auto;
}

.post-content p,
.post-content li {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-2);
  margin-bottom: 18px;
}

.post-content h2 {
  font-size: 28px;
  margin: 40px 0 16px;
}

.post-content h3 {
  font-size: 22px;
  margin: 32px 0 12px;
}

.post-content ul, .post-content ol {
  padding-left: 22px;
  margin-bottom: 18px;
}

.post-content blockquote {
  border-left: 3px solid var(--brand-primary);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--bg-soft);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--ink-2);
  font-style: italic;
}

/* ---------- Cookie / notice ---------- */
.notice {
  display: flex; gap: 12px;
  padding: 12px 16px;
  background: rgba(245, 165, 36, 0.10);
  border: 1px solid rgba(245, 165, 36, 0.30);
  border-radius: var(--r-md);
  color: #92400E;
  font-size: 14px;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.hide-mobile { display: initial; }
.show-mobile { display: none; }

@media (max-width: 640px) {
  .hide-mobile { display: none; }
  .show-mobile { display: initial; }
}

/* Print friendly */
@media print {
  .nav, .footer, .float-wa, .topbar { display: none !important; }
}
