/* ============================================
   ZAHR — zahr.cloud
   Modern, professional HRIS marketing site
   ============================================ */

:root {
  /* Brand — pulled from the ZA logo gradient */
  --navy-950: #050d22;
  --navy-900: #081535;
  --navy-800: #0a1f4c;
  --navy-700: #102a66;
  --navy-600: #1842a8;
  --blue-500: #2a6cff;
  --blue-400: #4a8bff;
  --blue-300: #85b6ff;
  --blue-100: #e6efff;

  --ink-900: #0b1733;
  --ink-700: #2b3656;
  --ink-500: #5a6685;
  --ink-400: #8590ac;
  --ink-300: #b8c0d4;
  --ink-200: #dfe4ef;
  --ink-100: #eef1f8;
  --ink-50:  #f6f8fc;
  --white:   #ffffff;

  --success: #16a34a;
  --success-bg: rgba(22,163,74,.10);

  --grad-brand: linear-gradient(135deg, #0a1f4c 0%, #1842a8 45%, #2a6cff 100%);
  --grad-text:  linear-gradient(120deg, #0a1f4c 0%, #2a6cff 60%, #4a8bff 100%);
  --grad-hero:  radial-gradient(1200px 700px at 80% -10%, rgba(42,108,255,.20), transparent 60%),
                radial-gradient(900px 600px at -10% 30%, rgba(24,66,168,.18), transparent 60%);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(10,31,76,.06), 0 1px 1px rgba(10,31,76,.04);
  --shadow:    0 8px 24px -8px rgba(10,31,76,.18), 0 2px 6px rgba(10,31,76,.06);
  --shadow-lg: 0 30px 80px -30px rgba(10,31,76,.35), 0 10px 30px -15px rgba(10,31,76,.18);

  --container: 1200px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ============ RESET ============ */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input { font: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5 {
  font-family: 'Inter', system-ui;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: rgba(42,108,255,.08);
  color: var(--navy-800);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid rgba(42,108,255,.15);
}
.eyebrow--center { margin: 0 auto; }
.eyebrow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(42,108,255,.15);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn--lg {
  padding: 14px 24px;
  font-size: 15px;
}
.btn--primary {
  background: var(--grad-brand);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(42,108,255,.6), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgba(42,108,255,.65), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn--secondary {
  background: var(--white);
  color: var(--navy-800);
  border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover {
  border-color: var(--navy-800);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink-700);
}
.btn--ghost:hover { color: var(--navy-800); }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--ink-200);
  background: rgba(255,255,255,.92);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.brand__name {
  font-size: 19px;
  color: var(--navy-800);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
  position: relative;
  transition: color .2s var(--ease);
}
.nav__links a:hover { color: var(--navy-800); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.nav__burger span {
  width: 18px; height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfcfe 0%, #f3f6fd 100%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10,31,76,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,31,76,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 70%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
}
.hero__glow--1 {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(42,108,255,.45), transparent 70%);
}
.hero__glow--2 {
  width: 500px; height: 500px;
  bottom: -100px; left: -200px;
  background: radial-gradient(circle, rgba(24,66,168,.35), transparent 70%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  padding-bottom: 60px;
}
.hero__title {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 900;
  margin: 24px 0 20px;
  letter-spacing: -0.035em;
}
.hero__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-500);
  max-width: 540px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  margin: 32px 0 36px;
  flex-wrap: wrap;
}
.hero__trust {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust__avatars { display: flex; }
.trust__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 13px;
  border: 2px solid white;
  margin-left: -8px;
  box-shadow: var(--shadow-sm);
}
.trust__avatar:first-child { margin-left: 0; }
.trust__text { font-size: 13px; color: var(--ink-500); line-height: 1.4; }
.trust__text strong { color: var(--ink-900); font-weight: 600; }

/* ----- Hero card (product preview) ----- */
.hero__right {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero__card {
  width: 100%;
  max-width: 520px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ink-100);
  overflow: hidden;
  transform: perspective(2000px) rotateY(-6deg) rotateX(2deg);
  transform-origin: center;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: perspective(2000px) rotateY(-6deg) rotateX(2deg) translateY(0); }
  50%      { transform: perspective(2000px) rotateY(-6deg) rotateX(2deg) translateY(-10px); }
}
.hero__card-top {
  padding: 16px 18px;
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--ink-100);
}
.hero__card-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hero__card-tab {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
  border-radius: 8px;
  background: var(--ink-50);
}
.hero__card-tab.is-active {
  background: rgba(42,108,255,.12);
  color: var(--blue-500);
}
.hero__card-body {
  padding: 20px;
  display: grid;
  gap: 18px;
}
.hero__profile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}
.hero__avatar {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--ink-50);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid var(--ink-100);
}
.hero__profile-name { font-weight: 700; font-size: 15px; }
.hero__profile-role { font-size: 12px; color: var(--ink-500); }
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.badge--success {
  background: var(--success-bg);
  color: var(--success);
}

.hero__clock {
  background: linear-gradient(135deg, rgba(22,163,74,.08) 0%, rgba(22,163,74,.02) 100%);
  border: 1px solid rgba(22,163,74,.2);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-align: center;
}
.hero__clock-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--success);
  text-transform: uppercase;
}
.hero__clock-time {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  margin-top: 4px;
}
.hero__clock-time em {
  font-style: normal;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-500);
  margin-left: 4px;
}
.hero__clock-day { font-size: 12px; color: var(--ink-500); margin-bottom: 12px; }
.hero__punch {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 10px;
  background: #ef4444;
  color: white;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 14px -4px rgba(239,68,68,.5);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.hero__stat {
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}
.hero__stat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero__stat-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-900);
  margin-top: 2px;
}
.hero__stat-value span {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-400);
  margin-left: 2px;
}

.hero__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--ink-100);
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
  box-shadow: var(--shadow);
  animation: chip 6s ease-in-out infinite;
}
.hero__chip--1 { top: 20%; left: -10px; animation-delay: -1.5s; }
.hero__chip--2 { bottom: 18%; right: -10px; animation-delay: -3s; }
@keyframes chip {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}
.hero__chip-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============ LOGOS ============ */
.logos {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-100);
}
.logos__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.logos__row {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1;
  flex-wrap: wrap;
}
.logos__item {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: var(--ink-300);
  transition: color .2s var(--ease);
}
.logos__item:hover { color: var(--ink-500); }

/* ============ SECTIONS ============ */
.section { padding: 120px 0; position: relative; }
.section--features { background: var(--white); }
.section--modules  { background: linear-gradient(180deg, var(--ink-50) 0%, #fff 100%); }
.section--stats    { padding: 60px 0; }
.section--workflows{ background: var(--white); }
.section--security {
  background: var(--navy-950);
  color: #d6dcec;
  overflow: hidden;
}
.section--cta { padding: 80px 0 120px; background: var(--white); }

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section__head .eyebrow { margin: 0 auto; }
.section__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 16px 0 16px;
}
.section__title--sm { font-size: clamp(28px, 3vw, 40px); }
.section__title--left { text-align: left; }
.section__sub {
  font-size: 18px;
  color: var(--ink-500);
  line-height: 1.6;
}
.section__sub--sm  { font-size: 16px; }
.section__sub--left{ text-align: left; }

/* ============ FEATURES GRID ============ */
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 0% 0%, rgba(42,108,255,.06), transparent 60%);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(42,108,255,.25);
}
.feature:hover::before { opacity: 1; }
.feature__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad-brand);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 6px 14px -6px rgba(42,108,255,.6);
}
.feature h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature p {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.55;
}

/* ============ MODULES ============ */
.module {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--ink-100);
}
.module:last-child { border-bottom: 0; }
.module--reverse .module__copy { order: 2; }
.module--reverse .module__visual { order: 1; }

.module__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-500);
  padding: 6px 12px;
  background: rgba(42,108,255,.08);
  border-radius: 6px;
  margin-bottom: 16px;
}
.module__title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.module__desc {
  font-size: 17px;
  color: var(--ink-500);
  margin-bottom: 24px;
  line-height: 1.6;
}
.module__list {
  list-style: none;
  display: grid;
  gap: 12px;
}
.module__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-700);
}
.check {
  flex: 0 0 20px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--grad-brand);
  position: relative;
  margin-top: 2px;
}
.check::after {
  content: "";
  position: absolute;
  left: 6px; top: 4px;
  width: 5px; height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.module__visual {
  position: relative;
}
.module__visual--stack {
  position: relative;
  min-height: 460px;
}
.module__visual--stack .screen:first-child {
  position: absolute;
  top: 0; left: 0;
  width: 78%;
  z-index: 1;
}
.module__visual--stack .screen:last-child {
  position: absolute;
  bottom: 0; right: 0;
  width: 78%;
  z-index: 2;
}

/* ============ POLICY CARD ============ */
.policy-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.policy-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-brand);
}
.policy-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink-100);
  margin-bottom: 20px;
}
.policy-card__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.policy-card__sub {
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink-500);
  margin-top: 4px;
}
.policy-card__section {
  margin-bottom: 20px;
}
.policy-card__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-400);
  margin-bottom: 10px;
}
.policy-card__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip-mini {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-700);
}
.chip-mini--blue {
  background: rgba(42,108,255,.08);
  border-color: rgba(42,108,255,.2);
  color: var(--navy-800);
}

.accrual {
  background: linear-gradient(135deg, rgba(42,108,255,.04), rgba(42,108,255,.01));
  border: 1px solid rgba(42,108,255,.15);
  border-radius: 12px;
  padding: 14px 16px;
}
.accrual__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  color: var(--ink-500);
}
.accrual__row strong {
  font-weight: 700;
  color: var(--ink-900);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
}
.accrual__row + .accrual__row { border-top: 1px dashed var(--ink-100); }
.accrual__tier {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--ink-100);
}
.accrual__tier-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--ink-100);
}
.accrual__tier-bar span:nth-child(1) { background: var(--blue-300); }
.accrual__tier-bar span:nth-child(2) { background: var(--blue-500); }
.accrual__tier-bar span:nth-child(3) { background: var(--navy-800); }
.accrual__tier-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--ink-500);
  font-weight: 600;
  gap: 4px;
}
.accrual__tier-labels span {
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

.policy-card__timeline {
  display: flex;
  align-items: center;
  margin-top: 6px;
}
.timeline__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.timeline__dot--past {
  background: white;
  border: 2px solid var(--blue-300);
}
.timeline__dot--current {
  background: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(42,108,255,.2), 0 0 0 8px rgba(42,108,255,.08);
}
.timeline__dot--future {
  background: white;
  border: 2px dashed var(--ink-300);
}
.timeline__seg {
  flex: 1;
  height: 2px;
  background: var(--blue-300);
}
.timeline__seg--dashed {
  background: repeating-linear-gradient(to right, var(--ink-300), var(--ink-300) 4px, transparent 4px, transparent 8px);
}
.policy-card__timeline-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-500);
  text-align: center;
  font-weight: 600;
  gap: 4px;
}
.policy-card__timeline-labels span {
  flex: 1;
  line-height: 1.4;
}
.policy-card__timeline-labels b {
  color: var(--blue-500);
}
.policy-card__timeline-labels em {
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-400);
  font-weight: 500;
}

/* ============ SCREEN (browser frame) ============ */
.screen {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ink-100);
  overflow: hidden;
  transition: transform .3s var(--ease);
}
.screen:hover { transform: translateY(-4px); }
.screen--sm { box-shadow: var(--shadow); }
.screen--shift { transform: translate(-10px, -10px); }
.screen--shift-right { transform: translate(10px, 10px); }

.screen__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f6f7fb;
  border-bottom: 1px solid var(--ink-100);
}
.screen__chrome span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ink-200);
}
.screen__chrome span:first-child { background: #ff6259; }
.screen__chrome span:nth-child(2){ background: #ffbd2e; }
.screen__chrome span:nth-child(3){ background: #28c941; }
.screen__url {
  margin-left: 12px;
  flex: 1;
  background: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-500);
  border: 1px solid var(--ink-100);
}
.screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============ STATS ============ */
.stats {
  background: var(--grad-brand);
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  color: white;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.12), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255,255,255,.08), transparent 40%);
  pointer-events: none;
}
.stats__head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;
}
.stats__head .section__title {
  color: white;
  margin-top: 0;
}
.stats__head .section__sub {
  color: rgba(255,255,255,.75);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.stat {
  text-align: center;
  padding: 24px 12px;
  border-left: 1px solid rgba(255,255,255,.15);
}
.stat:first-child { border-left: 0; }
.stat__value {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: white;
  line-height: 1;
}
.stat__value span {
  font-size: 26px;
  font-weight: 700;
  margin-left: 2px;
  color: rgba(255,255,255,.7);
}
.stat__label {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  margin-top: 10px;
  line-height: 1.4;
}

/* ============ WORKFLOWS ============ */
.workflow {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: stretch;
  gap: 0;
  margin-bottom: 56px;
}
.workflow__step {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: left;
  position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.workflow__step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.workflow__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-500);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.workflow__step h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.workflow__step p {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.55;
}
.workflow__connector {
  align-self: center;
  height: 2px;
  background: linear-gradient(to right, var(--ink-200), var(--blue-500));
  position: relative;
}
.workflow__connector::after {
  content: "";
  position: absolute;
  right: -2px; top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px; height: 8px;
  border-top: 2px solid var(--blue-500);
  border-right: 2px solid var(--blue-500);
}

.workflow__visual {
  max-width: 880px;
  margin: 0 auto;
}

/* ============ SECURITY ============ */
.security__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.section--security .eyebrow {
  background: rgba(42,108,255,.12);
  border-color: rgba(42,108,255,.25);
  color: var(--blue-300);
}
.section--security .section__title { color: white; }
.section--security .section__sub   { color: #97a3c2; max-width: 520px; }

.security__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.pill {
  padding: 8px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #c8cfdf;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.pill:hover {
  background: rgba(42,108,255,.18);
  border-color: rgba(42,108,255,.4);
  color: white;
}

.security__visual {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lock {
  width: 140px;
  height: 140px;
  background: var(--grad-brand);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 30px 60px -20px rgba(42,108,255,.6), inset 0 1px 0 rgba(255,255,255,.2);
  position: relative;
  z-index: 4;
}
.security__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(74,139,255,.25);
}
.security__ring--1 {
  width: 220px; height: 220px;
  animation: pulse 4s ease-out infinite;
}
.security__ring--2 {
  width: 320px; height: 320px;
  animation: pulse 4s ease-out infinite;
  animation-delay: 1.3s;
}
.security__ring--3 {
  width: 420px; height: 420px;
  animation: pulse 4s ease-out infinite;
  animation-delay: 2.6s;
}
@keyframes pulse {
  0%   { opacity: .6; transform: scale(.95); }
  100% { opacity: 0;  transform: scale(1.15); }
}

/* ============ CTA ============ */
.cta {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 80px 48px;
  text-align: center;
  isolation: isolate;
}
.cta__bg {
  position: absolute;
  inset: 0;
  background: var(--grad-brand);
  z-index: -1;
}
.cta__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.15), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(255,255,255,.1), transparent 40%);
}
.cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}
.cta h2 {
  color: white;
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.cta p {
  color: rgba(255,255,255,.85);
  font-size: 18px;
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto 24px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
  color: white;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.contact-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.32);
}
.contact-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.contact-card__body { flex: 1; min-width: 0; }
.contact-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 4px;
}
.contact-card__value {
  font-size: 16px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
  word-break: break-all;
}
.contact-card__arrow {
  flex-shrink: 0;
  color: rgba(255,255,255,.6);
  transition: transform .2s var(--ease), color .2s var(--ease);
}
.contact-card:hover .contact-card__arrow {
  color: white;
  transform: translateX(4px);
}
.cta__meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 8px;
  color: rgba(255,255,255,.8);
  font-size: 13px;
  font-weight: 500;
}
.cta__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--navy-950);
  color: #a8b1c8;
  padding: 80px 0 30px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 3fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer__brand p {
  margin-top: 16px;
  font-size: 14px;
  color: #79829c;
  max-width: 320px;
  line-height: 1.6;
}
.footer__brand .brand__name { color: white; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col h5 {
  color: white;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.footer__col a {
  font-size: 14px;
  color: #a8b1c8;
  transition: color .15s var(--ease);
}
.footer__col a:hover { color: white; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: #6c7596;
}
.footer__legal {
  display: flex;
  gap: 24px;
}
.footer__legal a:hover { color: white; }

/* ============ LEGAL / PRIVACY PAGE ============ */
.legal-hero {
  position: relative;
  padding: 90px 0 60px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f3f6fd 100%);
  overflow: hidden;
}
.legal-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.legal-hero__inner {
  position: relative;
  max-width: 820px;
  text-align: left;
}
.legal-hero .eyebrow { margin-bottom: 18px; }
.legal-hero__title {
  font-size: clamp(40px, 5.5vw, 60px);
  font-weight: 900;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
.legal-hero__sub {
  font-size: 18px;
  color: var(--ink-500);
  max-width: 680px;
  line-height: 1.6;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
  font-size: 14px;
  color: var(--ink-500);
  padding-top: 24px;
  border-top: 1px solid var(--ink-100);
}
.legal-meta strong { color: var(--ink-900); font-weight: 600; }

.legal {
  padding: 64px 0 120px;
  background: var(--white);
}
.legal__layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}

/* TOC sidebar */
.legal__toc {
  position: sticky;
  top: 92px;
  padding: 24px;
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.legal__toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 14px;
}
.legal__toc nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.legal__toc nav a {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
  border-left: 2px solid transparent;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.legal__toc nav a:hover {
  background: white;
  color: var(--navy-800);
  border-left-color: var(--blue-300);
}
.legal__toc nav a.is-active {
  background: white;
  color: var(--navy-800);
  border-left-color: var(--blue-500);
  font-weight: 600;
}

/* Content */
.legal__content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-700);
  max-width: 760px;
}
.legal__content section {
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--ink-100);
  scroll-margin-top: 92px;
}
.legal__content section:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.legal__content h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-bottom: 14px;
}
.legal__content h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 22px 0 8px;
}
.legal__content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 6px;
}
.legal__content p { margin-bottom: 14px; }
.legal__content a {
  color: var(--blue-500);
  font-weight: 500;
  border-bottom: 1px solid rgba(42,108,255,.3);
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.legal__content a:hover {
  color: var(--navy-800);
  border-bottom-color: var(--navy-800);
}
.legal__content strong { color: var(--ink-900); font-weight: 600; }
.legal__content ul {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 18px;
  display: grid;
  gap: 8px;
}
.legal__content ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
}
.legal__content ul li::before {
  content: "";
  position: absolute;
  left: 6px; top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}
.legal__content ul.tick-list li::before {
  content: "";
  left: 2px; top: 7px;
  width: 12px; height: 12px;
  background: var(--grad-brand);
  border-radius: 4px;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><polyline points='20 6 9 17 4 12' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><polyline points='20 6 9 17 4 12' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}
.legal__content ul.tick-list li { padding-left: 24px; }

.callout {
  background: linear-gradient(135deg, rgba(42,108,255,.05), rgba(42,108,255,.01));
  border: 1px solid rgba(42,108,255,.18);
  border-left: 3px solid var(--blue-500);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink-700);
  margin: 18px 0;
}
.callout strong { color: var(--navy-800); }
.callout em {
  font-style: normal;
  font-weight: 600;
  color: var(--navy-800);
  background: rgba(42,108,255,.08);
  padding: 1px 6px;
  border-radius: 4px;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0 22px;
}
.security-item {
  padding: 18px;
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: 12px;
}
.security-item h4 { margin-bottom: 6px; color: var(--navy-800); }
.security-item p { font-size: 14px; color: var(--ink-500); margin: 0; line-height: 1.5; }

.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.contact-box__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.contact-box__row:hover {
  transform: translateY(-2px);
  border-color: rgba(42,108,255,.25);
  box-shadow: var(--shadow);
}
.contact-box__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--grad-brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-box__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 2px;
}
.contact-box__row a {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-800);
  border-bottom: 0;
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; padding-bottom: 40px; }
  .hero__right { order: -1; }
  .hero__card { max-width: 440px; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .module { grid-template-columns: 1fr; gap: 40px; padding: 56px 0; }
  .module--reverse .module__copy { order: 1; }
  .module--reverse .module__visual { order: 2; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat { border-left: 0; padding: 16px; }
  .workflow {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .workflow__connector { display: none; }
  .security__grid { grid-template-columns: 1fr; gap: 48px; }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .legal__layout { grid-template-columns: 1fr; gap: 32px; }
  .legal__toc { position: static; max-height: none; }
  .legal__toc nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .security-grid { grid-template-columns: 1fr; }
  .contact-box { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .nav__links { display: none; }
  .nav__cta .btn--ghost { display: none; }
  .nav__burger { display: flex; }
  .features__grid { grid-template-columns: 1fr; }
  .stats { padding: 40px 24px; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat__value { font-size: 36px; }
  .stat__value span { font-size: 18px; }
  .cta { padding: 56px 24px; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card__value { font-size: 15px; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero__chip--1, .hero__chip--2 { display: none; }
  .module__visual--stack { min-height: auto; }
  .module__visual--stack .screen:first-child,
  .module__visual--stack .screen:last-child {
    position: relative;
    width: 100%;
    transform: none;
  }
  .module__visual--stack .screen:last-child { margin-top: 16px; }
  .logos { flex-direction: column; align-items: flex-start; gap: 16px; }
}
