:root{
  --bg:#0A0912;
  --bg-soft:#100D1C;
  --surface:#161227;
  --surface-2:#1E1836;
  --ink:#F4F2FB;
  --ink-soft:#9791B5;
  --violet:#7A50D8;
  --violet-light:#A78BFA;
  --violet-deep:#5F37D3;
  --blue:#3A55D1;
  --line:rgba(255,255,255,0.09);
  --white:#FFFFFF;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth; overflow-x:clip;}
@supports not (overflow-x:clip){ html, body{ overflow-x:hidden; } }
body{
  background:var(--bg);
  color:var(--ink);
  font-family:'Inter', sans-serif;
  -webkit-font-smoothing:antialiased;
}
::selection{background:var(--violet); color:var(--white);}
a{color:inherit; text-decoration:none;}
.wrap{max-width:1140px; margin:0 auto; padding:0 28px;}

h1,h2,h3{
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  letter-spacing:-0.01em;
  line-height:1.08;
  color:var(--white);
}

.tag{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12.5px; font-weight:600;
  letter-spacing:0.04em; text-transform:uppercase;
  background:var(--surface);
  border:1px solid var(--line);
  padding:8px 14px;
  border-radius:999px;
  color:var(--ink-soft);
}
.tag .dot{width:6px; height:6px; border-radius:50%; background:var(--violet); box-shadow:0 0 8px var(--violet);}

/* ===== TOP BAR ===== */
.topbar{ position:relative; z-index:2; padding-top:36px; }
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap;
  gap:14px 20px;
}
.logo-mark{
  width:34px; height:34px; flex-shrink:0;
  object-fit:contain;
  background:transparent;
  border:none;
  display:block;
}
.logo-word{
  font-family:'Space Grotesk', sans-serif;
  font-size:19px; font-weight:700;
  letter-spacing:0.05em; text-transform:uppercase;
  color:var(--white);
}
.brand{ display:flex; align-items:center; gap:10px; }
/* Main navigation — inline on desktop, a toggled panel on phones/tablets */
.nav-links{
  display:flex; align-items:center; gap:26px;
}
.nav-links a{
  font-size:14px; font-weight:500;
  color:var(--ink-soft);
  white-space:nowrap;
  transition:color .15s ease;
}
.nav-links a:hover, .nav-links a.active{ color:var(--white); }
.nav-links .nav-cta{ display:none; }
.menu-toggle{
  display:none;
  width:46px; height:46px;
  align-items:center; justify-content:center;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:14px;
  cursor:pointer;
  color:var(--white);
  -webkit-tap-highlight-color:transparent;
}
.menu-bars{ position:relative; width:20px; height:14px; display:block; }
.menu-bars span{
  position:absolute; left:0; width:100%; height:2px;
  background:currentColor; border-radius:2px;
  transition:transform .25s ease, opacity .2s ease, top .25s ease;
}
.menu-bars span:nth-child(1){ top:0; }
.menu-bars span:nth-child(2){ top:6px; }
.menu-bars span:nth-child(3){ top:12px; }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(1){ top:6px; transform:rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(2){ opacity:0; }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(3){ top:6px; transform:rotate(-45deg); }
@keyframes menuIn{
  from{ opacity:0; transform:translateY(-8px); }
  to{ opacity:1; transform:translateY(0); }
}
@media(max-width:900px){
  .topbar{ padding-top:24px; }
  .topbar-inner{ gap:14px 16px; }
  .menu-toggle{ display:inline-flex; margin-left:auto; }
  .btn-light{ display:none; }
  .nav-links{
    display:none;
    order:3;
    flex-basis:100%;
    flex-direction:column;
    align-items:stretch;
    gap:4px;
    padding:10px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:20px;
    box-shadow:0 24px 48px -24px rgba(0,0,0,0.7);
  }
  .nav-links.open{ display:flex; animation:menuIn .25s ease both; }
  .nav-links a{
    font-size:16px;
    padding:0 16px;
    min-height:48px;
    display:flex; align-items:center;
    border-radius:12px;
  }
  .nav-links a.active{ background:rgba(122,80,216,0.14); }
  .nav-links a:not(.nav-cta):hover{ background:rgba(255,255,255,0.05); }
  .nav-links .nav-cta{
    display:flex; justify-content:center;
    margin-top:6px;
    background:#B9A6FF; color:#241B44; font-weight:600;
  }
  .nav-links .nav-cta:hover{ background:#C9B9FF; }
}
.btn-light{ order:3; }
}
@media(max-width:560px){
  .nav-links{ gap:22px; font-size:13px; padding:8px 2px 4px; }
  .nav-links a{ font-size:13px; }
}
.btn-light{
  font-size:13.5px; font-weight:600;
  padding:11px 22px;
  background:#B9A6FF;
  color:#241B44;
  border-radius:10px;
  transition:transform .15s ease, background .15s ease;
}
.btn-light:hover{ background:#C9B9FF; transform:translateY(-1px); }

/* ===== HERO ===== */
header.hero{
  padding:0 0 100px;
  position:relative;
  overflow:hidden;
}
.hero-glow{
  position:absolute;
  top:-220px; left:50%;
  transform:translateX(-50%);
  width:1000px; height:900px;
  background:
    radial-gradient(circle at 35% 35%, rgba(122,80,216,0.5), transparent 55%),
    radial-gradient(circle at 65% 65%, rgba(58,85,209,0.4), transparent 55%);
  filter:blur(30px);
  z-index:0;
  pointer-events:none;
}
.hero-content{ position:relative; z-index:1; max-width:760px; margin:80px auto 0; text-align:center; }
.hero h1{
  font-size:clamp(40px, 6vw, 68px);
  margin:22px auto 24px;
  max-width:15ch;
}
.hero h1 .hl{
  color:var(--violet);
}
.hero p.lede{
  font-size:18px; color:var(--ink-soft);
  max-width:52ch; line-height:1.65; margin:0 auto 34px;
}
.hero-ctas{ display:flex; gap:16px; flex-wrap:wrap; align-items:center; justify-content:center; }
.btn-primary{
  background:linear-gradient(90deg, var(--violet-deep), var(--blue));
  color:var(--white);
  padding:16px 30px; font-size:15px; font-weight:600;
  border-radius:12px;
  display:inline-flex; align-items:center; gap:8px;
  box-shadow:0 16px 32px -14px rgba(95,55,211,0.6);
  transition:transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 20px 40px -14px rgba(95,55,211,0.75); }
.btn-ghost{
  font-size:15px; font-weight:600; color:var(--ink-soft);
  display:inline-flex; align-items:center; gap:6px;
  border-bottom:1px solid var(--line);
  padding-bottom:2px;
}
.btn-ghost:hover{ color:var(--white); border-color:var(--white); }

/* KPI block under hero */
.kpi-wrap{
  position:relative; z-index:1;
  max-width:320px;
  margin:56px auto 0;
}
.kpi-title{
  font-size:13px; font-weight:600;
  letter-spacing:0.06em; text-transform:uppercase;
  color:var(--ink-soft);
  text-align:center;
  margin-bottom:16px;
}
.hero-stats{
  display:flex;
  flex-direction:column;
  gap:12px;
  max-height:200px;
  overflow-y:scroll;
  padding:4px 14px 4px 0;
  scrollbar-width:auto;
  scrollbar-color:var(--violet) var(--surface-2);
}
.hero-stats::-webkit-scrollbar{ width:8px; }
.hero-stats::-webkit-scrollbar-track{ background:var(--surface-2); border-radius:999px; }
.hero-stats::-webkit-scrollbar-thumb{ background:var(--violet); border-radius:999px; }
@media(min-width:769px){
  .kpi-wrap{ max-width:100%; }
  .hero-stats{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    align-content:start;
    max-height:260px;
    padding-right:0;
    scrollbar-width:none;
  }
  .hero-stats::-webkit-scrollbar{ display:none; }
  .hero-stat{ height:100%; }
}
@media(max-width:560px){
  .kpi-wrap{ max-width:100%; padding:0 6px; }
  .hero-stats{ max-height:min(60vh, 460px); }
}
.hero-stat{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px 18px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.hero-stat::before{
  content:'';
  flex-shrink:0;
  width:8px; height:8px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--violet-deep), var(--blue));
}
.hero-stat .lbl{ font-size:14px; font-weight:500; color:var(--ink); text-align:left; }

/* ===== SECTION shared ===== */
section{ padding:100px 0; }
.section-head{ max-width:620px; margin:0 auto 56px; text-align:center; }
.section-head .tag{ margin-bottom:18px; }
.section-head h2{ font-size:clamp(28px,3.6vw,42px); margin-bottom:14px; }
.section-head p{ color:var(--ink-soft); font-size:16px; line-height:1.6; }

/* ===== CRITERIA SCROLLER ===== */
.criteria{
  display:flex;
  gap:14px;
  overflow-x:scroll;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  padding:4px 4px 20px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:auto;
  scrollbar-color:var(--violet) var(--surface-2);
}
.criteria::-webkit-scrollbar{ height:8px; }
.criteria::-webkit-scrollbar-track{ background:var(--surface-2); border-radius:999px; }
.criteria::-webkit-scrollbar-thumb{ background:var(--violet); border-radius:999px; }
.criterion{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:20px;
  padding:26px 22px;
  flex:0 0 210px;
  scroll-snap-align:start;
}
.criterion .num{
  font-family:'Space Grotesk', sans-serif;
  font-size:12px; font-weight:600;
  color:var(--violet-light);
  margin-bottom:14px; display:block;
  letter-spacing:0.04em;
}
.criterion h3{ font-size:16.5px; margin-bottom:8px; font-weight:600; }
.criterion p{ font-size:13.5px; color:var(--ink-soft); line-height:1.55; }
@media(max-width:560px){
  .criterion{ flex-basis:168px; padding:20px 18px; }
  .criterion h3{ font-size:15px; }
  .criterion p{ font-size:12.5px; }
}

/* ===== STATS BAND ===== */
.stats-heading{
  text-align:center;
  margin-bottom:32px;
}
.badge-gradient{
  position:relative;
  display:inline-flex; align-items:center;
  padding:10px 22px;
  border-radius:999px;
  background:var(--surface);
  color:var(--white);
  font-size:13px; font-weight:600;
  letter-spacing:0.05em; text-transform:uppercase;
}
.badge-gradient::before{
  content:'';
  position:absolute; inset:0;
  border-radius:inherit;
  padding:1.5px;
  background:linear-gradient(120deg, var(--violet-deep), var(--blue), var(--violet));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  pointer-events:none;
}
.stats-band{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:24px;
}
.stats-band .wrap{ display:grid; grid-template-columns:repeat(3,1fr); padding:52px 40px; gap:32px 24px; }
.stat .lbl{ font-size:17px; font-weight:700; color:var(--white); }
.stat .desc{ font-size:13.5px; color:var(--ink-soft); margin-top:8px; line-height:1.6; }
@media(max-width:820px){ .stats-band .wrap{ grid-template-columns:1fr 1fr; padding:36px 24px; gap:28px 20px; } }
@media(max-width:560px){ .stats-band .wrap{ grid-template-columns:1fr; } }

/* ===== PROCESS ===== */
.process{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:20px; overflow:hidden; }
.step{ background:var(--surface); padding:32px 26px; }
.step .stepnum{
  font-family:'Space Grotesk', sans-serif;
  font-size:13px; font-weight:700; letter-spacing:0.04em;
  color:var(--ink-soft);
  margin-bottom:20px;
}
.step .stepnum span{ color:var(--violet-light); }
.step h3{ font-size:17px; margin-bottom:8px; font-weight:600; }
.step p{ font-size:13.5px; color:var(--ink-soft); line-height:1.6; }
@media(max-width:900px){ .process{ grid-template-columns:1fr 1fr; } }
@media(max-width:560px){ .process{ grid-template-columns:1fr; } }

/* ===== SPLIT ===== */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.split > div{
  border-radius:22px; padding:42px 38px;
  border:1px solid var(--line);
  position:relative; overflow:hidden;
}
.split > div:first-child{ background:var(--surface); }
.split > div:last-child{
  background:linear-gradient(160deg, rgba(122,80,216,0.18), rgba(58,85,209,0.12)), var(--surface);
}
.split h3{ font-size:24px; margin-bottom:14px; }
.split p{ font-size:14.5px; line-height:1.65; color:var(--ink-soft); margin-bottom:24px; }
.split a.link{
  font-size:14.5px; font-weight:600; color:var(--white);
  display:inline-flex; align-items:center; gap:6px;
}
.split a.link:hover{ color:var(--violet-light); }
@media(max-width:820px){ .split{ grid-template-columns:1fr; } }

/* ===== CTA ===== */
.cta-band{
  text-align:center; padding:90px 60px;
  background:
    radial-gradient(circle at 20% 20%, rgba(122,80,216,0.35), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(58,85,209,0.3), transparent 55%),
    var(--surface);
  border:1px solid var(--line);
  border-radius:28px;
}
.cta-band h2{ font-size:clamp(30px,4.2vw,48px); max-width:16ch; margin:0 auto 18px; }
.cta-band p{ color:var(--ink-soft); font-size:16px; margin-bottom:32px; }

/* ===== FOOTER ===== */
footer{ padding:48px 0 60px; border-top:1px solid var(--line); margin-top:20px; }
footer .wrap{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:18px; }
footer .fine{ font-size:12.5px; color:var(--ink-soft); display:flex; flex-direction:column; gap:4px; line-height:1.5; }
footer .flinks{ display:flex; flex-wrap:wrap; justify-content:center; gap:6px 24px; font-size:13.5px; font-weight:500; color:var(--ink-soft); }
footer .flinks a{ padding:6px 0; }
footer .flinks a:hover, footer .footer-mail:hover{ color:var(--white); }
footer .footer-contacts{ display:flex; flex-wrap:wrap; justify-content:center; gap:4px 26px; }
footer .footer-mail{ font-size:14px; font-weight:600; color:var(--violet); padding:6px 0; }
@media(max-width:640px){
  footer{ padding:40px 0 48px; }
  footer .flinks{ gap:2px 22px; }
  footer .flinks a{ padding:11px 0; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; transition-duration:0.01ms !important; }
}
a:focus-visible, button:focus-visible{ outline:2px solid var(--violet); outline-offset:2px; }

/* ===== DETAIL PAGE HEADER ===== */
.page-hero{
  padding:64px 0 20px;
  position:relative;
  overflow:hidden;
}
.page-hero-glow{
  position:absolute;
  top:-260px; left:50%;
  transform:translateX(-50%);
  width:900px; height:700px;
  background:
    radial-gradient(circle at 35% 35%, rgba(122,80,216,0.4), transparent 55%),
    radial-gradient(circle at 65% 65%, rgba(58,85,209,0.32), transparent 55%);
  filter:blur(30px);
  z-index:0;
  pointer-events:none;
}
.page-hero-content{ position:relative; z-index:1; max-width:680px; margin:40px auto 0; text-align:center; }
.page-hero h1{ font-size:clamp(32px,5vw,52px); margin-bottom:16px; }
.page-hero p.lede{ font-size:16.5px; color:var(--ink-soft); max-width:56ch; line-height:1.65; margin:0 auto; }

/* ===== DETAIL LIST (expanded criteria / steps) ===== */
.detail-list{ display:flex; flex-direction:column; gap:1px; background:var(--line); border:1px solid var(--line); border-radius:20px; overflow:hidden; }
.detail-item{ background:var(--surface); padding:30px 32px; display:grid; grid-template-columns:64px 1fr; gap:22px; align-items:start; }
.detail-item .num{
  font-family:'Space Grotesk', sans-serif;
  font-size:22px; font-weight:700;
  color:var(--violet);
}
.detail-item h3{ font-size:20px; margin-bottom:8px; }
.detail-item p{ font-size:14.5px; color:var(--ink-soft); line-height:1.7; }
@media(max-width:640px){
  .detail-item{ grid-template-columns:40px 1fr; padding:24px 20px; gap:16px; }
  .detail-item .num{ font-size:18px; }
}

/* ===== STEP TIMELINE (visual) ===== */
.timeline{
  display:flex;
  align-items:flex-start;
  gap:0;
  margin:48px 0 8px;
}
.timeline-step{
  flex:1;
  position:relative;
  text-align:center;
  padding:0 14px;
}
.timeline-node{
  width:52px; height:52px;
  margin:0 auto 16px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--violet-deep), var(--blue));
  display:flex; align-items:center; justify-content:center;
  font-family:'Space Grotesk', sans-serif;
  font-weight:700; font-size:17px; color:var(--white);
  box-shadow:0 10px 24px -10px rgba(95,55,211,0.7);
  position:relative; z-index:1;
}
.timeline-step:not(:last-child)::after{
  content:'';
  position:absolute;
  top:26px; left:50%;
  width:100%; height:2px;
  background:linear-gradient(90deg, var(--violet), var(--line));
  z-index:0;
}
.timeline-step h4{ font-family:'Space Grotesk', sans-serif; font-size:15.5px; font-weight:600; color:var(--white); margin-bottom:6px; }
.timeline-step p{ font-size:12.5px; color:var(--ink-soft); line-height:1.5; }
@media(max-width:760px){
  .timeline{ flex-direction:column; gap:32px; }
  .timeline-step{ text-align:left; padding:0 0 0 68px; display:flex; flex-direction:column; }
  .timeline-node{ position:absolute; left:0; top:0; margin:0; }
  .timeline-step:not(:last-child)::after{
    top:52px; left:25px; width:2px; height:calc(100% + 32px);
    background:linear-gradient(180deg, var(--violet), var(--line));
  }
}

/* ===== RADAR DIAGRAM (visual) ===== */
.radar-wrap{ display:flex; justify-content:center; margin:40px 0 8px; }
.radar-wrap svg{ width:100%; max-width:660px; height:auto; }
.radar-mobile{ display:none; }
.radar-label{
  font-family:'Inter', sans-serif;
  font-size:13px; font-weight:600;
  fill:var(--ink);
}

/* ===== FORK DIAGRAM (visual) ===== */
.fork-wrap{ display:flex; justify-content:center; margin:40px 0 8px; }
.fork-wrap svg{ width:100%; max-width:560px; height:auto; }
.fork-label-title{ font-family:'Space Grotesk', sans-serif; font-size:15px; font-weight:700; fill:var(--white); }
.fork-label-sub{ font-family:'Inter', sans-serif; font-size:13px; fill:var(--ink-soft); }

/* ===== ICON VISUAL (contact page) ===== */
.icon-visual{ display:flex; justify-content:center; margin:32px 0 8px; }

/* ===== breadcrumb-ish page tag spacing ===== */
.page-hero .tag{ margin-bottom:6px; }

/* ===== SMALL TEAM SECTION ===== */
.team-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:40px; }
.team-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:20px;
  padding:32px 28px;
}
.team-card .team-icon{
  width:40px; height:40px;
  margin-bottom:18px;
  border-radius:12px;
  background:linear-gradient(135deg, var(--violet-deep), var(--blue));
  display:flex; align-items:center; justify-content:center;
  color:var(--white);
  font-family:'Space Grotesk', sans-serif;
  font-weight:700;
  font-size:15px;
}
.team-card h3{ font-size:18px; margin-bottom:10px; }
.team-card p{ font-size:14px; color:var(--ink-soft); line-height:1.65; }
@media(max-width:820px){ .team-grid{ grid-template-columns:1fr; } }

/* ===== PAGE TRANSITIONS ===== */
/* IMPORTANT: the end state of pageEnter and the start state of pageExit
   use the literal keyword `none` for transform/filter, not a value that
   merely LOOKS like a no-op (e.g. scale(1), blur(0)). With
   animation-fill-mode:both, any non-"none" transform or filter sticks
   around after the animation ends and would otherwise turn <body> into
   the containing block for its position:fixed children (like the page
   loader), making them render relative to the whole scrollable page
   instead of the viewport. */
@keyframes pageEnter{
  from{ opacity:0; transform:translateY(18px) scale(0.985); filter:blur(4px); }
  99%{ opacity:1; transform:translateY(0) scale(1); filter:blur(0); }
  to{ opacity:1; transform:none; filter:none; }
}
@keyframes pageExit{
  0%{ opacity:1; transform:none; filter:none; }
  1%{ opacity:1; transform:translateY(0) scale(1); filter:blur(0); }
  to{ opacity:0; transform:translateY(-14px) scale(0.985); filter:blur(4px); }
}
body{ animation:pageEnter 0.65s cubic-bezier(.22,1,.36,1) both; }
@media (prefers-reduced-motion: reduce){
  body{ animation:none; }
}

/* ===== SCROLL REVEAL (generic, JS-driven) ===== */
.reveal-init{
  opacity:0;
  transform:translateY(26px) scale(0.96);
  filter:blur(3px);
  transition:opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1), filter 0.7s ease;
}
.reveal-init.reveal-visible{
  opacity:1;
  transform:translateY(0) scale(1);
  filter:blur(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal-init{ opacity:1; transform:none; filter:none; transition:none; }
}

/* ===== DIAGRAM LOAD-IN ANIMATION ===== */
@keyframes drawLine{
  from{ stroke-dashoffset:var(--len); }
  to{ stroke-dashoffset:0; }
}
@keyframes nodePop{
  from{ opacity:0; transform:scale(0.5); transform-origin:center; }
  to{ opacity:1; transform:scale(1); }
}
@keyframes stepPop{
  from{ opacity:0; transform:translateY(16px); }
  to{ opacity:1; transform:translateY(0); }
}
.radar-line, .fork-line{
  stroke-dasharray:var(--len);
  stroke-dashoffset:var(--len);
}
.radar-node, .fork-node{ opacity:0; transform-origin:center; }
.diagram-visible .radar-line,
.diagram-visible .fork-line{
  animation:drawLine 0.7s ease forwards;
  animation-delay:var(--delay, 0ms);
}
.diagram-visible .radar-node,
.diagram-visible .fork-node{
  animation:nodePop 0.45s cubic-bezier(.34,1.56,.64,1) forwards;
  animation-delay:var(--delay, 0ms);
}
/* timeline-step now uses the generic .reveal-init/.reveal-visible system
   (see counter.js) so each step loads individually as the user scrolls
   to it, rather than as a single batch on the whole timeline. */
@media (prefers-reduced-motion: reduce){
  .radar-line, .fork-line{ stroke-dashoffset:0; animation:none; }
  .radar-node, .fork-node{ opacity:1; animation:none; }
}

/* ===== COLOR FLOW: consistency pass ===== */
.btn-primary{
  background:linear-gradient(135deg, var(--violet-deep), var(--blue));
}
.badge-gradient::before{
  background:linear-gradient(135deg, var(--violet-deep), var(--blue), var(--violet));
}
.page-hero-glow{
  background:
    radial-gradient(circle at 35% 35%, rgba(122,80,216,0.48), transparent 55%),
    radial-gradient(circle at 65% 65%, rgba(58,85,209,0.38), transparent 55%);
}

/* Ambient glow across the ENTIRE page (every section, not just the
   hero), fixed so it stays present while scrolling — built from two
   overlapping layers that drift and cross-fade independently, so the
   colour keeps flowing rather than sitting as a static backdrop. */
.ambient{ position:fixed; inset:0; z-index:-1; overflow:hidden; pointer-events:none; }
.ambient::before, .ambient::after{
  content:'';
  position:absolute;
  inset:-15%;
  z-index:-1;
  pointer-events:none;
  will-change:transform, opacity;
}
.ambient::before{
  background:
    radial-gradient(circle at 10% 12%, rgba(122,80,216,0.22), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(58,85,209,0.18), transparent 45%),
    radial-gradient(circle at 15% 55%, rgba(58,85,209,0.16), transparent 45%),
    radial-gradient(circle at 88% 50%, rgba(122,80,216,0.19), transparent 45%),
    radial-gradient(circle at 25% 92%, rgba(58,85,209,0.17), transparent 45%),
    radial-gradient(circle at 82% 90%, rgba(122,80,216,0.20), transparent 45%);
  animation:glowDriftA 22s ease-in-out infinite;
}
.ambient::after{
  background:
    radial-gradient(circle at 70% 20%, rgba(58,85,209,0.16), transparent 48%),
    radial-gradient(circle at 30% 45%, rgba(122,80,216,0.15), transparent 48%),
    radial-gradient(circle at 75% 70%, rgba(58,85,209,0.17), transparent 48%),
    radial-gradient(circle at 20% 30%, rgba(122,80,216,0.14), transparent 48%);
  animation:glowDriftB 30s ease-in-out infinite;
}
@keyframes glowDriftA{
  0%   { transform:translate(0, 0) scale(1); opacity:1; }
  25%  { transform:translate(-4%, 3%) scale(1.08); opacity:0.85; }
  50%  { transform:translate(3%, -3%) scale(1); opacity:1; }
  75%  { transform:translate(4%, 4%) scale(1.07); opacity:0.85; }
  100% { transform:translate(0, 0) scale(1); opacity:1; }
}
@keyframes glowDriftB{
  0%   { transform:translate(0, 0) scale(1.05); opacity:0.7; }
  30%  { transform:translate(4%, -4%) scale(1); opacity:1; }
  60%  { transform:translate(-3%, 3%) scale(1.08); opacity:0.75; }
  100% { transform:translate(0, 0) scale(1.05); opacity:0.7; }
}
@media (prefers-reduced-motion: reduce){
  .ambient::before, .ambient::after{ animation:none; }
}

.radar-wrap, .fork-wrap, .icon-visual{
  position:relative;
  border-radius:28px;
}
.radar-wrap::before, .fork-wrap::before, .icon-visual::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:radial-gradient(circle at 50% 45%, rgba(122,80,216,0.24), rgba(58,85,209,0.14) 45%, transparent 72%);
  animation:diagramGlowPulse 6s ease-in-out infinite;
}
@keyframes diagramGlowPulse{
  0%, 100%{ opacity:0.75; transform:scale(1); }
  50%{ opacity:1; transform:scale(1.06); }
}
@media (prefers-reduced-motion: reduce){
  .radar-wrap::before, .fork-wrap::before, .icon-visual::before{ animation:none; }
}
.icon-visual svg, .icon-visual img{ width:120px; height:120px; }

/* ===== PAGE-TRANSITION LOADER (logo zooms + spins between pages) ===== */
.page-loader{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(10,9,18,0.78);
  backdrop-filter:blur(4px);
  opacity:0;
  pointer-events:none;
  transition:opacity 0.5s cubic-bezier(.22,1,.36,1), backdrop-filter 0.5s ease;
}
.page-loader.active{
  opacity:1;
  pointer-events:all;
}
.page-loader-logo{
  width:72px;
  height:72px;
  opacity:0;
  transform:scale(0.2) rotate(0deg);
  filter:drop-shadow(0 0 24px rgba(122,80,216,0.6));
}
.page-loader.active .page-loader-logo{
  animation:logoZoomIn 0.9s cubic-bezier(.22,1.2,.36,1) forwards,
            logoSpinHold 2.4s linear 0.9s infinite;
}
@keyframes logoZoomIn{
  0%{ opacity:0; transform:scale(0.2) rotate(0deg); }
  55%{ opacity:1; transform:scale(1.18) rotate(300deg); }
  80%{ transform:scale(0.94) rotate(370deg); }
  100%{ opacity:1; transform:scale(1) rotate(360deg); }
}
@keyframes logoSpinHold{
  from{ transform:scale(1) rotate(0deg); }
  to{ transform:scale(1) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce){
  .page-loader-logo{ animation:none !important; opacity:1; transform:scale(1) rotate(0deg); }
}

/* ===== APPLY BUTTON (hero) ===== */
.apply-btn-wrap{ margin:14px 0 30px; }
.btn-apply{
  background:linear-gradient(135deg, var(--violet-deep), var(--blue));
  color:var(--white);
  padding:15px 34px;
  font-size:15px; font-weight:700;
  border-radius:12px;
  display:inline-flex; align-items:center; gap:8px;
  box-shadow:0 16px 32px -14px rgba(95,55,211,0.65);
  transition:transform .15s ease, box-shadow .15s ease;
  letter-spacing:0.02em;
}
.btn-apply:hover{ transform:translateY(-2px); box-shadow:0 20px 40px -14px rgba(95,55,211,0.8); }

/* ===== APPLY PAGE ===== */
.apply-hero{ text-align:center; max-width:640px; margin:0 auto 56px; }
.apply-hero h1{ font-size:clamp(32px,5vw,50px); margin-bottom:16px; }
.apply-hero p{ color:var(--ink-soft); font-size:16px; line-height:1.65; }

.apply-form{
  max-width:560px;
  margin:0 auto;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:24px;
  padding:44px;
}
.apply-field{ margin-bottom:22px; }
.apply-field label{
  display:block;
  font-size:13px; font-weight:600;
  color:var(--ink-soft);
  margin-bottom:8px;
  letter-spacing:0.02em;
}
.apply-field input, .apply-field textarea{
  width:100%;
  background:var(--bg-soft);
  border:1px solid var(--line);
  border-radius:12px;
  padding:13px 16px;
  color:var(--ink);
  font-family:'Inter', sans-serif;
  font-size:14.5px;
  transition:border-color .15s ease;
}
.apply-field input:focus-visible, .apply-field textarea:focus-visible{
  outline:2px solid var(--violet);
  outline-offset:1px;
  border-color:var(--violet);
}
.apply-field textarea{ min-height:120px; resize:vertical; }
.apply-submit{
  width:100%;
  border:none;
  cursor:pointer;
  background:linear-gradient(135deg, var(--violet-deep), var(--blue));
  color:var(--white);
  padding:15px 0;
  font-size:15px; font-weight:700;
  border-radius:12px;
  font-family:'Inter', sans-serif;
  box-shadow:0 16px 32px -14px rgba(95,55,211,0.65);
  transition:transform .15s ease, box-shadow .15s ease;
  margin-top:6px;
}
.apply-submit:hover{ transform:translateY(-2px); box-shadow:0 20px 40px -14px rgba(95,55,211,0.8); }
.apply-fine{ text-align:center; font-size:12.5px; color:var(--ink-soft); margin-top:20px; }
@media(max-width:640px){
  .apply-form{ padding:34px 22px; }
  .apply-field{ margin-bottom:28px; }
  .apply-field input, .apply-field textarea{ padding:14px 16px; }
  .apply-hero{ margin-bottom:44px; }
}



/* ===== ILLUSTRATIONS (original vector artwork) ===== */
.illustration{ max-width:640px; margin:40px auto 48px; }
.illustration svg{ width:100%; height:auto; display:block; border-radius:28px; }
.illustration figcaption{ margin-top:14px; text-align:center; font-size:13.5px; color:var(--ink-soft); line-height:1.55; padding:0 8px; }
.team-icon svg{ width:20px; height:20px; display:block; }

/* ===== FORM FEEDBACK (errors + success) ===== */
.apply-field .field-error{ display:none; margin-top:8px; font-size:13px; line-height:1.4; color:#FCA5A5; }
.apply-field.has-error .field-error{ display:block; }
.apply-field.has-error input, .apply-field.has-error textarea{ border-color:#F87171; }
.field-hint{ display:block; margin-top:8px; font-size:12.5px; color:var(--ink-soft); }
.form-status{ display:none; margin-bottom:24px; padding:16px 18px; border-radius:14px; font-size:14px; line-height:1.55; border:1px solid transparent; }
.form-status.show{ display:block; }
.form-status.success{ background:rgba(52,211,153,0.10); border-color:rgba(52,211,153,0.4); color:#A7F3D0; }
.form-status.error{ background:rgba(248,113,113,0.10); border-color:rgba(248,113,113,0.4); color:#FECACA; }
.form-status strong{ display:block; color:var(--white); font-size:15px; margin-bottom:4px; }
.form-status a{ text-decoration:underline; }
.status-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.status-btn{
  min-height:44px; padding:0 18px; border-radius:10px;
  background:rgba(255,255,255,0.08); border:1px solid var(--line);
  color:var(--white); font-family:'Inter', sans-serif; font-size:13.5px; font-weight:600; cursor:pointer;
}
.status-btn:hover{ background:rgba(255,255,255,0.14); }
.copy-email{
  display:block; margin:14px auto 0;
  min-height:44px; padding:0 18px; border-radius:10px;
  background:transparent; border:1px solid var(--line);
  color:var(--ink-soft); font-family:'Inter', sans-serif; font-size:13.5px; font-weight:600; cursor:pointer;
}
.copy-email:hover{ color:var(--white); border-color:rgba(255,255,255,0.3); }
.copy-status{ min-height:22px; margin-top:10px; font-size:13.5px; text-align:center; color:var(--ink-soft); }
.copy-status.ok{ color:#A7F3D0; }
.copy-status.err{ color:#FECACA; }
.contact-phone{ margin-top:18px; font-size:14.5px; color:var(--ink-soft); }
.contact-phone a{ color:var(--violet-light); font-weight:600; text-decoration:underline; text-underline-offset:2px; }
.contact-phone a:hover{ color:var(--white); }
.apply-submit:disabled{ opacity:.6; cursor:not-allowed; }

/* ===== 404 PAGE ===== */
.notfound{ text-align:center; max-width:560px; margin:0 auto; position:relative; z-index:1; }
.notfound .notfound-code{
  font-family:'Space Grotesk', sans-serif; font-weight:700; line-height:1;
  font-size:clamp(96px, 24vw, 180px);
  background:linear-gradient(135deg, var(--violet), var(--blue));
  -webkit-background-clip:text; background-clip:text; color:transparent;
  margin-bottom:8px;
}
.notfound h1{ font-size:clamp(28px,5vw,42px); margin-bottom:14px; }
.notfound p{ color:var(--ink-soft); font-size:16px; line-height:1.65; margin-bottom:28px; }
.notfound-links{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-top:26px; }
.notfound-links a{
  min-height:44px; padding:0 18px; display:inline-flex; align-items:center;
  border:1px solid var(--line); border-radius:10px; background:var(--surface);
  color:var(--ink-soft); font-size:14px; font-weight:500;
}
.notfound-links a:hover{ color:var(--white); border-color:rgba(255,255,255,0.3); }

/* ===== MOBILE OPTIMISATION (phones & small tablets only) ===== */
@media(max-width:640px){
  section{ padding:64px 0; }
  .section-head{ margin-bottom:36px; }
  header.hero{ padding-bottom:64px; }
  .hero-content{ margin-top:40px; }
  .hero h1{ margin:18px auto 20px; }
  .hero p.lede{ font-size:16.5px; margin-bottom:26px; }
  .page-hero{ padding:36px 0 8px; }
  .page-hero-content{ margin-top:28px; }
  .page-hero p.lede{ font-size:16px; }
  .apply-btn-wrap{ margin:8px 0 14px; }
  .hero-ctas{ flex-direction:column; align-items:stretch; gap:6px; }
  .apply-btn-wrap .btn-apply, .hero-ctas .btn-primary, .btn-primary{
    width:100%; justify-content:center; min-height:52px; text-align:center;
  }
  .hero-ctas .btn-ghost{ align-self:center; padding:12px 0 4px; }
  .btn-ghost{ padding:10px 0 4px; }
  .kpi-wrap{ margin-top:44px; }
  .cta-band{ padding:52px 22px; }
  .cta-band .btn-primary{ width:100%; max-width:340px; }
  .split > div{ padding:30px 22px; }
  .criterion{ padding:22px 18px; }
  .team-card{ padding:26px 22px; }
  .stats-band .wrap{ padding:32px 22px; }
  .illustration{ margin:32px auto 36px; }
  .radar-wrap, .fork-wrap{ margin-top:24px; }
  .radar-desktop{ display:none; }
  .radar-mobile{ display:block; }
  .notfound-links a{ flex:1 1 40%; justify-content:center; }
}
@media(max-width:380px){
  .wrap{ padding:0 18px; }
  .logo-word{ font-size:17px; }
}

/* ===== LEGAL PAGES ===== */
.legal-body{ max-width:760px; margin:0 auto; color:var(--ink-soft); font-size:15.5px; line-height:1.75; }
.legal-body h2{ color:var(--white); font-size:20px; margin:40px 0 14px; }
.legal-body h2:first-child{ margin-top:0; }
.legal-body p{ margin-bottom:14px; }
.legal-body ul{ margin:0 0 14px 20px; }
.legal-body li{ margin-bottom:8px; }
.legal-body a{ color:var(--violet-light); text-decoration:underline; text-underline-offset:2px; }
.legal-body a:hover{ color:var(--white); }
.legal-note{
  background:var(--surface); border:1px solid var(--line); border-radius:14px;
  padding:18px 20px; font-size:14.5px; color:var(--ink); margin-bottom:36px;
}
.legal-disclaimer{
  margin-top:40px; padding-top:24px; border-top:1px solid var(--line);
  font-size:13px; color:var(--ink-soft); font-style:italic;
}
.legal-links{ display:flex; flex-wrap:wrap; justify-content:center; gap:4px 20px; }

/* Honeypot spam-trap field: visually and audibly hidden, but still part of
   the DOM so simple bots that auto-fill every input tend to fill it in. */
.hp-field{
  position:absolute;
  width:1px; height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  left:-9999px;
}

/* ===== SKIP LINK (keyboard accessibility) ===== */
.skip-link{
  position:absolute;
  top:-60px; left:16px;
  z-index:10000;
  background:var(--violet-deep);
  color:#fff;
  padding:12px 20px;
  border-radius:10px;
  font-size:14px;
  font-weight:600;
  transition:top 0.15s ease;
}
.skip-link:focus{ top:16px; }

/* ===== COOLER POLISH: hover lift on cards, breathing CTAs, shimmering badges ===== */
.criterion, .detail-item, .step, .team-card, .stat, .split > div{
  transition:transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.criterion:hover, .detail-item:hover, .step:hover, .team-card:hover, .stat:hover, .split > div:hover{
  transform:translateY(-4px);
  border-color:rgba(122,80,216,0.5);
  box-shadow:0 18px 36px -20px rgba(95,55,211,0.55);
}

@keyframes ctaBreathe{
  0%, 100%{ box-shadow:0 16px 32px -14px rgba(95,55,211,0.65); }
  50%{ box-shadow:0 20px 44px -14px rgba(95,55,211,0.95); }
}
.btn-primary, .btn-apply{
  animation:ctaBreathe 3.2s ease-in-out infinite;
}
.btn-primary:hover, .btn-apply:hover{ animation-play-state:paused; }

@keyframes badgeShimmer{
  0%{ background-position:0% 50%; }
  100%{ background-position:200% 50%; }
}
.badge-gradient::before{
  background-size:200% 200%;
  animation:badgeShimmer 4s linear infinite;
}

.nav-links a{ position:relative; }
.nav-links a::after{
  content:'';
  position:absolute; left:0; bottom:-4px;
  width:0; height:2px;
  background:linear-gradient(90deg, var(--violet-deep), var(--blue));
  transition:width 0.25s cubic-bezier(.22,1,.36,1);
}
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }
@media(max-width:900px){ .nav-links a::after{ display:none; } }

@media (prefers-reduced-motion: reduce){
  .btn-primary, .btn-apply{ animation:none; }
  .badge-gradient::before{ animation:none; }
  .criterion, .detail-item, .step, .team-card, .stat, .split > div{ transition:none; }
}

/* ===== K'ZAK V2: SERVICES ===== */
.services-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}
.service-card{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:30px 26px;display:flex;flex-direction:column}
.service-number{font-family:'Space Grotesk',sans-serif;font-size:12px;font-weight:700;letter-spacing:.1em;color:var(--violet-light);margin-bottom:20px}
.service-card h3{font-size:21px;margin-bottom:12px}
.service-card p{font-size:14px;color:var(--ink-soft);line-height:1.7;margin-bottom:18px}
.service-card ul{margin:auto 0 0;padding:0 0 0 19px;color:var(--ink-soft);font-size:13.5px;line-height:1.85}
.service-card li::marker{color:var(--violet-light)}
.service-card-cta{background:linear-gradient(160deg,var(--surface),#211a3a)}
.service-card-cta .btn-primary{align-self:flex-start;margin-top:auto;text-align:center}
.fit-section{border-top:1px solid var(--line)}
.contact-form-invite{margin-top:32px;margin-bottom:16px;color:var(--ink-soft);font-size:14px}
.form-consent{margin:5px 0 18px;color:var(--ink-soft);font-size:13px;line-height:1.6}
.form-consent label{display:flex;align-items:flex-start;gap:11px;cursor:pointer}
.form-consent input{accent-color:var(--violet);width:18px;height:18px;flex:0 0 18px;margin-top:2px}
.form-consent a{color:var(--violet-light);text-decoration:underline;text-underline-offset:3px}
.thankyou-band{max-width:800px;margin:12px auto 0}
@media(max-width:1000px){.services-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.services-grid{grid-template-columns:1fr}.service-card{padding:25px 21px}.service-card-cta .btn-primary{width:100%}}


/* K'ZAK single-document pages: only one view is active at a time. */
.spa-view[hidden] { display: none !important; }
.spa-view.is-entering > header,
.spa-view.is-entering > main { animation: spaViewEnter .58s cubic-bezier(.22,1,.36,1) both; }
@keyframes spaViewEnter {
  from { opacity:0; transform:translateY(14px) scale(.992); filter:blur(3px); }
  to { opacity:1; transform:none; filter:none; }
}
@media (prefers-reduced-motion:reduce) {
  .spa-view.is-entering > header,
  .spa-view.is-entering > main { animation:none !important; }
}
/* Route changes must begin at the top immediately; the router separately
   supplies smooth scrolling for local section links. */
html { scroll-behavior: auto; }
