:root {
  --sky-blue-light: #8ecae6;
  --blue-green: #219ebc;
  --deep-space-blue: #023047;
  --amber-flame: #ffb703;
  --princeton-orange: #fb8500;
  --color-bg: #011827;
  --color-bg-deep: #01111d;
  --color-surface: rgba(2, 48, 71, 0.72);
  --color-surface-strong: rgba(3, 39, 58, 0.94);
  --color-surface-soft: rgba(142, 202, 230, 0.08);
  --color-border: rgba(142, 202, 230, 0.18);
  --color-border-strong: rgba(142, 202, 230, 0.34);
  --color-text: #f8fbfd;
  --color-text-soft: #d6edf7;
  --color-text-muted: #9ec6d8;
  --color-text-faint: #6f9fb2;
  --gradient-hero-text: linear-gradient(90deg, #f8fbfd 0%, #8ecae6 42%, #219ebc 100%);
  --gradient-primary-cta: linear-gradient(135deg, #ffb703 0%, #fb8500 100%);
  --gradient-secondary-accent: linear-gradient(135deg, #8ecae6 0%, #219ebc 100%);
  --shadow-soft: 0 18px 60px rgba(1, 24, 39, 0.35), 0 0 28px rgba(33, 158, 188, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(142, 202, 230, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 202, 230, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 183, 3, 0.08), transparent 24rem),
    linear-gradient(315deg, rgba(251, 133, 0, 0.08), transparent 22rem),
    radial-gradient(circle at 50% 0%, rgba(33, 158, 188, 0.18), transparent 32rem),
    var(--color-bg);
  background-size: 52px 52px, 52px 52px, auto, auto, auto, auto;
  color: var(--color-text);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; }
:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid rgba(255, 183, 3, 0.82);
  outline-offset: 3px;
}
.btn:focus-visible,
.language-pill:focus-visible,
.float-btn:focus-visible,
.close-btn:focus-visible {
  box-shadow: 0 0 0 5px rgba(33, 158, 188, 0.28), var(--shadow-soft);
}
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select { text-align: right; }
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"] { direction: ltr; text-align: right; }

.app-shell { min-height: 100vh; overflow-x: hidden; position: relative; }
.app-shell::before {
  content: "";
  position: fixed;
  inset: 76px 0 auto;
  height: 5px;
  z-index: 70;
  pointer-events: none;
  background: linear-gradient(90deg, var(--sky-blue-light), var(--blue-green), var(--amber-flame), var(--princeton-orange));
  background-size: 220% 100%;
  animation: shimmer 8s linear infinite;
  opacity: .75;
}
.container { width: min(1280px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 104px 0; position: relative; }
.section.alt { background: rgba(2, 48, 71, 0.34); border-block: 1px solid rgba(142, 202, 230, 0.1); }
.section.tight { padding: 72px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(142, 202, 230, 0.08);
  color: var(--sky-blue-light);
  font-size: 13px;
  font-weight: 700;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--amber-flame);
  box-shadow: 0 0 18px rgba(255, 183, 3, 0.7);
}
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2, .page-hero h1 {
  margin: 14px 0 16px;
  font-size: clamp(2.1rem, 5vw, 4.9rem);
  line-height: 1;
  letter-spacing: 0;
}
.section-heading p, .page-hero p, .hero-copy p {
  color: var(--color-text-soft);
  font-size: 1.12rem;
  line-height: 1.7;
}
.gradient-text { background: var(--gradient-hero-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.site-header {
  position: fixed;
  top: 0;
  z-index: 80;
  width: 100%;
  border-bottom: 1px solid rgba(142, 202, 230, 0.12);
  background: rgba(1, 31, 47, 0.74);
  backdrop-filter: blur(18px);
}
.nav-wrap {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.25rem; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(142, 202, 230, 0.18), rgba(255, 183, 3, 0.2));
  border: 1px solid var(--color-border-strong);
  display: grid; place-items: center; position: relative;
}
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; border-radius: 999px; background: var(--sky-blue-light); }
.brand-mark::before { width: 14px; height: 14px; border: 2px solid var(--amber-flame); background: transparent; }
.brand-mark::after { width: 5px; height: 5px; right: 7px; top: 7px; }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  padding: 10px 12px;
  color: var(--color-text-soft);
  font-size: 14px;
  font-weight: 700;
  position: relative;
}
.nav-links a.active, .nav-links a:hover { color: var(--sky-blue-light); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: linear-gradient(90deg, var(--sky-blue-light), var(--amber-flame));
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.language-pill {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--color-text-soft);
  background: rgba(2, 48, 71, 0.5);
  font-size: 14px;
  font-weight: 800;
}
.mobile-toggle { display: none; }
.mobile-menu { display: none; }

.btn {
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  min-height: 46px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--gradient-primary-cta); color: var(--deep-space-blue); box-shadow: 0 16px 38px rgba(251, 133, 0, 0.22); }
.btn.secondary { background: rgba(2, 48, 71, 0.42); border: 1px solid var(--color-border-strong); color: var(--sky-blue-light); }
.btn.ghost { background: transparent; color: var(--sky-blue-light); border: 1px solid var(--color-border); }
.btn.small { min-height: 36px; padding: 9px 14px; font-size: 14px; }
.btn.block { width: 100%; }
.mobile-toggle { display: none; }

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 112px 0 96px;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 92px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(2, 48, 71, 0.44));
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr); gap: 44px; align-items: center; }
.hero h1 { margin: 18px 0 22px; font-size: clamp(2.8rem, 5vw, 4.75rem); line-height: 1; }
.hero-copy p { max-width: 720px; font-size: 1.2rem; }
.rotating-caption {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px;
  border: 1px solid rgba(255, 183, 3, 0.36);
  border-radius: 999px;
  padding: 8px 12px 8px 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-soft);
  background: linear-gradient(90deg, rgba(255, 183, 3, 0.18), rgba(33, 158, 188, 0.12));
  box-shadow: 0 12px 34px rgba(251, 133, 0, 0.11);
}
.caption-kicker {
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(1, 24, 39, 0.64);
  color: var(--sky-blue-light);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
[data-hero-caption] {
  color: var(--amber-flame);
  transition: opacity 180ms ease, transform 180ms ease;
}
[data-hero-caption].changing { opacity: 0; transform: translateY(8px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.dashboard-visual {
  border: 1px solid var(--color-border-strong);
  background:
    linear-gradient(135deg, rgba(255, 183, 3, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(2, 48, 71, 0.78), rgba(1, 24, 39, 0.92));
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  padding: 18px;
  overflow: hidden;
  position: relative;
}
.dashboard-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 10%, rgba(142, 202, 230, 0.15), transparent 20rem);
  pointer-events: none;
  z-index: 0;
}
.dash-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; position: relative; }
.dash-top, .dash-cards, .workflow-line, .node-row { z-index: 1; }
.status-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--sky-blue-light); font-size: 13px; font-weight: 800; }
.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--amber-flame);
  box-shadow: 0 0 15px rgba(255, 183, 3, 0.8);
  animation: beaconPulse 1.5s ease-in-out infinite;
}
.dash-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; position: relative; }
.dash-card, .card {
  border: 1px solid var(--color-border);
  background: rgba(2, 48, 71, 0.58);
  border-radius: 8px;
  padding: 20px;
}
.dash-card {
  min-height: 132px;
  overflow: hidden;
  position: relative;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}
.dash-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 10%, rgba(142, 202, 230, 0.14) 45%, transparent 72%);
  opacity: 0;
  transform: translateX(-120%);
  pointer-events: none;
}
.dash-card strong {
  display: block;
  color: var(--amber-flame);
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-bottom: 4px;
  min-height: 2.2rem;
  text-shadow: 0 0 18px rgba(255, 183, 3, 0.18);
}
.dash-card span { color: var(--color-text-muted); font-size: 13px; }
.live-card { animation: softPulse 4.5s ease-in-out infinite; }
.live-card:nth-child(2) { animation-delay: 400ms; }
.live-card:nth-child(3) { animation-delay: 800ms; }
.live-card:nth-child(4) { animation-delay: 1200ms; }
.dashboard-visual.is-booting .dash-card {
  animation: dashCardEnter 740ms cubic-bezier(.2, .78, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}
.dashboard-visual.is-booting .dash-card::before,
.dash-card.is-counting::before {
  animation: cardScan 950ms ease both;
  animation-delay: calc(var(--i, 0) * 100ms);
}
.dash-card.is-counting {
  border-color: rgba(255, 183, 3, 0.55);
  box-shadow: 0 16px 36px rgba(255, 183, 3, 0.09);
  transform: translateY(-2px);
}
.dash-card.is-counting strong { animation: numberLift 700ms ease-in-out infinite alternate; }
.workflow-line {
  background: rgba(142, 202, 230, 0.12);
  border-radius: 999px;
  height: 4px;
  margin: 22px 0;
  overflow: hidden;
  position: relative;
}
.workflow-line::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--sky-blue-light), var(--amber-flame), var(--princeton-orange), transparent);
  animation: flow 2.9s ease-in-out infinite;
}
.workflow-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--amber-flame);
  box-shadow: 0 0 18px rgba(255, 183, 3, 0.76);
  transform: translate(-50%, -50%);
  animation: workflowDot 2.9s ease-in-out infinite;
}
.node-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.node {
  align-items: center;
  border: 1px solid rgba(142, 202, 230, 0.2);
  border-radius: 8px;
  color: var(--color-text-soft);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  min-height: 54px;
  padding: 12px;
  background: rgba(142, 202, 230, 0.06);
}
.node-pulse {
  background: var(--sky-blue-light);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(142, 202, 230, 0.45);
  flex: 0 0 auto;
  height: 7px;
  width: 7px;
}
.dashboard-visual.is-booting .node {
  animation: nodeEnter 620ms cubic-bezier(.2, .78, .2, 1) both;
  animation-delay: calc(620ms + (var(--i, 0) * 115ms));
}
.dashboard-visual.is-live .node {
  animation: nodeGlow 4.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 360ms);
}
.dashboard-visual.is-live .node-pulse {
  animation: nodePulse 4.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 360ms);
}
@keyframes beaconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 183, 3, 0.42), 0 0 15px rgba(255, 183, 3, 0.8); transform: scale(1); }
  50% { box-shadow: 0 0 0 7px rgba(255, 183, 3, 0), 0 0 22px rgba(255, 183, 3, 1); transform: scale(1.18); }
}
@keyframes dashCardEnter {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cardScan {
  0% { opacity: 0; transform: translateX(-120%); }
  20%, 70% { opacity: 1; }
  100% { opacity: 0; transform: translateX(120%); }
}
@keyframes numberLift {
  from { text-shadow: 0 0 10px rgba(255, 183, 3, 0.14); transform: translateY(0); }
  to { text-shadow: 0 0 24px rgba(255, 183, 3, 0.42); transform: translateY(-1px); }
}
@keyframes flow {
  0%, 100% { opacity: .42; transform: translateX(-12%) scaleX(.78); }
  50% { opacity: 1; transform: translateX(12%) scaleX(1); }
}
@keyframes workflowDot {
  0% { left: 4%; opacity: 0; }
  10%, 88% { opacity: 1; }
  100% { left: 96%; opacity: 0; }
}
html[dir="rtl"] .workflow-line::before { animation-direction: reverse; }
html[dir="rtl"] .workflow-line::after { animation-name: workflowDotRtl; }
@keyframes workflowDotRtl {
  0% { left: 96%; opacity: 0; }
  10%, 88% { opacity: 1; }
  100% { left: 4%; opacity: 0; }
}
@keyframes nodeEnter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes nodeGlow {
  0%, 100% { border-color: rgba(142, 202, 230, 0.2); background: rgba(142, 202, 230, 0.06); }
  45% { border-color: rgba(255, 183, 3, 0.5); background: rgba(255, 183, 3, 0.08); }
}
@keyframes nodePulse {
  0%, 100% { background: var(--sky-blue-light); transform: scale(1); }
  45% { background: var(--amber-flame); box-shadow: 0 0 18px rgba(255, 183, 3, 0.82); transform: scale(1.35); }
}
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 220% 50%; } }
@keyframes softPulse { 0%, 100% { border-color: var(--color-border); transform: translateY(0); } 50% { border-color: rgba(255, 183, 3, 0.42); transform: translateY(-3px); } }

.marquee-strip {
  border-block: 1px solid rgba(255, 183, 3, 0.18);
  overflow: hidden;
  background: linear-gradient(90deg, rgba(2, 48, 71, 0.78), rgba(255, 183, 3, 0.1), rgba(2, 48, 71, 0.78));
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 12px;
  padding: 15px 0;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  border: 1px solid rgba(142, 202, 230, 0.24);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--color-text-soft);
  background: rgba(1, 24, 39, 0.58);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.grid { display: grid; gap: 24px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease; }
.card:hover { transform: translateY(-6px); border-color: var(--color-border-strong); box-shadow: var(--shadow-soft); background: linear-gradient(145deg, rgba(2, 48, 71, 0.72), rgba(33, 158, 188, 0.1)); }
.service-card {
  --service-accent: var(--sky-blue-light);
  --service-accent-strong: var(--blue-green);
  --service-icon-bg: linear-gradient(135deg, rgba(142, 202, 230, 0.22), rgba(33, 158, 188, 0.28));
  --service-icon-border: rgba(142, 202, 230, 0.4);
  --service-icon-color: var(--sky-blue-light);
  --service-icon-shadow: 0 16px 34px rgba(33, 158, 188, 0.14);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--service-accent), var(--service-accent-strong));
  opacity: .9;
}
.icon-tile {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: rgba(33, 158, 188, 0.12);
  color: var(--sky-blue-light);
  font-weight: 900;
  margin-bottom: 20px;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, color 220ms ease, transform 220ms ease;
}
.service-card .icon-tile {
  background: var(--service-icon-bg);
  border-color: var(--service-icon-border);
  box-shadow: var(--service-icon-shadow);
  color: var(--service-icon-color);
}
.service-card.accent-amber {
  --service-accent: var(--amber-flame);
  --service-accent-strong: var(--princeton-orange);
  --service-icon-bg: linear-gradient(135deg, rgba(255, 183, 3, 0.96), rgba(251, 133, 0, 0.86));
  --service-icon-border: rgba(255, 183, 3, 0.58);
  --service-icon-color: var(--deep-space-blue);
  --service-icon-shadow: 0 18px 36px rgba(255, 183, 3, 0.16);
}
.service-card.accent-blue {
  --service-accent: var(--sky-blue-light);
  --service-accent-strong: var(--blue-green);
  --service-icon-bg: linear-gradient(135deg, rgba(142, 202, 230, 0.95), rgba(33, 158, 188, 0.86));
  --service-icon-border: rgba(142, 202, 230, 0.62);
  --service-icon-color: var(--deep-space-blue);
  --service-icon-shadow: 0 18px 36px rgba(33, 158, 188, 0.16);
}
.service-card.accent-cyan {
  --service-accent: var(--blue-green);
  --service-accent-strong: var(--sky-blue-light);
  --service-icon-bg: linear-gradient(135deg, rgba(33, 158, 188, 0.82), rgba(2, 48, 71, 0.82));
  --service-icon-border: rgba(33, 158, 188, 0.66);
  --service-icon-color: var(--color-text);
  --service-icon-shadow: 0 18px 36px rgba(33, 158, 188, 0.18);
}
.service-card.accent-orange {
  --service-accent: var(--princeton-orange);
  --service-accent-strong: var(--amber-flame);
  --service-icon-bg: linear-gradient(135deg, rgba(251, 133, 0, 0.96), rgba(255, 183, 3, 0.88));
  --service-icon-border: rgba(251, 133, 0, 0.62);
  --service-icon-color: var(--deep-space-blue);
  --service-icon-shadow: 0 18px 36px rgba(251, 133, 0, 0.17);
}
.service-card.accent-sky {
  --service-accent: var(--sky-blue-light);
  --service-accent-strong: var(--amber-flame);
  --service-icon-bg: linear-gradient(135deg, rgba(2, 48, 71, 0.96), rgba(142, 202, 230, 0.22));
  --service-icon-border: rgba(255, 183, 3, 0.46);
  --service-icon-color: var(--amber-flame);
  --service-icon-shadow: 0 18px 36px rgba(142, 202, 230, 0.14);
}
.pain-card .icon-tile {
  border: 0;
  color: var(--deep-space-blue);
  font-size: 1.35rem;
  box-shadow: 0 16px 36px rgba(1, 24, 39, 0.24);
}
.pain-card.tone-blue .icon-tile {
  background: linear-gradient(135deg, #8ecae6, #219ebc);
  box-shadow: 0 16px 36px rgba(33, 158, 188, 0.24);
}
.pain-card.tone-amber .icon-tile {
  background: linear-gradient(135deg, #ffec99, #ffb703);
  box-shadow: 0 16px 36px rgba(255, 183, 3, 0.24);
}
.pain-card.tone-green .icon-tile {
  background: linear-gradient(135deg, #96f2b9, #25d366);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.2);
}
.pain-card.tone-orange .icon-tile {
  background: linear-gradient(135deg, #ffd6a5, #fb8500);
  box-shadow: 0 16px 36px rgba(251, 133, 0, 0.22);
}
.pain-card:hover .icon-tile {
  transform: translateY(-2px) scale(1.03);
}
.service-card:hover .icon-tile {
  border-color: var(--service-accent);
  box-shadow: 0 20px 42px rgba(1, 24, 39, 0.26), var(--service-icon-shadow);
  transform: translateY(-2px) scale(1.04);
}
.card h3 { margin: 0 0 12px; font-size: 1.35rem; }
.card p { color: var(--color-text-soft); line-height: 1.65; }
.card ul { padding-left: 18px; color: var(--color-text-soft); line-height: 1.8; }
html[dir="rtl"] .card ul { padding-left: 0; padding-right: 18px; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.metric { text-align: center; }
.metric strong { display: block; font-size: clamp(2rem, 4vw, 3.4rem); color: var(--amber-flame); }
.metric span { color: var(--color-text-soft); }

.tool-panel, .form-panel, .modal-panel, .article-card {
  border: 1px solid var(--color-border);
  background: rgba(2, 48, 71, 0.62);
  border-radius: 8px;
  padding: 26px;
}
.whatsapp-card {
  margin-top: 24px;
  border: 1px solid rgba(37, 211, 102, 0.36);
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.15), rgba(255, 183, 3, 0.08));
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 18px 42px rgba(37, 211, 102, 0.1);
}
.whatsapp-card span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(37, 211, 102, 0.16);
  color: #8ff0b4;
  font-size: 12px;
  font-weight: 900;
}
.whatsapp-card strong { display: block; margin-top: 12px; font-size: 1.35rem; }
.whatsapp-card p { color: var(--color-text-soft); line-height: 1.6; }
.whatsapp-card .btn.block { width: fit-content; min-width: 220px; }
.contact-whatsapp { margin-bottom: 28px; }
.whatsapp-inline { box-shadow: 0 16px 38px rgba(37, 211, 102, 0.13); }
.split { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 28px; align-items: start; }
.form-note {
  margin: 0 0 18px;
  color: var(--sky-blue-light);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { color: var(--color-text); font-weight: 800; font-size: 14px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--color-border);
  background: rgba(1, 24, 39, 0.72);
  color: var(--color-text);
  border-radius: 8px;
  padding: 12px 13px;
  outline: none;
}
textarea { min-height: 116px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--blue-green); box-shadow: 0 0 0 3px rgba(33, 158, 188, 0.18); }
.range-row { display: grid; grid-template-columns: 1fr 64px; gap: 12px; align-items: center; }
input[type="range"] { accent-color: var(--amber-flame); padding: 0; }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 18px; }
.result-card { border: 1px solid var(--color-border); border-radius: 8px; padding: 18px; background: rgba(1, 24, 39, 0.48); }
.result-card strong { display: block; font-size: 2rem; color: var(--amber-flame); }
.bar-chart { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; height: 220px; border-left: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding: 12px 12px 0; }
html[dir="rtl"] .bar-chart { border-left: 0; border-right: 1px solid var(--color-border); }
.bar { display: grid; align-items: end; gap: 8px; height: 100%; color: var(--color-text-muted); font-size: 12px; text-align: center; }
.bar span { border-radius: 8px 8px 0 0; min-height: 18px; background: var(--blue-green); }
.bar.manual span { background: var(--princeton-orange); }
.bar.savings span { background: var(--amber-flame); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 18px; }
.chip {
  border: 1px solid var(--color-border);
  background: rgba(142, 202, 230, 0.08);
  color: var(--color-text-soft);
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
}
.chip.active { background: rgba(255, 183, 3, 0.16); border-color: rgba(255, 183, 3, 0.45); color: var(--amber-flame); }
.search-row { display: flex; gap: 12px; margin-bottom: 24px; }
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.tab { border: 1px solid var(--color-border); background: rgba(2, 48, 71, 0.5); color: var(--color-text-soft); border-radius: 999px; padding: 10px 14px; font-weight: 800; }
.tab.active { background: var(--gradient-secondary-accent); color: var(--deep-space-blue); }

.story-section {
  background:
    linear-gradient(90deg, rgba(255, 183, 3, 0.08), transparent 32%),
    linear-gradient(270deg, rgba(33, 158, 188, 0.12), transparent 34%);
  border-block: 1px solid rgba(142, 202, 230, 0.12);
}
.story-grid { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr); gap: 34px; align-items: start; }
.story-sticky { position: sticky; top: 112px; }
.story-sticky h2 { margin: 14px 0 16px; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1; }
.story-sticky p { color: var(--color-text-soft); line-height: 1.7; font-size: 1.1rem; }
.story-stack { display: grid; gap: 26px; }
.story-card {
  min-height: 260px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 183, 3, 0.13), transparent 42%),
    rgba(2, 48, 71, 0.66);
  box-shadow: var(--shadow-soft);
}
.story-index { color: var(--amber-flame); font-size: 4rem; font-weight: 900; line-height: 1; opacity: .82; }
.story-card h3 { margin: 16px 0 12px; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.story-card p { color: var(--color-text-soft); line-height: 1.7; }
.mini-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.mini-flow span {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-green), var(--amber-flame));
  animation: fillBlink 2.8s ease-in-out infinite;
}
.mini-flow span:nth-child(2) { animation-delay: 250ms; }
.mini-flow span:nth-child(3) { animation-delay: 500ms; }
@keyframes fillBlink { 0%, 100% { opacity: .35; transform: scaleX(.7); transform-origin: left; } 50% { opacity: 1; transform: scaleX(1); } }
html[dir="rtl"] .mini-flow span { transform-origin: right; }

.playground-section { background: rgba(1, 17, 29, 0.36); }
.playground-card {
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(142, 202, 230, 0.12), transparent 30%),
    linear-gradient(315deg, rgba(251, 133, 0, 0.14), transparent 38%),
    rgba(2, 48, 71, 0.74);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
}
.playground-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--sky-blue-light), var(--amber-flame), var(--princeton-orange));
}
.playground-header { display: flex; justify-content: space-between; gap: 16px; color: var(--color-text-muted); font-weight: 800; margin-bottom: 18px; }
.playground-header strong { color: var(--amber-flame); }
.playground-card h3 { margin: 0 0 22px; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.05; }
.before-after { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.before-after > div {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 18px;
  background: rgba(1, 24, 39, 0.52);
}
.label {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 12px;
}
.label.bad { color: var(--princeton-orange); background: rgba(251, 133, 0, 0.14); }
.label.good { color: var(--deep-space-blue); background: var(--gradient-primary-cta); }
.automation-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.automation-path span {
  border: 1px solid rgba(255, 183, 3, 0.35);
  border-radius: 8px;
  padding: 12px 10px;
  color: var(--color-text);
  background: rgba(255, 183, 3, 0.11);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  animation: pathPulse 3.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 180ms);
}
@keyframes pathPulse { 0%, 100% { transform: translateY(0); border-color: rgba(255, 183, 3, 0.22); } 50% { transform: translateY(-5px); border-color: rgba(142, 202, 230, 0.58); } }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease var(--reveal-delay, 0ms), transform 700ms ease var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5%; right: 5%; top: 28px; height: 2px; background: linear-gradient(90deg, var(--sky-blue-light), var(--amber-flame)); opacity: .45; }
.step { position: relative; z-index: 1; }
.step-number { width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; background: var(--gradient-primary-cta); color: var(--deep-space-blue); font-weight: 900; margin-bottom: 16px; }
.faq-item { border: 1px solid var(--color-border); border-radius: 8px; margin-bottom: 10px; overflow: hidden; background: rgba(2, 48, 71, 0.48); }
.faq-question { width: 100%; border: 0; background: transparent; color: var(--color-text); padding: 18px; text-align: left; font-weight: 900; display: flex; justify-content: space-between; }
html[dir="rtl"] .faq-question { text-align: right; }
.faq-answer { display: none; padding: 0 18px 18px; color: var(--color-text-soft); line-height: 1.65; }
.faq-item.open .faq-answer { display: block; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: none; background: rgba(1, 24, 39, 0.78); backdrop-filter: blur(10px); padding: 24px; align-items: center; justify-content: center; }
.modal-backdrop.open { display: flex; }
.modal-panel { width: min(960px, 100%); max-height: 86vh; overflow: auto; background: var(--color-surface-strong); }
.modal-header { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.close-btn { border: 1px solid var(--color-border); background: rgba(142, 202, 230, 0.08); color: var(--color-text); border-radius: 999px; width: 38px; height: 38px; }

.widget-rail { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column-reverse; gap: 10px; align-items: flex-end; }
html[dir="rtl"] .widget-rail { right: auto; left: 22px; align-items: flex-start; }
.float-btn { width: 52px; height: 52px; border-radius: 999px; border: 1px solid var(--color-border); background: var(--gradient-secondary-accent); color: var(--deep-space-blue); font-weight: 900; box-shadow: var(--shadow-soft); display: grid; place-items: center; }
.widget-rail .float-btn:not(:first-child) {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(.92);
  transition: opacity 180ms ease, transform 180ms ease;
}
.widget-rail:hover .float-btn,
.widget-rail:focus-within .float-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.whatsapp { background: #25d366; color: #062615; }
.whatsapp-main {
  --whatsapp-green: #22c55e;
  --whatsapp-green-deep: #16a34a;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: linear-gradient(135deg, #24d366 0%, var(--whatsapp-green-deep) 100%);
  border: 2px solid rgba(142, 202, 230, 0.28);
  box-shadow:
    0 0 0 11px rgba(2, 48, 71, 0.8),
    0 0 0 15px rgba(255, 183, 3, 0.2),
    0 22px 48px rgba(1, 24, 39, 0.38),
    0 0 34px rgba(34, 197, 94, 0.34);
  color: #ffffff;
  isolation: isolate;
  overflow: visible;
  position: relative;
  transition: box-shadow 220ms ease, transform 220ms ease, background 220ms ease;
}
.whatsapp-main::before,
.whatsapp-main::after {
  content: "";
  border-radius: inherit;
  pointer-events: none;
  position: absolute;
}
.whatsapp-main::before {
  inset: -18px;
  background: rgba(34, 197, 94, 0.28);
  filter: blur(1px);
  z-index: -2;
  animation: whatsappPing 2.2s ease-out infinite;
}
.whatsapp-main::after {
  inset: -30px;
  background:
    radial-gradient(circle, rgba(34, 197, 94, 0.17), rgba(2, 48, 71, 0.2) 42%, transparent 68%),
    radial-gradient(circle at 72% 28%, rgba(255, 183, 3, 0.18), transparent 34%);
  z-index: -3;
  animation: whatsappAura 4.8s ease-in-out infinite;
}
.whatsapp-main:hover,
.whatsapp-main:focus-visible {
  background: linear-gradient(135deg, #28df70 0%, #13a04a 100%);
  box-shadow:
    0 0 0 11px rgba(2, 48, 71, 0.88),
    0 0 0 17px rgba(255, 183, 3, 0.28),
    0 25px 54px rgba(1, 24, 39, 0.44),
    0 0 46px rgba(34, 197, 94, 0.48);
  transform: translateY(-3px) scale(1.04);
}
.whatsapp-mark {
  align-items: center;
  display: inline-flex;
  filter: drop-shadow(0 3px 8px rgba(1, 24, 39, 0.22));
  height: 34px;
  justify-content: center;
  position: relative;
  width: 34px;
}
.whatsapp-mark svg {
  display: block;
  fill: none;
  height: 100%;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.9;
  width: 100%;
}
@keyframes whatsappPing {
  0% { opacity: .52; transform: scale(.78); }
  72%, 100% { opacity: 0; transform: scale(1.48); }
}
@keyframes whatsappAura {
  0%, 100% { opacity: .66; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1.06); }
}
.chat-panel {
  position: fixed;
  right: 88px;
  bottom: 22px;
  width: min(380px, calc(100% - 44px));
  border: 1px solid var(--color-border);
  background: var(--color-surface-strong);
  border-radius: 8px;
  padding: 18px;
  z-index: 95;
  display: none;
  box-shadow: var(--shadow-soft);
}
.chat-panel.open { display: block; }
.chat-log { max-height: 250px; overflow: auto; display: grid; gap: 10px; margin: 12px 0; }
.message { padding: 10px 12px; border-radius: 8px; background: rgba(142, 202, 230, 0.08); color: var(--color-text-soft); line-height: 1.45; }
.message.user { background: rgba(255, 183, 3, 0.16); color: var(--color-text); }
.accessibility-panel { position: fixed; right: 88px; bottom: 22px; width: 280px; display: none; z-index: 95; }
html[dir="rtl"] .accessibility-panel { right: auto; left: 88px; }
.accessibility-panel.open { display: block; }

.footer { border-top: 1px solid var(--color-border); padding: 58px 0 30px; background: var(--color-bg-deep); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; }
.footer a { color: var(--color-text-muted); display: block; margin: 9px 0; }
.notice { color: var(--color-text-muted); font-size: 13px; line-height: 1.6; }
.status {
  margin-top: 12px;
  color: var(--amber-flame);
  font-weight: 800;
  min-height: 22px;
}
.status.success {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dff8c8;
  border: 1px solid rgba(142, 202, 230, 0.34);
  border-radius: 8px;
  background: rgba(33, 158, 188, 0.14);
  padding: 12px 14px;
}
.status.error { color: var(--amber-flame); }
.success-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-green), var(--amber-flame));
  position: relative;
  box-shadow: 0 10px 24px rgba(33, 158, 188, 0.26);
}
.success-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 6px;
  height: 11px;
  border: solid var(--deep-space-blue);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.page-hero { padding: 136px 0 64px; text-align: center; }
.article-body { max-width: 820px; margin: 0 auto; color: var(--color-text-soft); font-size: 1.08rem; line-height: 1.85; }
.hidden { display: none !important; }
.large-text { font-size: 112%; }
.high-contrast { --color-bg: #000b12; --color-text: #ffffff; --color-text-soft: #ffffff; --color-border: rgba(255,255,255,.42); }

@media (max-width: 980px) {
  .hero-grid, .split, .grid.two, .grid.three, .grid.four, .footer-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .story-sticky { position: static; }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { left: 27px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  html[dir="rtl"] .timeline::before { right: 27px; left: auto; }
  .nav-links, .nav-actions { display: none; }
  .mobile-toggle { display: inline-flex; }
  .mobile-menu.open { display: grid; gap: 8px; padding: 0 20px 18px; }
  .mobile-menu a { padding: 12px; border: 1px solid var(--color-border); border-radius: 8px; }
  .hero { padding-top: 104px; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 32px, 1280px); }
  .section { padding: 72px 0; }
  .search-row { flex-direction: column; align-items: stretch; }
  .hero h1 { font-size: 3rem; }
  .rotating-caption { align-items: flex-start; border-radius: 14px; flex-direction: column; }
  .result-grid, .dash-cards, .node-row, .before-after, .automation-path { grid-template-columns: 1fr; }
  .widget-rail { right: 14px; top: auto; bottom: 14px; }
  html[dir="rtl"] .widget-rail { right: auto; left: 14px; }
  .whatsapp-main { width: 68px; height: 68px; }
  .whatsapp-main::after { inset: -24px; }
  .chat-panel, .accessibility-panel { right: 14px; top: auto; bottom: 82px; width: calc(100% - 28px); }
  html[dir="rtl"] .accessibility-panel { right: auto; left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
