/* RyzeLab — styles. Dark engineering-studio theme, one accent. */
:root {
  --bg: #080b10;
  --surface: #0e131a;
  --surface-2: #131a23;
  --line: #1c2530;
  --line-strong: #2a3644;
  --text: #f0f3f7;
  --muted: #8b96a5;
  --accent: #b9f24b;
  --accent-ink: #0a0e06;
  --accent-soft: rgba(185, 242, 75, 0.1);
  --radius: 14px;
  --wrap: 1180px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Blueprint grid behind the whole page, fading out below the hero. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse 90% 80% at 60% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 60% 0%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: 10px; border: 1px solid var(--line-strong);
  font-weight: 600; font-size: 15.5px; white-space: nowrap;
  background: transparent; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:hover { border-color: var(--text); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #cbff66; border-color: #cbff66; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 11, 16, 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.logo svg { width: 26px; height: 26px; }
.logo span em { font-style: normal; color: var(--accent); }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav__links a { transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.lang button {
  background: none; border: 0; cursor: pointer;
  padding: 7px 10px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted);
}
.lang button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 8px; background: none; cursor: pointer; padding: 0; }
.burger span { display: block; width: 16px; height: 1.5px; background: var(--text); margin: 4px auto; transition: transform 0.2s, opacity 0.2s; }
.nav.is-open .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.is-open .burger span:nth-child(2) { opacity: 0; }
.nav.is-open .burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Hero */
.hero { padding: 84px 0 72px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5vw, 66px); margin: 22px 0 24px; text-wrap: balance; }
.hero h1 .hl { color: var(--accent); display: block; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 36em; }
.hero__note b { color: var(--text); font-weight: 500; }

.blueprint {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, #0a0f15 100%);
  overflow: hidden;
}
.blueprint__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.04em;
}
.blueprint__bar .live { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); }
.blueprint__bar .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
.blueprint svg { display: block; width: 100%; height: auto; }
.bp-link { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.bp-node rect { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1; }
.bp-node text { fill: var(--text); font-family: var(--font-mono); font-size: 12px; }
.bp-node .sub { fill: var(--muted); font-size: 9.5px; letter-spacing: 0.04em; }
.bp-node--core rect { stroke: var(--accent); fill: rgba(185, 242, 75, 0.07); }
.bp-node--core text { fill: var(--accent); }
.bp-dot { fill: var(--accent); }
.eventlog {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  min-height: 42px; white-space: nowrap; overflow: hidden;
}
.eventlog__time { color: var(--line-strong); }
.eventlog__text { transition: opacity 0.25s; overflow: hidden; text-overflow: ellipsis; }
.eventlog__text b { color: var(--accent); font-weight: 500; }
.eventlog__text.is-out { opacity: 0; }

/* Marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 16px 0; background: rgba(14, 19, 26, 0.5); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  padding: 0 26px; position: relative; white-space: nowrap;
}
.marquee__track span::after { content: "/"; position: absolute; right: -4px; color: var(--line-strong); }

/* Sections */
.section { padding: 104px 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; margin-bottom: 52px; }
.section__head h2 { font-size: clamp(30px, 3.6vw, 46px); margin-top: 16px; text-wrap: balance; }
.section__head p { color: var(--muted); max-width: 36em; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; padding: 28px 26px 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s, background 0.25s;
}
.card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.card__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.card__icon svg { width: 20px; height: 20px; }
.card__index { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card > p { color: var(--muted); font-size: 15.5px; }
.card ul { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.card li { position: relative; padding-left: 20px; font-size: 14.5px; color: #c4ccd6; }
.card li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 9px; height: 1px; background: var(--accent); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 28px; padding: 22px 26px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.cta-row p { color: var(--muted); max-width: 44em; font-size: 15.5px; }
.cta-row p b { color: var(--text); font-weight: 500; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.step { padding: 28px 22px 26px; border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: 0; }
.step__num { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); margin-bottom: 44px; display: flex; align-items: center; gap: 10px; }
.step__num::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }
.step__out { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: #c4ccd6; }
.step__out i { font-style: normal; }
.step__out span { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.principle { padding: 34px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 0; }
.principle:nth-child(odd) { padding-right: 48px; border-right: 1px solid var(--line); }
.principle:nth-child(even) { padding-left: 48px; }
.principle__n { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); padding-top: 6px; }
.principle h3 { font-size: 23px; }
.principle p { grid-column: 2; color: var(--muted); margin-top: 10px; font-size: 15.5px; }

/* Stack */
.stack { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.stack__row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 22px 26px; border-bottom: 1px solid var(--line); align-items: center; }
.stack__row:last-child { border-bottom: 0; }
.stack__row dt { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stack__row dd { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--font-mono); font-size: 13px; padding: 6px 11px; border: 1px solid var(--line-strong); border-radius: 7px; color: #d5dbe3; background: var(--surface); }
.stack__note { margin-top: 18px; font-size: 14.5px; color: var(--muted); }

/* Engagement */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; }
.plan--featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(185, 242, 75, 0.06), transparent 55%), var(--surface); }
.plan__tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.plan h3 { font-size: 24px; margin-bottom: 10px; }
.plan > p { color: var(--muted); font-size: 15.5px; }
.plan ul { margin-top: 22px; display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 24px; font-size: 14.5px; color: #c4ccd6; }
.plan li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-family: var(--font-mono); }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq__head h2 { font-size: clamp(30px, 3.6vw, 46px); margin: 16px 0 18px; }
.faq__head p { color: var(--muted); }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 19px; font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--font-mono); font-size: 20px; color: var(--accent); transition: transform 0.2s; flex: none; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--muted); padding: 0 40px 24px 0; font-size: 15.5px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.contact h2 { font-size: clamp(32px, 4.2vw, 54px); margin: 16px 0 20px; text-wrap: balance; }
.contact__copy > p { color: var(--muted); max-width: 32em; }
.contact__list { margin-top: 30px; display: grid; gap: 14px; }
.contact__list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); font-size: 15.5px; color: #c4ccd6; }
.contact__list li span:first-child { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); padding-top: 3px; }
.contact__direct { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--font-mono); font-size: 14px; }
.contact__direct a { color: var(--text); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color 0.2s, color 0.2s; }
.contact__direct a:hover { color: var(--accent); border-color: var(--accent); }

.form { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 13px 14px;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 9px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #566170; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form .btn { width: 100%; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { font-size: 14.5px; min-height: 1.4em; color: var(--muted); }
.form__status.is-ok { color: var(--accent); }
.form__status.is-err { color: #ff8a7a; }
.form__fine { font-size: 13px; color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 34px 0 40px; font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__links a:hover { color: var(--text); }

/* Reveal on scroll (enabled only when JS adds .js to <html>) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Responsive */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero { padding: 56px 0 56px; }
  .cards, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { border-bottom: 1px solid var(--line); }
  .step:nth-child(even) { border-right: 0; }
  .step:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .step__num { margin-bottom: 26px; }
  .faq, .contact { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 860px) {
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0; padding: 8px 24px 18px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none; font-size: 17px;
  }
  .nav__links a { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav.is-open .nav__links { display: flex; }
  .nav__actions { margin-left: auto; }
  .burger { display: block; }
  .section { padding: 72px 0; }
  .section__head { grid-template-columns: minmax(0, 1fr); margin-bottom: 36px; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principle:nth-child(odd) { padding-right: 0; border-right: 0; }
  .principle:nth-child(even) { padding-left: 0; }
  .stack__row { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav__inner { gap: 12px; }
  .nav__actions .btn { display: none; }
  .nav__links { padding-inline: 16px; }
  .cards, .plans, .steps { grid-template-columns: minmax(0, 1fr); }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .step__num { margin-bottom: 22px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .principle { grid-template-columns: 44px minmax(0, 1fr); padding: 26px 0; }
  .form { padding: 22px 18px; }
  .faq__item summary { font-size: 17px; }
  .faq__item p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Effects layer ---------- */

.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; box-shadow: 0 0 12px rgba(185, 242, 75, 0.7); }

/* Hero: glow, headline entrance, tilting blueprint with a travelling border light */
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: -10%; top: -6%; width: 62%; height: 110%;
  background:
    radial-gradient(closest-side, rgba(185, 242, 75, 0.16), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(64, 160, 255, 0.10), transparent 70%);
}
.hero h1 .line { display: block; }
.hero h1 .hl {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent) 38%, #f1ffc9 50%, var(--accent) 62%, var(--accent) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: lineUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.18s both, shimmer 2.4s ease-in-out 1.2s 1 both;
}
.js .hero h1 .line:not(.hl) { animation: lineUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s both; }
.js .hero .eyebrow { animation: fadeUp 0.7s ease both; }
.js .hero .lead { animation: fadeUp 0.8s ease 0.35s both; }
.js .hero__cta { animation: fadeUp 0.8s ease 0.5s both; }
.js .hero__note { animation: fadeUp 0.8s ease 0.62s both; }

.blueprint {
  border: 0; padding: 1px; background: var(--line);
  box-shadow: 0 50px 120px -50px rgba(185, 242, 75, 0.28), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.blueprint::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  left: 50%; top: 50%; width: 160%; aspect-ratio: 1; margin: -80% 0 0 -80%;
  background: conic-gradient(transparent 0 68%, var(--accent) 84%, transparent 100%);
  animation: rotate 7s linear infinite;
}
.blueprint::after {
  content: ""; position: absolute; z-index: 0; inset: 1px; pointer-events: none;
  border-radius: calc(var(--radius) - 1px);
  background: linear-gradient(180deg, var(--surface) 0%, #0a0f15 100%);
}
.blueprint > * { position: relative; z-index: 1; }

.bp-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.bp-tab {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.03em;
  padding: 6px 11px; border-radius: 7px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--muted); cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.bp-tab:hover { color: var(--text); }
.bp-tab[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.bp-node, .bp-link, .bp-dot { transition: opacity 0.45s ease; }
.bp-node rect { transition: stroke 0.3s, fill 0.3s; }
.bp-link { stroke: rgba(185, 242, 75, 0.32); }
.bp-node.is-dim { opacity: 0.2; }
.bp-link.is-dim { opacity: 0.25; stroke: var(--line-strong); }
.bp-dot.is-dim { opacity: 0; }
.bp-node.is-ping rect { stroke: var(--accent); stroke-width: 1.6; fill: rgba(185, 242, 75, 0.2); }
.bp-node.is-ping text:not(.sub) { fill: var(--accent); }

/* Cursor spotlight on cards */
.card, .plan { position: relative; isolation: isolate; }
.card::before, .plan::before,
.card::after, .plan::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity 0.35s;
}
.card::before, .plan::before {
  z-index: -1;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(185, 242, 75, 0.11), transparent 65%);
}
.card::after, .plan::after {
  inset: -1px; padding: 1px;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(185, 242, 75, 0.9), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover::before, .plan:hover::before, .card:hover::after, .plan:hover::after { opacity: 1; }
.card:hover .card__icon { background: var(--accent); color: var(--accent-ink); }
.card__icon { transition: background 0.25s, color 0.25s; }

/* Process: an accent line runs across the steps when the block scrolls in */
.step::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.steps.is-in .step::before { animation: grow 0.55s ease-out forwards; }
.steps.is-in .step:nth-child(2)::before { animation-delay: 0.45s; }
.steps.is-in .step:nth-child(3)::before { animation-delay: 0.9s; }
.steps.is-in .step:nth-child(4)::before { animation-delay: 1.35s; }
.steps.is-in .step:nth-child(5)::before { animation-delay: 1.8s; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); }

.btn--primary:hover { box-shadow: 0 10px 34px -10px rgba(185, 242, 75, 0.6); }

/* Contact: closing glow */
#contact { position: relative; overflow: hidden; }
#contact::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; bottom: -55%; width: 90%; height: 100%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(185, 242, 75, 0.13), transparent 70%);
}

@keyframes lineUp { from { opacity: 0; transform: translateY(0.4em); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes grow { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .blueprint::before { display: none; }
  .step::before { transform: scaleX(1); }
}

/* ---------- Conversion layer ---------- */
.card { display: flex; flex-direction: column; }
.card__link { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--accent); align-self: flex-start; }
.card__link .arrow { transition: transform 0.2s; }
.card__link:hover .arrow { transform: translateX(4px); }

.principle p { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0 14px; align-items: start; }
.principle p span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 6px; }
.principle p i { font-style: normal; }
.principle__risk { margin-top: 16px !important; }
.principle__risk span { color: #ff8a7a; }
.principle__risk i { color: var(--muted); }
.principle__rule { margin-top: 10px !important; }
.principle__rule span { color: var(--accent); }
.principle__rule i { color: var(--text); }

.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fit__col { padding: 28px 26px; }
.fit__col + .fit__col { border-left: 1px solid var(--line); }
.fit h3 { font-size: 19px; margin-bottom: 16px; }
.fit ul { display: grid; gap: 11px; }
.fit li { position: relative; padding-left: 26px; font-size: 15px; color: #c4ccd6; }
.fit li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-family: var(--font-mono); }
.fit__col--no h3, .fit__col--no li { color: var(--muted); }
.fit__col--no li::before { content: "×"; color: #6b7684; }

.plandoc { margin-top: 30px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); box-shadow: 0 24px 60px -34px rgba(0, 0, 0, 0.9); }
.plandoc__bar { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.plandoc__bar span:first-child { color: var(--accent); }
.plandoc .contact__list { margin: 0; padding: 18px; }

.next { margin-top: 28px; display: grid; gap: 0; counter-reset: next; }
.next li { position: relative; padding: 0 0 18px 34px; display: grid; gap: 2px; counter-increment: next; }
.next li::before { content: counter(next); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-family: var(--font-mono); font-size: 11.5px; display: grid; place-items: center; }
.next li::after { content: ""; position: absolute; left: 10.5px; top: 26px; bottom: 2px; width: 1px; background: var(--line-strong); }
.next li:last-child { padding-bottom: 0; }
.next li:last-child::after { display: none; }
.next b { font-weight: 600; font-size: 15.5px; }
.next span { color: var(--muted); font-size: 14.5px; }

.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.chipbtn { position: relative; cursor: pointer; }
.chipbtn input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chipbtn span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14.5px; color: #c4ccd6; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.chipbtn:hover span { border-color: var(--text); }
.chipbtn input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chipbtn input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.assure { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: #c4ccd6; }
.assure li { position: relative; padding-left: 18px; }
.assure li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-family: var(--font-mono); font-size: 12px; }

.sticky-cta { display: none; }
@media (max-width: 860px) {
  .sticky-cta {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55; height: 52px;
    border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 600;
    box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.9);
    transform: translateY(160%); transition: transform 0.3s ease;
  }
  .sticky-cta.is-visible { transform: none; }
  .fit { grid-template-columns: minmax(0, 1fr); }
  .fit__col + .fit__col { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .principle p { grid-template-columns: 1fr; gap: 4px; }
}

.eventlog__text { min-width: 0; }
@media (max-width: 620px) { .hero h1 { font-size: clamp(31px, 9.2vw, 40px); } .blueprint__bar .live { display: none; } }
.hero { overflow-x: clip; }
html, body { overflow-x: clip; }

/* One clean fade-in once fonts and language are ready: no flash of fallback font or of the other language */
body { transition: opacity 0.35s ease; }
.js.is-loading body { opacity: 0; }
.js.is-loading .hero *, .js.is-loading .hero *::before { animation-play-state: paused !important; }
.eventlog__time { font-variant-numeric: tabular-nums; }
