/* ============================================================
   TARYNIX — Design System v2.0  ·  "Soft Structuralism"
   Light, professional, trustworthy. Violet→blue brand gradient.
   ============================================================ */

:root {
  /* Canvas */
  --canvas: #F7F7F5;
  --canvas-alt: #FFFFFF;
  --mist: #EFF1F7;
  --ink: #0E1220;
  --ink-soft: #2A3040;
  --muted: #5B6172;
  --faint: #6E7488;   /* 4.65:1 on white (was #8A90A2 = 3.0:1) */

  /* Brand */
  --brand-a: #8A5CF6;           /* violet */
  --brand-b: #4F7DF9;           /* blue   */
  --brand-grad: linear-gradient(120deg, #8A5CF6 0%, #5B8DF8 100%);
  --brand-tint: #F1EDFE;
  --brand-tint-b: #EAF0FE;

  /* Lines & depth */
  --hairline: rgba(14, 18, 32, 0.08);
  --hairline-strong: rgba(14, 18, 32, 0.14);
  --shell: rgba(14, 18, 32, 0.035);
  --shadow-ambient: 0 24px 60px -28px rgba(14, 18, 32, 0.18);
  --shadow-float: 0 40px 90px -40px rgba(14, 18, 32, 0.25);
  --shadow-soft: 0 12px 40px -18px rgba(14, 18, 32, 0.14);

  /* Motion */
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.18, 0.44, 1);

  /* Type */
  --font-display: "Clash Display", "Avenir Next", system-ui, sans-serif;
  --font-body: "Satoshi", "Avenir Next", system-ui, sans-serif;

  /* Radii */
  --r-xl: 2rem;
  --r-inner: calc(2rem - 0.4rem);
  --r-pill: 999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--brand-a); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

/* ---- Grain overlay ---- */
.grain {
  position: fixed; inset: 0; z-index: 80; pointer-events: none;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.02 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Layout primitives ---- */
.wrap { width: min(1200px, 100% - 3rem); margin-inline: auto; }
.wrap-wide { width: min(1360px, 100% - 3rem); margin-inline: auto; }

.section { padding-block: clamp(5rem, 10vw, 9rem); }
.section-tight { padding-block: clamp(3.5rem, 7vw, 6rem); }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 570; letter-spacing: -0.02em; line-height: 1.08; }

.display-xl { font-size: clamp(2.9rem, 6.4vw, 5.4rem); }
.display-lg { font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
.display-md { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.display-sm { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.25; }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6; color: var(--muted); font-weight: 450;
  max-width: 42rem;
}
p { color: var(--muted); }
strong { color: var(--ink); font-weight: 600; }

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

/* ---- Eyebrow ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.32rem 0.85rem; margin-bottom: 1.4rem;
  border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--hairline);
  box-shadow: 0 2px 10px -4px rgba(14,18,32,0.1);
  font-size: 0.66rem; font-weight: 650; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-grad);
}

/* ============ NAV — floating glass island ============ */
.nav-shell {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center;
  padding: 1.1rem 1.25rem 0;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.55rem 0.5rem 1.1rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(14, 18, 32, 0.07);
  box-shadow: 0 10px 40px -14px rgba(14, 18, 32, 0.22),
              inset 0 1px 1px rgba(255,255,255,0.9);
  transition: transform 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out);
  max-width: 100%;
}
.nav-logo { display: flex; align-items: center; gap: 0.55rem; margin-right: 0.9rem; flex-shrink: 0; }
.nav-logo svg { width: 26px; height: 26px; }
.nav-logo span {
  font-family: var(--font-display); font-weight: 590; font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.nav-links { display: flex; align-items: center; gap: 0.15rem; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.5rem 0.85rem; border-radius: var(--r-pill);
  font-size: 0.92rem; font-weight: 540; color: var(--ink-soft);
  transition: background 0.45s var(--ease-out), color 0.45s var(--ease-out);
}
.nav-links > li > a:hover,
.nav-links > li > a.is-active { background: rgba(14, 18, 32, 0.055); color: var(--ink); }
.nav-links .caret { width: 12px; height: 12px; opacity: 0.5; transition: transform 0.45s var(--ease-out); }
.nav-links > li:hover .caret { transform: rotate(180deg); }

/* dropdown */
.drop {
  position: absolute; top: calc(100% + 0.9rem); left: 50%;
  transform: translate(-50%, 12px) scale(0.97);
  opacity: 0; visibility: hidden;
  transition: all 0.5s var(--ease-out);
  min-width: 258px;
  padding: 0.45rem;
  border-radius: 1.35rem;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-float);
}
.nav-links > li:hover .drop,
.nav-links > li:focus-within .drop {
  opacity: 1; visibility: visible;
  transform: translate(-50%, 0) scale(1);
}
.drop a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.8rem; border-radius: 0.95rem;
  font-size: 0.9rem; font-weight: 530; color: var(--ink-soft);
  transition: background 0.35s var(--ease-out);
}
.drop a:hover { background: rgba(14,18,32,0.05); color: var(--ink); }
.drop a .di {
  width: 30px; height: 30px; border-radius: 0.6rem; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-tint), var(--brand-tint-b));
  color: var(--brand-a);
}
.drop a .di svg { width: 15px; height: 15px; }

/* nav CTA */
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-left: 0.4rem;
  padding: 0.5rem 0.55rem 0.5rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--ink); color: #fff;
  font-size: 0.9rem; font-weight: 560;
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-out);
  box-shadow: 0 10px 24px -10px rgba(14,18,32,0.5);
  white-space: nowrap;
}
.nav-cta .orb {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-grad);
  transition: transform 0.5s var(--ease-spring);
}
.nav-cta .orb svg { width: 12px; height: 12px; }
.nav-cta:hover { transform: translateY(-1px); }
.nav-cta:hover .orb { transform: translate(1px, -1px) scale(1.08); }
.nav-cta:active { transform: scale(0.97); }

/* hamburger */
.burger {
  display: none; position: relative;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(14,18,32,0.055);
  flex-shrink: 0;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 1.6px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.55s var(--ease-out), opacity 0.3s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 25px; }
.burger.open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* mobile overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(247,247,245,0.88);
  backdrop-filter: blur(30px) saturate(1.4);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu ul { text-align: center; display: grid; gap: 0.4rem; }
.mobile-menu ul a {
  font-family: var(--font-display); font-weight: 570;
  font-size: clamp(1.8rem, 7vw, 2.6rem); letter-spacing: -0.02em;
  display: inline-block; padding: 0.3rem 1rem;
}
.mobile-menu ul .sub a { font-family: var(--font-body); font-size: 1rem; font-weight: 520; color: var(--muted); padding: 0.2rem 0.6rem; }
.mobile-menu li { overflow: hidden; }
.mobile-menu li > * {
  transform: translateY(110%); opacity: 0;
  transition: transform 0.8s var(--ease-out), opacity 0.6s;
}
.mobile-menu.open li > * { transform: translateY(0); opacity: 1; }

@media (max-width: 1020px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .nav { padding: 0.45rem 0.5rem 0.45rem 1rem; gap: 0.7rem; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 0.72rem 0.72rem 0.72rem 1.5rem;
  border-radius: var(--r-pill);
  font-weight: 570; font-size: 0.98rem;
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-out), background 0.5s var(--ease-out);
}
.btn .orb {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  transition: transform 0.5s var(--ease-spring);
}
.btn .orb svg { width: 13px; height: 13px; }
.btn:hover .orb { transform: translate(2px, -2px) scale(1.07); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 18px 36px -14px rgba(14,18,32,0.45);
}
.btn-primary .orb { background: var(--brand-grad); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 44px -16px rgba(14,18,32,0.5); }

.btn-ghost {
  background: #fff; color: var(--ink);
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 8px 20px -12px rgba(14,18,32,0.15);
}
.btn-ghost .orb { background: rgba(14,18,32,0.06); color: var(--ink); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(14,18,32,0.22); }

/* ============ DOUBLE-BEZEL CARDS ============ */
.bezel {
  background: var(--shell);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 0.4rem;
}
.bezel-core {
  background: var(--canvas-alt);
  border-radius: var(--r-inner);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.9), var(--shadow-soft);
  overflow: hidden;
  height: 100%;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding-top: clamp(8.5rem, 16vh, 11.5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(52% 44% at 18% 8%, rgba(138, 92, 246, 0.16), transparent 60%),
    radial-gradient(46% 40% at 85% 12%, rgba(79, 125, 249, 0.15), transparent 60%),
    radial-gradient(60% 50% at 55% 108%, rgba(138, 92, 246, 0.07), transparent 55%);
}
.aurora .orb-blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5;
  will-change: transform;
}
.aurora .b1 { width: 460px; height: 460px; left: -140px; top: -160px; background: #C9B4FB; }
.aurora .b2 { width: 380px; height: 380px; right: -100px; top: -60px; background: #B9CDFB; }

.hero-grid-lines {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(14,18,32,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,18,32,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000 30%, transparent 100%);
}

/* ============ MARQUEE ============ */
.marquee {
  overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; gap: 3.5rem; width: max-content;
  animation: marquee 32s linear infinite;
  align-items: center;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  font-family: var(--font-display); font-weight: 560; font-size: 1.35rem;
  color: var(--faint); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 3.5rem;
}
.marquee-item::after { content: "✦"; font-size: 0.8rem; color: var(--brand-a); opacity: 0.5; }

/* ============ GRIDS ============ */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.1rem; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; gap: 1rem; }
  /* every span must reset, incl. col-12 — a stray span >1 forces
     implicit columns and blows the grid past the viewport */
  .col-4, .col-5, .col-6, .col-7, .col-8, .col-12 { grid-column: span 1; }
}

/* ---- Feature card interior ---- */
.feature-body { padding: 1.9rem 1.9rem 2rem; display: flex; flex-direction: column; gap: 0.8rem; height: 100%; }
.feature-body h3 { font-size: 1.28rem; }
.feature-body p { font-size: 0.97rem; line-height: 1.6; }
.ficon {
  width: 46px; height: 46px; border-radius: 1rem;
  display: grid; place-items: center; margin-bottom: 0.4rem;
  background: linear-gradient(135deg, var(--brand-tint), var(--brand-tint-b));
  border: 1px solid rgba(138,92,246,0.18);
  color: var(--brand-a);
}
.ficon svg { width: 21px; height: 21px; }

.card-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.9rem; font-weight: 600; color: var(--ink);
}
.card-link svg { width: 14px; height: 14px; transition: transform 0.45s var(--ease-spring); }
.card-link:hover svg { transform: translate(3px, -3px); }

/* hover lift for bezels */
a.bezel, .bezel.liftable {
  display: block;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
a.bezel:hover, .bezel.liftable:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-ambient);
}

/* ============ IMAGE TREATMENTS ============ */
.img-frame { position: relative; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.img-cover { aspect-ratio: 16/10; overflow: hidden; }
.img-cover img { transition: transform 1.4s var(--ease-out); }
.bezel:hover .img-cover img { transform: scale(1.045); }

.img-veil::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(138,92,246,0.08), rgba(14,18,32,0.0) 45%);
  mix-blend-mode: multiply; pointer-events: none;
}

/* ============ STATS ============ */
.stat h3, .stat .stat-num {
  font-family: var(--font-display); font-weight: 580;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem); letter-spacing: -0.03em; line-height: 1;
}
.stat .stat-num em { font-style: normal; }
.stat p { font-size: 0.92rem; margin-top: 0.5rem; }

.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin-top: 2.4rem;
}
@media (max-width: 760px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============ SECTION HEADERS ============ */
.sec-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .lede { margin-inline: auto; }
.sec-head .lede { margin-top: 1.1rem; }

.sec-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 760px) { .sec-head-row { flex-direction: column; align-items: flex-start; } }

/* ============ PROCESS / TIMELINE ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; counter-reset: step; }
.steps.steps-6 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .steps.steps-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps.steps-6 { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 1.7rem 1.6rem 1.8rem; }
.step .num {
  font-family: var(--font-display); font-weight: 570;
  font-size: 2.6rem; letter-spacing: -0.03em;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  opacity: 0.85;
}
.step h4 { font-size: 1.1rem; margin: 0.7rem 0 0.5rem; }
.step p { font-size: 0.92rem; line-height: 1.6; }

/* ============ CHECK LIST ============ */
.checks { display: grid; gap: 0.85rem; }
.checks li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--ink-soft); font-weight: 500; font-size: 0.99rem; }
.checks li svg {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px;
  color: var(--brand-a);
}

/* ============ CTA BAND ============ */
.cta-band { position: relative; overflow: hidden; }
.cta-band .bezel-core { position: relative; }
.cta-inner {
  position: relative; text-align: center;
  padding: clamp(3.5rem, 8vw, 6.5rem) 1.5rem;
  background:
    radial-gradient(60% 90% at 50% 120%, rgba(138,92,246,0.14), transparent 65%),
    radial-gradient(40% 60% at 12% -10%, rgba(79,125,249,0.1), transparent 60%),
    #fff;
}
.cta-inner .display-lg { max-width: 24ch; margin-inline: auto; }
.cta-inner .lede { margin: 1.2rem auto 2.2rem; }
.cta-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--hairline);
  background: #fff;
}
.footer-main {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; gap: 2.2rem; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }
.footer-brand p { font-size: 0.95rem; max-width: 30ch; margin-top: 1rem; }
.footer h5 {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--faint); font-weight: 650; margin-bottom: 1.1rem;
  font-family: var(--font-body);
}
.footer ul { display: grid; gap: 0.55rem; }
.footer ul a { font-size: 0.95rem; color: var(--ink-soft); font-weight: 510; transition: color 0.3s; }
.footer ul a:hover { color: var(--brand-a); }
.footer-base {
  border-top: 1px solid var(--hairline);
  padding-block: 1.4rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--faint);
}

/* ============ PAGE HERO (interior pages) ============ */
.page-hero {
  position: relative;
  padding-top: clamp(8.5rem, 15vh, 11rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.crumbs { display: flex; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: var(--faint); margin-bottom: 1.6rem; font-weight: 520; }
.crumbs a:hover { color: var(--brand-a); }
.crumbs span { opacity: 0.5; }

/* ============ SPLIT LAYOUTS ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ============ FORMS ============ */
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.98rem; color: var(--ink);
  padding: 0.85rem 1.1rem;
  border-radius: 1.1rem;
  border: 1px solid var(--hairline-strong);
  background: #fff;
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-a);
  box-shadow: 0 0 0 4px rgba(138,92,246,0.13);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ============ TABLE (comparison) ============ */
.spec-rows { display: grid; }
.spec-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem;
  padding: 1.3rem 0; border-top: 1px solid var(--hairline);
}
.spec-row:last-child { border-bottom: 1px solid var(--hairline); }
.spec-row dt { font-weight: 620; font-size: 0.98rem; }
.spec-row dd { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 640px) { .spec-row { grid-template-columns: 1fr; gap: 0.3rem; } }

/* ============ REVEAL PRIMING (JS adds .js to <html>) ============ */
html.js [data-reveal] { opacity: 0; }

/* ============ MISC ============ */
.pill-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.pill-row span {
  padding: 0.42rem 0.95rem; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--hairline);
  font-size: 0.85rem; font-weight: 560; color: var(--ink-soft);
  box-shadow: 0 2px 8px -4px rgba(14,18,32,0.08);
}

.tick-divider { height: 1px; background: var(--hairline); }

.kicker-note { font-size: 0.85rem; color: var(--faint); }

/* floating badge on hero image */
.float-chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 1.1rem;
  border-radius: 1.2rem;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: var(--shadow-ambient);
  font-size: 0.85rem; font-weight: 600; color: var(--ink);
  will-change: transform;
}
.float-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34,197,94,0.15); }
.float-chip small { display: block; font-weight: 500; color: var(--muted); font-size: 0.75rem; }

/* ============================================================
   LAYER 2 — POLISH  ·  light, depth, navigation, transitions
   ============================================================ */

/* ---- Scroll progress ---- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 120; pointer-events: none; background: transparent;
}
.progress i {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, #8A5CF6, #5B8DF8 55%, #8A5CF6);
  box-shadow: 0 0 18px rgba(138, 92, 246, 0.55);
}

/* ---- Page-transition veil ---- */
/* never render without JS — a stuck veil would blank the page */
.veil { display: none; }
html.js .veil {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--canvas);
  clip-path: inset(0 0 0 0);
  pointer-events: none;
}
html.js .veil.gone, .veil.gone { display: none; }
.veil-mark { width: 46px; height: 46px; display: block; opacity: 0.9; }
.veil-mark svg { width: 100%; height: 100%; }

/* ---- Section seams: soft light instead of hard rules ---- */
.band {
  position: relative;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(138, 92, 246, 0.055), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #FDFDFF 55%, #FFFFFF 100%);
}
.band::before, .band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14, 18, 32, 0.11) 22%, rgba(138, 92, 246, 0.25) 50%, rgba(14, 18, 32, 0.11) 78%, transparent);
}
.band::before { top: 0; }
.band::after { bottom: 0; }

/* glow bloom riding each seam */
.band > .wrap { position: relative; z-index: 1; }
.band .seam-glow {
  position: absolute; left: 50%; translate: -50% 0;
  width: min(900px, 86vw); height: 240px; top: -120px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(138, 92, 246, 0.28), rgba(79,125,249,0.12) 45%, transparent 72%);
  filter: blur(34px); pointer-events: none; z-index: 0;
}

/* ---- Cards: spotlight + gradient hairline on hover ---- */
.bezel { position: relative; }
.bezel-core { position: relative; }
.bezel-core::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity 0.6s var(--ease-out);
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
              rgba(138, 92, 246, 0.10), transparent 62%);
}
.bezel:hover .bezel-core::after { opacity: 1; }

/* animated gradient rim on the outer shell */
.bezel::before {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--r-xl); padding: 1px;
  background: linear-gradient(135deg, rgba(138,92,246,0.55), rgba(79,125,249,0.45) 45%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.6s var(--ease-out);
  pointer-events: none; z-index: 2;
}
.bezel:hover::before { opacity: 1; }

/* top sheen across card images */
.img-cover::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.32) 48%, transparent 60%);
  translate: -120% 0;
  transition: translate 1.1s var(--ease-out);
}
.bezel:hover .img-cover::before { translate: 120% 0; }

/* ---- Feature icon: lift + tint on card hover ---- */
.ficon { transition: transform 0.6s var(--ease-spring), box-shadow 0.6s var(--ease-out); }
.bezel:hover .ficon {
  transform: translateY(-3px) rotate(-4deg);
  box-shadow: 0 12px 26px -12px rgba(138, 92, 246, 0.6);
}

/* ---- NAV: sliding indicator ---- */
.nav-links { position: relative; }
.nav-ind {
  position: absolute; z-index: 0; top: 0; left: 0; height: 100%;
  border-radius: var(--r-pill);
  background: rgba(14, 18, 32, 0.055);
  opacity: 0; pointer-events: none;
  will-change: transform, width;
}
.nav-links > li { z-index: 1; }
.nav-links > li > a:hover, .nav-links > li > a.is-active { background: transparent; }

/* ---- MEGA DROPDOWN ---- */
.drop.mega { min-width: 600px; padding: 0.55rem; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem; }
.mega-grid a {
  align-items: flex-start; gap: 0.65rem; padding: 0.65rem 0.7rem;
  border-radius: 1rem;
}
.mega-grid .dt { display: grid; gap: 0.1rem; line-height: 1.3; }
.mega-grid .dt strong { font-size: 0.88rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.mega-grid .dt small { font-size: 0.76rem; color: var(--faint); font-weight: 500; }
.mega-grid a:hover .di {
  background: var(--brand-grad); color: #fff;
  border-color: transparent;
}
.mega-grid .di { transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out); }
.mega-foot {
  display: flex !important; align-items: center; justify-content: space-between;
  margin-top: 0.35rem; padding: 0.75rem 0.9rem !important;
  border-radius: 1rem; background: rgba(14, 18, 32, 0.04);
  font-size: 0.86rem; font-weight: 620;
}
.mega-foot .mf-orb {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand-grad); color: #fff;
  transition: transform 0.5s var(--ease-spring);
}
.mega-foot .mf-orb svg { width: 11px; height: 11px; }
.mega-foot:hover .mf-orb { transform: translate(2px, -2px); }
@media (max-width: 1140px) { .drop.mega { min-width: 380px; } .mega-grid { grid-template-columns: 1fr; } }

/* ---- SECTION RAIL ---- */
.rail {
  position: fixed; right: 1.6rem; top: 50%; translate: 0 -50%;
  z-index: 70; display: grid; gap: 0.15rem;
  padding: 0.5rem 0.45rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(14, 18, 32, 0.06);
  box-shadow: 0 12px 40px -18px rgba(14, 18, 32, 0.28);
  opacity: 0; transform: translateX(14px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.rail.show { opacity: 1; transform: translateX(0); }
.rail a {
  position: relative; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
}
.rail .rd {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(14, 18, 32, 0.2);
  transition: transform 0.55s var(--ease-spring), background 0.5s var(--ease-out);
}
.rail a:hover .rd { background: rgba(14, 18, 32, 0.45); transform: scale(1.3); }
.rail a.is-active .rd { background: var(--brand-a); transform: scale(1.55); box-shadow: 0 0 0 4px rgba(138, 92, 246, 0.16); }
.rail em {
  position: absolute; right: calc(100% + 0.7rem); top: 50%; translate: 0 -50%;
  font-style: normal; font-size: 0.76rem; font-weight: 600; white-space: nowrap;
  padding: 0.3rem 0.7rem; border-radius: var(--r-pill);
  background: var(--ink); color: #fff;
  opacity: 0; transform: translateX(6px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  pointer-events: none;
}
.rail a:hover em { opacity: 1; transform: translateX(0); }
@media (max-width: 1200px) { .rail { display: none; } }

/* ---- BACK TO TOP ---- */
.to-top {
  position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 70;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  box-shadow: 0 16px 34px -14px rgba(14, 18, 32, 0.55);
  opacity: 0; transform: translateY(14px) scale(0.9); pointer-events: none;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-spring);
}
.to-top.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.to-top:hover { transform: translateY(-3px) scale(1.05); }
.to-top svg { width: 17px; height: 17px; rotate: 180deg; }
@media (max-width: 620px) { .to-top { right: 1rem; bottom: 1rem; } }

/* ---- Headline word-mask reveal ---- */
.word { display: inline-block; overflow: hidden; vertical-align: top; }
.word > i { display: inline-block; font-style: inherit; will-change: transform; }

/* ---- Magnetic buttons ---- */
.btn, .nav-cta { will-change: transform; }

/* ---- Link underline sweep (footer + card links) ---- */
.footer ul a { position: relative; }
.footer ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--brand-grad); transform-origin: 100% 50%; scale: 0 1;
  transition: scale 0.55s var(--ease-out);
}
.footer ul a:hover::after { transform-origin: 0 50%; scale: 1 1; }

/* ---- Eyebrow shimmer ---- */
.eyebrow { position: relative; overflow: hidden; }
.eyebrow::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(138,92,246,0.16) 50%, transparent 60%);
  translate: -100% 0;
  animation: eyebrow-sheen 5.5s var(--ease-out) infinite;
}
@keyframes eyebrow-sheen { 0%, 72% { translate: -100% 0; } 100% { translate: 100% 0; } }

/* ---- Step cards: connective tissue ---- */
.steps { position: relative; }
.step { transition: transform 0.6s var(--ease-out); }
.step .num { transition: transform 0.6s var(--ease-spring); display: inline-block; }
.bezel:hover .step .num { transform: translateY(-2px) scale(1.06); }

/* ---- Checks: stagger-friendly tick ---- */
.checks li svg { transition: transform 0.5s var(--ease-spring); }
.checks li:hover svg { transform: scale(1.25) rotate(-6deg); }

/* ---- Form polish ---- */
.field { position: relative; }
.field input:focus, .field select:focus, .field textarea:focus {
  box-shadow: 0 0 0 4px rgba(138, 92, 246, 0.13), 0 12px 30px -18px rgba(138, 92, 246, 0.7);
}

/* ---- Hero image: ambient bloom under the frame ---- */
.hero .wrap-wide .bezel { position: relative; }
.hero .wrap-wide .bezel::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -26px; height: 70px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(138, 92, 246, 0.3), transparent 72%);
  filter: blur(26px); z-index: -1; pointer-events: none;
}

/* ---- Reduced motion: strip the kinetic layer ---- */
@media (prefers-reduced-motion: reduce) {
  .eyebrow::after, .marquee-track { animation: none; }
  .img-cover::before { display: none; }
  .rail, .to-top { transition: none; }
}

/* gradient text survives word-splitting: paint each word span itself */
.grad-text .word > i {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ============================================================
   LAYER 3 — accessibility & browser surfaces
   ============================================================ */

/* ---- Skip link ---- */
.skip {
  position: fixed; top: 0.75rem; left: 50%; z-index: 300;
  transform: translate(-50%, -160%);
  padding: 0.7rem 1.3rem; border-radius: var(--r-pill);
  background: var(--ink); color: #fff;
  font-size: 0.9rem; font-weight: 600;
  box-shadow: var(--shadow-ambient);
  transition: transform 0.4s var(--ease-out);
}
.skip:focus-visible { transform: translate(-50%, 0); outline: none; }

/* ---- Focus rings: visible, on-brand, never clipped ---- */
:focus-visible {
  outline: 2px solid var(--brand-a);
  outline-offset: 3px;
  border-radius: 4px;
}
.nav-links > li > a:focus-visible,
.nav-cta:focus-visible,
.btn:focus-visible,
.drop a:focus-visible,
.mega-foot:focus-visible,
.rail a:focus-visible,
.to-top:focus-visible,
.footer ul a:focus-visible { outline-offset: 4px; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: none; } /* ring handled by box-shadow */

/* ---- Browser surfaces: caret, scrollbar, selection ---- */
:root { accent-color: var(--brand-a); caret-color: var(--brand-a); }
::selection { background: var(--brand-a); color: #fff; }

@supports (scrollbar-color: auto) {
  html { scrollbar-color: rgba(14,18,32,0.28) transparent; scrollbar-width: thin; }
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(14,18,32,0.22);
  border: 3px solid var(--canvas);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(14,18,32,0.38); }

/* ---- Numerals: stats and counters align ---- */
.stat .stat-num, .step .num { font-variant-numeric: tabular-nums; }

/* ---- Touch targets on the rail ---- */
@media (pointer: coarse) {
  .rail a { width: 34px; height: 34px; }
}

/* ---- Print ---- */
@media print {
  .nav-shell, .rail, .to-top, .progress, .veil, .grain, .mobile-menu { display: none !important; }
  body { background: #fff; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   LAYER 4 — client proof, editorial & the AI stage
   ============================================================ */

/* ---- Custom Penrose icon set (colour + masks live in Layer 5) ---- */
.ficon-art, .di-art { overflow: hidden; }
.bezel:hover .ficon-art { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(138,92,246,0.35); }

/* ============ CUSTOMERS — infinite logo rail ============ */
.customers { overflow: hidden; }
.logo-rail {
  position: relative;
  padding-block: 0.5rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track {
  display: flex; width: max-content; gap: 1.1rem;
  animation: logo-scroll 46s linear infinite;
  will-change: transform;
}
.logo-rail:hover .logo-track,
.logo-rail:focus-within .logo-track { animation-play-state: paused; }
@keyframes logo-scroll { to { transform: translateX(-50%); } }

.logo-tile {
  flex: 0 0 auto; width: 210px; margin: 0;
  display: grid; place-items: center; gap: 0.75rem;
  padding: 1.6rem 1.4rem 1.2rem;
  border-radius: 1.5rem;
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: 0 10px 30px -22px rgba(14,18,32,0.4);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), border-color 0.6s;
}
.logo-tile img {
  width: 100%; height: 74px; object-fit: contain;
  /* client logos ship with baked-in white backgrounds, so multiply drops the
     white against the tile instead of turning it grey */
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.18);
  opacity: 0.72;
  transition: filter 0.6s var(--ease-out), opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out);
}
.logo-tile figcaption {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--faint); text-align: center; line-height: 1.3;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.logo-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(138,92,246,0.32);
  box-shadow: 0 26px 50px -26px rgba(138,92,246,0.5);
}
.logo-tile:hover img { filter: none; opacity: 1; transform: scale(1.04); }

/* logos supplied on a dark ground keep it, so they read as intended */
.logo-tile.on-dark { background: #15151B; border-color: rgba(255,255,255,0.1); }
.logo-tile.on-dark img { mix-blend-mode: normal; filter: grayscale(1) contrast(1.05); }
.logo-tile.on-dark figcaption { color: rgba(255,255,255,0.66); }
.logo-tile.on-dark:hover { border-color: rgba(138,92,246,0.5); }
.logo-tile:hover figcaption { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .logo-tile figcaption { opacity: 1; transform: none; }
}

/* ============ ROBOT / AI BAND ============ */
.robot-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(70% 90% at 78% 40%, rgba(138,92,246,0.34), transparent 62%),
    radial-gradient(60% 70% at 12% 10%, rgba(79,125,249,0.22), transparent 60%),
    linear-gradient(160deg, #12162A 0%, #0B0E1A 60%, #0E1220 100%);
  color: #fff;
  border-radius: clamp(1.5rem, 3vw, 2.6rem);
  margin-inline: clamp(0rem, 3vw, 1.5rem);
}
.robot-band h2, .robot-band strong { color: #fff; }
.robot-band .lede { color: rgba(255,255,255,0.72); }
.eyebrow-dark {
  background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.8);
}
.robot-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 980px) { .robot-grid { grid-template-columns: 1fr; } }

.robot-list { display: grid; gap: 1.4rem; margin-top: 2.2rem; }
.robot-list li { display: flex; gap: 1rem; align-items: flex-start; }
.robot-list .rb-n {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 600;
  color: var(--brand-a); padding-top: 0.28rem; font-variant-numeric: tabular-nums;
}
.robot-list strong { font-size: 1.02rem; font-weight: 620; display: block; margin-bottom: 0.2rem; }
.robot-list p { color: rgba(255,255,255,0.6); font-size: 0.95rem; line-height: 1.55; }

.btn-invert { background: #fff; color: var(--ink); box-shadow: 0 18px 36px -16px rgba(0,0,0,0.6); }
.btn-invert .orb { background: var(--brand-grad); color: #fff; }
.btn-invert:hover { transform: translateY(-2px); }

.robot-stage {
  position: relative; min-height: clamp(340px, 46vw, 560px);
  border-radius: 1.8rem; overflow: hidden;
  display: grid; place-items: center;
}
.robot-holo {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(46% 46% at 50% 62%, rgba(138,92,246,0.3), transparent 70%);
  filter: blur(28px);
}
.robot-stage spline-viewer { width: 100%; height: 100%; display: block; }
.robot-fallback {
  display: grid; place-items: center; gap: 0.55rem; text-align: center;
  color: rgba(255,255,255,0.62); position: relative; z-index: 1;
}
.robot-fallback img { width: 92px; height: 92px; opacity: 0.85; }
.robot-fallback span { font-weight: 600; color: rgba(255,255,255,0.86); font-size: 0.95rem; }
.robot-fallback small { font-size: 0.8rem; }
.robot-stage.is-live .robot-fallback { display: none; }

/* ============ JOURNAL — horizontal editorial rail ============ */
.jrail {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem clamp(1.5rem, calc((100vw - 1200px) / 2 + 1.5rem), 50vw) 1.5rem;
}
.jrail::-webkit-scrollbar { display: none; }
.jtrack { display: flex; gap: 1.1rem; width: max-content; }
.jcard {
  scroll-snap-align: start;
  position: relative; isolation: isolate;
  flex: 0 0 auto; width: clamp(238px, 25vw, 292px);
  min-height: 320px;
  display: flex; flex-direction: column; gap: 0.7rem;
  padding: 1.5rem 1.5rem 3.4rem;
  border-radius: 1.6rem;
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: 0 12px 34px -24px rgba(14,18,32,0.4);
  overflow: hidden;
  transition: transform 0.65s var(--ease-out), box-shadow 0.65s var(--ease-out), border-color 0.5s;
}
.jcard::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(155deg, #8A5CF6, #5B8DF8);
  opacity: 0; transition: opacity 0.65s var(--ease-out);
}
.jcard:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: 0 34px 60px -30px rgba(138,92,246,0.6);
}
.jcard:hover::before { opacity: 1; }
.jcard.is-featured::before { opacity: 1; }
.jcard.is-featured { border-color: transparent; }
.jcat {
  align-self: flex-start;
  padding: 0.3rem 0.75rem; border-radius: var(--r-pill);
  border: 1px solid var(--hairline-strong);
  font-size: 0.7rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  transition: color 0.5s, border-color 0.5s, background 0.5s;
}
.jcard h3 { font-size: 1.16rem; line-height: 1.2; transition: color 0.5s; }
.jcard p { font-size: 0.9rem; line-height: 1.55; transition: color 0.5s; }
.jgo {
  position: absolute; right: 1.4rem; bottom: 1.4rem;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(14,18,32,0.06); color: var(--ink);
  transition: transform 0.6s var(--ease-spring), background 0.5s, color 0.5s;
}
.jgo svg { width: 14px; height: 14px; }
.jcard:hover .jgo, .jcard.is-featured .jgo { background: rgba(255,255,255,0.22); color: #fff; }
.jcard:hover .jgo { transform: translate(3px, -3px); }
.jcard:hover h3, .jcard.is-featured h3 { color: #fff; }
.jcard:hover p, .jcard.is-featured p { color: rgba(255,255,255,0.82); }
.jcard:hover .jcat, .jcard.is-featured .jcat {
  color: #fff; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.12);
}

/* ============ TESTIMONIALS ============ */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 940px) { .tgrid { grid-template-columns: 1fr; } }
.tcard {
  position: relative; margin: 0;
  display: flex; flex-direction: column; gap: 1.2rem;
  padding: 1.8rem;
  border-radius: 1.8rem;
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: 0 14px 40px -28px rgba(14,18,32,0.4);
  transition: transform 0.65s var(--ease-out), box-shadow 0.65s var(--ease-out), border-color 0.5s;
}
.tcard:hover {
  transform: translateY(-6px);
  border-color: rgba(138,92,246,0.3);
  box-shadow: 0 30px 60px -30px rgba(138,92,246,0.45);
}
.tcard-head { display: flex; align-items: center; justify-content: space-between; }
.tmark svg { width: 30px; height: 30px; }
.tnum {
  font-family: var(--font-display); font-size: 2.1rem; font-weight: 600;
  color: rgba(14,18,32,0.1); line-height: 1; font-variant-numeric: tabular-nums;
  transition: color 0.6s var(--ease-out);
}
.tcard:hover .tnum { color: rgba(138,92,246,0.42); }
.tcard blockquote {
  margin: 0; font-size: 0.99rem; line-height: 1.62; color: var(--muted);
  position: relative; padding-top: 1.6rem;
}
.tcard blockquote::before {
  content: "“"; position: absolute; top: -0.6rem; left: -0.2rem;
  font-family: var(--font-display); font-size: 3.6rem; line-height: 1;
  color: rgba(138,92,246,0.24);
}
.tcard figcaption { margin-top: auto; display: grid; gap: 0.15rem; padding-top: 0.4rem; }
.tcard figcaption strong { font-size: 1rem; font-weight: 640; }
.tcard figcaption span { font-size: 0.85rem; color: var(--faint); }

/* ============================================================
   LAYER 5 — real brand mark + recolourable icon system
   ============================================================ */

/* ---- Official wordmark ---- */
.nav-logo img { width: auto; height: 30px; display: block; }
.footer-brand .nav-logo img { height: 34px; }
@media (max-width: 1020px) { .nav-logo img { height: 27px; } }

.veil-mark { width: 52px; height: 52px; }
.veil-mark img { width: 100%; height: 100%; object-fit: contain; }

.tmark img { width: 30px; height: 30px; object-fit: contain; }

/* ---- Icon system: mask-driven so colour is a CSS decision ---- */
.ic {
  display: block;
  width: 100%; height: 100%;
  background-color: var(--ink-soft);
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
  transition: background-color 0.55s var(--ease-out), transform 0.8s var(--ease-out);
}
.ic-erp     { -webkit-mask-image: url("../img/icons/mask/erp.png");     mask-image: url("../img/icons/mask/erp.png"); }
.ic-web     { -webkit-mask-image: url("../img/icons/mask/web.png");     mask-image: url("../img/icons/mask/web.png"); }
.ic-app     { -webkit-mask-image: url("../img/icons/mask/app.svg");     mask-image: url("../img/icons/mask/app.svg"); }
.ic-ai      { -webkit-mask-image: url("../img/icons/mask/ai.png");      mask-image: url("../img/icons/mask/ai.png"); }
.ic-fleet   { -webkit-mask-image: url("../img/icons/mask/fleet.svg");   mask-image: url("../img/icons/mask/fleet.svg"); }
.ic-support { -webkit-mask-image: url("../img/icons/mask/support.svg"); mask-image: url("../img/icons/mask/support.svg"); }

/* Tile sits neutral with the rest of the card; colour is earned on hover */
.ficon-art {
  background: rgba(14, 18, 32, 0.045);
  border-color: var(--hairline);
  padding: 0;
  display: grid; place-items: center;
}
/* size the glyph, not the tile: % padding would resolve against the
   parent's width and blow the tile up */
.ficon-art .ic { width: 58%; height: 58%; }
.bezel:hover .ficon-art,
a.bezel:focus-visible .ficon-art {
  background: linear-gradient(150deg, var(--brand-tint), var(--brand-tint-b));
  border-color: rgba(138, 92, 246, 0.24);
}
.bezel:hover .ficon-art .ic,
a.bezel:focus-visible .ficon-art .ic {
  background-color: var(--brand-a);
  /* a nudge, not a quarter-turn: 90deg made the two triangle marks
     read as each other mid-hover */
  transform: scale(1.08) rotate(-6deg);
}

/* Dropdown icons follow the same rule */
.di-art { background: rgba(14, 18, 32, 0.045); padding: 0; display: grid; place-items: center; }
.di-art .ic { width: 60%; height: 60%; }
.di-art .ic { background-color: var(--ink-soft); }
.mega-grid a:hover .di-art { background: linear-gradient(150deg, var(--brand-tint), var(--brand-tint-b)); }
.mega-grid a:hover .di-art .ic { background-color: var(--brand-a); }

@media (prefers-reduced-motion: reduce) {
  .bezel:hover .ficon-art .ic { transform: none; }
}

/* ============================================================
   LAYER 6 — contact channels, socials, legal, journal rhythm
   ============================================================ */

/* ---- Floating actions: WhatsApp + back to top ---- */
.float-actions {
  position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 70;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.7rem;
}
.float-actions .to-top { position: static; }
@media (max-width: 620px) { .float-actions { right: 1rem; bottom: 1rem; } }

.wa-fab {
  display: inline-flex; align-items: center; gap: 0.6rem;
  height: 52px; padding: 0 1.15rem;
  border-radius: var(--r-pill);
  background: #25D366; color: #0B2A14;
  font-weight: 640; font-size: 0.95rem; white-space: nowrap;
  box-shadow: 0 16px 34px -14px rgba(37, 211, 102, 0.75);
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-out);
}
.wa-fab svg { width: 23px; height: 23px; flex-shrink: 0; }
.wa-fab:hover { transform: translateY(-3px); box-shadow: 0 22px 42px -14px rgba(37, 211, 102, 0.85); }
/* collapse to a disc on small screens so it never crowds the content */
@media (max-width: 760px) {
  .wa-fab { width: 52px; padding: 0; justify-content: center; }
  .wa-fab span { display: none; }
}

.btn-wa { background: #25D366; color: #0B2A14; box-shadow: 0 16px 32px -16px rgba(37,211,102,0.8); }
.btn-wa .orb { background: rgba(11, 42, 20, 0.14); color: #0B2A14; }
.ficon-wa { background: rgba(37, 211, 102, 0.14); border-color: rgba(37,211,102,0.3); color: #128C4A; }
.ficon-wa svg { width: 22px; height: 22px; }

/* ---- Footer socials ---- */
.social-row { display: flex; gap: 0.5rem; margin-top: 1.4rem; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(14, 18, 32, 0.05);
  color: var(--ink-soft);
  transition: background 0.45s var(--ease-out), color 0.45s var(--ease-out), transform 0.5s var(--ease-spring);
}
.social-row a svg { width: 17px; height: 17px; }
.social-row a:hover { background: var(--brand-grad); color: #fff; transform: translateY(-3px); }

/* ---- Journal: breathing room, centred when it fits ---- */
.journal .sec-head.center { margin-bottom: clamp(2.2rem, 4vw, 3rem); }
.jrail {
  padding-inline: max(1.5rem, calc((100vw - 1200px) / 2));
  padding-block: 0.6rem 1.2rem;
  scroll-padding-inline-start: max(1.5rem, calc((100vw - 1200px) / 2));
}
.jtrack { margin-inline: auto; }
@media (min-width: 1500px) {
  /* enough room for the whole set: centre it instead of left-anchoring */
  .jrail { display: flex; justify-content: center; }
}
.jhint {
  text-align: center; margin-top: 0.6rem;
  font-size: 0.8rem; letter-spacing: 0.02em;
}
@media (hover: none) { .jhint::before { content: "Swipe"; } }
@media (hover: hover) { .jhint::before { content: "Drag"; } }
.jhint { font-size: 0; }
.jhint::after {
  content: " sideways to read more"; font-size: 0.8rem; color: var(--faint);
}
.jhint::before { font-size: 0.8rem; color: var(--faint); font-weight: 600; }

/* ---- Legal / policy pages ---- */
.legal { max-width: 46rem; }
.legal-meta {
  font-size: 0.85rem; color: var(--faint);
  padding-bottom: 1.6rem; margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--hairline);
}
.legal-block { padding-block: 1.6rem; }
.legal-block + .legal-block { border-top: 1px solid var(--hairline); }
.legal-block h2 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  margin-bottom: 0.9rem;
}
.legal-block p { font-size: 1rem; line-height: 1.7; }
.legal-block p + p { margin-top: 0.8rem; }
.legal-block a { color: var(--brand-a); font-weight: 560; text-decoration: underline; text-underline-offset: 3px; }
.legal-block a:hover { color: var(--ink); }

/* ---- Language switch (present on both builds) ---- */
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 0.85rem; margin-inline-start: 0.25rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline-strong);
  font-size: 0.85rem; font-weight: 600; color: var(--ink-soft);
  white-space: nowrap; flex-shrink: 0;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out), border-color 0.4s;
}
.lang-switch:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
/* stays visible on mobile — on a bilingual site this is primary navigation */
@media (max-width: 1020px) {
  .lang-switch { height: 32px; padding: 0 0.7rem; font-size: 0.8rem; margin-inline-end: 0.15rem; }
}

/* ---- Honeypot: off-screen for bots, never announced to humans ---- */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
/* Turnstile widget only takes space once a site key activates it */
.cf-turnstile:empty { display: none; }
.cf-turnstile { margin-top: 0.2rem; }

/* ============================================================
   LAYER 7 — journal articles
   ============================================================ */
.article { max-width: 44rem; }
.article p {
  font-size: 1.06rem; line-height: 1.78; margin-bottom: 1.1rem;
}
.article h2 {
  margin: 2.4rem 0 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
}
.article h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.art-list { display: grid; gap: 0.9rem; margin: 0 0 1.6rem; }
.art-list li {
  position: relative; padding-left: 1.5rem;
  font-size: 1.02rem; line-height: 1.7; color: var(--muted);
}
.art-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-grad);
}
.art-list strong { color: var(--ink); font-weight: 620; }
[dir="rtl"] .art-list li { padding-left: 0; padding-right: 1.5rem; }
[dir="rtl"] .art-list li::before { left: auto; right: 0; }
.article-hero h1 { max-width: 20ch; }
