/* HUMIS — marketing site styles
   Colours, font, radii and shadows follow the HUMIS app's own design tokens
   (smart-hrms-frontend/src/styles/index.css) so the site and product read as one brand. */

:root {
  --primary: #6c5ce7;
  --primary-hover: #5b4bd6;
  --primary-deep: #4b3fd1;
  --primary-soft: #eeebff;
  --page: #f5f6fa;
  --card: #ffffff;
  --border: #eef0f4;
  --border-strong: #e2e5ec;
  --heading: #1a1d29;
  --body: #4b5563;
  --muted: #8b90a0;
  --tint-purple: #eeebff;
  --tint-green: #e8f8ef;
  --tint-orange: #fff3e5;
  --tint-red: #fdecec;
  --tint-blue: #e7f0ff;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --footer: #1a1d29;
  /* logo accents: blue -> teal, as in the HUMIS mark */
  --brand-blue: #1565e6;
  --brand-teal: #12d6a8;
  --teal-soft: #e3f9f3;
  --teal-text: #0f766e;
  --grad-brand: linear-gradient(135deg, #1565e6 0%, #12d6a8 100%);
  /* darker status shades for text on tints (AA) */
  --success-text: #15803d;
  --warning-text: #b45309;
  --danger-text: #b91c1c;
  --info-text: #1d4ed8;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-control: 8px;
  --r-card: 12px;
  --r-lg: 20px;
  --shadow-card: 0 1px 2px rgb(16 24 40 / .04), 0 1px 3px rgb(16 24 40 / .06);
  --shadow-popover: 0 4px 6px -1px rgb(16 24 40 / .08), 0 10px 20px -4px rgb(16 24 40 / .1);
  --shadow-float: 0 2px 4px rgb(26 22 80 / .08), 0 30px 60px -20px rgb(26 22 80 / .45);
  --grad: linear-gradient(135deg, #6c5ce7 0%, #5b4bd6 45%, #4b3fd1 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; color: var(--heading); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible, .final :focus-visible, .sec-wide :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--r-control);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--r-control); border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -6px rgb(108 92 231 / .6); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-line { border-color: var(--border-strong); color: var(--heading); background: var(--card); }
.btn-line:hover { border-color: var(--primary); color: var(--primary-hover); }
.btn-ghost { min-height: 40px; padding: 0 14px; color: var(--heading); font-size: .9375rem; font-weight: 600; }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary-hover); }
/* On violet backgrounds */
.btn-white { background: #fff; color: var(--primary-hover); box-shadow: 0 10px 24px -10px rgb(20 10 80 / .5); }
.btn-white:hover { background: var(--primary-soft); }
.btn-line-light { border-color: rgb(255 255 255 / .6); color: #fff; }
.btn-line-light:hover { border-color: #fff; background: rgb(255 255 255 / .12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-teal) 45%, var(--primary));
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }

.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--heading); text-decoration: none;
  font-weight: 800; font-size: 1.375rem; letter-spacing: .04em;
}
.wordmark { flex: none; line-height: 0; border-radius: var(--r-control); }
.wordmark img { height: 52px; width: auto; }
.wordmark-foot img { height: 100px; width: auto; }

/* The lockup's own tagline is ~10% of its height — about 5px in a header — so the header
   carries it as real text beside the mark instead: crisp at any density, and aria-hidden
   because the logo's alt already says it. Shown only where the row has room for it: wide
   screens, and the tablet band where the nav links have folded into the menu button. */
.brand-tagline {
  display: none;
  padding-left: 12px; border-left: 1px solid var(--border-strong);
  font-size: .75rem; line-height: 1.3; font-weight: 600; letter-spacing: .01em;
  color: var(--body); white-space: nowrap;
}
@media (min-width: 1180px), (min-width: 681px) and (max-width: 960px) {
  .site-header .brand-tagline { display: block; }
}

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: var(--r-control);
  text-decoration: none; font-size: .9375rem; font-weight: 500; color: var(--body);
}
.site-nav a:hover { color: var(--primary-hover); background: var(--primary-soft); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--grad);
  color: #fff;
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
}
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none;
}
.hero::before { width: 520px; height: 520px; right: -120px; top: -160px; background: rgb(18 214 168 / .3); }
.hero::after { width: 560px; height: 560px; left: -200px; bottom: -280px; background: rgb(21 101 230 / .45); }

.hero-grid {
  display: grid; gap: clamp(40px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
}
.acronym {
  display: inline-flex; flex-wrap: wrap; gap: 4px 12px;
  margin-bottom: 24px; padding: 6px 14px;
  border-radius: 999px; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .25);
  font-size: .875rem; color: #fff; font-weight: 500;
}
.acronym b { font-weight: 800; }
.acronym::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-teal); align-self: center; box-shadow: 0 0 0 3px rgb(18 214 168 / .3); }

h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  max-width: 12ch;
  text-wrap: balance;
}
.lede {
  margin-top: 24px; max-width: 34rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; color: #fff;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn-primary { background: #fff; color: var(--primary-hover); box-shadow: 0 10px 24px -10px rgb(20 10 80 / .5); }
.hero .btn-primary:hover { background: var(--primary-soft); }
.hero .btn-line { background: transparent; border-color: rgb(255 255 255 / .6); color: #fff; }
.hero .btn-line:hover { border-color: #fff; background: rgb(255 255 255 / .12); }
.hero-note { margin-top: 20px; font-size: .9375rem; color: #fff; }
.hero-note a { font-weight: 600; text-underline-offset: 3px; }

/* ---------- Mockup (styled like the app) ---------- */
.mock { position: relative; padding-bottom: 120px; color: var(--body); }
.mock-frame {
  background: var(--page);
  border-radius: 14px;
  box-shadow: var(--shadow-float);
  overflow: hidden;
  font-size: 12px; line-height: 1.3;
}
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: var(--card); border-bottom: 1px solid var(--border);
}
.mock-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.mock-bar .dot:nth-child(1) { background: #fca5a5; }
.mock-bar .dot:nth-child(2) { background: #fcd34d; }
.mock-bar .dot:nth-child(3) { background: #86efac; }
.mock-url {
  margin-left: 10px; padding: 3px 10px; border-radius: 6px; background: var(--page);
  color: var(--body); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.mock-body { display: flex; min-height: 320px; }
.mock-side {
  flex: 0 0 128px; background: var(--card); border-right: 1px solid var(--border);
  padding: 12px 8px; display: flex; flex-direction: column; gap: 4px;
}
.ms-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: var(--r-control); color: var(--body); font-weight: 500; }
.ms-item i { width: 14px; height: 14px; border-radius: 4px; background: var(--border-strong); flex: none; }
.ms-item em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-item.on { background: var(--primary-soft); color: var(--primary-hover); font-weight: 600; }
.ms-item.on i { background: var(--primary); }
.mock-main { flex: 1; min-width: 0; padding: 14px; }
.mock-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.mock-head strong { display: block; font-size: 15px; font-weight: 700; color: var(--heading); }
.mock-head span { color: var(--body); }
.mock-legend { display: flex; gap: 10px; flex-wrap: wrap; }
.mock-legend em { font-style: normal; color: var(--body); display: inline-flex; align-items: center; gap: 5px; }
.mock-legend em::before { content: ""; width: 9px; height: 9px; border-radius: 3px; }
.mock-legend .s-m::before { background: var(--primary); }
.mock-legend .s-e::before { background: var(--info); }
.mock-legend .s-l::before { background: var(--warning); }

.roster {
  display: grid;
  grid-template-columns: minmax(76px, 1.4fr) repeat(6, minmax(0, 1fr));
  gap: 5px; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: var(--shadow-card); padding: 10px;
}
.rh { color: var(--body); font-size: 11px; font-weight: 500; text-align: center; padding-bottom: 2px; }
.rn { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--heading); white-space: nowrap; overflow: hidden; }
.rn b {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 9px; font-weight: 700;
  background: var(--tint-purple); color: var(--primary-hover);
}
.roster .rn:nth-of-type(3n+1) b { background: var(--tint-blue); color: var(--info-text); }
.roster .rn:nth-of-type(3n+2) b { background: var(--tint-green); color: var(--success-text); }
.c { height: 22px; border-radius: 6px; position: relative; }
.c.s-m { background: var(--primary); }
.c.s-e { background: var(--info); }
.c.s-l { background: var(--warning); }
.c.off { background: repeating-linear-gradient(135deg, var(--border) 0 4px, var(--card) 4px 8px); }
.c.now { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--heading); }
.c.late::after {
  content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--danger); border: 2px solid var(--card);
}
.mock-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.mock-stats div {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: var(--shadow-card); padding: 8px 10px; min-width: 0; position: relative;
}
.mock-stats div::before { content: ""; display: block; width: 18px; height: 18px; border-radius: 6px; margin-bottom: 6px; }
.mock-stats div:nth-child(1)::before { background: var(--tint-green); box-shadow: inset 0 0 0 5px var(--tint-green), inset 0 0 0 9px var(--success); }
.mock-stats div:nth-child(2)::before { background: var(--tint-orange); box-shadow: inset 0 0 0 5px var(--tint-orange), inset 0 0 0 9px var(--warning); }
.mock-stats div:nth-child(3)::before { background: var(--tint-purple); box-shadow: inset 0 0 0 5px var(--tint-purple), inset 0 0 0 9px var(--primary); }
.mock-stats div:nth-child(4)::before { background: var(--tint-red); box-shadow: inset 0 0 0 5px var(--tint-red), inset 0 0 0 9px var(--danger); }
.mock-stats b { display: block; font-size: 18px; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }
.mock-stats span { color: var(--body); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

.chat {
  position: absolute; right: -12px; bottom: 0;
  width: min(300px, 78%);
  background: var(--card); color: var(--body);
  border-radius: 14px; border: 1px solid var(--border);
  padding: 14px;
  font-size: 13px; line-height: 1.4;
  box-shadow: var(--shadow-float);
}
.chat-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--heading); margin-bottom: 10px; }
.spark {
  width: 22px; height: 22px; border-radius: 7px; background: var(--grad-brand); position: relative;
}
.spark::after {
  content: ""; position: absolute; inset: 5px; background: #fff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.msg { padding: 8px 11px; border-radius: 12px; margin-top: 6px; max-width: 92%; }
.msg.me { background: var(--primary); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; width: fit-content; }
.msg.bot { background: var(--page); color: var(--heading); border-bottom-left-radius: 4px; }
.msg.bot b { color: var(--primary-hover); }
.proposal {
  margin-top: 10px; background: var(--primary-soft); color: var(--heading); border-radius: var(--r-card); padding: 10px 12px;
}
.proposal span { display: block; color: var(--primary-hover); font-size: 11px; font-weight: 600; }
.proposal strong { display: block; margin: 2px 0 8px; }
.proposal-actions { display: flex; gap: 6px; }
.proposal-actions em {
  font-style: normal; font-weight: 600; font-size: 12px; padding: 5px 12px; border-radius: var(--r-control);
  background: var(--card); border: 1px solid var(--border-strong); color: var(--heading);
}
.proposal-actions .yes { background: var(--primary); color: #fff; border-color: var(--primary); }

/* One orchestrated load moment: roster fills, then the assistant answers. */
@media (prefers-reduced-motion: no-preference) {
  .roster .c { animation: fill .45s cubic-bezier(.2,.7,.2,1) both; }
  .roster .c:nth-child(7n+2) { animation-delay: .05s; }
  .roster .c:nth-child(7n+3) { animation-delay: .12s; }
  .roster .c:nth-child(7n+4) { animation-delay: .19s; }
  .roster .c:nth-child(7n+5) { animation-delay: .26s; }
  .roster .c:nth-child(7n+6) { animation-delay: .33s; }
  .roster .c:nth-child(7n)   { animation-delay: .40s; }
  .chat { animation: rise .6s cubic-bezier(.2,.7,.2,1) .7s both; }
  .chat .msg, .chat .proposal { animation: appear .35s ease both; }
  .chat .msg:nth-of-type(1) { animation-delay: 1.0s; }
  .chat .msg:nth-of-type(2) { animation-delay: 1.6s; }
  .chat .msg:nth-of-type(3) { animation-delay: 2.3s; }
  .chat .proposal { animation-delay: 2.9s; }
}
@keyframes fill { from { transform: scaleX(0); transform-origin: left; opacity: 0; } to { transform: scaleX(1); transform-origin: left; opacity: 1; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.tight { padding: clamp(48px, 6vw, 80px) 0; }

.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
h2 {
  font-size: clamp(2rem, 4vw, 3.125rem);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.05;
  text-wrap: balance;
}
.section-head p { max-width: 36rem; }
h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -.01em; }

/* Lifecycle */
.lifecycle {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
}
.stage {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: var(--shadow-card); padding: 20px; position: relative; overflow: hidden;
}
.stage::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--stage-c, var(--primary)); }
.stage:nth-child(1) { --stage-c: var(--primary); --stage-t: var(--tint-purple); --stage-x: var(--primary-hover); }
.stage:nth-child(2) { --stage-c: var(--info); --stage-t: var(--tint-blue); --stage-x: var(--info-text); }
.stage:nth-child(3) { --stage-c: var(--success); --stage-t: var(--tint-green); --stage-x: var(--success-text); }
.stage:nth-child(4) { --stage-c: var(--warning); --stage-t: var(--tint-orange); --stage-x: var(--warning-text); }
.stage:nth-child(5) { --stage-c: var(--danger); --stage-t: var(--tint-red); --stage-x: var(--danger-text); }
.stage h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 18px;
}
.stage-n {
  font-size: .875rem; font-weight: 700; color: var(--stage-x);
  width: 28px; height: 28px; border-radius: var(--r-control); background: var(--stage-t);
  display: inline-grid; place-items: center; flex: none; letter-spacing: 0;
}
.stage ul { display: grid; gap: 16px; }
.stage li { font-size: .9375rem; line-height: 1.5; }
.stage li b { display: block; color: var(--heading); font-weight: 600; font-size: 1rem; margin-bottom: 2px; }

.everyday { margin-top: clamp(40px, 5vw, 56px); }
.everyday h3 { margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--border-strong);
  font-size: .9375rem; font-weight: 500; color: var(--heading);
}
.tags li:nth-child(5n+1) { background: var(--tint-purple); border-color: transparent; }
.tags li:nth-child(5n+3) { background: var(--tint-blue); border-color: transparent; }
.tags li:nth-child(5n+4) { background: var(--teal-soft); border-color: transparent; }

/* Assistant section */
.intel {
  background: linear-gradient(180deg, var(--primary-soft) 0%, #f6f4ff 100%);
  position: relative; overflow: hidden; isolation: isolate;
}
.intel::after {
  content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; left: -140px; bottom: -120px;
  border-radius: 50%; background: rgb(18 214 168 / .2); filter: blur(80px); pointer-events: none;
}
.intel::before {
  content: ""; position: absolute; z-index: -1; width: 480px; height: 480px; right: -140px; top: 10%;
  border-radius: 50%; background: rgb(108 92 231 / .22); filter: blur(80px); pointer-events: none;
}
.intel h2 { max-width: 16ch; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.lede-sm { margin-top: 20px; font-size: 1.125rem; max-width: 34rem; }
.rules { margin: 32px 0 0; display: grid; gap: 12px; }
.rules div { padding: 16px 18px 16px 20px; background: rgb(255 255 255 / .75); border: 1px solid #e3defd; border-radius: var(--r-card); border-left: 4px solid var(--primary); }
.rules dt { font-weight: 700; font-size: 1.0625rem; color: var(--primary-hover); margin-bottom: 4px; }
.rules dd { margin: 0; max-width: 34rem; }

.ask {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-popover); padding: clamp(22px, 3vw, 36px);
}
.ask h3 { margin-bottom: 16px; }
.asks { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.asks li {
  background: var(--page); color: var(--heading); padding: 9px 14px;
  border-radius: 14px 14px 14px 4px; font-size: .9375rem; font-weight: 500; max-width: 100%;
}
.asks li:nth-child(even) { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--primary); color: #fff; }
.extras { display: grid; gap: 20px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.extras h4 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 4px; }
.extras p { font-size: .9375rem; }

/* Attendance */
.punch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.punch {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: var(--shadow-card); padding: 24px;
}
.punch svg {
  width: 48px; height: 48px; padding: 10px; border-radius: var(--r-card);
  fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px;
}
.punch:nth-child(1) svg { stroke: var(--primary); background: var(--tint-purple); }
.punch:nth-child(2) svg { stroke: var(--danger); background: var(--tint-red); }
.punch:nth-child(3) svg { stroke: var(--info); background: var(--tint-blue); }
.punch:nth-child(4) svg { stroke: var(--success); background: var(--tint-green); }
.punch h3 { margin-bottom: 8px; }
.punch p { font-size: .9375rem; }

/* UAE band */
.band { background: var(--card); border-block: 1px solid var(--border); }
.band h2 { max-width: 14ch; }
.split-uae > div > p { margin-top: 20px; max-width: 30rem; font-size: 1.125rem; }
.checks { display: grid; gap: 10px; }
.checks li {
  padding: 14px 16px 14px 54px; position: relative;
  background: var(--page); border-radius: var(--r-card);
}
.checks li::before {
  content: ""; position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal-soft);
}
.checks li::after {
  content: ""; position: absolute; left: 22px; top: 21px; width: 10px; height: 6px;
  border-left: 2.5px solid var(--teal-text); border-bottom: 2.5px solid var(--teal-text); transform: rotate(-45deg);
}
.checks b { display: block; font-weight: 600; font-size: 1.0625rem; color: var(--heading); }

/* Security */
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sec {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: var(--shadow-card); padding: 24px;
}
.sec h3 { font-size: 1.125rem; margin-bottom: 8px; }
.sec p { font-size: .9375rem; }
.sec-wide {
  grid-column: span 2; grid-row: span 2;
  background: var(--grad); color: #fff; border: 0; border-radius: var(--r-lg);
  display: flex; flex-direction: column; padding: clamp(24px, 3vw, 40px);
  position: relative; overflow: hidden; isolation: isolate;
  box-shadow: 0 24px 50px -24px rgb(75 63 209 / .6);
}
.sec-wide::after {
  content: ""; position: absolute; z-index: -1; width: 320px; height: 320px; right: -80px; bottom: -120px;
  border-radius: 50%; background: rgb(18 214 168 / .4); filter: blur(60px);
}
.sec-wide h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.sec-wide p { color: #fff; font-size: 1.0625rem; max-width: 36rem; }
.layers { margin-top: auto; padding-top: 32px; display: grid; gap: 8px; max-width: 420px; }
.layers span {
  display: block; padding: 12px 16px; border-radius: var(--r-control); font-weight: 600;
  background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .35); color: #fff;
}
.layers span:nth-child(2) { margin-left: 24px; }
.layers span:nth-child(3) { margin-left: 48px; background: #fff; color: var(--primary-hover); border-color: #fff; }

/* Integrations */
.integ { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 32px 64px; align-items: start; }
.integ h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.integ-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.integ-list li {
  padding: 14px 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: var(--shadow-card); font-size: .9375rem;
}
.integ-list b { display: block; color: var(--heading); font-size: 1rem; font-weight: 600; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 68px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 48px; height: 48px; border-radius: var(--r-card); display: grid; place-items: center;
  font-size: 1.375rem; font-weight: 800; color: #fff; background: var(--grad);
  box-shadow: 0 8px 18px -8px rgb(108 92 231 / .7);
}
.steps li::after {
  content: ""; position: absolute; top: 23px; left: 60px; right: -12px; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--brand-teal)); border-radius: 2px; opacity: .6;
}
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: .9375rem; }

/* FAQ */
.faq-section { background: var(--card); border-top: 1px solid var(--border); }
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 32px 64px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--page); border-radius: var(--r-card); border: 1px solid transparent; }
.faq details[open] { background: var(--card); border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 600; font-size: 1.0625rem; color: var(--heading); border-radius: var(--r-card);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px;
  border-right: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--primary-hover); }
.faq details p { padding: 0 20px 20px; max-width: 44rem; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Final CTA */
.final {
  background: var(--grad); color: #fff;
  padding: clamp(72px, 10vw, 128px) 0; position: relative; overflow: hidden; isolation: isolate;
}
.final::before {
  /* roster-grid texture, echoing the hero */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12; pointer-events: none;
  background-image:
    linear-gradient(#fff 1px, transparent 1px),
    linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 64px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 30% 50%, #000 20%, transparent 75%);
}
.final::after {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -120px; bottom: -220px;
  border-radius: 50%; background: rgb(18 214 168 / .38); filter: blur(80px); pointer-events: none;
}
.final-inner { position: relative; }
.final h2 { color: #fff; font-size: clamp(2.25rem, 5.6vw, 4.25rem); max-width: 14ch; letter-spacing: -.04em; }
.final p { margin-top: 20px; color: #fff; font-size: 1.125rem; max-width: 34rem; }
.final .btn-primary { background: #fff; color: var(--primary-hover); box-shadow: 0 10px 24px -10px rgb(20 10 80 / .5); }
.final .btn-primary:hover { background: var(--primary-soft); }

/* Footer */
.site-footer { background: var(--footer); color: #c9ccd6; padding: 40px 0; font-size: .9375rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.copy { margin-left: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .lifecycle { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .punch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-side { flex-basis: 48px; align-items: center; }
  .ms-item { padding: 8px; }
  .ms-item em { display: none; }
}

@media (max-width: 960px) {
  .site-nav { display: none; }
  .header-actions { margin-left: auto; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: var(--r-control); border: 1px solid var(--border-strong);
    background: var(--card); color: var(--heading); cursor: pointer; order: 3;
  }
  .nav-toggle svg { width: 20px; height: 20px; }
  .js .site-nav.open {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-popover);
    padding: 8px var(--gutter) 16px;
  }
  .js .site-nav.open ul { flex-direction: column; }
  .js .site-nav.open a { padding: 12px 8px; font-size: 1.0625rem; color: var(--heading); }

  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  h1 { max-width: 13ch; }
  .mock { max-width: 640px; }
  .chat { right: 0; }
  .section-head, .split, .integ, .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-wide { grid-row: auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps li:nth-child(2)::after { display: none; }
}

@media (max-width: 680px) {
  .lifecycle { grid-template-columns: minmax(0, 1fr); }
  .punch-grid { grid-template-columns: minmax(0, 1fr); }
  .sec-grid { grid-template-columns: minmax(0, 1fr); }
  .sec-wide { grid-column: auto; }
  .integ-list { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li::after { display: none; }
  .copy { margin-left: 0; width: 100%; }
  .mock { padding-bottom: 0; }
  .chat { position: relative; right: auto; width: auto; margin: -40px 12px 0; }
  .mock-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 440px) {
  .hide-xs { display: none; }
  .acronym { gap: 4px 8px; font-size: .78rem; padding: 6px 12px; }
  .hero::before { width: 360px; height: 360px; right: -160px; top: -200px; }
  .wordmark img { height: 44px; }
  .header-row { gap: 12px; }
  .cta-row .btn { flex: 1 1 100%; }
  .mock-legend { display: none; }
  .mock-side { flex-basis: 38px; padding: 10px 4px; }
  .ms-item { padding: 6px; }
  .mock-main { padding: 10px 8px; }
  .roster { grid-template-columns: minmax(46px, 1.2fr) repeat(6, minmax(0, 1fr)); gap: 4px; padding: 8px 6px; }
  .rn b { display: none; }
  .rh { font-size: 10px; }
}
