/* ============================================================
   AREEP — Marketing Website Stylesheet
   Premium SaaS · Medical technology · Clean, trustworthy, modern
   ============================================================ */

:root {
  /* Palette */
  --teal-900: #0b3b3a;
  --teal-800: #0d4f4d;
  --teal-700: #0f6b66;
  --teal-600: #11847e;
  --teal-500: #14a098;
  --teal-300: #5eead4;
  --teal-200: #99f6e4;
  --teal-100: #d7f0ee;
  --teal-50: #eef9f8;

  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-50: #eff6ff;

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

  --amber-600: #d97706;
  --amber-100: #fef3c7;
  --green-600: #16a34a;
  --green-50: #f0fdf4;
  --red-600: #dc2626;
  --red-50: #fef2f2;

  --white: #ffffff;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Noto Kufi Arabic",
    "Noto Sans Arabic", sans-serif;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 8px 32px rgba(17, 132, 126, 0.18);

  /* Layout */
  --container: 1180px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--teal-700);
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: var(--teal-100);
  color: var(--teal-900);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  color: var(--slate-900);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.display {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: var(--slate-600);
  line-height: 1.7;
}

.muted {
  color: var(--slate-500);
}

.small {
  font-size: 0.9rem;
}

/* ---------- Layout ---------- */
.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(64px, 9vw, 104px);
}

.section-alt {
  background: var(--slate-50);
}

.section-teal {
  background: linear-gradient(180deg, var(--teal-900), var(--teal-800));
  color: rgba(255, 255, 255, 0.85);
}

.section-teal .section-head h2,
.section-teal .section-head h3 {
  color: var(--white);
}

.section-teal .lead {
  color: rgba(255, 255, 255, 0.82);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head .lead {
  margin-top: 16px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

/* ---------- Eyebrow / badges ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  margin-bottom: 18px;
}

.section-teal .eyebrow {
  color: var(--teal-100);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn-primary {
  background: var(--teal-700);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--teal-800);
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(15, 107, 102, 0.28);
}

.btn-blue {
  background: var(--blue-600);
  color: var(--white);
}

.btn-blue:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--slate-700);
  border-color: var(--slate-300);
}

.btn-outline:hover {
  border-color: var(--teal-600);
  color: var(--teal-700);
  background: var(--teal-50);
}

.btn-white {
  background: var(--white);
  color: var(--teal-900);
}

.btn-white:hover {
  background: var(--teal-50);
  transform: translateY(-1px);
}

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-100);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--slate-900);
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-800));
  color: #fff;
}

.logo-mark svg {
  width: 18px;
  height: 18px;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  display: inline-block;
  padding: 9px 13px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--slate-600);
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--teal-700);
  background: var(--teal-50);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 14px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  background: var(--white);
  place-items: center;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--slate-700);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: var(--white);
    border-bottom: 1px solid var(--slate-100);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-links a {
    padding: 12px 10px;
  }

  .nav-cta {
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nav-cta .btn {
    width: 100%;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 92px) clamp(64px, 8vw, 96px);
  background:
    radial-gradient(900px 460px at 85% -10%, rgba(20, 160, 152, 0.12), transparent 60%),
    radial-gradient(700px 420px at -5% 15%, rgba(59, 130, 246, 0.1), transparent 55%),
    var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.hero-copy .display {
  margin-block: 18px 22px;
}

.hero-copy .display span {
  color: var(--teal-700);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--slate-200);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-600);
}

.hero-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--teal-600);
  flex: none;
}

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

/* ---------- Dashboard mock (marketing preview) ---------- */
.dash-wrap {
  position: relative;
}

.dash-preview {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.dash-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--slate-100);
}

.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--slate-300);
}

.dash-dot:first-child { background: #f87171; }
.dash-dot:nth-child(2) { background: #fbbf24; }
.dash-dot:nth-child(3) { background: #34d399; }

.dash-title {
  margin-left: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-400);
}

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

.dash-sidebar {
  background: var(--slate-50);
  border-right: 1px solid var(--slate-100);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-side-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-400);
  padding: 4px 8px;
}

.dash-side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--slate-500);
  padding: 8px;
  border-radius: 8px;
}

.dash-side-item.active {
  background: var(--teal-100);
  color: var(--teal-900);
}

.dash-side-item svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.dash-main {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.dash-kpi {
  border: 1px solid var(--slate-100);
  background: var(--slate-50);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.dash-kpi-label {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-kpi-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-top: 2px;
}

.dash-kpi-trend {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--green-600);
}

.dash-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  flex: 1;
}

.dash-card {
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--slate-600);
}

.dash-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--slate-600);
  padding: 6px 0;
  border-bottom: 1px solid var(--slate-50);
}

.dash-row:last-child {
  border-bottom: 0;
}

.chip {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.chip-auto { background: var(--teal-100); color: var(--teal-800); }
.chip-human { background: var(--blue-50); color: var(--blue-700); }
.chip-wait { background: var(--amber-100); color: var(--amber-600); }

.dash-bar {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--slate-100);
  overflow: hidden;
}

.dash-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--teal-500), var(--teal-700));
}

.bar-blue { background: linear-gradient(90deg, #60a5fa, #2563eb); }

.channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--slate-600);
  padding: 5px 0;
}

.channel-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

.channel-name svg {
  width: 15px;
  height: 15px;
  color: var(--teal-600);
}

.dash-glow {
  position: absolute;
  inset: auto -24px -24px auto;
  width: 55%;
  height: 60%;
  background: radial-gradient(320px 220px at center, rgba(20, 160, 152, 0.22), transparent 70%);
  z-index: -1;
  border-radius: var(--radius-xl);
}

@media (max-width: 640px) {
  .dash-body {
    grid-template-columns: 1fr;
  }
  .dash-sidebar {
    display: none;
  }
  .dash-content {
    grid-template-columns: 1fr;
  }
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding-block: clamp(52px, 8vw, 88px) clamp(28px, 4vw, 44px);
  background:
    radial-gradient(700px 320px at 90% 0%, rgba(20, 160, 152, 0.1), transparent 60%),
    radial-gradient(600px 300px at 5% 10%, rgba(59, 130, 246, 0.08), transparent 55%),
    var(--white);
  border-bottom: 1px solid var(--slate-100);
}

.page-hero h1 {
  margin-block: 14px 16px;
  max-width: 820px;
}

.page-hero .lead {
  max-width: 700px;
}

/* ---------- Trust / outcome strip ---------- */
.strip {
  border-block: 1px solid var(--slate-100);
  background: var(--slate-50);
}

.strip-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px 28px;
  padding-block: 30px;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-700);
}

.strip-item svg {
  width: 22px;
  height: 22px;
  color: var(--teal-600);
  flex: none;
}

/* ---------- Feature cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-200);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--teal-50);
  color: var(--teal-700);
  margin-bottom: 18px;
}

.card-icon.blue { background: var(--blue-50); color: var(--blue-600); }
.card-icon.amber { background: var(--amber-100); color: var(--amber-600); }
.card-icon.slate { background: var(--slate-100); color: var(--slate-600); }

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.06rem;
  line-height: 1.3;
}

.card p {
  color: var(--slate-600);
  font-size: 0.95rem;
}

.card ul {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--slate-600);
  font-size: 0.92rem;
}

.card li svg {
  width: 16px;
  height: 16px;
  color: var(--teal-600);
  flex: none;
  margin-top: 3px;
}

.card.negative li svg {
  color: var(--red-600);
}

/* ---------- Feature categories ---------- */
.capability-suite {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.capability-panel {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  padding: clamp(24px, 3vw, 34px);
  border-right: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
}

.capability-panel:nth-child(2n) {
  border-right: 0;
}

.capability-panel:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.capability-index {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  color: var(--teal-700);
  font-weight: 800;
  font-size: .86rem;
}

.capability-panel h3 {
  font-size: 1.14rem;
  margin-bottom: 8px;
}

.capability-panel p {
  color: var(--slate-600);
  font-size: .96rem;
  max-width: 480px;
}

@media (max-width: 760px) {
  .capability-suite {
    grid-template-columns: 1fr;
  }

  .capability-panel,
  .capability-panel:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--slate-100);
  }

  .capability-panel:last-child {
    border-bottom: 0;
  }
}

.feature-cat {
  margin-bottom: 46px;
}

.feature-cat:last-child {
  margin-bottom: 0;
}

.feature-cat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  color: var(--slate-900);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-cat-title svg {
  width: 20px;
  height: 20px;
  color: var(--teal-600);
  flex: none;
}

.feature-cat-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--slate-200);
}

/* ---------- Numbered steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 26px 24px 24px;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--teal-700);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-full);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--slate-600);
  font-size: 0.93rem;
}

.step-connector {
  position: absolute;
  top: 45px;
  left: calc(100% - 12px);
  width: 24px;
  height: 2px;
  background: var(--slate-200);
}

@media (max-width: 900px) {
  .step-connector { display: none; }
}

/* ---------- Split / feature-pair sections ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.split.flip .split-visual {
  order: -1;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split.flip .split-visual {
    order: 0;
  }
}

.split-visual {
  position: relative;
}

.split-copy h2 {
  margin-bottom: 16px;
}

.split-copy .lead {
  margin-bottom: 20px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--slate-700);
  font-size: 0.97rem;
}

.check-list li > span {
  flex: 1;
  min-width: 0;
}

.check-list li > span strong {
  display: block;
  color: var(--slate-900);
  font-weight: 600;
  font-size: 0.97rem;
}

.check-list li > span .check-desc {
  display: block;
  color: var(--slate-500);
  font-size: 0.9rem;
  margin-top: 2px;
}

.check-list li svg {
  width: 20px;
  height: 20px;
  color: var(--teal-600);
  flex: none;
  margin-top: 2px;
}

/* ---------- Visual panel (generic preview box) ---------- */
.panel {
  background: linear-gradient(160deg, var(--teal-900), var(--teal-700));
  border-radius: var(--radius-xl);
  color: rgba(255, 255, 255, 0.85);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.panel.light {
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  box-shadow: var(--shadow-md);
}

.panel::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at center, rgba(20, 160, 152, 0.35), transparent 70%);
  border-radius: var(--radius-full);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.panel.light .panel-title { color: var(--slate-500); }

.panel-title svg {
  width: 18px;
  height: 18px;
}

.mini-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.mini-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.86rem;
  font-weight: 600;
}

.panel.light .mini-list-item {
  background: var(--slate-50);
  border-color: var(--slate-100);
  color: var(--slate-700);
}

.mini-list-item .grow { flex: 1; }

.mini-meta {
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 6px;
}

.panel.light .mini-meta { color: var(--slate-400); }

.mini-pill {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(20, 160, 152, 0.25);
  color: #7fe3dd;
  white-space: nowrap;
}

.panel.light .mini-pill {
  background: var(--teal-100);
  color: var(--teal-800);
}

.mini-pill.blue {
  background: rgba(59, 130, 246, 0.25);
  color: #bfdbfe;
}

.panel.light .mini-pill.blue {
  background: var(--blue-50);
  color: var(--blue-700);
}

.mini-pill.amber {
  background: rgba(217, 119, 6, 0.25);
  color: #fcd34d;
}

.panel.light .mini-pill.amber {
  background: var(--amber-100);
  color: var(--amber-600);
}

/* ---------- Architecture diagram ---------- */
.arch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.arch-block {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
}

.arch-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 3px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--teal-500), var(--blue-500));
}

.arch-block h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.arch-block .arch-tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 14px;
}

.arch-block ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arch-block li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--slate-600);
}

.arch-block li svg {
  width: 16px;
  height: 16px;
  color: var(--teal-600);
  flex: none;
}

.arch-arrow {
  display: none;
}

/* ---------- Analytics mini chart ---------- */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
  padding-top: 12px;
}

.chart-bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--teal-500), var(--teal-700));
  min-height: 12px;
}

.chart-bar.highlight {
  background: linear-gradient(180deg, #60a5fa, var(--blue-600));
}

.chart-legend {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--slate-500);
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

/* ---------- Metric band ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.metric {
  text-align: center;
}

.metric-value {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 4px;
}

.section-teal .metric-value { color: var(--white); }
.section-teal .metric-label { color: rgba(255, 255, 255, 0.72); }

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 30px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.plan.featured {
  border: 2px solid var(--teal-600);
  box-shadow: var(--shadow-glow);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal-700);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.plan-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
}

.plan-price {
  margin-block: 8px 4px;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--slate-900);
}

.plan-price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-500);
}

.plan-desc {
  font-size: 0.9rem;
  color: var(--slate-500);
  margin-bottom: 20px;
  min-height: 44px;
}

.plan ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
  flex: 1;
}

.plan li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--slate-600);
}

.plan li svg {
  width: 16px;
  height: 16px;
  color: var(--teal-600);
  flex: none;
  margin-top: 3px;
}

.plan .btn {
  margin-top: auto;
}

/* ---------- Use case cards ---------- */
.uc-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.uc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-200);
}

.uc-card h3 {
  font-size: 1.1rem;
}

.uc-card p {
  color: var(--slate-600);
  font-size: 0.95rem;
}

.uc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.uc-tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--teal-800);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-full);
  padding: 4px 12px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--teal-800), var(--teal-700));
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 14px;
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.14), transparent 70%);
}

.cta-band::before {
  width: 220px;
  height: 220px;
  top: -90px;
  right: -60px;
}

.cta-band::after {
  width: 260px;
  height: 260px;
  bottom: -120px;
  left: -80px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

/* ---------- Contact form ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-700);
}

.field label .req {
  color: var(--red-600);
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--slate-800);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  width: 100%;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(20, 160, 152, 0.15);
}

.field .hint {
  font-size: 0.8rem;
  color: var(--slate-400);
}

.form-note {
  font-size: 0.82rem;
  color: var(--slate-400);
  margin-top: 16px;
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--green-50);
  border: 1px solid #bbf7d0;
  color: var(--green-600);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.form-success.show {
  display: flex;
}

.form-success svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- Contact info ---------- */
.contact-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.contact-item .card-icon {
  margin-bottom: 0;
  flex: none;
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--slate-500);
}

/* ---------- Legal / docs pages ---------- */
.docs {
  max-width: 860px;
  margin-inline: auto;
}

.docs-page-title {
  padding-block: clamp(40px, 6vw, 64px) 8px;
}

.docs h2 {
  font-size: 1.45rem;
  margin-top: 44px;
  margin-bottom: 12px;
}

.docs h3 {
  font-size: 1.15rem;
  margin-top: 30px;
  margin-bottom: 8px;
}

.docs p {
  color: var(--slate-600);
  margin-bottom: 14px;
}

.docs ul {
  margin-bottom: 16px;
}

.docs li {
  position: relative;
  padding-left: 22px;
  color: var(--slate-600);
  margin-bottom: 8px;
}

.docs li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--teal-500);
}

.docs .updated {
  font-size: 0.85rem;
  color: var(--slate-400);
  margin-bottom: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding-block: 56px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 44px;
}

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

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

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 320px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 800;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--slate-400);
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--teal-300, #5eead4);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--slate-500);
}

.footer-bottom a {
  color: var(--slate-500);
}

.footer-bottom a:hover {
  color: var(--slate-300);
}

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

.stack > * + * {
  margin-top: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid rgba(20, 160, 152, 0.5);
  outline-offset: 2px;
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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