/* Zenoth — shared styles for every language version. */
:root{
  --bg:#ffffff;
  --bg-soft:#f6f9fc;
  --ink:#0b0f19;
  --ink-muted:#4f5867;
  --line:#e6ebf2;
  --blue:#1e6fff;
  --blue-text:#1a63e8;
  --blue-glow:#6fb8ff;
  --blue-deep:#0038b8;
  --radius:14px;
  --max:1120px;
  --header-h:68px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth; scroll-padding-top:calc(var(--header-h) + 12px);}
body{
  background:var(--bg);
  color:var(--ink);
  font-family:'Inter', system-ui, -apple-system, sans-serif;
  font-size:17px;
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
::selection{ background:var(--blue); color:#fff; }
img, svg{ display:block; max-width:100%; }
a{ color:var(--blue-text); }
:focus-visible{ outline:2px solid var(--blue); outline-offset:3px; border-radius:6px; }

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

.wrap{ max-width:var(--max); margin:0 auto; padding:0 24px; }

.eyebrow{
  font-weight:600;
  font-size:12px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--blue-text);
}
.mono{ font-family:'JetBrains Mono', ui-monospace, monospace; }

/* ---------- HEADER ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  height:var(--header-h);
  background:rgba(255,255,255,0.86);
  -webkit-backdrop-filter:saturate(1.4) blur(10px);
  backdrop-filter:saturate(1.4) blur(10px);
  border-bottom:1px solid transparent;
  transition:border-color .3s ease;
}
.site-header.scrolled{ border-bottom-color:var(--line); }
.header-inner{
  height:100%;
  display:flex; align-items:center; gap:28px;
}
.brand{
  display:inline-flex; align-items:center; gap:10px;
  text-decoration:none; color:var(--blue);
  font-family:'Cinzel', Georgia, serif;
  font-size:17px; letter-spacing:0.18em;
  flex-shrink:0;
}
.brand svg{ width:30px; height:30px; }
.nav{ display:flex; gap:24px; margin-left:auto; }
.nav a{
  color:var(--ink-muted); text-decoration:none; font-size:15px; font-weight:500;
  padding:6px 0;
}
.nav a:hover{ color:var(--ink); }
.header-actions{ display:flex; align-items:center; gap:14px; }

.lang-switch{
  display:inline-flex; border:1px solid var(--line); border-radius:999px; padding:3px;
  font-size:13px; font-weight:600;
}
.lang-switch a{
  min-width:40px; min-height:32px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px; text-decoration:none; color:var(--ink-muted);
  letter-spacing:0.06em;
}
.lang-switch a[aria-current="true"]{ background:var(--ink); color:#fff; }
.lang-switch a:not([aria-current="true"]):hover{ color:var(--ink); background:var(--bg-soft); }

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:46px; padding:0 22px;
  border-radius:999px; font-weight:600; font-size:15px;
  text-decoration:none; border:1px solid transparent;
  transition:transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn-primary{ background:var(--blue-deep); color:#fff; box-shadow:0 6px 18px rgba(0,56,184,0.22); }
.btn-primary:hover{ background:#002d94; transform:translateY(-1px); }
.btn-ghost{ border-color:var(--line); color:var(--ink); background:#fff; }
.btn-ghost:hover{ border-color:#c9d3e1; transform:translateY(-1px); }
.btn-sm{ min-height:40px; padding:0 16px; font-size:14px; }

/* ---------- HERO (Zenoth V2: original wordmark recovered from 589785f) ---------- */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.hero{
  position:relative; overflow:hidden;
  min-height:calc(100svh - var(--header-h));
  display:flex; align-items:center;
  padding:72px 0 64px; text-align:center;
}
#grid-canvas{
  position:absolute; inset:0; width:100%; height:100%;
  pointer-events:none; opacity:0.85;
}
.hero .wrap{ position:relative; z-index:1; width:100%; }
.hero-content{ max-width:880px; margin:0 auto; display:flex; flex-direction:column; align-items:center; }
.hero-title{ margin:0; font-weight:600; }

.wordmark-stage{ perspective:900px; display:inline-block; position:relative; }
.wordmark{
  font-family:'Cinzel', Georgia, serif;
  font-weight:400;
  font-size:clamp(44px, 16vw, 138px);
  line-height:1;
  display:inline-flex;
  transform-style:preserve-3d;
  will-change:transform;
  animation:float 6s ease-in-out infinite;
  transition:transform 0.15s ease-out;
}
@keyframes float{
  0%, 100%{ transform:translateY(0px) rotateX(6deg) rotateY(0deg); }
  50%{ transform:translateY(-10px) rotateX(6deg) rotateY(0deg); }
}
.letter{
  display:inline-block;
  position:relative;
  margin-right:0.10em;
  background:linear-gradient(180deg, var(--blue-glow) 0%, var(--blue) 55%, var(--blue-deep) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:var(--blue);
  text-shadow:
    0 1px 0 rgba(30,111,255,0.35),
    0 2px 0 rgba(30,111,255,0.30),
    0 3px 0 rgba(30,111,255,0.25),
    0 4px 0 rgba(30,111,255,0.20),
    0 5px 6px rgba(0,56,184,0.30),
    0 14px 30px rgba(30,111,255,0.20);
}
.letter:last-child{ margin-right:0; }

.hero-tagline{
  display:block;
  margin-top:30px;
  font-family:'Inter', system-ui, sans-serif;
  font-size:clamp(22px, 3.1vw, 34px);
  line-height:1.25; letter-spacing:-0.015em; font-weight:600;
  color:var(--ink);
  max-width:760px;
}
.hero-sub{ margin-top:18px; font-size:clamp(16px, 1.8vw, 19px); color:var(--ink-muted); max-width:640px; }
.hero-ctas{ display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:34px; }
.hero-note{ margin-top:20px; font-size:14px; color:var(--ink-muted); }

.chain{
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:10px;
  margin-top:40px; font-size:13px; font-weight:500;
  font-family:'JetBrains Mono', ui-monospace, monospace; letter-spacing:0.04em;
}
.chain span.node{
  border:1px solid var(--line); background:rgba(255,255,255,0.8); border-radius:999px; padding:6px 14px;
}
.chain span.arrow{ color:var(--blue); }

.scroll-cue{
  margin-top:44px;
  display:inline-flex; flex-direction:column; align-items:center; gap:8px;
  color:var(--ink-muted); text-decoration:none;
  font-family:'JetBrains Mono', monospace; font-size:11px;
  letter-spacing:0.14em; text-transform:uppercase;
  padding:6px 10px;
}
.scroll-cue .bar{
  width:1px; height:36px;
  background:linear-gradient(var(--blue), transparent);
  animation:pulse-bar 1.8s ease-in-out infinite;
}
@keyframes pulse-bar{ 0%,100%{ opacity:0.2; } 50%{ opacity:1; } }

/* Intro: letters fly in from both sides (original timing), the rest fades in after. */
@media (prefers-reduced-motion: no-preference){
  .letter{
    opacity:0;
    animation-duration:0.95s;
    animation-delay:var(--d, 0s);
    animation-timing-function:cubic-bezier(0.16,1,0.3,1);
    animation-fill-mode:forwards;
  }
  .letter-left{ animation-name:letter-in-left; }
  .letter-right{ animation-name:letter-in-right; }
  .letter-left::before, .letter-right::before{
    content:'';
    position:absolute; top:50%; height:2px; width:90px; opacity:0;
    animation-duration:0.95s;
    animation-delay:var(--d, 0s);
    animation-timing-function:cubic-bezier(0.16,1,0.3,1);
    animation-fill-mode:forwards;
  }
  .letter-left::before{ right:100%; background:linear-gradient(90deg, transparent, var(--blue-glow)); animation-name:trail-left; }
  .letter-right::before{ left:100%; background:linear-gradient(270deg, transparent, var(--blue-glow)); animation-name:trail-right; }
  .hero-after{ animation:hero-after-in 0.8s ease 1.05s both; }
}
@keyframes letter-in-left{
  0%{ transform:translateX(-65vw); opacity:0; } 50%{ opacity:1; } 100%{ transform:translateX(0); opacity:1; }
}
@keyframes letter-in-right{
  0%{ transform:translateX(65vw); opacity:0; } 50%{ opacity:1; } 100%{ transform:translateX(0); opacity:1; }
}
@keyframes trail-left{
  0%{ opacity:0.9; transform:translateY(-50%) scaleX(1) translateX(-50px); }
  65%{ opacity:0.45; }
  100%{ opacity:0; transform:translateY(-50%) scaleX(0.1) translateX(0); }
}
@keyframes trail-right{
  0%{ opacity:0.9; transform:translateY(-50%) scaleX(1) translateX(50px); }
  65%{ opacity:0.45; }
  100%{ opacity:0; transform:translateY(-50%) scaleX(0.1) translateX(0); }
}
@keyframes hero-after-in{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }

/* ---------- SIGNAL CONSOLE (original signature element, re-scoped to Reach / CoreOps / TrueSign) ---------- */
.console-panel{
  position:relative;
  max-width:900px; margin:0 auto;
  height:360px; overflow:hidden;
  border-radius:14px;
  background:linear-gradient(180deg, #121b30 0%, #0c1322 100%);
  border:1px solid rgba(30,111,255,0.16);
  box-shadow:0 24px 60px rgba(11,20,40,0.16), 0 0 0 1px rgba(255,255,255,0.03) inset, 0 0 40px rgba(30,111,255,0.05);
  -webkit-mask-image:linear-gradient(to bottom, transparent, black 8%, black 88%, transparent);
          mask-image:linear-gradient(to bottom, transparent, black 8%, black 88%, transparent);
}
.console-scanline{
  position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg, rgba(111,184,255,0) 0%, rgba(111,184,255,0.06) 50%, rgba(111,184,255,0) 100%);
  background-size:100% 220px;
  animation:scan 7s linear infinite;
}
@keyframes scan{ 0%{ background-position:0 -220px; } 100%{ background-position:0 720px; } }
.console-lines{
  position:absolute; left:0; right:0; bottom:0;
  padding:20px 26px;
  font-family:'JetBrains Mono', monospace; font-size:12.5px; line-height:1.9;
  white-space:nowrap; overflow:hidden;
}
.console-line{
  color:rgba(210,222,240,0.66);
  opacity:0; transform:translateY(6px);
  animation:line-in 0.4s ease forwards;
}
@keyframes line-in{ to{ opacity:1; transform:translateY(0); } }
.console-line .ts{ color:rgba(210,222,240,0.36); }
.console-line .tag{ color:var(--blue-glow); }
.console-line .allow{ color:#6fe0a8; }
.console-line .block{ color:#ff8a75; }
.console-caption{ max-width:900px; margin:16px auto 0; font-size:13px; color:var(--ink-muted); text-align:center; }

/* ---------- SECTIONS ---------- */
section.block{ padding:96px 0; }
section.block.soft{ background:var(--bg-soft); }
.section-head{ max-width:720px; margin-bottom:48px; }
.section-head h2{
  font-size:clamp(28px, 3.6vw, 40px); line-height:1.15; letter-spacing:-0.02em;
  font-weight:600; margin:12px 0 14px;
}
.section-head p{ color:var(--ink-muted); }

.grid{ display:grid; gap:20px; }
.grid-2{ grid-template-columns:repeat(2, 1fr); }
.grid-3{ grid-template-columns:repeat(3, 1fr); }
.grid-4{ grid-template-columns:repeat(4, 1fr); }

.card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:28px;
}
.card h3{ font-size:19px; line-height:1.3; font-weight:600; margin-bottom:10px; }
.card p{ color:var(--ink-muted); font-size:16px; }
.card .example{
  margin-top:16px; padding-top:16px; border-top:1px dashed var(--line);
  font-size:15px; color:var(--ink);
}
.card .example strong{
  display:block; font-size:11px; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--blue-text); margin-bottom:4px;
}

/* ---------- JOURNEY ---------- */
.journey{
  display:grid; grid-template-columns:1fr auto 1fr auto 1fr; align-items:stretch; gap:0;
}
.step{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:28px;
  position:relative;
}
.step .num{ font-family:'JetBrains Mono', monospace; font-size:13px; color:var(--blue-text); }
.step h3{ font-size:22px; font-weight:600; margin:6px 0 4px; }
.step .verb{ font-weight:600; color:var(--blue-deep); margin-bottom:10px; }
.step p{ color:var(--ink-muted); font-size:16px; }
.connector{
  width:56px; align-self:center; position:relative; height:2px;
  background:linear-gradient(90deg, var(--line), #c9d7ee);
}
.connector::after{
  content:""; position:absolute; top:50%; left:0; width:8px; height:8px; margin-top:-4px;
  border-radius:50%; background:var(--blue);
  animation:travel 2.8s ease-in-out infinite;
}
@keyframes travel{
  0%{ left:0; opacity:0; } 15%{ opacity:1; } 85%{ opacity:1; } 100%{ left:calc(100% - 8px); opacity:0; }
}
.journey-note{
  margin-top:28px; padding:18px 22px; border-left:3px solid var(--blue);
  background:#fff; border-radius:0 10px 10px 0; color:var(--ink-muted); font-size:15px;
  max-width:820px;
}

/* ---------- PRODUCTS ---------- */
.product{ display:flex; flex-direction:column; }
.grid > *{ min-width:0; }
.product .top{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-start; gap:8px 12px; margin-bottom:6px; }
.product h3{ font-size:24px; margin:0; }
.product .by{ font-size:13px; color:var(--ink-muted); }
.product .role{ font-weight:600; color:var(--blue-deep); margin:12px 0 10px; }
.product ul{ list-style:none; margin:14px 0 0; display:grid; gap:10px; }
.product li{ position:relative; padding-left:20px; font-size:15px; color:var(--ink); }
.product li::before{
  content:""; position:absolute; left:2px; top:10px; width:7px; height:7px;
  border-radius:50%; background:var(--blue);
}
.product .label{ margin-top:22px; font-size:11px; letter-spacing:0.12em; text-transform:uppercase; color:var(--ink-muted); font-weight:600; }
.product .limit{ margin-top:16px; font-size:14px; color:var(--ink-muted); }
.product .more{ margin-top:auto; padding-top:20px; font-weight:600; font-size:15px; text-decoration:none; }
.product .more:hover{ text-decoration:underline; }
.badge{
  font-size:12px; font-weight:600; white-space:nowrap;
  border-radius:999px; padding:4px 10px; border:1px solid;
}
.badge-pilot{ color:#0b5c3b; background:#eaf7f0; border-color:#bfe6d1; }
.badge-private{ color:var(--blue-deep); background:#edf3ff; border-color:#c9daff; }
.badge-early{ color:#7a4b00; background:#fff5e0; border-color:#f3dba6; }

/* ---------- IMPLEMENTATION ---------- */
.steps{ counter-reset:s; }
.steps .card{ position:relative; padding-top:56px; }
.steps .card::before{
  counter-increment:s; content:counter(s, decimal-leading-zero);
  position:absolute; top:22px; left:28px;
  font-family:'JetBrains Mono', monospace; font-size:13px; color:var(--blue-text);
}

/* ---------- FOUNDATION ---------- */
.foundation{ background:var(--ink); color:#e8edf5; }
.foundation .eyebrow{ color:var(--blue-glow); }
.foundation .section-head p{ color:#aab4c3; }
.foundation .card{ background:rgba(255,255,255,0.04); border-color:rgba(255,255,255,0.12); }
.foundation .card h3{ color:#fff; }
.foundation .card p{ color:#b8c1cf; }

/* ---------- CONTACT ---------- */
.contact-box{
  display:grid; grid-template-columns:1.3fr 1fr; gap:40px; align-items:start;
  background:#fff; border:1px solid var(--line); border-radius:20px; padding:48px;
}
.contact-box h2{ font-size:clamp(28px, 3.6vw, 40px); line-height:1.15; letter-spacing:-0.02em; font-weight:600; margin:12px 0 14px; }
.contact-box p{ color:var(--ink-muted); }
.contact-box ul{ margin:16px 0 0 18px; color:var(--ink); font-size:15px; display:grid; gap:6px; }
.contact-side{ display:grid; gap:14px; }
.contact-side .email{ font-family:'JetBrains Mono', monospace; font-size:15px; word-break:break-all; -webkit-user-select:all; user-select:all; }
.email-row{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; }
.contact-box .copy-status{ min-height:1.4em; font-size:14px; font-weight:600; color:#0b5c3b; }
.contact-box .copy-status.is-error{ color:#9a2b12; }
.no-js .copy-email{ display:none; }
.contact-side small{ color:var(--ink-muted); font-size:13px; }

/* ---------- FOOTER ---------- */
.site-footer{ border-top:1px solid var(--line); padding:36px 0 44px; font-size:14px; color:var(--ink-muted); }
.footer-inner{ display:flex; flex-wrap:wrap; gap:16px 32px; align-items:center; justify-content:space-between; }
.footer-inner nav{ display:flex; flex-wrap:wrap; gap:18px; }
.footer-inner a{ color:var(--ink-muted); text-decoration:none; display:inline-block; padding:8px 0; }
.footer-inner a:hover{ color:var(--ink); }

/* ---------- REVEAL ---------- */
.reveal{ opacity:0; transform:translateY(14px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }
.no-js .reveal{ opacity:1; transform:none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width:980px){
  .nav{ display:none; }
  .header-actions{ margin-left:auto; }
  .grid-4{ grid-template-columns:repeat(2, 1fr); }
  .grid-3{ grid-template-columns:1fr; }
  .journey{ grid-template-columns:1fr; }
  .connector{ width:2px; height:40px; justify-self:center; background:linear-gradient(180deg, var(--line), #c9d7ee); }
  .connector::after{ left:50%; margin-left:-4px; top:0; margin-top:0; animation-name:travel-v; }
  .contact-box{ grid-template-columns:1fr; padding:32px; }
}
@keyframes travel-v{
  0%{ top:0; opacity:0; } 15%{ opacity:1; } 85%{ opacity:1; } 100%{ top:calc(100% - 8px); opacity:0; }
}
@media (max-width:640px){
  .console-panel{ height:300px; }
  .console-lines{ font-size:10.5px; padding:16px; }
  .hero{ min-height:auto; }
  body{ font-size:16px; }
  .wrap{ padding:0 16px; }
  .brand span{ display:none; }
  .header-inner{ gap:12px; }
  .header-actions{ gap:8px; }
  .hero{ padding:56px 0 64px; }
  section.block{ padding:64px 0; }
  .grid-2, .grid-4{ grid-template-columns:1fr; }
  .card{ padding:22px; }
  .contact-box{ padding:24px; }
  .hero-ctas .btn{ width:100%; }
}
@media (max-width:380px){
  .header-actions .btn-sm{ padding:0 12px; font-size:13px; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .wordmark, .console-scanline, .scroll-cue .bar{ animation:none; }
  .console-line{ animation:none; opacity:1; transform:none; }
  .reveal{ opacity:1; transform:none; transition:none; }
  .connector::after{ animation:none; display:none; }
  .btn{ transition:none; }
}
