/* Page styles of the home page (/). Base tokens, type and components are those of
   /generative-ai-development-services, /enterprise-ai-services and /healthcare; home sections follow. */
:root {
  --brand: 11 90 157; --accent: 60 123 177; --navy: 37 50 67; --ink: 37 50 67; --muted: 69 71 78;
  --line: 217 226 236; --surface: 255 255 255; --page: 247 249 252;
  --soft: 234 244 251; --soft2: 243 248 252; --good: 26 128 84; --amber: 200 128 30;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: 64 140 208; --accent: 125 174 216; --navy: 22 31 43; --ink: 230 235 242; --muted: 170 178 190;
    --line: 38 58 82; --surface: 14 28 45; --page: 9 20 34;
    --soft: 18 42 68; --soft2: 13 32 52; --good: 80 190 138; --amber: 232 172 82;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: 64 140 208; --accent: 125 174 216; --navy: 22 31 43; --ink: 230 235 242; --muted: 170 178 190;
  --line: 38 58 82; --surface: 14 28 45; --page: 9 20 34;
  --soft: 18 42 68; --soft2: 13 32 52; --good: 80 190 138; --amber: 232 172 82;
  color-scheme: dark;
}
:root { box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 84px); }
body { background: rgb(var(--surface)); color: rgb(var(--ink)); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid rgb(var(--brand)); outline-offset: 3px; border-radius: 4px; }

.h1 { font-size: clamp(2.3rem, 5vw, 3.75rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 600; }
.h2 { font-size: clamp(2rem, 5.4vw, 48px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.25; letter-spacing: -0.012em; font-weight: 600; }
.tone { color: rgb(var(--accent)); }
.tone-light { color: #8DBBE3; }
.lead { font-size: clamp(1.06rem, 1.3vw, 1.19rem); line-height: 1.65; color: rgb(var(--muted)); max-width: 62ch; }
/* section kickers: monospace capitals after a short rule (the home page's "Compliance & security" style);
   dark sections keep their own colour, and the rule follows it */
.kicker { display: flex; align-items: center; gap: .75rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: rgb(var(--accent)); }
.kicker::before { content: ""; flex: none; width: 24px; height: 1px; background: currentColor; }
.text-center .kicker { justify-content: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-size: .9375rem; font-weight: 600; border-radius: 999px; padding: .85rem 1.3rem; transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); white-space: nowrap; }
.btn-primary { background: rgb(var(--brand)); color: #fff; }
.btn-primary:hover { background: rgb(var(--accent)); }
.btn-primary::after { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 10L10 4M5 4h5v5' stroke='black' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 10L10 4M5 4h5v5' stroke='black' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
:root[data-theme="dark"] .btn-primary:hover { background: rgb(var(--brand) / .82); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary:hover { background: rgb(var(--brand) / .82); } }
.btn-ghost { border: 1px solid rgb(var(--line)); color: rgb(var(--ink)); background: rgb(var(--surface)); }
.btn-ghost:hover { border-color: rgb(var(--brand)); color: rgb(var(--brand)); }
@media (max-width: 767px) { .btn { font-size: .9375rem; } } /* 15px */
/* hero diagram */
.d-node { fill: rgb(var(--surface)); stroke: rgb(var(--line)); }
.d-text { fill: rgb(var(--ink)); font-family: inherit; }
.d-muted { fill: rgb(var(--muted)); }
.d-brand { stroke: rgb(var(--brand)); }
.clps { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.clps > * { overflow: hidden; min-height: 0; }
.open > .clps, .clps.open { grid-template-rows: 1fr; }
/* case studies */
.case-tab { flex: none; border-radius: 999px; padding: .65rem 1.25rem; font-size: .95rem; font-weight: 500; color: rgb(var(--muted)); background: rgb(var(--soft2)); border: 1px solid rgb(var(--line)); transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.case-tab:hover { color: rgb(var(--brand)); border-color: rgb(var(--accent)); }
.case-tab[aria-selected="true"] { background: rgb(var(--brand)); border-color: rgb(var(--brand)); color: #fff; }
.case-panel[hidden] { display: none !important; }
.case-panel:not([hidden]) { animation: caseIn .5s var(--ease); }
@keyframes caseIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.case-tags li { padding: 0 1rem; border-left: 1px solid rgb(var(--line)); }
.case-tags li:first-child { padding-left: 0; border-left: 0; }
.case-label { padding-left: .75rem; border-left: 3px solid rgb(var(--brand)); font-weight: 600; line-height: 1.2; }
.phone { width: 250px; height: 500px; border-radius: 38px; border: 9px solid #253243; background: #fff; box-shadow: 0 30px 60px -25px rgb(37 50 67 / .45); overflow: hidden; }
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 92px; height: 20px; background: #253243; border-radius: 0 0 14px 14px; z-index: 1; }
@media (max-width: 640px) { .case-tags li { padding: 0 .7rem; } }

.tscroll { scroll-snap-type: x mandatory; scrollbar-width: none; }
.tscroll::-webkit-scrollbar { display: none; }
.tscroll > * { scroll-snap-align: start; }

.faq-q[aria-expanded="true"] .chev { transform: rotate(45deg); }
.chev { transition: transform .35s var(--ease); }

.field { width: 100%; border: 1px solid rgb(var(--line)); background: rgb(var(--surface)); color: rgb(var(--ink)); border-radius: 12px; padding: .8rem .95rem; font-size: 1rem; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.field:focus { outline: none; border-color: rgb(var(--brand)); box-shadow: 0 0 0 3px rgb(var(--brand) / .18); }
.field[aria-invalid="true"] { border-color: #C2413A; }

.logos { filter: none; }
.brand-logo { display: block; height: 28px; width: auto; }
.brand-logo.on-dark { filter: brightness(0) invert(1); }
:root[data-theme="dark"] .brand-logo { filter: brightness(0) invert(1); }
:root[data-theme="dark"] .logos { filter: invert(1) brightness(1.3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logos, :root:not([data-theme="light"]) .brand-logo { filter: invert(1) brightness(1.3); } }

#mobileCta { bottom: 0; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); transform: translateY(120%); transition: transform .4s var(--ease); }
#mobileCta.show { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .g-bar, .chain-line { transform: none; stroke-dashoffset: 0; }
}
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; } }
.icon-tile { display: inline-flex; height: 48px; width: 48px; flex: none; align-items: center; justify-content: center; border-radius: 14px; background: rgb(var(--soft)); color: rgb(var(--brand)); transition: background-color .3s var(--ease), color .3s var(--ease); }
.txt-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: rgb(var(--brand)); border-bottom: 1.5px solid rgb(var(--brand) / .3); padding-bottom: 2px; transition: border-color .25s var(--ease), gap .25s var(--ease); }
.txt-link:hover { border-color: rgb(var(--brand)); gap: .7rem; }
.btn-arrow::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 10L10 4M5 4h5v5' stroke='black' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 10L10 4M5 4h5v5' stroke='black' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.hero-grid { background-image: linear-gradient(rgb(var(--line) / .5) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--line) / .5) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 70%); }
/* CTA band */
.cta-band { position: relative; display: flex; flex-direction: column; gap: 1.75rem; overflow: hidden; border-radius: 28px; padding: 2.5rem 1.75rem; background: linear-gradient(120deg, #0B5A9D, #253243 75%); color: #fff; }
.cta-band::before { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 999px; border: 48px solid rgb(255 255 255 / .05); }
@media (min-width: 900px) { .cta-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 3.25rem 3.5rem; } }
.btn-white { background: #fff; color: #0B5A9D; }
.btn-white:hover { background: #EAF4FB; transform: translateY(-2px); }
.btn-white::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 10L10 4M5 4h5v5' stroke='black' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 10L10 4M5 4h5v5' stroke='black' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ===== home ===== */
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--accent)); }
.sec-head { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 900px) { .sec-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 2rem; } }

/* hero diagram: the three practice cards rise in one after another (delays inline), the connectors carry a moving dash */
.hero-fig { margin: 0; max-width: 620px; margin-inline: auto; }
/* hero background video: covers the copy area, under a #253243 overlay at 50% (the same colour shows while the
   video loads). The banner is full width and 823px tall (phones: at least 640px, growing with the copy).
   Reduced motion: no video, just the colour. */
.hero-media { width: 100%; min-height: 640px; background: #253243; }
@media (min-width: 768px) { .hero-media { height: 823px; } }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* from 1024px the video sits on the right (from 40% across) and fades into the dark background on its left
   edge, so the copy on the left reads on a plain background */
@media (min-width: 1024px) {
  .hero-video { left: 40%; width: 60%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
}
.hero-overlay { position: absolute; inset: 0; background: rgb(7 19 35 / 50%); }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
.hf-card { animation: hpIn .7s var(--ease) both; }
.flow { stroke-dasharray: 3 9; animation: dash 2.8s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -48; } }
@keyframes hpIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* challenges: dark brand panel, one-line rotating headline, two CTAs */
.ch-panel { position: relative; overflow: hidden; isolation: isolate; padding: 3.5rem 1.5rem; border-radius: 28px; background: linear-gradient(135deg, #0B5A9D 0%, #17406B 48%, #253243 100%); color: #fff; text-align: center; }
/* quiet static texture: a fine grid fading from the centre, plus two soft rings in the corners */
.ch-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 10%, transparent 80%); mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 10%, transparent 80%); }
.ch-panel::after { content: ""; position: absolute; z-index: -1; left: -140px; bottom: -180px; width: 420px; height: 420px; border-radius: 999px; border: 56px solid rgb(255 255 255 / .04); box-shadow: 1100px -260px 0 -56px rgb(125 182 230 / .07); }
@media (min-width: 768px) { .ch-panel { padding: 4.75rem 3rem; } }
.ch-sub { margin-top: 1.25rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgb(255 255 255 / .75); }
.ch-title { margin-top: .75rem; font-size: clamp(2rem, 5.2vw, 54px); white-space: nowrap; }
/* the phrases share one grid cell inside a soft highlight; PageEffects eases its width to the current phrase */
.rot { position: relative; display: inline-grid; justify-items: start; vertical-align: bottom; padding: 0 .3em .04em; border: 1px solid rgb(125 182 230 / .35); border-radius: .28em; background: rgb(125 182 230 / .14); box-sizing: content-box; transition: width .5s var(--ease); }
.rot > span { grid-area: 1 / 1; color: #9FCBF0; opacity: 0; transform: translateY(.3em); transition: opacity .45s var(--ease), transform .45s var(--ease); white-space: nowrap; }
.rot > span.on { opacity: 1; transform: none; }
.ch-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2.25rem; }
.btn-line { border: 1px solid rgb(255 255 255 / .35); color: #fff; }
.btn-line:hover { border-color: #fff; background: rgb(255 255 255 / .08); }
/* phones: the phrase drops to its own line so long ones fit */
@media (max-width: 640px) {
  .ch-title { white-space: normal; }
  .rot { display: grid; width: auto !important; justify-items: center; justify-self: center; margin: .2em auto 0; max-width: max-content; }
  .ch-ctas .btn { width: 100%; }
}

/* services: practice tabs */
.pr-tab { flex: none; display: inline-flex; align-items: center; gap: .7rem; border-radius: 999px; padding: .4rem 1.35rem .4rem .4rem; font-size: 1.02rem; font-weight: 600; color: rgb(var(--muted)); background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.pr-tab:hover { color: rgb(var(--brand)); border-color: rgb(var(--accent)); }
.pr-tab[aria-selected="true"] { background: rgb(var(--brand)); border-color: rgb(var(--brand)); color: #fff; }
/* round icon badge at the start of each practice tab */
.pr-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 999px; background: rgb(var(--soft)); color: rgb(var(--brand)); transition: background-color .25s var(--ease), color .25s var(--ease); }
.pr-tab[aria-selected="true"] .pr-ic { background: rgb(255 255 255 / .18); color: #fff; }
.pr-panel[hidden] { display: none !important; }
.pr-panel:not([hidden]) { animation: caseIn .45s var(--ease); }
.pr-intro { display: flex; flex-direction: column; border-radius: 24px; padding: 1.75rem; background: linear-gradient(150deg, #0B5A9D, #253243 80%); color: #fff; }
.pr-explore { display: inline-flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: 1.75rem; font-weight: 600; color: #fff; }
.pr-explore::after { content: "→"; transition: transform .25s var(--ease); }
.pr-explore:hover::after { transform: translateX(4px); }
.svc-link { position: relative; display: block; height: 100%; border: 1px solid rgb(var(--line)); border-radius: 18px; background: rgb(var(--surface)); padding: 1.15rem 2.75rem 1.15rem 1.25rem; transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.svc-link:hover { border-color: rgb(var(--accent)); transform: translateY(-2px); box-shadow: 0 18px 36px -28px rgb(37 50 67 / .4); }
.svc-link b { display: block; font-weight: 600; color: rgb(var(--ink)); }
.svc-link span { display: block; margin-top: .3rem; font-size: .93rem; color: rgb(var(--muted)); }
.svc-link::after { content: ""; position: absolute; top: 1.2rem; right: 1.15rem; width: 14px; height: 14px; background: rgb(var(--brand)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 10L10 4M5 4h5v5' stroke='black' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 10L10 4M5 4h5v5' stroke='black' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .25s var(--ease); }
.svc-link:hover::after { transform: translate(2px, -2px); }

/* who we serve (as on /home-2): art top right (multiplied into the card, so its white disappears), linked rows with a check and a chevron */
.serve-card { position: relative; overflow: hidden; border: 1px solid rgb(var(--line)); border-radius: 24px; background: linear-gradient(180deg, rgb(var(--surface)), rgb(var(--soft2))); padding: 2rem 2.25rem 2.25rem; box-shadow: 0 30px 60px -48px rgb(var(--navy) / .4); }
.serve-card .icon-tile { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 12px 24px -16px rgb(var(--brand) / .5); }
.serve-art { position: absolute; top: .75rem; right: .75rem; width: min(48%, 300px); height: auto; mix-blend-mode: multiply; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent); mask-image: radial-gradient(closest-side, #000 70%, transparent); }
@media (min-width: 640px) { .serve-card > p { max-width: 56%; } }
.serve-li { display: flex; align-items: center; gap: .85rem; padding: .95rem 1.1rem; border: 1px solid rgb(var(--line)); border-radius: 14px; background: rgb(var(--surface)); font-weight: 500; color: rgb(var(--ink)); transition: border-color .25s var(--ease), color .25s var(--ease); }
.serve-li:hover, .serve-li:focus-visible { border-color: rgb(var(--accent)); color: rgb(var(--brand)); }
.serve-chev { flex: none; color: rgb(var(--brand)); transition: transform .25s var(--ease); }
.serve-li:hover .serve-chev, .serve-li:focus-visible .serve-chev { transform: translateX(3px); }
@media (max-width: 640px) { .serve-card { padding: 1.5rem 1.25rem 1.5rem; } .serve-art { width: 44%; } }
/* dark theme: the art is drawn on white, so it's left out */
:root[data-theme="dark"] .serve-art { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .serve-art { display: none; } }

/* what we build: illustration left, heading + two-column product list right; stacked (text first) below 1024px */
.build-wrap { display: grid; gap: 2.5rem; align-items: center; }
.build-media { order: 2; }
@media (min-width: 1024px) { .build-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 4rem; } .build-media { order: 0; } }
.build-img { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto; mix-blend-mode: multiply; }
.build-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.build { display: flex; align-items: center; gap: .6rem; min-height: 52px; padding: .65rem .9rem; border: 1px solid rgb(var(--line)); border-radius: 14px; background: rgb(var(--surface)); font-size: .95rem; font-weight: 600; line-height: 1.3; transition: border-color .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease); }
@media (max-width: 480px) { .build { padding: .6rem .7rem; font-size: .86rem; } }
.build:hover { border-color: rgb(var(--accent)); background: rgb(var(--soft2)); color: rgb(var(--brand)); }
.build i { width: 8px; height: 8px; flex: none; border-radius: 3px; background: rgb(var(--accent)); transform: rotate(45deg); }

/* case studies: shared CasePanels (same as /ai-driven-healthcare-solutions; tabs and tags are in the base above) */
.case-visual { display: flex; align-items: center; justify-content: center; background: #F3F8FC; }
.case-visual img { display: block; width: 100%; height: 100%; max-height: 640px; object-fit: contain; }
@media (min-width: 1024px) { .case-visual { border-left: 1px solid rgb(var(--line)); } }
.case-compact .case-visual img { max-height: 470px; }
.case-visual .case-img { max-width: 520px; height: auto; border-radius: 18px; box-shadow: 0 24px 48px -28px rgb(37 50 67 / .5); }
.case-phones { position: relative; width: 100%; max-width: 648px; aspect-ratio: 1200 / 1185; margin-inline: auto; }
.case-compact .case-phones { max-width: 476px; }
.case-visual .case-phones .ph { position: absolute; top: 50%; left: 50%; width: 42.5%; height: auto; max-height: none; object-fit: fill; filter: drop-shadow(0 18px 22px rgb(37 50 67 / .16)); transform: translate(-50%, -50%); }
.case-visual .case-phones .ph-c { z-index: 2; animation: phIn .6s var(--ease) both; }
.case-visual .case-phones .ph-l { transform: translate(-106.5%, -50%) scale(.85); animation: phOut .8s var(--ease) .5s both; }
.case-visual .case-phones .ph-r { transform: translate(6.5%, -50%) scale(.85); animation: phOut .8s var(--ease) .5s both; }
.case-stack:not(.in) .case-phones .ph { animation-play-state: paused; }
@keyframes phIn { from { opacity: 0; transform: translate(-50%, -44%) scale(.94); } }
@keyframes phOut { from { opacity: 0; transform: translate(-50%, -50%) scale(.8); } }
@media (prefers-reduced-motion: reduce) { .case-visual .case-phones .ph { animation: none; } }

/* compliance & security (dark; design: "Built for audits" section) */
.sec-dark { position: relative; overflow: clip; background: #253243; color: #fff; }
/* section kickers (every section of the page): monospace capitals after a short rule; brand blue on light
   sections, light blue on dark ones; centred in centred headings and the challenges panel */
.mono-kicker { display: flex; align-items: center; gap: .75rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: rgb(var(--accent)); }
.mono-kicker::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.sec-dark .mono-kicker, .ch-panel .mono-kicker, .mono-kicker.on-dark { color: #8DBBE3; }
.ch-panel .mono-kicker, .text-center > .mono-kicker { justify-content: center; }
.cmp-head { display: grid; gap: 2rem; }
.cmp-lead { margin-top: 1.5rem; max-width: 470px; font-size: 1.05rem; line-height: 1.65; color: rgb(255 255 255 / .75); }
@media (min-width: 1024px) { .cmp-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: 3.5rem; } }
.sec-pack { display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.25rem; border: 1px solid rgb(125 182 230 / .45); border-radius: 999px; font-size: .92rem; font-weight: 600; color: #CFE5F7; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.sec-pack::after { content: "→"; transition: transform .25s var(--ease); }
.sec-pack:hover { background: rgb(255 255 255 / .07); border-color: #7DB6E6; }
.sec-pack:hover::after { transform: translateX(3px); }
/* logo wall: white tiles, logo only; four to a row from 768px (14px gap beside the copy from 1024px) */
.logo-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.logo-tile { display: grid; place-items: center; height: 76px; padding: 12px 16px; border: 2px solid transparent; border-radius: 14px; background: #fff; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
@media (min-width: 768px) { .logo-tile { height: 92px; padding: 14px 24px; } }
.logo-tile:hover { border-color: #9CC8EC; box-shadow: 0 10px 28px -14px rgb(125 182 230 / .6); }
.logo-tile img { display: block; width: auto; height: auto; max-width: min(100%, 210px); max-height: 44px; object-fit: contain; }
@media (min-width: 768px) { .logo-tile img { max-height: 56px; } }
.logo-dark { filter: brightness(0); }
.ctrl-ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: rgb(255 255 255 / .07); color: #A9C9E6; }
/* trust panel: built-in controls (left) and recognition badges (right); stacked below 1024px */
.trust { display: grid; margin-top: 3rem; overflow: hidden; border: 1px solid rgb(125 182 230 / .2); border-radius: 20px; background: rgb(255 255 255 / .03); }
.trust-ctrl, .trust-recog { padding: 1.4rem 1.25rem; }
.trust-recog { display: flex; flex-direction: column; border-top: 1px solid rgb(255 255 255 / .1); }
.trust-hd { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.trust-hd h3 { font-size: 1.1rem; font-weight: 600; }
.trust-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .9rem; }
.trust-list li { display: flex; align-items: center; gap: .6rem; font-size: .86rem; font-weight: 500; line-height: 1.3; color: rgb(255 255 255 / .9); }
.trust-list .ctrl-ic { width: 30px; height: 30px; }
.trust-badges { display: grid; flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: center; gap: 10px; }
.trust-badges li { display: grid; place-items: center; height: 84px; padding: 10px; border-radius: 14px; background: #fff; }
.trust-badges img { display: block; width: auto; height: 52px; max-width: 100%; object-fit: contain; }
@media (min-width: 768px) {
  .trust-ctrl, .trust-recog { padding: 1.75rem 2rem; }
  /* first column is wider so "Encryption in transit & at rest" stays on one line */
  .trust-list { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem 1.5rem; }
  .trust-list li { gap: .75rem; font-size: .95rem; }
  .trust-list .ctrl-ic { width: 34px; height: 34px; }
  .trust-badges li { height: 96px; }
  .trust-badges img { height: 60px; }
}
@media (min-width: 1024px) {
  .trust { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
  .trust-recog { border-top: 0; border-left: 1px solid rgb(255 255 255 / .1); }
}

/* why choose: icon tile and copy in each card (no art), then the stats band with icons */
.why { background: linear-gradient(180deg, rgb(var(--page)), rgb(var(--surface))); }
.why-card { display: flex; align-items: flex-start; gap: 1.25rem; border: 1px solid rgb(var(--line)); border-radius: 22px; background: rgb(var(--surface)); padding: 1.75rem; box-shadow: 0 24px 50px -40px rgb(var(--navy) / .35); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.why-card:hover { border-color: rgb(var(--accent)); transform: translateY(-3px); }
.why-card .icon-tile { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 12px 24px -16px rgb(var(--brand) / .5); }
@media (max-width: 640px) { .why-card { flex-direction: column; } }
/* the cards scroll past endlessly (the track holds them twice and moves by half its width), with the edges
   fading into the section; paused on hover or focus. Reduced motion: a plain row you can swipe. */
.why-marquee { position: relative; overflow: hidden; padding-block: 8px 24px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.why-track { display: flex; width: max-content; animation: whyScroll 48s linear infinite; }
.why-track .why-card { flex: none; width: clamp(280px, 30vw, 440px); margin-right: 20px; }
.why-marquee:hover .why-track, .why-marquee:focus-within .why-track { animation-play-state: paused; }
@keyframes whyScroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .why-marquee { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; padding-inline: 20px; }
  .why-track { animation: none; }
  .why-track .why-card { scroll-snap-align: start; }
  .why-track .why-card[aria-hidden="true"] { display: none; }
}
.stats { display: grid; overflow: hidden; border-radius: 24px; background: linear-gradient(100deg, #0F2747, #1B4A7E); color: #fff; box-shadow: 0 30px 60px -40px rgb(15 39 71 / .7); }
/* four stats: stacked on phones, two by two from 768px, one row from 1200px */
@media (min-width: 768px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; align-items: center; gap: 1.25rem; padding: 1.75rem 2.25rem; border-top: 1px solid rgb(255 255 255 / .1); }
.stat:first-child { border-top: 0; }
@media (min-width: 768px) and (max-width: 1199px) { .stat:nth-child(2) { border-top: 0; } .stat:nth-child(even) { border-left: 1px solid rgb(255 255 255 / .1); } }
@media (min-width: 1200px) { .stat { gap: 1rem; padding: 1.75rem 1.5rem; border-top: 0; border-left: 1px solid rgb(255 255 255 / .1); } .stat:first-child { border-left: 0; } }
.stat strong { display: block; font-size: clamp(2.1rem, 3.4vw, 2.8rem); font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.stat span { display: block; margin-top: .5rem; color: #C9D6E5; }

/* testimonials */
.quote { display: flex; flex-direction: column; border-radius: 20px; border: 1px solid rgb(var(--line)); background: rgb(var(--page)); padding: 2rem; }
.avatar { display: inline-flex; flex: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 99px; background: rgb(var(--brand)); color: #fff; font-size: .9rem; font-weight: 700; }

/* knowledge hub */
.post { display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgb(var(--line)); border-radius: 22px; background: rgb(var(--surface)); transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.post:hover { border-color: rgb(var(--accent)); transform: translateY(-4px); box-shadow: 0 24px 48px -32px rgb(37 50 67 / .4); }
.post-art { display: grid; place-items: center; height: 168px; }
.post-art svg { width: 168px; height: auto; }
.post-art img { width: 100%; height: 100%; object-fit: cover; }
/* Link arrows (<Arrow />): the arrow moves 3px right on hover; the text changes colour, no underline effect */
.arrow-ic { flex-shrink: 0; transition: transform .3s var(--ease); }
.arrow-link { white-space: nowrap; transition: color .25s var(--ease); }
.arrow-link:hover, .arrow-link:focus-visible { color: rgb(var(--ink)); gap: .45rem; border-color: rgb(var(--brand) / .3); }
.arrow-link:hover .arrow-ic, .arrow-link:focus-visible .arrow-ic { transform: translateX(3px); }
/* "Read more" on the blog cards: text and arrow stay on one line; on card hover only the arrow moves */
.post-more { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; font-weight: 600; color: rgb(var(--brand)); }
.post:hover .post-more .arrow-ic, .post:focus-visible .post-more .arrow-ic { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .arrow-ic, .arrow-link { transition: none; } }
.post-art.hc { background: #E6F4EF; color: #2E8B6E; }
.post-art.ai { background: #E8F0FB; color: #2F5FC4; }
.post-art.mo { background: #EEEBFA; color: #5B4BC4; }
.post-tag { padding: .25rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.post-art.hc + div .post-tag { background: #E6F4EF; color: #2E8B6E; }
.post-art.ai + div .post-tag { background: #E8F0FB; color: #2F5FC4; }
.post-art.mo + div .post-tag { background: #EEEBFA; color: #5B4BC4; }

/* contact */
.step-n { display: inline-flex; flex: none; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 99px; background: rgb(var(--brand)); color: #fff; font-size: .88rem; font-weight: 700; }
.ct-flow path { stroke-dasharray: 10 90; stroke-dashoffset: 100; opacity: .55; animation: ctFlow 6s linear infinite; }
.ct-flow path:nth-child(2) { animation-delay: -1.5s; }
.ct-flow path:nth-child(3) { animation-delay: -3s; }
.ct-flow path:nth-child(4) { animation-delay: -4.5s; }
@keyframes ctFlow { to { stroke-dashoffset: 0; } }
