/* ========================================================================== 
   AKFA LAB 0.4.0 — interface, motion and responsive refinement layer
   Loaded after app.css to preserve the stable 0.3 component contract.
   ========================================================================== */

:root {
  --lab-green: #45f3a2;
  --lab-green-rgb: 69, 243, 162;
  --lab-mint: #bfffe0;
  --lab-ink: #07150f;
  --lab-deep: #04110b;
  --lab-deep-2: #081d13;
  --lab-deep-3: #0d2b1c;
  --lab-paper: #f3f5f1;
  --lab-paper-2: #e9eee9;
  --lab-card: rgba(255, 255, 255, .78);
  --lab-line: rgba(11, 34, 22, .12);
  --lab-line-dark: rgba(255, 255, 255, .13);
  --lab-shadow: 0 28px 90px rgba(9, 29, 18, .13);
  --lab-shadow-dark: 0 34px 110px rgba(0, 0, 0, .42);
  --ease-spring: cubic-bezier(.16, 1, .3, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --radius-2xl: 40px;
  --topbar: 76px;
}

html { background: var(--lab-paper); }
body {
  background:
    radial-gradient(circle at 7% 22%, rgba(69, 243, 162, .06), transparent 26%),
    radial-gradient(circle at 92% 56%, rgba(9, 68, 39, .045), transparent 32%),
    var(--lab-paper);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .42;
  background-image:
    linear-gradient(rgba(9, 35, 22, .027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 35, 22, .027) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent 0, #000 13%, #000 88%, transparent 100%);
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 600;
  height: 3px;
  pointer-events: none;
  background: rgba(255, 255, 255, .025);
}
.scroll-progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--lab-green), #caffdf);
  box-shadow: 0 0 16px rgba(var(--lab-green-rgb), .72);
  will-change: transform;
}

.cursor-light {
  position: fixed;
  z-index: 79;
  width: 460px;
  height: 460px;
  left: 0;
  top: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(circle, rgba(var(--lab-green-rgb), .105) 0, rgba(var(--lab-green-rgb), .035) 34%, transparent 69%);
  transition: opacity .35s ease;
  mix-blend-mode: screen;
}
.cursor-light.is-visible { opacity: 1; }

.site-grid { opacity: .18; background-size: 72px 72px; }
.section { padding-top: 132px; padding-bottom: 132px; }
.section-heading { align-items: end; }
.section-heading h2 {
  max-width: 840px;
  font-size: clamp(48px, 5.1vw, 82px);
  line-height: .94;
  letter-spacing: -.066em;
}
.section-heading > p { max-width: 570px; font-size: 14px; line-height: 1.78; }
.section-kicker { gap: 12px; }
.section-kicker > span:first-child,
.section-kicker-dark > span:first-child {
  position: relative;
  width: 22px;
  height: 1px;
  border-radius: 999px;
  background: currentColor;
}
.section-kicker > span:first-child::after,
.section-kicker-dark > span:first-child::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translate(50%, -50%);
  background: var(--lab-green);
  box-shadow: 0 0 0 5px rgba(var(--lab-green-rgb), .12);
}

/* Top navigation ---------------------------------------------------------- */
.topbar {
  height: var(--topbar);
  gap: 30px;
  padding-inline: clamp(20px, 4vw, 70px);
  border-bottom-color: rgba(255, 255, 255, .09);
}
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(180deg, rgba(4, 17, 11, .94), rgba(4, 17, 11, .79));
  backdrop-filter: blur(24px) saturate(140%);
  transition: opacity .35s ease;
}
.topbar.is-scrolled { background: transparent; backdrop-filter: none; box-shadow: 0 18px 48px rgba(0, 0, 0, .12); }
.topbar.is-scrolled::before { opacity: 1; }
.brand-symbol { border-radius: 13px; transform: rotate(-3deg); transition: transform .45s var(--ease-spring), background .3s ease; }
.brand:hover .brand-symbol { transform: rotate(0) scale(1.055); background: rgba(var(--lab-green-rgb), .09); }
.brand-text em { letter-spacing: .32em; }
.main-nav { gap: 28px; }
.main-nav a { padding: 12px 0; font-size: 11px; letter-spacing: .04em; }
.main-nav a.is-active { opacity: 1; color: var(--lab-green); }
.main-nav a.is-active::after { transform: scaleX(1); }
.top-actions { gap: 8px; }
.command-button {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 9px 0 15px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 12px;
  background: rgba(255, 255, 255, .055);
  color: rgba(255, 255, 255, .84);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  transition: border-color .25s ease, background .25s ease, transform .25s var(--ease-out);
}
.command-button:hover { transform: translateY(-1px); border-color: rgba(var(--lab-green-rgb), .48); background: rgba(var(--lab-green-rgb), .09); }
.command-button kbd {
  min-width: 42px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 7px;
  background: rgba(0, 0, 0, .2);
  color: rgba(255, 255, 255, .55);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .05);
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.install-button, .round-button, .language-switch { backdrop-filter: blur(14px); }
.round-button, .language-switch { transition: transform .3s var(--ease-spring), background .25s ease, border-color .25s ease; }

/* Hero -------------------------------------------------------------------- */
.hero {
  min-height: max(850px, 100svh);
  grid-template-columns: minmax(0, 1.02fr) minmax(500px, .98fr);
  gap: clamp(38px, 5vw, 92px);
  padding: calc(var(--topbar) + 72px) clamp(26px, 5vw, 86px) 106px;
  background:
    radial-gradient(circle at 76% 31%, rgba(var(--lab-green-rgb), .13), transparent 29%),
    radial-gradient(circle at 13% 94%, rgba(53, 146, 92, .15), transparent 35%),
    linear-gradient(128deg, #031009 0%, #06170f 48%, #0a2418 100%);
}
.hero::before {
  opacity: .13;
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 60% 46%, #000 0, #000 45%, transparent 88%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -25% 25%;
  z-index: -1;
  height: 54%;
  transform: rotate(-8deg);
  background: linear-gradient(90deg, transparent, rgba(var(--lab-green-rgb), .08), transparent);
  filter: blur(40px);
}
.hero-particles { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .56; pointer-events: none; }
.hero-aurora {
  position: absolute;
  z-index: -1;
  width: 42vw;
  height: 42vw;
  right: 2vw;
  top: 12vh;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(var(--lab-green-rgb), .17), rgba(var(--lab-green-rgb), .035) 42%, transparent 67%);
  filter: blur(12px);
  animation: auroraBreath 8s ease-in-out infinite;
}
.hero-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
  pointer-events: none;
}
.orbit-one { width: 560px; height: 560px; right: -170px; top: 10%; animation: orbitFloat 12s ease-in-out infinite; }
.orbit-two { width: 280px; height: 280px; left: 38%; bottom: -110px; animation: orbitFloat 9s ease-in-out -3s infinite reverse; }
.hero-copy { position: relative; z-index: 4; max-width: 760px; padding-bottom: 22px; }
.hero-copy h1 {
  max-width: 820px;
  margin: 26px 0 28px;
  font-size: clamp(63px, 6.4vw, 112px);
  line-height: .88;
  letter-spacing: -.076em;
  text-wrap: balance;
  background: linear-gradient(112deg, #fff 4%, #fff 56%, #b9fbd8 102%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { max-width: 690px; margin-bottom: 31px; color: rgba(255, 255, 255, .63); font-size: clamp(15px, 1.25vw, 19px); line-height: 1.72; }
.hero-actions { gap: 10px; margin-bottom: 24px; }
.hero .button { min-height: 58px; padding-inline: 22px 17px; border-radius: 16px; }
.button-primary {
  position: relative;
  overflow: hidden;
  background: var(--lab-green);
  box-shadow: 0 18px 54px rgba(var(--lab-green-rgb), .19);
}
.button-primary::before {
  content: "";
  position: absolute;
  inset: -150% auto -150% -25%;
  width: 28%;
  transform: rotate(23deg);
  background: rgba(255, 255, 255, .42);
  filter: blur(7px);
  transition: left .75s var(--ease-out);
}
.button-primary:hover::before { left: 118%; }
.button-ghost { background: rgba(255, 255, 255, .045); backdrop-filter: blur(15px); }
.hero-proof { width: fit-content; display: flex; align-items: center; gap: 10px; margin: 0 0 34px; color: rgba(255, 255, 255, .52); font-size: 10px; font-weight: 650; letter-spacing: .015em; }
.proof-icon { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid rgba(var(--lab-green-rgb), .28); border-radius: 50%; background: rgba(var(--lab-green-rgb), .08); color: var(--lab-green); }
.proof-icon svg { width: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.hero-stats { max-width: 760px; gap: 0; border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.hero-stats .stat { min-width: 135px; padding: 20px 18px 18px 0; border: 0; background: transparent; }
.hero-stats .stat + .stat { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .1); }
.hero-stats .stat strong { font-size: 29px; font-variant-numeric: tabular-nums; }
.hero-stats .stat span { font-size: 8px; letter-spacing: .08em; }
.hero-stats .stat-wide { min-width: 172px; }
.hero-stats .stat-wide strong { color: var(--lab-green); font: 850 13px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }

.hero-visual { position: relative; z-index: 3; min-height: 650px; display: grid; place-items: center; perspective: 1200px; transform-style: preserve-3d; }
.blueprint-badge {
  position: absolute;
  z-index: 6;
  top: 3%;
  left: 4%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  background: rgba(4, 17, 11, .68);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .2);
}
.blueprint-badge i { grid-row: 1 / 3; align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--lab-green); box-shadow: 0 0 0 5px rgba(var(--lab-green-rgb), .11), 0 0 16px rgba(var(--lab-green-rgb), .7); animation: statusPulse 2.2s ease-in-out infinite; }
.blueprint-badge span { color: rgba(255, 255, 255, .68); font: 800 8px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.blueprint-badge strong { color: var(--lab-green); font: 800 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.window-twin {
  position: relative;
  width: min(100%, 680px);
  min-height: 650px;
  transform-style: preserve-3d;
  transition: transform .2s ease-out;
}
.window-twin::before {
  content: "";
  position: absolute;
  inset: 8% 6% 14%;
  border-radius: 45%;
  background: radial-gradient(circle, rgba(var(--lab-green-rgb), .14), transparent 66%);
  filter: blur(25px);
}
.window-blueprint { position: absolute; inset: 5% 0 10%; width: 100%; height: 88%; overflow: visible; }
.blueprint-glass { stroke: rgba(var(--lab-green-rgb), .12); stroke-width: 1; }
.blueprint-line, .blueprint-accent { fill: none; stroke: rgba(213, 255, 234, .33); stroke-width: 1.2; stroke-dasharray: 1800; stroke-dashoffset: 1800; animation: blueprintDraw 2.2s var(--ease-out) forwards; }
.blueprint-accent { stroke-width: 2.2; opacity: .92; }
.line-delay-2 { animation-delay: .16s; }
.line-delay-3 { animation-delay: .28s; }
.line-delay-4 { animation-delay: .4s; }
.sensor-nodes circle { fill: var(--lab-green); filter: drop-shadow(0 0 8px rgba(var(--lab-green-rgb), .8)); animation: nodePulse 2.6s ease-in-out infinite; }
.sensor-nodes circle:nth-child(2) { animation-delay: -.6s; }.sensor-nodes circle:nth-child(3) { animation-delay: -1.2s; }.sensor-nodes circle:nth-child(4) { animation-delay: -1.8s; }
.dimension-lines { fill: rgba(255, 255, 255, .45); stroke: rgba(255, 255, 255, .25); stroke-width: 1; font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.scan-beam rect { fill: rgba(var(--lab-green-rgb), .84); filter: drop-shadow(0 0 10px rgba(var(--lab-green-rgb), .9)); animation: blueprintScan 4.8s ease-in-out infinite; }
.twin-console {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 0;
  width: min(520px, 84%);
  transform: translateX(-50%) translateZ(52px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(8, 30, 19, .9), rgba(3, 15, 9, .83));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .055);
  backdrop-filter: blur(24px) saturate(135%);
}
.twin-console::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .035) 48%, transparent 66%); transform: translateX(-100%); animation: consoleShine 6s ease-in-out infinite; }
.twin-console-head { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .095); }
.twin-console-head span { display: flex; align-items: center; gap: 9px; }
.twin-console-head i { width: 7px; height: 7px; border-radius: 50%; background: var(--lab-green); box-shadow: 0 0 12px rgba(var(--lab-green-rgb), .8); }
.twin-console-head b, .twin-console-head strong { font: 800 8px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.twin-console-head b { color: rgba(255, 255, 255, .48); }.twin-console-head strong { color: var(--lab-green); }
.twin-result { min-height: 122px; display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 18px 19px; }
.twin-result small { display: block; margin-bottom: 7px; color: rgba(255, 255, 255, .38); font: 800 7px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
.twin-result strong { font-size: 48px; line-height: .88; letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.twin-result span { margin-left: 7px; color: rgba(255, 255, 255, .42); font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.signal-bars { height: 61px; display: flex; align-items: end; gap: 5px; }
.signal-bars i { width: 6px; height: var(--h); border-radius: 999px; background: linear-gradient(to top, rgba(var(--lab-green-rgb), .18), var(--lab-green)); animation: signal 1.7s ease-in-out infinite alternate; transform-origin: bottom; }
.signal-bars i:nth-child(2n) { animation-delay: -.65s; }.signal-bars i:nth-child(3n) { animation-delay: -1.1s; }
.twin-steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, .09); }
.twin-steps span { min-height: 54px; display: flex; align-items: center; gap: 9px; padding: 0 14px; border-right: 1px solid rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .34); }
.twin-steps span:last-child { border-right: 0; }.twin-steps i { font: 800 8px ui-monospace, SFMono-Regular, Menlo, monospace; }.twin-steps b { font-size: 8px; letter-spacing: .04em; }
.twin-steps .is-complete { color: rgba(255, 255, 255, .68); }.twin-steps .is-complete i { color: var(--lab-green); }.twin-steps .is-active { color: #fff; background: rgba(var(--lab-green-rgb), .065); }.twin-steps .is-active i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--lab-green); color: var(--lab-deep); }
.floating-sensor {
  position: absolute;
  z-index: 5;
  min-width: 112px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  background: rgba(5, 23, 14, .72);
  color: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
  backdrop-filter: blur(16px);
  animation: sensorFloat 5s ease-in-out infinite;
}
.floating-sensor small { display: block; color: rgba(255, 255, 255, .4); font: 800 7px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
.floating-sensor strong { display: inline-block; margin-top: 4px; font-size: 20px; line-height: 1; }.floating-sensor span { margin-left: 4px; color: rgba(255, 255, 255, .42); font-size: 7px; }
.sensor-one { left: 0; top: 31%; }.sensor-two { right: -1%; top: 19%; animation-delay: -1.8s; }.sensor-three { right: 5%; bottom: 23%; min-width: auto; display: flex; align-items: center; gap: 8px; animation-delay: -.8s; }
.sensor-three i { width: 7px; height: 7px; border-radius: 50%; background: var(--lab-green); box-shadow: 0 0 12px rgba(var(--lab-green-rgb), .9); }.sensor-three span { margin: 0; color: rgba(255, 255, 255, .7); font: 800 7px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.hero-ticker { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; height: 42px; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .09); background: rgba(1, 12, 7, .6); backdrop-filter: blur(12px); }
.ticker-track { width: max-content; height: 100%; display: flex; align-items: center; gap: 24px; animation: ticker 28s linear infinite; }
.ticker-track span { color: rgba(255, 255, 255, .42); font: 800 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; white-space: nowrap; }.ticker-track i { width: 4px; height: 4px; border-radius: 50%; background: var(--lab-green); }

/* Workflow navigator ------------------------------------------------------ */
.navigator { position: relative; background: linear-gradient(180deg, #f3f5f1, #e9eee9 72%, #eef2ed); }
.navigator::before { content: ""; position: absolute; inset: 7% auto auto 4%; width: 300px; height: 300px; border-radius: 50%; background: rgba(var(--lab-green-rgb), .09); filter: blur(80px); pointer-events: none; }
.navigator-heading { margin-bottom: 55px; }
.journey-shell {
  min-height: 660px;
  display: grid;
  grid-template-columns: 335px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(8, 30, 18, .13);
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 34px 90px rgba(12, 36, 22, .11), inset 0 1px 0 rgba(255, 255, 255, .8);
  backdrop-filter: blur(20px);
}
.journey-sidebar { padding: 25px 17px 18px; border-right: 1px solid rgba(8, 30, 18, .1); background: linear-gradient(160deg, #071910, #0b291b); color: #fff; }
.journey-sidebar-head { padding: 3px 12px 21px; border-bottom: 1px solid rgba(255, 255, 255, .095); }
.journey-sidebar-head small { display: block; margin-bottom: 7px; color: var(--lab-green); font: 800 8px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.journey-sidebar-head strong { font-size: 19px; letter-spacing: -.025em; }
.journey-tabs { display: grid; gap: 6px; padding-top: 16px; }
.journey-tab {
  position: relative;
  min-height: 78px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: rgba(255, 255, 255, .57);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform .35s var(--ease-spring), color .25s ease, background .25s ease, border-color .25s ease;
}
.journey-tab::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; transform: scaleY(0); border-radius: 0 3px 3px 0; background: var(--lab-green); transition: transform .35s var(--ease-spring); }
.journey-tab:hover { color: #fff; transform: translateX(3px); background: rgba(255, 255, 255, .045); }
.journey-tab.is-active { color: #fff; border-color: rgba(var(--lab-green-rgb), .18); background: linear-gradient(90deg, rgba(var(--lab-green-rgb), .13), rgba(255, 255, 255, .025)); }
.journey-tab.is-active::before { transform: scaleY(.6); }
.journey-tab-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .1); border-radius: 13px; background: rgba(255, 255, 255, .035); color: rgba(255, 255, 255, .54); transition: color .25s ease, background .25s ease, border-color .25s ease; }
.journey-tab.is-active .journey-tab-icon { color: var(--lab-green); border-color: rgba(var(--lab-green-rgb), .25); background: rgba(var(--lab-green-rgb), .09); box-shadow: inset 0 0 18px rgba(var(--lab-green-rgb), .06); }
.journey-tab-icon svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.journey-tab > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }.journey-tab b { font-size: 11px; }.journey-tab small { overflow: hidden; color: rgba(255, 255, 255, .36); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }.journey-tab > i { color: rgba(255, 255, 255, .23); font: 800 8px ui-monospace, SFMono-Regular, Menlo, monospace; }
.journey-stage { min-width: 0; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 58px); background: radial-gradient(circle at 95% 5%, rgba(var(--lab-green-rgb), .10), transparent 31%), rgba(255, 255, 255, .71); }
.journey-stage-head { display: flex; align-items: start; justify-content: space-between; gap: 35px; padding-bottom: 32px; border-bottom: 1px solid var(--lab-line); }
.journey-stage-head > div:first-child { max-width: 720px; }.journey-stage-head small { color: var(--green-dark); font: 850 8px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; }.journey-stage-head h3 { margin: 10px 0 9px; font-size: clamp(35px, 3.4vw, 57px); line-height: .96; letter-spacing: -.055em; }.journey-stage-head p { max-width: 680px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.journey-progress { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border: 1px solid var(--lab-line); border-radius: 16px; background: rgba(255, 255, 255, .62); }
.journey-progress > div { display: grid; text-align: right; }.journey-progress span { font-size: 17px; font-weight: 850; letter-spacing: -.04em; }.journey-progress small { color: var(--muted); font-size: 7px; letter-spacing: .08em; }.journey-progress svg { width: 48px; transform: rotate(-90deg); overflow: visible; }.journey-progress circle { fill: none; stroke: rgba(9, 31, 19, .1); stroke-width: 4; }.journey-progress circle:last-child { stroke: var(--lab-green); stroke-linecap: round; transition: stroke-dashoffset .75s var(--ease-out); filter: drop-shadow(0 0 4px rgba(var(--lab-green-rgb), .5)); }
.journey-steps { display: grid; gap: 10px; padding: 25px 0; }
.journey-step {
  position: relative;
  min-height: 89px;
  display: grid;
  grid-template-columns: 39px 49px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 13px 12px 15px;
  border: 1px solid rgba(10, 33, 20, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .56);
  overflow: hidden;
  transition: transform .35s var(--ease-spring), border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.journey-step::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; transform: scaleY(0); background: var(--lab-green); transition: transform .32s var(--ease-spring); }
.journey-step:hover { transform: translateX(4px); border-color: rgba(10, 52, 30, .2); background: #fff; box-shadow: 0 16px 36px rgba(12, 37, 22, .08); }.journey-step:hover::before,.journey-step.is-next::before,.journey-step.is-done::before { transform: scaleY(.55); }
.journey-step.is-next { border-color: rgba(var(--lab-green-rgb), .52); background: linear-gradient(90deg, rgba(var(--lab-green-rgb), .075), #fff 36%); box-shadow: 0 16px 42px rgba(var(--lab-green-rgb), .08); }.journey-step.is-done { background: rgba(232, 248, 239, .72); }
.journey-step-number { color: rgba(8, 28, 17, .27); font: 850 10px ui-monospace, SFMono-Regular, Menlo, monospace; }.journey-step-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; background: #0a1e14; color: var(--lab-green); }.journey-step-icon svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }.journey-step.is-done .journey-step-icon { background: var(--lab-green); color: var(--lab-deep); }
.journey-step-copy { min-width: 0; display: grid; gap: 2px; }.journey-step-copy small { color: var(--green-dark); font-size: 7px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }.journey-step-copy strong { overflow: hidden; font-size: 14px; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }.journey-step-copy em { overflow: hidden; color: var(--muted); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }.journey-step-status { color: var(--muted-2); font: 800 7px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .09em; }.journey-step.is-done .journey-step-status { color: var(--green-dark); }
.journey-step > button { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--lab-line); border-radius: 11px; background: transparent; color: var(--ink); cursor: pointer; font-size: 8px; font-weight: 850; transition: background .22s ease, color .22s ease, border-color .22s ease; }.journey-step > button:hover { border-color: var(--lab-deep); background: var(--lab-deep); color: var(--lab-green); }.journey-step > button svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.journey-foot { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: auto; padding-top: 23px; border-top: 1px solid var(--lab-line); }.journey-foot > span { display: flex; align-items: center; gap: 10px; color: var(--muted); }.journey-foot > span i { width: 7px; height: 7px; border-radius: 50%; background: var(--lab-green); box-shadow: 0 0 0 5px rgba(var(--lab-green-rgb), .13); }.journey-foot > span b { font-size: 8px; font-weight: 650; }.button-dark { min-height: 51px; border-radius: 14px; background: var(--lab-deep); color: #fff; }.button-dark:hover { color: var(--lab-green); }

/* Recent tools and catalogue --------------------------------------------- */
.catalog { position: relative; background: #f7f8f5; }
.catalog::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 96% 5%, rgba(var(--lab-green-rgb), .075), transparent 28%); }
.recent-tools { margin-top: 48px; padding: 20px; border: 1px solid rgba(11, 35, 21, .12); border-radius: 26px; background: linear-gradient(135deg, #081b12, #0c2b1c); color: #fff; box-shadow: 0 25px 72px rgba(7, 28, 16, .17); }
.recent-tools-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 1px 3px 16px; }.recent-tools-head div { display: grid; gap: 3px; }.recent-tools-head small { color: var(--lab-green); font: 800 7px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; text-transform: uppercase; }.recent-tools-head strong { font-size: 16px; }.recent-tools-head button { border: 0; background: transparent; color: rgba(255, 255, 255, .42); font-size: 8px; cursor: pointer; }.recent-tools-head button:hover { color: var(--lab-green); }
.recent-tools-track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }.recent-tool { min-width: 0; display: grid; grid-template-columns: auto 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 11px 10px; border: 1px solid rgba(255, 255, 255, .095); border-radius: 13px; background: rgba(255, 255, 255, .035); color: #fff; text-align: left; cursor: pointer; transition: transform .3s var(--ease-spring), background .25s ease, border-color .25s ease; }.recent-tool:hover { transform: translateY(-3px); border-color: rgba(var(--lab-green-rgb), .28); background: rgba(var(--lab-green-rgb), .07); }.recent-tool-index { color: rgba(255, 255, 255, .25); font: 800 7px ui-monospace, SFMono-Regular, Menlo, monospace; }.recent-tool-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; background: rgba(var(--lab-green-rgb), .1); color: var(--lab-green); }.recent-tool-icon svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }.recent-tool-copy { min-width: 0; display: grid; gap: 2px; }.recent-tool-copy small { overflow: hidden; color: rgba(255, 255, 255, .35); font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }.recent-tool-copy strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.recent-tool-arrow { color: var(--lab-green); font-size: 12px; }
.catalog-control-panel { position: sticky; z-index: 20; top: calc(var(--topbar) + 10px); display: grid; gap: 11px; margin-top: 45px; padding: 11px 12px; border: 1px solid rgba(11, 35, 21, .11); border-radius: 20px; background: rgba(247, 248, 245, .84); box-shadow: 0 15px 46px rgba(12, 37, 22, .07); backdrop-filter: blur(22px) saturate(135%); }
.filter-scroll { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 1px; scrollbar-width: none; }.filter-scroll::-webkit-scrollbar { display: none; }
.filter-button { flex: 0 0 auto; min-height: 37px; padding: 0 14px; border-radius: 11px; font-size: 8px; transition: transform .25s var(--ease-spring), color .2s ease, background .2s ease; }.filter-button:hover { transform: translateY(-1px); }.filter-button.is-active { box-shadow: 0 8px 25px rgba(7, 30, 17, .15); }
.catalog-controls { display: grid; grid-template-columns: auto minmax(220px, 470px) auto; justify-content: end; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(11, 35, 21, .08); }
.catalog-count { display: flex; align-items: baseline; gap: 6px; margin-right: auto; }.catalog-count strong { font-size: 20px; letter-spacing: -.04em; }.catalog-count small { color: var(--muted); font-size: 8px; }
.inline-search { min-height: 41px; border-radius: 12px; background: rgba(255, 255, 255, .8); }.inline-search input { font-size: 10px; }.view-switch { height: 41px; padding: 3px; border: 1px solid var(--lab-line); border-radius: 12px; background: rgba(255, 255, 255, .72); }.view-switch button { width: 34px; height: 33px; border-radius: 9px; }.view-switch button.is-active { background: var(--lab-deep); color: var(--lab-green); }
.calculator-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 19px; }
.calculator-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --glare-x: 50%;
  --glare-y: 50%;
  min-height: 345px;
  padding: 20px;
  border-color: rgba(12, 39, 23, .12);
  border-radius: 25px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .93), rgba(244, 248, 244, .72));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .85);
  transform: perspective(950px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(0);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .32s var(--ease-spring), border-color .28s ease, box-shadow .32s ease, background .28s ease;
}
.calculator-card:hover { transform: perspective(950px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-7px); border-color: rgba(9, 73, 39, .25); box-shadow: 0 26px 65px rgba(12, 37, 22, .12); }
.calculator-card::before { opacity: 0; background: radial-gradient(circle at var(--glare-x) var(--glare-y), rgba(var(--lab-green-rgb), .13), transparent 37%); transition: opacity .28s ease; }.calculator-card:hover::before { opacity: 1; }
.card-glare { position: absolute; inset: -1px; z-index: 0; pointer-events: none; opacity: 0; border-radius: inherit; background: radial-gradient(circle at var(--glare-x) var(--glare-y), rgba(255, 255, 255, .78), transparent 27%); mix-blend-mode: soft-light; transition: opacity .25s ease; }.calculator-card:hover .card-glare { opacity: .8; }
.card-grid-pattern { position: absolute; inset: 0; z-index: 0; opacity: .22; pointer-events: none; border-radius: inherit; background-image: linear-gradient(rgba(8, 29, 17, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 29, 17, .05) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, transparent, #000 56%, #000); }
.calculator-card > *:not(.card-glare,.card-grid-pattern) { position: relative; z-index: 2; transform: translateZ(16px); }
.calculator-card.is-featured { border-color: rgba(var(--lab-green-rgb), .42); background: linear-gradient(145deg, #fbfffc, #e6f7ee); }.calculator-card.is-featured::after { top: 21px; padding: 4px 7px; border-radius: 999px; background: rgba(var(--lab-green-rgb), .12); }
.calculator-card.is-recent .recent-mark { opacity: 1; transform: scale(1); }.recent-mark { width: 7px; height: 7px; display: block; border-radius: 50%; opacity: 0; transform: scale(.4); background: var(--lab-green); box-shadow: 0 0 0 5px rgba(var(--lab-green-rgb), .11); transition: opacity .25s ease, transform .35s var(--ease-spring); }
.card-index { color: rgba(7, 31, 17, .25); font-size: 9px; }.card-main { padding-top: 36px; }.calculator-icon { width: 58px; height: 58px; border-radius: 18px; transition: transform .5s var(--ease-spring), background .3s ease, color .3s ease; }.calculator-card:hover .calculator-icon { transform: rotate(-4deg) scale(1.08); }.card-category { margin-top: 24px; }.card-main h3 { margin-top: 9px; font-size: clamp(24px, 2vw, 31px); line-height: .99; }.card-main p { max-width: 97%; font-size: 10px; line-height: 1.65; }.card-footer { padding-top: 17px; }.card-arrow { width: 42px; height: 42px; border-radius: 13px; transition: transform .4s var(--ease-spring), background .25s ease, color .25s ease; }.calculator-card:hover .card-arrow { transform: rotate(4deg) scale(1.06); }
.calculator-grid.is-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }.calculator-grid.is-compact .calculator-card { min-height: 108px; display: grid; grid-template-columns: 1fr auto; padding: 12px 13px; border-radius: 16px; transform: none; }.calculator-grid.is-compact .calculator-card:hover { transform: translateY(-3px); }.calculator-grid.is-compact .card-grid-pattern,.calculator-grid.is-compact .card-glare,.calculator-grid.is-compact .calculator-card::after { display: none; }.calculator-grid.is-compact .card-topline { position: absolute; left: 14px; top: 13px; }.calculator-grid.is-compact .card-index { display: none; }.calculator-grid.is-compact .card-main { min-width: 0; display: grid; grid-template-columns: 43px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; padding: 0; text-align: left; }.calculator-grid.is-compact .calculator-icon { grid-row: 1 / 3; width: 43px; height: 43px; border-radius: 13px; }.calculator-grid.is-compact .card-category { margin: 0; font-size: 7px; }.calculator-grid.is-compact .card-main h3 { margin: 2px 0 0; font-size: 15px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.calculator-grid.is-compact .card-main p { display: none; }.calculator-grid.is-compact .card-footer { align-self: stretch; display: grid; align-content: center; padding: 0 0 0 12px; border: 0; }.calculator-grid.is-compact .card-footer > div { display: none; }.calculator-grid.is-compact .card-arrow { width: 37px; height: 37px; }

/* History ----------------------------------------------------------------- */
.history-section { position: relative; padding-top: 122px; background: linear-gradient(180deg, #e8ede8, #f1f4f0); }
.history-section::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45; background-image: linear-gradient(rgba(10, 32, 20, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 32, 20, .035) 1px, transparent 1px); background-size: 70px 70px; }
.compact-heading { align-items: end; }.history-heading-actions { max-width: 590px; }.history-storage { width: fit-content; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid rgba(11, 36, 22, .1); border-radius: 12px; background: rgba(255, 255, 255, .55); color: var(--muted); }.history-storage i { width: 7px; height: 7px; border-radius: 50%; background: var(--lab-green); box-shadow: 0 0 0 5px rgba(var(--lab-green-rgb), .11); }.history-storage span { font-size: 8px; }.history-storage b { color: var(--ink); font-size: 10px; }
.history-toolbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 42px 0 17px; padding: 11px 12px; border: 1px solid rgba(11, 35, 21, .11); border-radius: 18px; background: rgba(255, 255, 255, .59); backdrop-filter: blur(18px); }.history-search { flex: 1; min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--lab-line); border-radius: 12px; background: rgba(255, 255, 255, .8); }.history-search svg { width: 17px; fill: none; stroke: var(--muted); stroke-width: 1.7; }.history-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 10px; }.history-toolbar-actions { display: flex; align-items: center; gap: 5px; }.history-toolbar-actions button,.history-import { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--lab-line); border-radius: 11px; background: rgba(255, 255, 255, .75); color: var(--ink); cursor: pointer; font-size: 8px; font-weight: 800; transition: background .2s ease, color .2s ease, border-color .2s ease; }.history-toolbar-actions svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }.history-toolbar-actions button:hover,.history-import:hover { border-color: var(--lab-deep); background: var(--lab-deep); color: var(--lab-green); }.history-toolbar-actions .danger-text-button { border-color: transparent; background: transparent; color: var(--danger); }
.history-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }.history-card { position: relative; min-height: 300px; padding: 20px; overflow: hidden; border-color: rgba(11, 35, 21, .12); border-radius: 23px; background: rgba(255, 255, 255, .72); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }.history-card-glow { position: absolute; width: 220px; height: 220px; right: -110px; top: -130px; border-radius: 50%; background: rgba(var(--lab-green-rgb), .16); filter: blur(40px); transition: transform .55s var(--ease-out); }.history-card:hover .history-card-glow { transform: translate(-20px, 28px) scale(1.15); }.history-card > *:not(.history-card-glow) { position: relative; z-index: 2; }.history-card-head { gap: 9px; }.history-card-menu { display: flex; gap: 4px; margin-left: auto; }.history-card-head .history-card-menu button { margin-left: 0; display: grid; place-items: center; }.history-card-menu svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }.history-card h3 { margin-top: 25px; font-size: 23px; }.history-result strong { font-size: 33px; }.history-card footer button { display: inline-flex; align-items: center; gap: 6px; }.history-card footer svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.history-empty { min-height: 370px; border: 1px dashed rgba(9, 38, 21, .18); border-radius: 28px; background: rgba(255, 255, 255, .4); }.empty-symbol { position: relative; width: 82px; height: 82px; display: grid; place-items: center; border: 1px solid rgba(9, 39, 21, .13); border-radius: 24px; background: rgba(255, 255, 255, .75); font-size: 31px; }.empty-symbol i { position: absolute; inset: -9px; border: 1px dashed rgba(var(--lab-green-rgb), .45); border-radius: 30px; animation: rotateSlow 12s linear infinite; }

/* Methodology ------------------------------------------------------------- */
.methodology { min-height: 800px; grid-template-columns: minmax(0, .7fr) minmax(600px, 1.3fr); gap: 85px; padding-block: 135px; background: linear-gradient(130deg, #04120b, #071b11 56%, #0b281a); }
.methodology::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .1; background-image: linear-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .13) 1px, transparent 1px); background-size: 68px 68px; mask-image: linear-gradient(90deg, transparent, #000 22%, #000); }
.method-copy { position: relative; z-index: 2; }.method-copy h2 { font-size: clamp(52px, 5.3vw, 85px); line-height: .93; letter-spacing: -.066em; }.method-copy > p { max-width: 620px; color: rgba(255, 255, 255, .55); font-size: 14px; line-height: 1.78; }.method-status { width: fit-content; margin-top: 38px; padding: 13px 17px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 15px; background: rgba(255, 255, 255, .04); backdrop-filter: blur(16px); }.status-light { position: relative; width: 9px; height: 9px; }.status-light::after { content: ""; position: absolute; inset: -6px; border: 1px solid rgba(var(--lab-green-rgb), .36); border-radius: 50%; animation: statusHalo 2s ease-out infinite; }
.method-visual { position: relative; z-index: 2; min-height: 575px; display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: repeat(4, minmax(124px, 1fr)); gap: 10px 18px; align-items: stretch; }.method-rail { position: relative; grid-column: 1; grid-row: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: space-around; padding-block: 25px; }.method-rail::before { content: ""; position: absolute; top: 11%; bottom: 11%; width: 1px; background: linear-gradient(to bottom, transparent, rgba(var(--lab-green-rgb), .52), transparent); }.method-rail span { position: relative; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .13); border-radius: 50%; background: #071a10; color: rgba(255, 255, 255, .32); font: 800 8px ui-monospace, SFMono-Regular, Menlo, monospace; transition: color .25s ease, border-color .25s ease, background .25s ease, transform .4s var(--ease-spring); }.method-rail span.is-active { transform: scale(1.14); border-color: rgba(var(--lab-green-rgb), .47); background: var(--lab-green); color: var(--lab-deep); box-shadow: 0 0 0 8px rgba(var(--lab-green-rgb), .08), 0 0 35px rgba(var(--lab-green-rgb), .17); }
.method-step { position: relative; grid-column: 2; min-height: 124px; display: grid; grid-template-columns: 47px minmax(0, 1fr) auto; align-items: center; gap: 17px; padding: 18px 21px; border: 1px solid rgba(255, 255, 255, .105); border-radius: 20px; background: rgba(255, 255, 255, .035); overflow: hidden; outline: none; transition: transform .4s var(--ease-spring), border-color .3s ease, background .3s ease; }.method-step::after { content: ""; position: absolute; inset: 0; opacity: 0; background: linear-gradient(100deg, rgba(var(--lab-green-rgb), .11), transparent 55%); transition: opacity .3s ease; }.method-step.is-active,.method-step:hover,.method-step:focus-visible { transform: translateX(-7px); border-color: rgba(var(--lab-green-rgb), .3); background: rgba(var(--lab-green-rgb), .055); }.method-step.is-active::after,.method-step:hover::after,.method-step:focus-visible::after { opacity: 1; }.method-step-index { position: relative; z-index: 2; width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; background: rgba(var(--lab-green-rgb), .1); color: var(--lab-green); font: 800 10px ui-monospace, SFMono-Regular, Menlo, monospace; }.method-step > div { position: relative; z-index: 2; min-width: 0; }.method-step small { color: var(--lab-green); font: 800 7px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }.method-step h3 { margin: 6px 0 4px; color: #fff; font-size: 17px; letter-spacing: -.02em; }.method-step p { margin: 0; color: rgba(255, 255, 255, .42); font-size: 9px; line-height: 1.6; }.method-step > b { position: relative; z-index: 2; align-self: end; padding-bottom: 2px; color: rgba(255,255,255,.76); font: 800 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }

/* Ecosystem --------------------------------------------------------------- */
.ecosystem { min-height: 820px; grid-template-columns: minmax(0, .72fr) minmax(560px, 1.28fr); gap: 100px; background: linear-gradient(180deg, #f2f5f1, #edf1ec); }.ecosystem-copy h2 { font-size: clamp(52px, 5.2vw, 84px); }.privacy-note { max-width: 560px; margin-top: 38px; padding: 18px; border: 1px solid rgba(11, 36, 22, .12); border-radius: 18px; background: rgba(255, 255, 255, .62); box-shadow: inset 0 1px 0 #fff; }.privacy-note svg { width: 24px; color: var(--green-dark); }.privacy-note strong { font-size: 11px; }.privacy-note span { font-size: 9px; }
.ecosystem-map { min-height: 600px; border: 1px solid rgba(10, 35, 21, .13); border-radius: 50%; background: radial-gradient(circle at center, rgba(var(--lab-green-rgb), .19) 0, rgba(var(--lab-green-rgb), .05) 21%, transparent 48%), rgba(255, 255, 255, .35); box-shadow: inset 0 0 80px rgba(12, 48, 27, .04); }.ecosystem-map::before,.ecosystem-map::after { border-color: rgba(11, 36, 22, .13); }.map-radar { position: absolute; inset: 6%; border-radius: 50%; overflow: hidden; }.map-radar::before { content: ""; position: absolute; width: 50%; height: 50%; left: 50%; top: 0; transform-origin: 0 100%; background: conic-gradient(from 90deg at 0 100%, transparent, rgba(var(--lab-green-rgb), .18), transparent 36deg); animation: radarSweep 8s linear infinite; }.map-radar::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(var(--lab-green-rgb), .09); border-radius: 50%; }
.map-core { width: 166px; height: 166px; border: 1px solid rgba(var(--lab-green-rgb), .35); background: linear-gradient(145deg, #071d12, #0c301f); box-shadow: 0 28px 70px rgba(5, 28, 15, .24), inset 0 0 50px rgba(var(--lab-green-rgb), .06); }.map-core::before { content: ""; position: absolute; inset: -13px; border: 1px dashed rgba(var(--lab-green-rgb), .38); border-radius: 50%; animation: rotateSlow 18s linear infinite; }.map-core i { position: absolute; width: 8px; height: 8px; right: 25px; top: 28px; border-radius: 50%; background: var(--lab-green); box-shadow: 0 0 13px rgba(var(--lab-green-rgb), .95); }.map-core span { font-size: 12px; }.map-core strong { font-size: 38px; }.map-core small { font-size: 6px; }
.map-node { width: 155px; height: 91px; border-radius: 19px; background: rgba(255, 255, 255, .78); box-shadow: 0 18px 50px rgba(11, 39, 22, .09); backdrop-filter: blur(14px); transition: transform .42s var(--ease-spring), box-shadow .3s ease, border-color .3s ease; }.map-node:hover { transform: translateY(-8px) scale(1.025); border-color: rgba(var(--lab-green-rgb), .45); box-shadow: 0 30px 68px rgba(9, 39, 21, .14); }.map-node::before { content: ""; position: absolute; left: 13px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--lab-green); box-shadow: 0 0 0 5px rgba(var(--lab-green-rgb), .1); }.map-line { height: 1px; opacity: .42; background: linear-gradient(90deg, transparent, var(--green-dark), transparent); }.line-one,.line-two,.line-three,.line-four { animation: linePulse 2.7s ease-in-out infinite; }.line-two { animation-delay: -.65s; }.line-three { animation-delay: -1.3s; }.line-four { animation-delay: -1.95s; }

/* Workspace --------------------------------------------------------------- */
.workspace { z-index: 240; }
.workspace-backdrop { background: rgba(0, 8, 4, .82); backdrop-filter: blur(16px) saturate(115%); }
.workspace-shell {
  inset: 12px;
  max-width: none;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 27px;
  box-shadow: 0 45px 140px rgba(0, 0, 0, .56);
  transform: translateY(28px) scale(.985);
}
.workspace.is-open .workspace-shell { transform: translateY(0) scale(1); }
.workspace-header { min-height: 88px; gap: 14px; padding: 11px 15px; border-radius: 26px 26px 0 0; background: linear-gradient(100deg, #04130c, #082117 68%, #0a2b1c); }
.workspace-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--lab-green-rgb), .37), transparent); }
.workspace-close { width: 43px; height: 43px; border-radius: 14px; }
.workspace-heading { flex: 0 1 300px; }.workspace-heading h2 { max-width: 300px; font-size: 20px; }.workspace-heading > span { color: var(--lab-green); }
.workspace-progress { flex: 1 1 410px; max-width: 500px; display: flex; align-items: center; justify-content: center; gap: 9px; margin-inline: 8px; }.workspace-progress > span { min-width: 95px; display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .28); transition: color .3s ease; }.workspace-progress i { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .13); border-radius: 50%; font: 800 7px ui-monospace, SFMono-Regular, Menlo, monospace; transition: all .35s var(--ease-spring); }.workspace-progress b { font-size: 8px; white-space: nowrap; }.workspace-progress em { flex: 1; max-width: 48px; height: 1px; overflow: hidden; background: rgba(255, 255, 255, .11); }.workspace-progress em::before { content: ""; display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: var(--lab-green); transition: transform .5s var(--ease-out); }.workspace-progress > span.is-active,.workspace-progress > span.is-complete { color: #fff; }.workspace-progress > span.is-active i { border-color: var(--lab-green); background: var(--lab-green); color: var(--lab-deep); box-shadow: 0 0 0 7px rgba(var(--lab-green-rgb), .08); }.workspace-progress > span.is-complete i { border-color: rgba(var(--lab-green-rgb), .42); color: var(--lab-green); }.workspace-progress > span.is-complete + em::before { transform: scaleX(1); }
.workspace-header-actions { gap: 5px; }.workspace-header-actions button { min-height: 40px; padding: 0 11px; border-radius: 11px; }.workspace-header-actions button:disabled { opacity: .27; cursor: not-allowed; }.workspace-header-actions button span { font-size: 8px; }.workspace-header-actions .workspace-language { border-radius: 11px; }
.workspace-body { grid-template-columns: minmax(240px, 285px) minmax(460px, 1fr) minmax(350px, 425px); background: var(--lab-paper); }
.workspace-context { position: relative; padding: 27px 24px 34px; background: linear-gradient(180deg, #eaf0ea, #e4ebe5); transition: width .42s var(--ease-out), padding .42s var(--ease-out), opacity .3s ease; }.context-collapse { position: absolute; top: 15px; right: 14px; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(9, 34, 20, .11); border-radius: 10px; background: rgba(255, 255, 255, .6); cursor: pointer; transition: transform .35s var(--ease-spring), background .2s ease; }.context-collapse:hover { transform: translateX(-2px); background: #fff; }.context-collapse svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }.workspace-icon { width: 66px; height: 66px; border-radius: 20px; }.workspace-context > p { font-size: 12px; line-height: 1.7; }.model-card,.limitation-card { border-radius: 17px; }.model-card { background: rgba(255, 255, 255, .7); }.model-card code { font-size: 10px; line-height: 1.65; }.limitation-card { background: #0a2116; }.context-warning { border-radius: 16px; }
.workspace.is-context-collapsed .workspace-body { grid-template-columns: 72px minmax(460px, 1fr) minmax(350px, 425px); }.workspace.is-context-collapsed .workspace-context { padding: 18px 11px; overflow: hidden; }.workspace.is-context-collapsed .workspace-context > *:not(.context-collapse,.workspace-icon) { opacity: 0; pointer-events: none; }.workspace.is-context-collapsed .workspace-icon { width: 48px; height: 48px; margin-top: 46px; border-radius: 15px; }.workspace.is-context-collapsed .workspace-icon svg { width: 23px; }.workspace.is-context-collapsed .context-collapse { right: 19px; transform: rotate(180deg); }
.workspace-form-column { padding: 25px clamp(24px, 3vw, 46px) 46px; background: linear-gradient(180deg, #f5f7f3, #eef2ed); }.form-column-head { align-items: center; margin-bottom: 17px; }.form-column-head small { font-size: 7px; letter-spacing: .12em; }.form-column-head strong { font-size: 12px; }.live-cluster { display: flex; align-items: center; gap: 7px; }.live-badge,.draft-badge { min-height: 29px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; border-radius: 999px; font-size: 7px; font-weight: 850; }.live-badge { border: 1px solid rgba(var(--lab-green-rgb), .32); background: rgba(var(--lab-green-rgb), .09); color: var(--green-dark); }.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--lab-green); box-shadow: 0 0 0 4px rgba(var(--lab-green-rgb), .12); animation: statusPulse 2s ease-in-out infinite; }.draft-badge { border: 1px solid rgba(9, 37, 21, .11); background: rgba(255, 255, 255, .65); color: var(--muted); opacity: 0; transform: translateY(-4px); transition: opacity .25s ease, transform .35s var(--ease-spring), color .25s ease; }.draft-badge.is-visible { opacity: 1; transform: translateY(0); }.draft-badge.is-saving { color: var(--warning); }.draft-badge.is-restored { color: var(--green-dark); }.draft-badge svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.project-field { position: relative; min-height: 63px; padding: 10px 14px; border: 1px solid rgba(9, 35, 21, .12); border-radius: 16px; background: rgba(255, 255, 255, .77); box-shadow: inset 0 1px 0 #fff; }.project-field span { color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }.project-field input { margin-top: 3px; font-size: 13px; font-weight: 720; }.project-field i { position: absolute; inset: auto 14px 8px; height: 1px; transform: scaleX(0); transform-origin: left; background: var(--lab-green); transition: transform .35s var(--ease-out); }.project-field:focus-within i { transform: scaleX(1); }
.preset-panel { margin: 13px 0 15px; padding: 13px; border: 1px solid rgba(9, 35, 21, .1); border-radius: 17px; background: rgba(255, 255, 255, .55); }.preset-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 10px; }.preset-panel-head span { font-size: 9px; font-weight: 850; }.preset-panel-head small { color: var(--muted); font-size: 7px; }.preset-list { display: flex; flex-wrap: wrap; gap: 6px; }.preset-button { min-height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid rgba(9, 35, 21, .11); border-radius: 11px; background: rgba(255, 255, 255, .76); color: var(--ink); cursor: pointer; transition: transform .3s var(--ease-spring), border-color .2s ease, background .2s ease; }.preset-button:hover { transform: translateY(-2px); border-color: rgba(var(--lab-green-rgb), .55); }.preset-button.is-active { border-color: var(--lab-deep); background: var(--lab-deep); color: var(--lab-green); }.preset-button span { color: var(--muted); font: 800 7px ui-monospace, SFMono-Regular, Menlo, monospace; }.preset-button.is-active span { color: rgba(255, 255, 255, .4); }.preset-button b { font-size: 8px; }
.fields-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }.model-field { position: relative; min-height: 89px; padding: 11px 12px 14px; border: 1px solid rgba(10, 35, 21, .105); border-radius: 15px; background: rgba(255, 255, 255, .75); box-shadow: inset 0 1px 0 #fff; transition: transform .3s var(--ease-spring), border-color .25s ease, box-shadow .25s ease; }.model-field:hover { transform: translateY(-2px); border-color: rgba(9, 67, 36, .2); box-shadow: 0 10px 25px rgba(10, 36, 21, .055); }.model-field:focus-within { border-color: rgba(var(--lab-green-rgb), .7); box-shadow: 0 0 0 3px rgba(var(--lab-green-rgb), .075); }.model-field > label { font-size: 8px; }.model-field > small { font-size: 6px; }.model-control { min-height: 36px; }.model-control input,.model-control select,.model-control textarea { font-size: 15px; font-weight: 760; font-variant-numeric: tabular-nums; }.number-shell { display: grid; grid-template-columns: 31px minmax(0, 1fr) 31px auto; align-items: center; width: 100%; }.stepper-button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(9, 35, 21, .11); border-radius: 9px; background: rgba(240, 244, 239, .84); color: var(--ink); cursor: pointer; font-size: 15px; line-height: 1; transition: background .2s ease, color .2s ease, transform .25s var(--ease-spring); }.stepper-button:hover { transform: scale(1.08); background: var(--lab-deep); color: var(--lab-green); }.number-shell input { min-width: 0; padding-inline: 7px; text-align: center; }.number-shell .field-unit { justify-self: end; }.field-progress { position: absolute; left: 11px; right: 11px; bottom: 6px; height: 2px; overflow: hidden; border-radius: 999px; background: rgba(9, 35, 21, .07); }.field-progress i { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; border-radius: inherit; background: linear-gradient(90deg, var(--lab-green), #12ae66); transition: transform .3s var(--ease-out); }.select-shell { position: relative; width: 100%; }.select-shell svg { position: absolute; right: 1px; top: 50%; width: 15px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.7; pointer-events: none; }
.recalculate-button { min-height: 52px; margin-top: 12px; border-radius: 14px; overflow: hidden; }.recalculate-button::before { content: ""; position: absolute; width: 20%; height: 180%; left: -35%; top: -40%; transform: rotate(22deg); background: rgba(255, 255, 255, .35); filter: blur(5px); transition: left .6s var(--ease-out); }.recalculate-button:hover::before { left: 120%; }
.workspace-result-column { position: relative; padding: 24px 22px; border-left-color: rgba(8, 30, 18, .1); background: linear-gradient(180deg, #fff, #f8faf7); }.result-header { min-height: 38px; }.result-header-actions { display: flex; align-items: center; gap: 7px; }.result-header-actions > button { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--lab-line); border-radius: 9px; background: rgba(255, 255, 255, .8); cursor: pointer; transition: background .2s ease, color .2s ease; }.result-header-actions > button:hover { background: var(--lab-deep); color: var(--lab-green); }.result-header-actions svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }.result-status { min-height: 31px; border-radius: 999px; }.result-status i { animation: statusPulse 2s ease-in-out infinite; }
.result-empty { flex: 1; min-height: 360px; }.result-empty-orbit { position: relative; width: 104px; height: 104px; display: grid; place-items: center; border: 1px solid rgba(9, 35, 21, .1); border-radius: 50%; }.result-empty-orbit span { position: relative; z-index: 2; font: 600 34px Georgia, serif; color: var(--green-dark); }.result-empty-orbit i { position: absolute; inset: -13px; border: 1px dashed rgba(var(--lab-green-rgb), .35); border-radius: 50%; animation: rotateSlow 9s linear infinite; }.result-empty-orbit i:last-child { inset: 15px; animation-direction: reverse; animation-duration: 5s; }
.result-content { animation: resultReveal .46s var(--ease-out); }.main-result { position: relative; min-height: 185px; padding: 23px; overflow: hidden; border-radius: 23px; background: linear-gradient(145deg, #071a11, #0b2e1e); box-shadow: 0 23px 55px rgba(7, 32, 17, .2); }.main-result::after { content: ""; position: absolute; width: 220px; height: 220px; right: -85px; top: -130px; border-radius: 50%; background: rgba(var(--lab-green-rgb), .14); filter: blur(32px); }.main-result.is-updated { animation: resultCardPulse .55s var(--ease-out); }.result-grid-lines { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255, 255, 255, .15) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .15) 1px, transparent 1px); background-size: 25px 25px; mask-image: linear-gradient(to bottom, transparent, #000); }.result-pulse { position: absolute; width: 110px; height: 110px; right: -20px; bottom: -30px; border: 1px solid rgba(var(--lab-green-rgb), .24); border-radius: 50%; animation: resultOrbit 6s linear infinite; }.result-pulse::before,.result-pulse::after { content: ""; position: absolute; inset: 15px; border: 1px dashed rgba(var(--lab-green-rgb), .2); border-radius: 50%; }.result-pulse::after { inset: 34px; background: var(--lab-green); box-shadow: 0 0 20px rgba(var(--lab-green-rgb), .8); }.main-result > small,.main-result > div,.main-result > footer { position: relative; z-index: 2; }.main-result > small { color: rgba(255, 255, 255, .43); }.main-result > div { margin-top: 25px; }.main-result strong { font-size: clamp(48px, 4.7vw, 73px); font-variant-numeric: tabular-nums; }.main-result footer { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 13px; border-top: 1px solid rgba(255, 255, 255, .09); }.main-result footer span { color: rgba(255, 255, 255, .33); font: 800 7px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }.main-result footer i { width: 34px; height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--lab-green), transparent); animation: liveLine 2.2s ease-in-out infinite; }
.baseline-panel { position: relative; display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin-top: 10px; padding: 12px; border: 1px solid rgba(var(--lab-green-rgb), .25); border-radius: 15px; background: rgba(var(--lab-green-rgb), .065); }.baseline-panel > div { display: grid; gap: 3px; }.baseline-panel small { color: var(--muted); font-size: 6px; }.baseline-panel strong { font-size: 11px; }.baseline-panel strong.is-positive { color: var(--success); }.baseline-panel strong.is-negative { color: var(--danger); }.baseline-panel button { align-self: center; width: 26px; height: 26px; border: 0; border-radius: 8px; background: rgba(8, 30, 18, .07); cursor: pointer; }
.result-note { font-size: 10px; }.result-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }.result-metric { position: relative; min-height: 76px; padding: 12px; overflow: hidden; border-radius: 14px; background: #f0f4ef; animation: metricReveal .45s var(--ease-out) var(--metric-delay) both; }.result-metric::before { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: linear-gradient(90deg, var(--lab-green), transparent); transform: scaleX(.25); transform-origin: left; transition: transform .35s var(--ease-out); }.result-metric:hover::before { transform: scaleX(1); }.result-metric span { font-size: 7px; }.result-metric strong { font-size: 18px; }.result-metric i { position: absolute; width: 32px; height: 32px; right: -13px; top: -13px; border-radius: 50%; background: rgba(var(--lab-green-rgb), .12); }.result-warning { border-radius: 13px; }.detail-row { border-radius: 12px; }
.result-actions { grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; margin-top: auto; padding-top: 14px; }.result-actions button { min-height: 45px; border-radius: 12px; }.save-project-button { background: var(--lab-green); color: var(--lab-deep); box-shadow: 0 14px 35px rgba(var(--lab-green-rgb), .17); }.save-project-button:hover { transform: translateY(-2px); }.result-actions button:not(.save-project-button) span { display: none; }.result-actions button:not(.save-project-button) { width: 46px; padding: 0; justify-content: center; }
.workspace-mobile-actions { display: none; }

/* Command search ---------------------------------------------------------- */
.search-overlay { align-items: start; padding-top: min(11vh, 95px); background: rgba(1, 9, 5, .87); backdrop-filter: blur(22px) saturate(120%); }.search-overlay-inner { width: min(920px, calc(100% - 32px)); max-height: min(760px, 82vh); border-radius: 25px; background: linear-gradient(145deg, #06170f, #0a271a); }.search-head { min-height: 48px; }.search-head > span { color: var(--lab-green); }.search-head kbd,.search-large kbd,.search-command-hint kbd { border: 1px solid rgba(255, 255, 255, .12); border-radius: 6px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .46); font: 700 8px ui-monospace, SFMono-Regular, Menlo, monospace; }.search-large { min-height: 92px; border-top-color: rgba(255, 255, 255, .1); border-bottom-color: rgba(255, 255, 255, .1); }.search-large input { font-size: clamp(21px, 2.5vw, 34px); letter-spacing: -.035em; }.search-command-hint { display: flex; align-items: center; gap: 18px; padding: 9px 20px; border-bottom: 1px solid rgba(255, 255, 255, .08); }.search-command-hint span { display: flex; align-items: center; gap: 5px; color: rgba(255, 255, 255, .34); }.search-command-hint b { font-size: 7px; font-weight: 650; }.search-results { padding: 8px; }.search-result { grid-template-columns: 32px 45px minmax(0, 1fr) 25px; gap: 12px; min-height: 72px; padding: 10px 12px; border: 1px solid transparent; border-radius: 14px; transition: transform .3s var(--ease-spring), background .22s ease, border-color .22s ease; }.search-result.is-selected { transform: translateX(4px); border-color: rgba(var(--lab-green-rgb), .24); background: rgba(var(--lab-green-rgb), .08); }.search-result-number { color: rgba(255, 255, 255, .24); font: 800 8px ui-monospace, SFMono-Regular, Menlo, monospace; }.search-result-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; background: rgba(255, 255, 255, .055); color: var(--lab-green); }.search-result-icon svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }.search-result-copy { min-width: 0; display: grid; gap: 2px; text-align: left; }.search-result-copy small { color: var(--lab-green); font-size: 6px; letter-spacing: .08em; }.search-result-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.search-result-copy em { overflow: hidden; color: rgba(255, 255, 255, .4); font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }.search-result-arrow { color: var(--lab-green); }

/* Motion utilities -------------------------------------------------------- */
.reveal-ready { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .85s var(--ease-out); }
.reveal-ready.is-revealed { opacity: 1; transform: translateY(0); }
.calculator-card.reveal-ready:nth-child(4n+2) { transition-delay: 45ms; }.calculator-card.reveal-ready:nth-child(4n+3) { transition-delay: 90ms; }.calculator-card.reveal-ready:nth-child(4n+4) { transition-delay: 135ms; }
.interaction-ripple { position: absolute; z-index: 20; width: 10px; height: 10px; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%) scale(0); background: rgba(255, 255, 255, .5); animation: ripple .65s ease-out forwards; }
.magnetic { will-change: transform; }
.toast { right: 20px; bottom: 20px; min-height: 48px; display: flex; align-items: center; border-radius: 15px; background: rgba(4, 20, 12, .94); backdrop-filter: blur(15px); }
.mobile-dock { display: none; }

@keyframes blueprintDraw { to { stroke-dashoffset: 0; } }
@keyframes blueprintScan { 0%, 12% { transform: translateY(0); opacity: 0; } 19% { opacity: 1; } 72% { opacity: .85; } 87%, 100% { transform: translateY(356px); opacity: 0; } }
@keyframes auroraBreath { 0%, 100% { transform: scale(.93); opacity: .65; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes orbitFloat { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-18px, 18px, 0); } }
@keyframes nodePulse { 0%, 100% { opacity: .45; r: 4px; } 50% { opacity: 1; r: 6px; } }
@keyframes signal { from { transform: scaleY(.58); opacity: .45; } to { transform: scaleY(1); opacity: 1; } }
@keyframes sensorFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes consoleShine { 0%, 60% { transform: translateX(-120%); } 82%, 100% { transform: translateX(120%); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes statusPulse { 0%, 100% { opacity: .65; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes statusHalo { from { transform: scale(.65); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
@keyframes rotateSlow { to { transform: rotate(360deg); } }
@keyframes radarSweep { to { transform: rotate(360deg); } }
@keyframes linePulse { 0%, 100% { opacity: .18; } 50% { opacity: .72; filter: drop-shadow(0 0 5px rgba(var(--lab-green-rgb), .45)); } }
@keyframes resultReveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes resultCardPulse { 0% { transform: scale(.985); box-shadow: 0 15px 45px rgba(7, 32, 17, .16); } 100% { transform: scale(1); box-shadow: 0 23px 55px rgba(7, 32, 17, .2); } }
@keyframes resultOrbit { to { transform: rotate(360deg); } }
@keyframes liveLine { 0%,100% { transform: scaleX(.35); opacity: .4; } 50% { transform: scaleX(1); opacity: 1; } }
@keyframes metricReveal { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ripple { to { opacity: 0; transform: translate(-50%, -50%) scale(16); } }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1450px) {
  .hero { grid-template-columns: minmax(0, 1.02fr) minmax(450px, .98fr); padding-inline: clamp(24px, 4vw, 64px); }
  .hero-copy h1 { font-size: clamp(62px, 6.2vw, 96px); }
  .window-twin { transform: scale(.94); }
  .calculator-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recent-tools-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workspace-header-actions button span { display: none; }
  .workspace-header-actions button { width: 40px; padding: 0; justify-content: center; }
  .workspace-heading { flex-basis: 270px; }.workspace-heading h2 { max-width: 265px; }
}

@media (max-width: 1180px) {
  .main-nav { display: none; }
  .top-actions { margin-left: auto; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: calc(var(--topbar) + 85px); padding-bottom: 90px; }
  .hero-copy { max-width: 910px; }
  .hero-copy h1 { max-width: 900px; font-size: clamp(66px, 9vw, 105px); }
  .hero-visual { min-height: 650px; margin-top: -25px; }
  .window-twin { width: min(720px, 85vw); transform: none; }
  .navigator-heading,.section-heading { grid-template-columns: 1fr; gap: 22px; }
  .journey-shell { grid-template-columns: 285px minmax(0, 1fr); }
  .journey-stage { padding: 35px; }
  .journey-step-status { display: none; }
  .calculator-grid.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .methodology { grid-template-columns: 1fr; gap: 65px; }
  .method-copy { max-width: 870px; }.method-visual { width: 100%; }
  .ecosystem { grid-template-columns: 1fr; gap: 65px; }.ecosystem-copy { max-width: 800px; }.ecosystem-map { width: min(760px, 90vw); margin-inline: auto; }
  .workspace-progress { display: none; }
  .workspace-body { grid-template-columns: 230px minmax(420px, 1fr) 360px; }
  .workspace.is-context-collapsed .workspace-body { grid-template-columns: 68px minmax(420px, 1fr) 360px; }
}

@media (max-width: 900px) {
  body { padding-bottom: 68px; }
  .section { padding: 95px 22px; }
  .topbar { padding-inline: 17px; }.command-button { display: none; }
  .hero { padding: calc(var(--topbar) + 58px) 22px 82px; }
  .hero-copy h1 { font-size: clamp(57px, 12.5vw, 92px); }
  .hero-lead { max-width: 700px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; }.hero-stats .stat { padding-left: 0; }.hero-stats .stat + .stat { padding-left: 15px; }.hero-stats .stat:nth-child(3) { border-top: 1px solid rgba(255,255,255,.1); border-left: 0; }.hero-stats .stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,.1); }
  .hero-visual { min-height: 560px; margin-top: 0; }.window-twin { min-height: 560px; width: min(680px, 96vw); }.floating-sensor { transform: scale(.85); }.sensor-one { left: 2%; }.sensor-two { right: 1%; }.twin-console { width: 84%; }
  .journey-shell { min-height: 0; grid-template-columns: 1fr; border-radius: 29px; }.journey-sidebar { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }.journey-sidebar-head { display: none; }.journey-tabs { display: flex; overflow-x: auto; padding: 0 0 4px; scrollbar-width: none; }.journey-tabs::-webkit-scrollbar { display: none; }.journey-tab { flex: 0 0 205px; min-height: 67px; }.journey-stage { padding: 27px 20px; }.journey-stage-head { gap: 18px; }.journey-stage-head h3 { font-size: 40px; }.journey-step { grid-template-columns: 30px 43px minmax(0,1fr) auto; }.journey-step-status { display: none; }.journey-step > button span { display: none; }.journey-step > button { width: 38px; padding: 0; justify-content: center; }
  .recent-tools-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }.catalog-control-panel { top: calc(var(--topbar) + 7px); }.catalog-controls { grid-template-columns: auto minmax(0, 1fr) auto; }.calculator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.calculator-grid.is-compact { grid-template-columns: 1fr; }
  .history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.history-toolbar { align-items: stretch; flex-direction: column; }.history-toolbar-actions { flex-wrap: wrap; }
  .methodology { padding-inline: 22px; }.method-visual { grid-template-columns: 52px minmax(0,1fr); }.method-step { min-height: 118px; }
  .ecosystem-map { min-height: 560px; width: 100%; }
  .workspace-shell { inset: 0; border: 0; border-radius: 0; }.workspace-header { min-height: 72px; border-radius: 0; padding: 9px 12px; }.workspace-heading h2 { max-width: 43vw; font-size: 17px; }.workspace-header-actions button:not(.workspace-language):not(#workspaceUndo):not(#workspaceRedo) { display: none; }.workspace-body { display: block; overflow-y: auto; }.workspace-context,.workspace-form-column,.workspace-result-column { overflow: visible; }.workspace-context { min-height: auto; padding: 18px 20px; border-right: 0; border-bottom: 1px solid var(--lab-line); }.context-collapse { display: none; }.workspace-icon { float: left; width: 52px; height: 52px; margin-right: 14px; }.workspace-context > p { min-height: 52px; margin: 3px 0 17px; }.model-card,.limitation-card,.context-warning { clear: both; }.workspace-form-column { padding: 22px 18px 30px; }.workspace-result-column { padding: 22px 18px 100px; border: 0; border-top: 1px solid var(--lab-line); }.workspace-mobile-actions { position: fixed; z-index: 5; inset: auto 0 0; display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(7,31,17,.12); background: rgba(255,255,255,.92); backdrop-filter: blur(20px); }.workspace-mobile-actions button { min-height: 50px; display: grid; place-items: center; gap: 2px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 8px; font-weight: 750; }.workspace-mobile-actions button:first-child { background: var(--lab-deep); color: var(--lab-green); }.workspace-mobile-actions svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
  .result-actions { display: none; }
  .mobile-dock { position: fixed; z-index: 75; inset: auto 9px calc(7px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(5, 21, 13, .91); color: #fff; box-shadow: 0 18px 55px rgba(0,0,0,.28); backdrop-filter: blur(22px) saturate(130%); }.mobile-dock a,.mobile-dock button { min-width: 0; min-height: 49px; display: grid; place-items: center; align-content: center; gap: 3px; border: 0; border-radius: 12px; background: transparent; color: rgba(255,255,255,.46); text-decoration: none; cursor: pointer; }.mobile-dock a.is-active,.mobile-dock button:active { background: rgba(var(--lab-green-rgb), .1); color: var(--lab-green); }.mobile-dock svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; }.mobile-dock span { overflow: hidden; max-width: 100%; font-size: 7px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
  .toast { bottom: 82px; }
}

@media (max-width: 620px) {
  .topbar { height: 67px; }.brand-text > span { display: none; }.brand-symbol { width: 38px; height: 38px; }.install-button { display: none !important; }.language-switch { width: 68px; }.round-button { width: 38px; height: 38px; }
  .hero { padding-top: 111px; }.hero-copy h1 { font-size: clamp(50px, 15vw, 76px); line-height: .89; }.hero-lead { font-size: 14px; }.hero-actions { flex-direction: column; }.hero .button { width: 100%; justify-content: space-between; }.hero-proof { align-items: flex-start; line-height: 1.5; }.hero-stats .stat { min-width: 0; }.hero-stats .stat strong { font-size: 24px; }.hero-stats .stat-wide strong { font-size: 11px; }
  .hero-visual { min-height: 430px; margin: 20px -20px 0; }.window-twin { min-height: 430px; }.window-blueprint { inset: 0; height: 80%; }.blueprint-badge { top: 0; left: 7%; }.floating-sensor { display: none; }.twin-console { bottom: 5px; width: 91%; border-radius: 18px; }.twin-console-head { min-height: 42px; }.twin-result { min-height: 94px; padding: 14px 15px; }.twin-result strong { font-size: 38px; }.signal-bars { height: 48px; }.twin-steps span { min-height: 47px; padding-inline: 9px; }.twin-steps b { font-size: 6px; }.hero-ticker { height: 36px; }.ticker-track { gap: 18px; }
  .section-heading h2 { font-size: clamp(44px, 13vw, 64px); }.section-heading > p { font-size: 12px; }
  .journey-stage-head { align-items: start; }.journey-progress { flex-direction: column-reverse; gap: 4px; padding: 8px; }.journey-progress > div { text-align: center; }.journey-progress svg { width: 42px; }.journey-step { grid-template-columns: 38px minmax(0,1fr) 36px; min-height: 79px; padding: 10px; }.journey-step-number { display: none; }.journey-step-icon { width: 38px; height: 38px; }.journey-step-copy em { display: none; }.journey-step-copy strong { font-size: 12px; }.journey-foot { align-items: stretch; flex-direction: column; }.journey-foot .button { width: 100%; justify-content: space-between; }
  .recent-tools { padding: 14px; border-radius: 21px; }.recent-tools-track { grid-template-columns: 1fr; }.recent-tool { min-height: 58px; }.catalog-control-panel { position: relative; top: auto; margin-top: 28px; }.catalog-controls { grid-template-columns: auto auto; }.catalog-count { grid-column: 1 / -1; }.inline-search { grid-column: 1; }.view-switch { grid-column: 2; }.calculator-grid { grid-template-columns: 1fr; }.calculator-card { min-height: 310px; }.card-main h3 { font-size: 28px; }
  .history-grid { grid-template-columns: 1fr; }.history-toolbar-actions { display: grid; grid-template-columns: 1fr 1fr; }.history-toolbar-actions button,.history-import { justify-content: center; }.history-toolbar-actions .danger-text-button { grid-column: 1 / -1; }.history-card { min-height: 278px; }
  .method-copy h2,.ecosystem-copy h2 { font-size: clamp(48px, 14vw, 68px); }.method-visual { grid-template-columns: 1fr; }.method-rail { display: none; }.method-step { grid-template-columns: 42px minmax(0,1fr); padding: 15px; }.method-step.is-active,.method-step:hover { transform: translateX(0); }
  .ecosystem { padding-inline: 18px; }.ecosystem-map { min-height: 440px; border-radius: 36px; }.ecosystem-map::before,.ecosystem-map::after,.map-radar,.map-line { display: none; }.map-core { width: 122px; height: 122px; }.map-core strong { font-size: 29px; }.map-node { width: 128px; height: 76px; }.node-one { left: 3%; top: 5%; }.node-two { right: 3%; top: 5%; }.node-three { left: 3%; bottom: 5%; }.node-four { right: 3%; bottom: 5%; }.map-node small { font-size: 6px; }.map-node strong { font-size: 10px; }.map-node span { font-size: 7px; }
  .workspace-heading { flex-basis: auto; }.workspace-heading h2 { max-width: 44vw; }.workspace-header-actions #workspaceUndo,.workspace-header-actions #workspaceRedo { display: none; }.fields-grid { grid-template-columns: 1fr; }.model-field.is-wide { grid-column: auto; }.form-column-head strong { max-width: 190px; }.draft-badge b { display: none; }.preset-panel-head { align-items: start; flex-direction: column; gap: 2px; }.preset-list { flex-direction: column; }.preset-button { width: 100%; }.result-metrics { grid-template-columns: 1fr 1fr; }.main-result strong { font-size: 54px; }.search-overlay { padding: 0; }.search-overlay-inner { width: 100%; max-height: 100%; height: 100%; border: 0; border-radius: 0; }.search-large { min-height: 84px; padding-inline: 16px; }.search-large input { font-size: 20px; }.search-command-hint { padding-inline: 16px; }.search-result { grid-template-columns: 28px 40px minmax(0,1fr) 20px; padding-inline: 7px; }
}

@media (hover: none), (pointer: coarse) {
  .cursor-light { display: none; }
  .calculator-card { transform: none !important; }
  .magnetic { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-aurora,.hero-orbit,.blueprint-line,.blueprint-accent,.sensor-nodes circle,.scan-beam rect,.signal-bars i,.floating-sensor,.ticker-track,.status-light::after,.map-radar::before,.map-core::before,.line-one,.line-two,.line-three,.line-four,.result-pulse,.result-pulse::before,.result-pulse::after,.result-empty-orbit i,.empty-symbol i,.live-badge i,.result-status i,.twin-console::before { animation: none !important; }
  .blueprint-line,.blueprint-accent { stroke-dashoffset: 0; }
  .reveal-ready { opacity: 1; transform: none; }
}

@media print {
  .scroll-progress,.cursor-light,.mobile-dock,.workspace-mobile-actions,.context-collapse,.workspace-progress,.preset-panel,.draft-badge,.live-badge,.baseline-panel,.result-header-actions { display: none !important; }
  body.print-workspace .workspace-shell { border-radius: 0; }
  body.print-workspace .workspace-context { display: grid; }
}

/* 0.4.0 mobile grid containment hardening */
@media (max-width: 900px) {
  .journey-shell { grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 100%; }
  .journey-sidebar, .journey-tabs, .journey-stage, .journey-stage-head, .journey-stage-head > div:first-child { min-width: 0; max-width: 100%; }
  .journey-sidebar { overflow: hidden; }
  .journey-tabs { width: 100%; }
  .journey-stage { width: 100%; overflow: hidden; }
  .journey-stage-head h3, .journey-stage-head p { max-width: 100%; overflow-wrap: anywhere; }
}
@media (max-width: 620px) {
  .journey-stage-head h3 { font-size: 35px; }
}
