/* =========================================================
   Darma Tek — site styles
   Pure CSS, no framework. Motion respects prefers-reduced-motion.
   ========================================================= */

:root {
  --navy-950: #050b1c;
  --navy-900: #0a1530;
  --navy-800: #11214a;
  --blue: #1f6fe0;
  --blue-600: #1a5ec0;
  --cyan: #22b8f0;
  --violet: #6b5cff;
  --ink: #0e1628;
  --text: #2b3448;
  --muted: #5d6780;
  --line: #e4e8f1;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --white: #ffffff;
  --grad: linear-gradient(120deg, var(--blue) 0%, var(--cyan) 55%, var(--violet) 110%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(14, 22, 40, .06), 0 2px 8px rgba(14, 22, 40, .05);
  --shadow: 0 10px 30px -10px rgba(14, 22, 40, .18);
  --shadow-lg: 0 30px 60px -20px rgba(10, 21, 48, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --container: 1200px;
  --header-h: 76px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Cross-page transitions (View Transitions API, progressive) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
.ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
::selection { background: rgba(34, 184, 240, .25); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy-900); color: #c4cde3; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--cyan); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--blue);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 .97rem/1 var(--font); color: var(--white); background: var(--bg-btn);
  box-shadow: 0 8px 24px -8px rgba(31, 111, 224, .6);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s;
}
.btn::after { /* shine sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(31, 111, 224, .7); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn--grad { background: var(--grad); background-size: 160% 100%; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--light { background: rgba(255, 255, 255, .08); color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.btn[disabled] { opacity: .65; pointer-events: none; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Header ----------
   No transform / filter / backdrop-filter / view-transition-name on .site-header itself: any of those makes it
   the containing block for the position:fixed mobile menu, trapping the menu inside the 76px header bar.
   The white background lives on ::before instead, and the intro animates `top`. */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: height .4s var(--ease);
  animation: header-in .8s var(--ease-out) both;
}
@keyframes header-in { from { top: -80px; opacity: 0; } }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: #fff;
  box-shadow: 0 1px 0 var(--line), 0 8px 30px -18px rgba(14, 22, 40, .3);
  transition: opacity .4s var(--ease);
}
.site-header.is-scrolled, .site-header.is-solid { --header-h: 64px; }
.site-header.is-scrolled::before, .site-header.is-solid::before { opacity: 1; }
.nav-open .site-header::before { opacity: 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); font-weight: 800; letter-spacing: -.01em; }
.brand:hover { color: var(--white); }
.brand-mark { width: 40px; height: 40px; flex: none; transition: transform .6s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-size: 1.12rem; }
.brand-text small { font-size: .62rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; opacity: .7; margin-top: 3px; }
.is-scrolled .brand, .is-solid .brand { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; color: rgba(255, 255, 255, .82);
  transition: color .25s, background .25s;
}
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--grad);
}
.is-scrolled .nav a, .is-solid .nav a { color: var(--text); }
.is-scrolled .nav a:hover, .is-solid .nav a:hover { color: var(--ink); background: var(--bg-soft); }
.is-scrolled .nav a[aria-current="page"], .is-solid .nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { padding: 11px 20px; margin-left: 10px; color: var(--white); font-size: .92rem; }
.nav .btn:hover { background: var(--blue-600); color: var(--white); }
/* Must out-rank `.is-scrolled .nav a:hover` and `a[aria-current]` above, or the button text turns dark on scroll
   (contact page, where the button is the current page) and its hover turns pale. */
.site-header .nav a.btn { color: var(--white); }
.site-header .nav a.btn:hover { background: var(--blue-600); color: var(--white); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, .1); position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--white);
  transition: transform .35s var(--ease-out), opacity .2s, background .3s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { content: ""; left: 0; right: 0; top: -7px; }
.nav-toggle span::after { content: ""; left: 0; right: 0; top: 7px; }
.is-scrolled .nav-toggle, .is-solid .nav-toggle { background: var(--bg-soft); }
.is-scrolled .nav-toggle span, .is-scrolled .nav-toggle span::before, .is-scrolled .nav-toggle span::after,
.is-solid .nav-toggle span, .is-solid .nav-toggle span::before, .is-solid .nav-toggle span::after { background: var(--ink); }
.nav-open .nav-toggle span { background: transparent !important; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: stretch; justify-content: center; gap: 6px;
    padding: 90px 28px 40px; background: var(--navy-950);
    clip-path: circle(0 at calc(100% - 38px) 38px); visibility: hidden;
    transition: clip-path .6s var(--ease-out), visibility 0s .6s;
  }
  .nav-open .nav { clip-path: circle(150% at calc(100% - 38px) 38px); visibility: visible; transition: clip-path .7s var(--ease-out); }
  .nav a, .is-scrolled .nav a, .is-solid .nav a { color: rgba(255, 255, 255, .85); font-size: 1.5rem; font-weight: 700; padding: 12px 8px; opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .5s var(--ease-out); }
  .nav-open .nav a { opacity: 1; transform: none; }
  .nav-open .nav a:nth-child(2) { transition-delay: .05s; } .nav-open .nav a:nth-child(3) { transition-delay: .1s; }
  .nav-open .nav a:nth-child(4) { transition-delay: .15s; } .nav-open .nav a:nth-child(5) { transition-delay: .2s; }
  .nav-open .nav a:nth-child(6) { transition-delay: .25s; } .nav-open .nav a:nth-child(7) { transition-delay: .3s; }
  .nav a:hover, .is-scrolled .nav a:hover { background: transparent; color: var(--white); }
  .nav a[aria-current="page"], .is-scrolled .nav a[aria-current="page"], .is-solid .nav a[aria-current="page"] { color: var(--white); }
  .nav a[aria-current="page"]::after { left: 8px; right: auto; width: 40px; bottom: 6px; }
  .nav .btn { margin: 18px 0 0; font-size: 1.05rem; padding: 16px; }
  .nav-open .brand { color: var(--white) !important; position: relative; z-index: 2; }
  .nav-open .nav-toggle { background: rgba(255, 255, 255, .1) !important; }
  .nav-open .nav-toggle span::before, .nav-open .nav-toggle span::after { background: var(--white) !important; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(100svh, 920px); display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 96px;
  background: radial-gradient(1200px 600px at 80% -10%, #16306b 0%, transparent 60%), var(--navy-950);
  color: #c4cde3;
}
.hero h1 { color: var(--white); }
.hero .lead { color: #a9b5d1; }
.hero-grid {
  position: absolute; inset: 0; z-index: -2; opacity: .5;
  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: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  animation: grid-pan 30s linear infinite;
}
@keyframes grid-pan { to { background-position: 56px 56px; } }
.orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.orb--1 { width: 460px; height: 460px; background: var(--blue); top: -120px; right: -80px; animation: float-a 16s ease-in-out infinite; }
.orb--2 { width: 360px; height: 360px; background: var(--cyan); bottom: -140px; left: 10%; opacity: .35; animation: float-b 19s ease-in-out infinite; }
.orb--3 { width: 280px; height: 280px; background: var(--violet); top: 40%; right: 30%; opacity: .3; animation: float-a 22s ease-in-out infinite reverse; }
@keyframes float-a { 50% { transform: translate(-60px, 50px) scale(1.12); } }
@keyframes float-b { 50% { transform: translate(70px, -40px) scale(.9); } }

.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; margin-bottom: 22px;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  font-size: .85rem; font-weight: 600; color: #d5def3;
}
.hero-badge b { background: var(--grad); color: var(--white); padding: 3px 10px; border-radius: 999px; font-size: .75rem; }
.rotator { display: inline-grid; vertical-align: bottom; }
/* Gradient goes on each word, not the wrapper: background-clip:text on a parent also paints its hidden children. */
.rotator > span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(.45em); filter: blur(6px); transition: opacity .6s var(--ease), transform .7s var(--ease-out), filter .6s; }
.rotator > span.is-active { opacity: 1; transform: none; filter: none; }
.rotator > span.is-leaving { opacity: 0; transform: translateY(-.45em); filter: blur(6px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 46px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1); }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { color: var(--white); font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.hero-meta span { font-size: .85rem; color: #8f9cbc; }

/* Hero device mockup */
.mockup { position: relative; perspective: 1200px; }
.mockup-window {
  position: relative; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), var(--shadow-lg);
  backdrop-filter: blur(10px);
  transform: rotateY(-12deg) rotateX(6deg); transform-style: preserve-3d;
  transition: transform .9s var(--ease-out);
  animation: mock-float 7s ease-in-out infinite;
}
@keyframes mock-float { 50% { translate: 0 -12px; } }
.mockup:hover .mockup-window { transform: rotateY(-4deg) rotateX(2deg); }
.mockup-bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mockup-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.mockup-bar i:nth-child(1) { background: #ff6b6b; } .mockup-bar i:nth-child(2) { background: #ffc94d; } .mockup-bar i:nth-child(3) { background: #3ddc97; }
.mockup-body { display: grid; grid-template-columns: 74px 1fr; min-height: 330px; }
.mockup-side { border-right: 1px solid rgba(255, 255, 255, .07); padding: 16px 12px; display: grid; gap: 12px; align-content: start; }
.mockup-side i { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .12); }
.mockup-side i:first-child { background: var(--grad); }
.mockup-main { padding: 18px; display: grid; gap: 14px; align-content: start; }
.mk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mk-card { border-radius: 12px; padding: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.mk-card b { display: block; height: 8px; width: 50%; border-radius: 4px; background: rgba(255, 255, 255, .2); margin-bottom: 10px; }
.mk-card em { display: block; height: 16px; width: 70%; border-radius: 5px; background: rgba(255, 255, 255, .5); }
.mk-chart { height: 130px; border-radius: 12px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); display: flex; align-items: flex-end; gap: 8px; padding: 14px; }
.mk-chart span { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--grad); transform-origin: bottom; animation: bar 3.2s var(--ease-out) infinite alternate; }
.mk-chart span:nth-child(1) { height: 40%; animation-delay: -.2s; } .mk-chart span:nth-child(2) { height: 65%; animation-delay: -.9s; }
.mk-chart span:nth-child(3) { height: 50%; animation-delay: -1.4s; } .mk-chart span:nth-child(4) { height: 85%; animation-delay: -.5s; }
.mk-chart span:nth-child(5) { height: 60%; animation-delay: -1.9s; } .mk-chart span:nth-child(6) { height: 95%; animation-delay: -1.1s; }
.mk-chart span:nth-child(7) { height: 72%; animation-delay: -2.4s; }
@keyframes bar { from { transform: scaleY(.45); opacity: .7; } }
.mk-lines { display: grid; gap: 8px; }
.mk-lines i { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.mk-lines i:nth-child(2) { width: 80%; } .mk-lines i:nth-child(3) { width: 60%; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .96); color: var(--ink); font-weight: 700; font-size: .85rem; box-shadow: var(--shadow-lg);
  animation: chip 6s ease-in-out infinite;
}
.float-chip small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; }
.float-chip .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: var(--white); }
.float-chip .dot svg { width: 18px; height: 18px; }
.float-chip--1 { left: -28px; bottom: 40px; }
.float-chip--2 { right: -18px; top: 60px; animation-delay: -3s; }
@keyframes chip { 50% { transform: translateY(-10px); } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3); }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--white); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .mockup { max-width: 520px; margin-top: 24px; }
  .float-chip--1 { left: 0; } .float-chip--2 { right: 0; }
  .scroll-cue { display: none; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(56px, 8vw, 96px);
  background: radial-gradient(900px 420px at 85% -20%, #16306b 0%, transparent 60%), var(--navy-950);
  color: #a9b5d1;
}
.page-hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 20ch; }
.page-hero .lead { color: #a9b5d1; }
.page-hero .orb--1 { width: 380px; height: 380px; top: -160px; }
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; margin-bottom: 18px; color: #8f9cbc; }
.breadcrumb a { color: #c4cde3; } .breadcrumb a:hover { color: var(--white); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  padding: 30px; border-radius: var(--radius); background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.card::before { /* cursor-following glow */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(34, 184, 240, .13), transparent 45%);
}
.card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(31, 111, 224, .25), var(--shadow); }
.card:hover::before { opacity: 1; }
.card p { color: var(--muted); margin: 0; }
.card .icon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(31, 111, 224, .12), rgba(34, 184, 240, .12)); color: var(--blue);
  transition: transform .6s var(--ease-out), background .4s, color .4s;
}
.card .icon svg { width: 26px; height: 26px; }
.card:hover .icon { transform: rotate(-6deg) scale(1.08); background: var(--grad); color: var(--white); }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 700; font-size: .92rem; }
.card-link svg { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.card:hover .card-link svg { transform: translateX(4px); }
.card ul.ticks { margin: 16px 0 0; }

.section--dark .card { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.section--dark .card p { color: #9eabc9; }
.section--dark .card:hover { box-shadow: inset 0 0 0 1px rgba(34, 184, 240, .35), 0 20px 40px -20px rgba(0, 0, 0, .6); }
.section--dark .card .icon { background: rgba(34, 184, 240, .12); color: var(--cyan); }

ul.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
ul.ticks li { position: relative; padding-left: 30px; color: var(--text); }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--grad) center / 100% no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E");
}
ul.ticks li::after {
  content: ""; position: absolute; left: 6px; top: calc(.3em + 4px); width: 5px; height: 9px;
  border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.section--dark ul.ticks li { color: #c4cde3; }

/* ---------- Split / feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } .visual { aspect-ratio: auto; padding: 40px 0; } }

.visual {
  position: relative; border-radius: 24px; aspect-ratio: 5 / 4; overflow: hidden; isolation: isolate;
  background: radial-gradient(500px 300px at 20% 10%, rgba(34, 184, 240, .35), transparent 60%), radial-gradient(500px 300px at 90% 90%, rgba(107, 92, 255, .35), transparent 60%), var(--navy-900);
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.visual .hero-grid { opacity: .6; }
.visual-stack { display: grid; gap: 14px; width: 76%; }
.visual-stack > div {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: var(--white); font-weight: 600; font-size: .95rem;
  backdrop-filter: blur(8px);
}
.visual-stack > div span { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); flex: none; }
.visual-stack > div span svg { width: 18px; height: 18px; color: var(--white); }
.visual-stack > div small { display: block; color: #9eabc9; font-weight: 500; font-size: .78rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.stat strong { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; color: var(--white); letter-spacing: -.03em; line-height: 1; margin-bottom: 10px; }
.stat span { color: #9eabc9; font-size: .95rem; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, transparent, var(--line) 10%, var(--line) 90%, transparent); }
.steps .line-fill { position: absolute; top: 27px; left: 8%; right: 8%; height: 2px; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.6s var(--ease-out) .2s; }
.steps.is-visible .line-fill { transform: scaleX(1); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--white); box-shadow: inset 0 0 0 2px var(--line), var(--shadow-sm);
  font-weight: 800; color: var(--blue); position: relative; z-index: 1;
  transition: background .5s, color .5s, box-shadow .5s;
}
.steps.is-visible .step::before { background: var(--grad); color: var(--white); box-shadow: 0 10px 24px -10px rgba(31, 111, 224, .7); }
.steps.is-visible .step:nth-child(3)::before { transition-delay: .4s; } .steps.is-visible .step:nth-child(4)::before { transition-delay: .8s; } .steps.is-visible .step:nth-child(5)::before { transition-delay: 1.2s; }
.step p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; } .steps::before, .steps .line-fill { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Clients marquee ---------- */
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 22px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 11px)); } }
.logo-tile {
  flex: none; width: 200px; height: 104px; display: grid; place-items: center; padding: 18px 24px; border-radius: 16px;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.logo-tile img { max-height: 64px; width: auto; object-fit: contain; }
.logo-tile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(31, 111, 224, .3), var(--shadow); }
.logo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.logo-grid .logo-tile { width: auto; }
@media (max-width: 900px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Testimonial ---------- */
.quote { position: relative; max-width: 860px; margin-inline: auto; text-align: center; }
.quote blockquote { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.45; font-weight: 600; color: var(--white); letter-spacing: -.01em; }
.quote-mark { width: 56px; height: 56px; margin: 0 auto 22px; color: var(--cyan); }
.quote cite { display: block; margin-top: 24px; font-style: normal; color: #9eabc9; font-size: .95rem; }

/* ---------- Solutions filter ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer; font: 600 .9rem/1 var(--font);
  background: var(--white); color: var(--text); box-shadow: inset 0 0 0 1px var(--line);
  transition: background .3s, color .3s, box-shadow .3s, transform .3s var(--ease-out);
}
.chip:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--blue); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); box-shadow: none; }
.solution { display: flex; flex-direction: column; }
.solution .tag { align-self: flex-start; margin-bottom: 16px; padding: 5px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--bg-soft); color: var(--blue); }
.solution.is-hidden { display: none; }
.solution.is-entering { animation: pop-in .55s var(--ease-out) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }

/* ---------- Jobs ---------- */
.job { display: grid; grid-template-columns: 1fr auto; gap: 18px 28px; align-items: center; }
.job h3 { margin-bottom: 6px; }
.job .skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.job .skills span { font-size: .8rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--bg-soft); color: var(--text); }
.job-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
@media (max-width: 720px) { .job { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 28px;
  padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center;
  background: radial-gradient(600px 300px at 0% 0%, rgba(34, 184, 240, .45), transparent 60%), radial-gradient(600px 300px at 100% 100%, rgba(107, 92, 255, .5), transparent 60%), var(--navy-900);
  color: #c4cde3; box-shadow: var(--shadow-lg);
}
.cta h2 { color: var(--white); margin-bottom: 10px; }
.cta p { margin: 0; color: #a9b5d1; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { display: grid; gap: 16px; }
.info-item { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius-sm); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); transition: transform .4s var(--ease-out), box-shadow .4s; }
.info-item:hover { transform: translateX(6px); box-shadow: inset 0 0 0 1px rgba(31, 111, 224, .3), var(--shadow-sm); }
.info-item .icon { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--grad); color: var(--white); }
.info-item .icon svg { width: 22px; height: 22px; }
.info-item h3 { font-size: 1rem; margin: 0 0 4px; }
.info-item p { margin: 0; color: var(--muted); font-size: .95rem; }
.info-item a { font-weight: 600; }

.form-card { padding: clamp(26px, 4vw, 40px); border-radius: 24px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 22px 16px 10px; border-radius: 12px; border: 0; background: var(--bg-soft);
  font: 500 1rem/1.4 var(--font); color: var(--ink); box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow .3s, background .3s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field label { position: absolute; left: 16px; top: 16px; color: var(--muted); font-size: 1rem; pointer-events: none; transform-origin: 0 0; transition: transform .25s var(--ease-out), color .25s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 4px rgba(31, 111, 224, .12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-9px) scale(.76); color: var(--blue); }
.field.has-error input, .field.has-error textarea { box-shadow: inset 0 0 0 1.5px #e5484d; }
.field .err { display: block; min-height: 0; font-size: .8rem; color: #d13438; margin-top: 6px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.form-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: .95rem; animation: pop-in .5s var(--ease-out) both; }
.form-status.ok { display: block; background: #e8f8ef; color: #136c3b; }
.form-status.fail { display: block; background: #fdecec; color: #a4262c; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: var(--white); animation: spin .8s linear infinite; display: none; }
.is-loading .spinner { display: block; }
.is-loading .btn-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.map { margin-top: 22px; border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); aspect-ratio: 16 / 10; background: var(--bg-soft); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #8f9cbc; padding: 80px 0 0; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(34, 184, 240, .5), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: .95rem; letter-spacing: .02em; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #aab6d3; transition: color .25s, padding .3s var(--ease-out); }
.site-footer ul a:hover { color: var(--white); padding-left: 6px; }
.site-footer p { font-size: .95rem; }
.site-footer .brand { margin-bottom: 18px; }
.footer-bottom { margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: var(--white); box-shadow: var(--shadow);
  display: grid; place-items: center; opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .4s, transform .4s var(--ease-out), background .3s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue); }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transition: opacity .9s var(--ease), transform 1s var(--ease-out), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="up"], .js [data-reveal=""] { transform: translateY(34px); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(.92); }
.js [data-reveal="blur"] { filter: blur(10px); transform: translateY(16px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; filter: none; }

/* Hero intro stagger (runs on load, not on scroll) */
.js .intro > * { opacity: 0; transform: translateY(26px); animation: intro 1s var(--ease-out) forwards; }
.js .intro > :nth-child(1) { animation-delay: .15s; } .js .intro > :nth-child(2) { animation-delay: .28s; }
.js .intro > :nth-child(3) { animation-delay: .41s; } .js .intro > :nth-child(4) { animation-delay: .54s; }
.js .intro > :nth-child(5) { animation-delay: .67s; } .js .intro > :nth-child(6) { animation-delay: .8s; }
@keyframes intro { to { opacity: 1; transform: none; } }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 0 60px; }
.notfound .big { font-size: clamp(6rem, 20vw, 12rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .intro > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track [aria-hidden="true"] { display: none; }
  @view-transition { navigation: none; }
}

/* Long-form policy pages (safe360-privacy.html): calmer headings and readable body text */
.legal { max-width: 760px; }
.legal h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-top: 2em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 1.02rem; line-height: 1.75; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }
