/* ==========================================================================
   Topus business portal — design system
   Dark enterprise-security aesthetic: deep navy, electric blue CTAs,
   orange accent, DM Sans display typography.
   ========================================================================== */

:root {
  /* palette */
  --bg-1000: #060D17;            /* page background */
  --bg-900: #0A1628;             /* raised surfaces */
  --bg-800: #0E1D33;             /* cards */
  --line: rgba(255, 255, 255, 0.08);
  --natural-50: #FFFFFF;
  --natural-200: #DCDCDC;
  --natural-300: #BDBDBD;
  --natural-400: #989898;
  --primary: #0D4CF4;            /* CTA blue */
  --primary-hover: #2F7BFF;
  --accent: #FF7B0A;             /* orange accent */
  --crit: #DC2626;
  --high: #F97316;
  --med:  #EAB308;
  --low:  #3B82F6;
  --ok:   #22C55E;

  /* type */
  --font-primary: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;

  --header-h: 76px;
  --radius: 4px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-1000);
  color: var(--natural-50);
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.max-width {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--natural-50);
}
.btn-ghost:hover { border-color: #fff; }

.btn-lg { height: 50px; min-height: 50px; padding: 0 28px; font-size: 16px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(6, 13, 23, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
/* the wordmark image IS the brand — near-black mark, transparent bg */
.brand-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
}
/* legacy text wordmark, replaced by the image */
.brand-word { display: none; }

/* on the dark scrolled navbar, flip the dark wordmark to white */
.site-header.scrolled .brand-logo { filter: invert(1) brightness(1.15); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.nav-link {
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--natural-200);
  border-radius: 999px;
  transition: color 0.3s ease, background-color 0.3s ease;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.header-cta { display: flex; align-items: center; gap: 14px; }

/* hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 12px 24px 24px;
  background: rgba(6, 13, 23, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { padding: 12px 6px; font-size: 17px; color: var(--natural-200); }
.mobile-menu .nav-link:hover { color: #fff; }
.mobile-menu .btn { width: 100%; margin-top: 6px; }

/* At the very top the navbar sits over the light hero, so use dark chrome.
   Once scrolled, the header becomes a dark glassy bar and reverts to light. */
.site-header:not(.scrolled) .main-nav {
  background: rgba(20, 24, 31, 0.05);
  border-color: rgba(20, 24, 31, 0.10);
}
.site-header:not(.scrolled) .main-nav .nav-link { color: #4A5260; }
.site-header:not(.scrolled) .main-nav .nav-link:hover {
  color: #14181F;
  background: rgba(20, 24, 31, 0.06);
}
.site-header:not(.scrolled) .menu-toggle {
  background: rgba(20, 24, 31, 0.06);
  border-color: rgba(20, 24, 31, 0.12);
}
.site-header:not(.scrolled) .menu-toggle span { background: #14181F; }

/* ==========================================================================
   Nav mega-menus (Why Topus / Resources)
   ========================================================================== */

.nav-item {
  position: static; /* panel resolves to .site-header (fixed = positioned) */
  display: inline-flex;
  align-items: center;
}
.nav-item > .nav-link { display: inline-flex; align-items: center; gap: 6px; }

.nav-caret {
  font-size: 9px;
  line-height: 1;
  transition: transform 0.3s var(--ease);
  opacity: 0.75;
}
.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret { transform: rotate(180deg); }

.mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding-top: 14px; /* transparent hover-bridge from pill to sheet */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease), visibility 0.25s;
  z-index: 60;
}
.nav-item:hover .mega-panel,
.nav-item:focus-within .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 26px;
  background: #FFFFFF;
  color: #14181F;
  border: 1px solid rgba(20, 24, 31, 0.10);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(6, 13, 23, 0.28);
}

.mega-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #989898;
  margin-bottom: 20px;
}

/* --- Why Topus layout: rail + 3 blocks --- */
.mega-why-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}
.mega-rail { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mega-rail a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #14181F;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.mega-rail a::after { content: "\203A"; color: #b0b6c0; font-size: 16px; }
.mega-rail a:hover { background: rgba(13, 76, 244, 0.06); color: var(--primary); }
.mega-rail a:hover::after { color: var(--primary); }
html[dir="rtl"] .mega-rail a::after { content: "\2039"; }

.mega-cols { display: grid; gap: 28px; }
.mega-cols-3 { grid-template-columns: repeat(3, 1fr); }
.mega-cols-4 { grid-template-columns: repeat(4, 1fr); }

.mega-block { display: block; }
.mega-block h4 {
  font-size: 16px;
  font-weight: 600;
  color: #14181F;
  transition: color 0.25s ease;
}
.mega-block:hover h4 { color: var(--primary); }
.mega-block p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: #5C636E; }

/* --- Resources layout: 4 link columns + footer CTA --- */
.mega-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #989898;
  margin-bottom: 14px;
}
.mega-col a {
  display: block;
  padding: 6px 0;
  font-size: 14.5px;
  color: #3A414D;
  transition: color 0.25s ease;
}
.mega-col a:hover { color: var(--primary); }

.mega-foot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(20, 24, 31, 0.08);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--primary);
}
.mega-foot-arrow { transition: transform 0.3s var(--ease); }
.mega-foot:hover .mega-foot-arrow { transform: translateX(4px); }
html[dir="rtl"] .mega-foot-arrow { transform: scaleX(-1); }
html[dir="rtl"] .mega-foot:hover .mega-foot-arrow { transform: scaleX(-1) translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .mega-panel, .nav-caret, .mega-foot-arrow { transition: none; }
}

/* mobile menu groups (mega-panels are hidden below 768px) */
.m-group-title {
  margin: 14px 6px 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--natural-400);
}
.mobile-menu .m-sub {
  padding: 9px 6px 9px 18px;
  font-size: 15px;
  color: var(--natural-200);
}
html[dir="rtl"] .mobile-menu .m-sub { padding: 9px 18px 9px 6px; }
.mobile-menu .m-sub:hover { color: #fff; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 48px;
  color: #14181F;
  background:
    radial-gradient(60% 45% at 82% 8%, rgba(13, 76, 244, 0.08) 0%, transparent 70%),
    radial-gradient(45% 38% at 8% 70%, rgba(255, 123, 10, 0.06) 0%, transparent 70%),
    radial-gradient(78.95% 60% at 50% 45%, #FFFFFF 0%, #E9EBEE 96%);
}

.hero-grid {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-copy { flex: 1 1 0; min-width: 0; }

.hero-title {
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.2;
  font-weight: 500;
  text-transform: uppercase;
  color: #14181F;
  letter-spacing: 0.01em;
}

.accent-star { color: var(--accent); }

.hero-sub {
  margin-top: 28px;
  max-width: 560px;
  font-size: 20px;
  font-weight: 400;
  color: #5C636E;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-footnote {
  margin-top: 56px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #7C7C7C;
}
.hero-footnote::first-letter { color: var(--accent); }

/* hero uses a ghost button on a light background */
.hero .btn-ghost {
  border-color: rgba(20, 24, 31, 0.22);
  color: #14181F;
}
.hero .btn-ghost:hover { border-color: #14181F; }

/* device frame (stands in for product video) */
.hero-visual { flex: 0 0 495px; max-width: 495px; }

.device-frame {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-900);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(13, 76, 244, 0.10);
}
.device-frame.wide { width: 100%; }

/* --- dashboard mock --- */
.mock-dash { font-family: var(--font-mono); font-size: 13px; }

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #FF5F57; }
.dot.yellow { background: #FEBC2E; }
.dot.green { background: #28C840; }
.mock-url {
  margin-left: 10px;
  padding: 3px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--natural-400);
  font-size: 11.5px;
}

.mock-body { padding: 18px; display: flex; flex-direction: column; gap: 18px; }

.mock-kpis { display: flex; gap: 12px; }
.kpi {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kpi-num { font-size: 22px; font-weight: 500; color: #fff; font-family: var(--font-primary); }
.kpi-label { font-size: 10.5px; color: var(--natural-400); letter-spacing: 0.04em; text-transform: uppercase; }

.mock-bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-tag { width: 64px; font-size: 11px; text-align: right; }
.bar-tag.crit { color: var(--crit); }
.bar-tag.high { color: var(--high); }
.bar-tag.med  { color: var(--med); }
.bar-tag.low  { color: var(--low); }
.bar-track {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: var(--w);
  border-radius: 99px;
  transform-origin: left;
  animation: growBar 1.4s var(--ease) both;
}
.bar-fill.crit { background: var(--crit); }
.bar-fill.high { background: var(--high); }
.bar-fill.med  { background: var(--med); }
.bar-fill.low  { background: var(--low); }
.bar-val { width: 24px; font-size: 11px; color: var(--natural-300); }

@keyframes growBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.mock-term {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #04080F;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.term-line { color: var(--natural-300); font-size: 12px; }
.term-line.ok { color: var(--ok); }
.term-caret {
  width: 8px; height: 14px;
  background: var(--natural-300);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* --- findings table mock --- */
.mock-table { padding: 10px 0 4px; }
.trow {
  display: grid;
  grid-template-columns: 1fr 110px 90px 100px;
  gap: 12px;
  align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--natural-200);
}
.trow:last-child { border-bottom: none; }
.trow.thead {
  color: var(--natural-400);
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.08em;
}
.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 500;
}
.chip.crit { background: rgba(220, 38, 38, 0.16); color: #F87171; }
.chip.high { background: rgba(249, 115, 22, 0.16); color: #FB923C; }
.chip.med  { background: rgba(234, 179, 8, 0.16);  color: #FACC15; }
.chip.low  { background: rgba(59, 130, 246, 0.16); color: #60A5FA; }

/* ==========================================================================
   Clients marquee
   ========================================================================== */

.clients { padding: 88px 0 72px; }

.clients-heading {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
  color: var(--natural-200);
  margin-bottom: 44px;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: scroll 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes scroll {
  to { transform: translate(calc(-50% - 0.5rem)); }
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 0 32px;
}

.client-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  /* white silhouette on dark; full color on hover */
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.client-logo:hover { filter: none; opacity: 1; }

.client-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  min-width: 170px;
  padding: 0 28px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--natural-400);
  white-space: nowrap;
}

/* ==========================================================================
   Problem section (light)
   ========================================================================== */

.eyebrow {
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 22px;
}

.problem {
  padding: 104px 0;
  color: #0D0F13;
  background: radial-gradient(78.95% 50% at 50% 50%, #FFF 0%, #E6E6E6 88.98%);
}

.problem-title {
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.18;
  font-weight: 500;
  color: #14181F;
  max-width: 980px;
}

.problem-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.problem-card h3 {
  margin-top: 22px;
  font-size: 22px;
  font-weight: 600;
  color: #14181F;
}
.problem-card p {
  margin-top: 12px;
  font-size: 15.5px;
  color: #5C636E;
}

.problem-art {
  position: relative;
  height: 280px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 1px 1px, rgba(20, 24, 31, 0.06) 1px, transparent 0) 0 0 / 22px 22px,
    #F4F5F7;
  border: 1px solid rgba(20, 24, 31, 0.06);
  overflow: hidden;
}

/* --- Card 1: engagement planner --- */
.art-planner { position: absolute; inset: 0; }

.plan-panel {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(20, 24, 31, 0.10);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(20, 24, 31, 0.10);
  font-size: 12.5px;
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: #14181F;
}

.plan-year {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: #5C636E;
  padding: 2px 8px;
  border: 1px solid rgba(20, 24, 31, 0.12);
  border-radius: 999px;
}

.plan-progress {
  height: 5px;
  margin: 10px 0 12px;
  border-radius: 99px;
  background: rgba(20, 24, 31, 0.08);
  overflow: hidden;
}
.plan-progress-fill {
  display: block;
  width: 44%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), #2F7BFF);
}

.plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px dashed rgba(20, 24, 31, 0.08);
  color: #5C636E;
}
.plan-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.plan-chip {
  flex: 0 0 auto;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 600;
}
.plan-chip.done { background: rgba(34, 197, 94, 0.14); color: #15803D; }
.plan-chip.run  { background: rgba(13, 76, 244, 0.12); color: #1D4ED8; }
.plan-chip.late { background: rgba(220, 38, 38, 0.14); color: #DC2626; }

/* floating chaos pills around the tidy plan */
.art-planner .note-pill.pp1 { top: 16px; left: 8%; right: auto; transform: rotate(-5deg); }
.art-planner .note-pill.pp2 { top: 218px; left: auto; right: 9%; transform: rotate(4deg); }

/* --- Card 2: retest cycle --- */
.art-retest {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.retest-ring {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0 40%, rgba(20, 24, 31, 0.10) 40% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.retest-ring::before {
  content: "";
  position: absolute;
  inset: 11px;
  background: #F4F5F7;
  border-radius: 50%;
}
.retest-ring-num {
  position: relative;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: #14181F;
}
.retest-rows {
  width: 210px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.retest-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  background: #fff;
  border: 1px solid rgba(20, 24, 31, 0.08);
  border-radius: 8px;
  font-size: 12.5px;
  color: #3A414D;
  box-shadow: 0 4px 12px rgba(20, 24, 31, 0.05);
}
.rt-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.rt-dot.done { background: #22C55E; }
.rt-dot.late { background: #DC2626; }
.rt-dot.open { background: var(--accent); }
.art-retest .rt-pill {
  position: absolute;
  top: 20px;
  right: 14px;
  transform: rotate(4deg);
}
html[dir="rtl"] .art-retest .rt-pill { right: auto; left: 14px; transform: rotate(-4deg); }

/* --- Card 3: scattered notifications --- */
.art-report { position: absolute; inset: 0; }
.note-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  background: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(20, 24, 31, 0.10);
}
.note-pill::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 4px;
  flex: 0 0 14px;
}
.note-pill.red { color: #DC2626; }
.note-pill.red::before { background: #DC2626; }
.note-pill.amber { color: #C2410C; }
.note-pill.amber::before { background: var(--accent); }
.note-pill.mini { color: #14181F; }
.note-pill.mini::before { background: var(--accent); }
.note-pill.mini b { color: var(--accent); }

/* one-click report card */
.report-card {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 216px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(20, 24, 31, 0.10);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(20, 24, 31, 0.12);
}
.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(20, 24, 31, 0.08);
  font-size: 12.5px;
  font-weight: 600;
  color: #14181F;
}
.report-pdf {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  color: #DC2626;
  background: rgba(220, 38, 38, 0.10);
  padding: 2px 6px;
  border-radius: 4px;
}
.report-lines { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.report-lines span { height: 6px; border-radius: 3px; background: rgba(20, 24, 31, 0.08); }
.report-lines span:nth-child(2) { width: 82%; }
.report-lines span:nth-child(3) { width: 60%; }
.report-bars { display: flex; align-items: flex-end; gap: 6px; height: 44px; margin-bottom: 14px; }
.report-bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--primary), #6EA0FF); }
.report-btn {
  width: 100%;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-primary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: default;
}
.report-cursor {
  position: absolute;
  top: 224px;
  left: 57%;
  width: 20px;
  height: 20px;
  background: #14181F;
  clip-path: polygon(0 0, 0 78%, 26% 56%, 46% 100%, 62% 92%, 42% 50%, 76% 48%);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
  animation: repClick 2.2s ease-in-out infinite;
}
@keyframes repClick {
  0%, 100% { transform: translate(0, 0); }
  45% { transform: translate(-4px, -6px); }
  55% { transform: translate(-4px, -6px); }
}
.art-report .rep-pill { position: absolute; top: 24px; right: 14px; transform: rotate(5deg); }
html[dir="rtl"] .art-report .rep-pill { right: auto; left: 14px; transform: rotate(-5deg); }

@media (prefers-reduced-motion: reduce) {
  .report-cursor { animation: none; }
}

/* ==========================================================================
   Transition band (dark)
   ========================================================================== */

.transition {
  padding: 104px 0;
  text-align: center;
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(13, 76, 244, 0.16) 0%, transparent 70%),
    var(--bg-1000);
}
.transition .eyebrow { color: var(--accent); }
.transition-title {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.16;
  font-weight: 500;
  color: var(--natural-50);
  max-width: 980px;
  margin: 0 auto;
}
.grad-word {
  background: linear-gradient(90deg, #2F7BFF, #7DA8FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.transition-sub {
  margin: 24px auto 0;
  max-width: 680px;
  font-size: 19px;
  color: var(--natural-300);
}

/* ==========================================================================
   Showcase
   ========================================================================== */

.showcase {
  padding: 96px 0;
  background:
    radial-gradient(50% 60% at 20% 30%, rgba(13, 76, 244, 0.12) 0%, transparent 70%),
    var(--bg-1000);
}

.showcase-grid {
  display: flex;
  align-items: center;
  gap: 56px;
}
.showcase-copy { flex: 0 0 40%; }
.showcase-visual { flex: 1 1 0; min-width: 0; }

.section-title {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.22;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--natural-50);
}

.section-sub {
  margin-top: 20px;
  font-size: 18px;
  color: var(--natural-300);
  max-width: 640px;
}

.showcase-copy .btn { margin-top: 32px; }

/* ==========================================================================
   Platform modules
   ========================================================================== */

.platform { padding: 96px 0; }

.platform .section-sub { margin-bottom: 56px; }

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.module-card {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.012) 100%);
  transition: border-color 0.3s ease, transform 0.3s var(--ease), background-color 0.3s ease;
}
.module-card:hover {
  border-color: rgba(13, 76, 244, 0.55);
  transform: translateY(-4px);
}

.module-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.module-card h3 {
  margin-top: 14px;
  font-size: 19px;
  font-weight: 600;
  color: var(--natural-50);
}

.module-card p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--natural-300);
}

/* ==========================================================================
   Cases (light mosaic of product shots)
   ========================================================================== */

.cases {
  padding: 104px 0;
  background: #FFFFFF;
  color: #14181F;
}

.cases-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.cases-title {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.15;
  font-weight: 700;
  color: #0D0F13;
}

.cases-viewall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #14181F;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.cases-viewall:hover { border-color: #14181F; }
.cases-arrow { transition: transform 0.3s var(--ease); display: inline-block; }
.cases-viewall:hover .cases-arrow { transform: translateX(4px); }
html[dir="rtl"] .cases-arrow { transform: scaleX(-1); }
html[dir="rtl"] .cases-viewall:hover .cases-arrow { transform: scaleX(-1) translateX(4px); }

.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
}

.case-card {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  height: 420px;
  background: #0A1628;
}
.case-card.case-wide { grid-column: span 2; }

.case-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.6s var(--ease);
}
.case-card:hover .case-img { transform: scale(1.03); }

.case-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 14px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(4, 8, 15, 0) 45%, rgba(4, 8, 15, 0.72) 100%);
}

.case-caption {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  max-width: 560px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.case-btn {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: #fff;
  color: #0D0F13;
  font-size: 14.5px;
  font-weight: 600;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.case-card:hover .case-btn {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

/* --- engagement split feature block (Tabby-style) --- */
.eng-feature {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-top: 72px;
}
.eng-copy { flex: 1 1 0; min-width: 0; }
.eng-visual { flex: 1 1 0; min-width: 0; }

.eng-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: #14181F;
  margin-bottom: 18px;
}
.eng-title {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.2;
  font-weight: 700;
  color: #0D0F13;
}
.eng-list {
  margin-top: 26px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.eng-list li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  color: #3A414D;
}
.eng-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #14181F;
}
html[dir="rtl"] .eng-list li { padding-left: 0; padding-right: 20px; }
html[dir="rtl"] .eng-list li::before { left: auto; right: 0; }

.eng-copy .btn-dark { margin-top: 32px; }

.btn-dark { background: #14181F; color: #fff; }
.btn-dark:hover { background: #2A2F3A; }

.eng-visual img {
  width: 100%;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(20, 24, 31, 0.08);
  box-shadow: 0 30px 70px rgba(20, 24, 31, 0.18);
}

/* ==========================================================================
   Company
   ========================================================================== */

.company {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(55% 70% at 85% 50%, rgba(13, 76, 244, 0.10) 0%, transparent 70%),
    var(--bg-1000);
}

.company-grid {
  display: flex;
  align-items: center;
  gap: 64px;
}
.company-copy { flex: 1 1 0; }

.company-stats {
  flex: 0 0 420px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.stat {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-num {
  font-size: 34px;
  font-weight: 600;
  color: var(--natural-50);
}
.stat-label { font-size: 13.5px; color: var(--natural-400); }

/* ==========================================================================
   Pricing (light band, mono type, grouped plan cards)
   ========================================================================== */

.pricing {
  padding: 104px 0;
  background: #FDFDFE;
  color: #1E1E1E;
}

/* dashed vertical guides flanking the content, like a blueprint */
.pricing-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.pricing-inner::before,
.pricing-inner::after {
  content: "";
  position: absolute;
  top: -40px;
  bottom: -40px;
  width: 0;
  border-left: 1px dashed #D1DFF2;
  pointer-events: none;
}
.pricing-inner::before { left: 4px; }
.pricing-inner::after { right: 4px; }

.pricing-head { max-width: 720px; padding: 0 24px; }

.pricing-title {
  font-family: var(--font-mono);
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: #1E1E1E;
}

.pricing-intro {
  margin-top: 16px;
  font-size: 17px;
  color: #4A5260;
}

/* two group cards side by side: Premium (dark) left, Enterprise right */
.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.price-row .price-card {
  display: flex;
  flex-direction: column;
}
.price-row .pc-plans { flex: 1; }
.price-row .pc-footer { margin-top: auto; }

/* --- group cards --- */
.price-card {
  --divider-color: #D1DFF2;
  border: 1px solid #DDE7ED;
  border-radius: 16px;
  background: #fff;
  color: #1E1E1E;
  padding: 28px;
  overflow: clip;
}

.price-card-dark {
  --divider-color: #393939;
  background: #020F15;
  border-color: #1F292D;
  color: #fff;
}

.pc-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pc-title {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.pc-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #7C7C7C;
  padding: 4px 12px;
  border: 1px solid var(--divider-color);
  border-radius: 999px;
  white-space: nowrap;
}
.price-card-dark .pc-tag { color: #BDBDBD; }

.pc-subtitle {
  margin-top: 10px;
  max-width: 640px;
  font-size: 15.5px;
  color: #5C636E;
}
.price-card-dark .pc-subtitle { color: #989898; }

.pc-plans {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 40px;
  padding: 24px 0 4px;
}
.pc-plans.pc-two { grid-template-columns: 1fr 1fr; }

.pc-plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pc-plans.pc-two .pc-plan + .pc-plan {
  border-left: 1px solid var(--divider-color);
  padding-left: 40px;
}

.pc-plan-title {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.05em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--divider-color);
}

.pc-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 22px 0 6px;
}

.pc-price {
  font-family: var(--font-mono);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.pc-period {
  font-size: 14.5px;
  color: #7C7C7C;
}
.price-card-dark .pc-period { color: #989898; }

.pc-slogan {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: -0.02em;
  color: #5C636E;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--divider-color);
}
.price-card-dark .pc-slogan { color: #BDBDBD; }

.pc-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 0 22px;
  flex: 1;
}

.pc-detail { display: flex; flex-direction: column; gap: 3px; }

.pc-dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #989898;
}

.pc-dd {
  font-size: 14.5px;
  color: #3A414D;
}
.price-card-dark .pc-dd { color: #DCDCDC; }

.pc-cta { align-self: flex-start; }

.pc-footer {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--divider-color);
}

.pc-footer-title {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.pc-footer-desc {
  margin-top: 8px;
  max-width: 820px;
  font-size: 14.5px;
  color: #5C636E;
}
.price-card-dark .pc-footer-desc { color: #989898; }

/* --- compare block --- */
.pricing-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.cmp-col {
  border: 1px solid #DDE7ED;
  border-radius: 16px;
  background: #fff;
  padding: 26px 28px;
}

.cmp-title {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.05em;
  padding-bottom: 12px;
  border-bottom: 1px solid #D1DFF2;
}

.cmp-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #989898;
  margin: 18px 0 12px;
}

.cmp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cmp-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: #3A414D;
}
.cmp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--primary);
}

.pricing-note {
  padding: 0 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #7C7C7C;
}

/* ==========================================================================
   Support
   ========================================================================== */

.support {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(50% 60% at 15% 20%, rgba(13, 76, 244, 0.12) 0%, transparent 70%),
    var(--bg-1000);
}

.support-grid {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}
.support-copy { flex: 1 1 0; min-width: 0; padding-top: 6px; }
.support-form-wrap { flex: 0 0 520px; max-width: 520px; }

.support-points {
  margin-top: 32px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.support-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  color: var(--natural-300);
}
.support-points strong { color: var(--natural-50); font-weight: 600; }
.support-points a { color: #6EA0FF; border-bottom: 1px solid rgba(110, 160, 255, 0.4); }
.support-points a:hover { color: #9DBEFF; }
.sp-dot {
  flex: 0 0 8px;
  width: 8px; height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(13, 76, 244, 0.15);
}

/* form card */
.support-form {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: flex; gap: 16px; }
.field-row .field { flex: 1 1 0; min-width: 0; }

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--natural-200);
}
.field label .opt { color: var(--natural-400); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  font-family: var(--font-primary);
  font-size: 15px;
  color: var(--natural-50);
  background: rgba(4, 8, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--natural-400); }

.field select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--natural-300) 50%),
    linear-gradient(135deg, var(--natural-300) 50%, transparent 50%);
  background-position: right 16px center, right 11px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
  cursor: pointer;
}
.field select option { background: #0A1628; color: #fff; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 76, 244, 0.25);
}

.support-form .btn { width: 100%; margin-top: 4px; }
.support-form .btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* honeypot — visually removed but present in the DOM for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bug-only.is-hidden { display: none; }

.form-status {
  margin: 2px 0 0;
  font-size: 14px;
  min-height: 1px;
}
.form-status.success { color: #4ADE80; }
.form-status.error { color: #F87171; }
.form-status .ticket {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #fff;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  background: #FFFFFF;
  color: #5C636E;
  border-top: 1px solid rgba(20, 24, 31, 0.08);
  padding-top: 72px;
  overflow: hidden;
}

.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}

.footer-brand .brand { margin-bottom: 18px; }
.footer-tag { color: #5C636E; font-size: 15px; max-width: 320px; }
.footer-mail {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #14181F;
  border-bottom: 1px solid rgba(20, 24, 31, 0.25);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.footer-mail:hover { color: var(--primary); border-color: var(--primary); }

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #989898;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 15px;
  color: #5C636E;
  transition: color 0.3s ease;
}
.footer-col a:hover { color: #14181F; }

/* "All rights reserved" bar — clean full-width white band */
.footer-meta {
  margin-top: 16px;
  background: #FFFFFF;
  border-top: 1px solid rgba(20, 24, 31, 0.08);
}
.footer-meta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 14px;
  color: #5C636E;
}
.footer-meta-inner p { letter-spacing: 0.01em; }

.footer-social { display: flex; gap: 12px; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(20, 24, 31, 0.12);
  border-radius: 50%;
  color: #5C636E;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.social-link:hover {
  color: #14181F;
  border-color: rgba(20, 24, 31, 0.30);
  background: rgba(20, 24, 31, 0.04);
}

/* ==========================================================================
   Legal pages (privacy / terms)
   ========================================================================== */

.legal-body {
  background: #FDFDFE;
  color: #14181F;
}

.legal-main {
  padding: calc(var(--header-h) + 56px) 0 88px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #5C636E;
  transition: color 0.3s ease;
}
.legal-back:hover { color: #14181F; }

.legal-head {
  max-width: 760px;
  margin-top: 28px;
}
.legal-head .eyebrow { margin-bottom: 14px; }

.legal-title {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.12;
  font-weight: 700;
  color: #0D0F13;
}

.legal-date {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #5C636E;
  padding: 5px 14px;
  border: 1px solid rgba(20, 24, 31, 0.14);
  border-radius: 999px;
}

.legal-intro {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.65;
  color: #3A414D;
  padding: 18px 22px;
  background: rgba(13, 76, 244, 0.05);
  border-inline-start: 3px solid var(--primary);
  border-radius: 0 10px 10px 0;
}
html[dir="rtl"] .legal-intro { border-radius: 10px 0 0 10px; }

.legal-sections {
  max-width: 760px;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
}

.legal-section {
  display: flex;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid rgba(20, 24, 31, 0.08);
}
.legal-section:last-child { border-bottom: 1px solid rgba(20, 24, 31, 0.08); }

.legal-num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  padding-top: 3px;
}

.legal-section h2 {
  font-size: 19px;
  font-weight: 600;
  color: #14181F;
}
.legal-section p {
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.7;
  color: #5C636E;
}

.legal-contact {
  max-width: 760px;
  margin-top: 40px;
  padding: 24px 26px;
  border: 1px solid rgba(20, 24, 31, 0.10);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 24, 31, 0.05);
}
.legal-contact h3 { font-size: 17px; font-weight: 600; }
.legal-contact p { margin-top: 6px; font-size: 15px; color: #5C636E; }
.legal-contact a {
  color: var(--primary);
  font-weight: 500;
  border-bottom: 1px solid rgba(13, 76, 244, 0.35);
}

.legal-footer { padding-top: 0; border-top: none; }
.legal-switch {
  font-size: 14px;
  font-weight: 500;
  color: #5C636E;
  border-bottom: 1px solid rgba(20, 24, 31, 0.2);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.legal-switch:hover { color: #14181F; border-color: #14181F; }

html[dir="rtl"] .legal-back { flex-direction: row-reverse; }
html[lang="ar"] .legal-title { letter-spacing: 0; }

/* ==========================================================================
   Docs page
   ========================================================================== */

.docs-intro {
  margin-top: 22px;
  max-width: 640px;
  font-size: 17px;
  color: #5C636E;
}

.docs-layout {
  display: flex;
  gap: 56px;
  margin-top: 48px;
  align-items: flex-start;
}

.docs-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-nav-group {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #989898;
  margin: 18px 0 6px;
}
.docs-nav-group:first-child { margin-top: 0; }

.docs-nav-link {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: #3A414D;
  border: 1px solid transparent;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.docs-nav-link:hover { background: rgba(20, 24, 31, 0.05); }
.docs-nav-link.active {
  background: rgba(13, 76, 244, 0.07);
  border-color: rgba(13, 76, 244, 0.25);
  color: var(--primary);
}

.docs-content { flex: 1 1 0; min-width: 0; max-width: 780px; }

.doc-article { display: none; }
.doc-article.active { display: block; }

.doc-article h2 {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  color: #0D0F13;
  line-height: 1.2;
}

.doc-lede {
  margin-top: 14px;
  font-size: 17.5px;
  line-height: 1.65;
  color: #3A414D;
}

.doc-article > p { margin-top: 14px; font-size: 15.5px; line-height: 1.7; color: #5C636E; }

.doc-article h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(20, 24, 31, 0.08);
  font-size: 20px;
  font-weight: 600;
  color: #14181F;
}

.doc-article h4 {
  margin-top: 24px;
  font-size: 16px;
  font-weight: 600;
  color: #14181F;
}
.doc-article h4 + p { margin-top: 6px; font-size: 15px; line-height: 1.7; color: #5C636E; }

.doc-step {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
}

.doc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.doc-stat {
  padding: 16px;
  border: 1px solid rgba(20, 24, 31, 0.10);
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.doc-stat b { font-size: 22px; color: #0D0F13; }
.doc-stat span { font-size: 12.5px; color: #7C7C7C; }

.doc-list {
  margin-top: 14px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doc-list li {
  position: relative;
  padding-inline-start: 24px;
  font-size: 15px;
  line-height: 1.65;
  color: #5C636E;
}
.doc-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--primary);
}
.doc-list b { color: #14181F; }

.doc-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 14.5px;
  border: 1px solid rgba(20, 24, 31, 0.10);
  border-radius: 10px;
  overflow: hidden;
}
.doc-table th {
  background: #0E1D33;
  color: #fff;
  text-align: start;
  padding: 10px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.doc-table td {
  padding: 11px 14px;
  border-top: 1px solid rgba(20, 24, 31, 0.08);
  color: #5C636E;
  vertical-align: top;
}
.doc-table td:first-child { color: #14181F; font-weight: 500; min-width: 160px; }

.doc-article code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(20, 24, 31, 0.06);
  padding: 2px 7px;
  border-radius: 5px;
  color: #14181F;
  word-break: break-all;
}

.doc-note, .doc-warn {
  margin-top: 18px;
  padding: 15px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.65;
}
.doc-note {
  background: rgba(13, 76, 244, 0.06);
  border-inline-start: 3px solid var(--primary);
  color: #3A414D;
}
.doc-warn {
  background: rgba(255, 123, 10, 0.07);
  border-inline-start: 3px solid var(--accent);
  color: #3A414D;
}
.doc-note a, .doc-warn a {
  color: var(--primary);
  font-weight: 500;
  border-bottom: 1px solid rgba(13, 76, 244, 0.35);
}

@media (max-width: 900px) {
  .docs-layout { flex-direction: column; gap: 28px; }
  .docs-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  .docs-nav-group { margin: 0 6px 0 0; }
  .doc-stats { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Language toggle + Arabic (RTL) support
   ========================================================================== */

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 56px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: transparent;
  color: var(--natural-50);
  font-family: "IBM Plex Sans Arabic", var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}
.lang-toggle:hover { border-color: #fff; }

/* over the white hero (header not scrolled) the toggle must be dark */
.site-header:not(.scrolled) .lang-toggle {
  border-color: rgba(20, 24, 31, 0.25);
  color: #14181F;
}
.site-header:not(.scrolled) .lang-toggle:hover { border-color: #14181F; }

/* --- Arabic typography --- */
html[lang="ar"] body,
html[lang="ar"] .btn,
html[lang="ar"] .field input,
html[lang="ar"] .field select,
html[lang="ar"] .field textarea {
  font-family: "IBM Plex Sans Arabic", var(--font-primary);
}

/* connected script: no negative letter-spacing, no uppercase, taller lines */
html[lang="ar"] .hero-title,
html[lang="ar"] .section-title,
html[lang="ar"] .problem-title,
html[lang="ar"] .transition-title,
html[lang="ar"] .clients-heading {
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.4;
}

html[lang="ar"] .pricing-title,
html[lang="ar"] .pc-title,
html[lang="ar"] .pc-tag,
html[lang="ar"] .pc-plan-title,
html[lang="ar"] .pc-price,
html[lang="ar"] .pc-slogan,
html[lang="ar"] .pc-dt,
html[lang="ar"] .pc-footer-title,
html[lang="ar"] .cmp-title,
html[lang="ar"] .cmp-sub,
html[lang="ar"] .pricing-note,
html[lang="ar"] .hero-footnote,
html[lang="ar"] .client-slot {
  font-family: "IBM Plex Sans Arabic", var(--font-primary);
  letter-spacing: 0;
  text-transform: none;
}

html[lang="ar"] .hero-footnote::first-letter { color: inherit; }

/* --- RTL directional fixes --- */
/* product mocks stay LTR (they depict the EN dashboard) */
html[dir="rtl"] .device-frame,
html[dir="rtl"] .mock-dash { direction: ltr; }

/* marquee animation is direction-dependent — keep the track LTR */
html[dir="rtl"] .marquee-track { direction: ltr; }

html[dir="rtl"] .pc-plans.pc-two .pc-plan + .pc-plan {
  border-left: none;
  padding-left: 0;
  border-right: 1px solid var(--divider-color);
  padding-right: 40px;
}

html[dir="rtl"] .cmp-list li {
  padding-left: 0;
  padding-right: 22px;
}
html[dir="rtl"] .cmp-list li::before { left: auto; right: 0; }

html[dir="rtl"] .field select {
  background-position: left 16px center, left 11px center;
  padding-right: 13px;
  padding-left: 34px;
}

html[dir="rtl"] .hp-field { left: auto; right: -9999px; }

@media (max-width: 768px) {
  html[dir="rtl"] .pc-plans.pc-two .pc-plan + .pc-plan {
    border-right: none;
    padding-right: 0;
    border-top: 1px solid var(--divider-color);
    padding-top: 32px;
  }
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid { flex-direction: column; align-items: flex-start; }
  .hero-visual { flex: 1 1 auto; width: 100%; max-width: 560px; }
  .showcase-grid { flex-direction: column; align-items: flex-start; }
  .showcase-copy { flex: 1 1 auto; }
  .company-grid { flex-direction: column; align-items: flex-start; }
  .company-stats { flex: 1 1 auto; width: 100%; }
  .problem-grid { grid-template-columns: 1fr; max-width: 520px; }
  .support-grid { flex-direction: column; align-items: stretch; gap: 40px; }
  .support-form-wrap { flex: 1 1 auto; width: 100%; max-width: none; }
  .price-row { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .case-card.case-wide { grid-column: span 1; }
  .case-card { height: 320px; }
  .eng-feature { flex-direction: column-reverse; gap: 32px; margin-top: 48px; }
  .eng-copy, .eng-visual { flex: 1 1 auto; width: 100%; }
  .pc-plans.pc-two { grid-template-columns: 1fr; row-gap: 32px; }
  .pc-plans.pc-two .pc-plan + .pc-plan {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--divider-color);
    padding-top: 32px;
  }
  .pricing-compare { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-cta .btn { display: none; }
  .menu-toggle { display: flex; }

  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-sub { font-size: 17px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-meta-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .company-stats { grid-template-columns: 1fr 1fr; }
  .trow { grid-template-columns: 1fr 90px; }
  .trow span:nth-child(3), .trow span:nth-child(4) { display: none; }
  .mock-kpis { flex-direction: column; }
  .field-row { flex-direction: column; gap: 16px; }
}
