/* ==========================================================================
   Umbreo.io — v3 "Deep Tech" design system
   ========================================================================== */

:root {
  --bg:        #04050A;
  --bg-2:      #080A12;
  --bg-3:      #0D1020;
  --surface:   rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.05);
  --line:      rgba(255, 255, 255, 0.07);
  --line-2:    rgba(255, 255, 255, 0.13);
  --text:      #ECEFF7;
  --text-2:    #B4BACD;
  --muted:     #7C839B;

  --blue:   #4673FF;
  --violet: #8B5CF6;
  --cyan:   #22D3EE;
  --pink:   #EC4899;
  --green:  #10B981;
  --amber:  #F59E0B;

  --grad:      linear-gradient(100deg, #5B82FF 0%, #8B5CF6 48%, #22D3EE 100%);
  --grad-soft: linear-gradient(180deg, #FFFFFF 0%, #AEB6D3 100%);

  --radius:    20px;
  --radius-sm: 12px;
  --max:       1240px;
  --nav-h:     72px;

  --f-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-body:    "Inter", system-ui, -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: rgba(139, 92, 246, .45); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.mono { font-family: var(--f-mono); }
.grad-text {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@keyframes gradShift { to { background-position: 200% center; } }

/* ───────────── Ambient layers ───────────── */
#bg-net {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none; opacity: .55;
}
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(70, 115, 255, .16), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(139, 92, 246, .12), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(34, 211, 238, .08), transparent 60%);
}
.grain {
  display: none;
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.cursor-glow {
  position: fixed; z-index: 1; pointer-events: none;
  width: 520px; height: 520px; left: 0; top: 0;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 130, 255, .10), transparent 65%);
  transform: translate3d(-999px, -999px, 0);
  will-change: transform;
}
@media (hover: none) { .cursor-glow { display: none; } }

main, header, footer, section { position: relative; z-index: 2; }

.scroll-prog {
  position: fixed; top: 0; left: 0; z-index: 60;
  height: 2px; width: 100%;
  transform-origin: left; transform: scaleX(0); will-change: transform;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(139, 92, 246, .8);
}

/* ───────────── Buttons ───────────── */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transform: translate3d(var(--bx), var(--by), 0);
  transition: transform .25s var(--ease), box-shadow .3s, background .3s, border-color .3s;
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(100deg, #4673FF, #7C4DFF);
  box-shadow: 0 10px 30px -10px rgba(91, 110, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: var(--grad); filter: blur(14px); opacity: 0; transition: opacity .3s;
}
.btn-primary:hover::before { opacity: .7; }
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* ───────────── Nav ───────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 6, 12, .92);
  border-bottom-color: var(--line);
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  position: relative; width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(70, 115, 255, .25), rgba(139, 92, 246, .2));
  border: 1px solid rgba(139, 130, 255, .35);
  box-shadow: 0 0 24px -4px rgba(91, 110, 255, .6);
}
.brand-mark img { width: 24px; height: 24px; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 19px; letter-spacing: .02em; }
.brand-name span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}
.nav-right { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12px;
}
.lang-toggle button {
  background: none; border: 0; cursor: pointer;
  padding: 5px 10px; border-radius: 999px; color: var(--muted);
  transition: color .2s, background .2s;
}
.lang-toggle button.active { color: #fff; background: rgba(255, 255, 255, .1); }

.nav-burger {
  display: none; width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  align-items: center; justify-content: center;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  display: block; width: 18px; height: 1.6px; background: #fff; border-radius: 2px; position: relative;
  transition: transform .3s var(--ease), background .2s;
}
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; }
.nav-burger span::before { top: -6px; }
.nav-burger span::after  { top:  6px; }
.nav-burger[aria-expanded="true"] span { background: transparent; }
.nav-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49;
  background: rgba(4, 5, 10, .98);
  padding: 28px 16px; display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.drawer.open { opacity: 1; visibility: visible; transform: none; }
.drawer a.d-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-size: 24px; font-weight: 600;
}
.drawer a.d-link small { font-family: var(--f-mono); font-size: 12px; color: var(--muted); font-weight: 400; }
.drawer .btn { margin-top: 24px; justify-content: center; }

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
}

/* ───────────── Hero ───────────── */
.hero {
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + 48px) 0 64px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.08fr 1fr; gap: 40px; align-items: center;
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2);
  font-size: 13px; color: var(--text-2);
}
.chip .tag {
  font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px; color: #fff;
  background: linear-gradient(100deg, rgba(70, 115, 255, .6), rgba(139, 92, 246, .6));
}
.live-dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none;
}
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--green); animation: ping 2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(40px, 6vw, 80px);
  line-height: .98; letter-spacing: -.045em; font-weight: 700;
  margin: 26px 0 0;
}
.hero h1 .l1 { display: block; background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scramble-line { display: block; min-height: 1em; white-space: nowrap; }
.scramble {
  display: inline-block;
  background: var(--grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.scramble .sc { color: var(--cyan); -webkit-text-fill-color: var(--cyan); opacity: .8; }
.caret {
  display: inline-block; width: .08em; height: .82em; margin-left: .06em; vertical-align: -.04em;
  background: var(--cyan); box-shadow: 0 0 14px var(--cyan);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero .lead {
  margin-top: 26px; max-width: 560px;
  font-size: clamp(16px, 1.35vw, 19px); color: var(--text-2); line-height: 1.65;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 44px;
  font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .02em;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--grad); }

/* Hero visual — the "core" */
.core {
  position: relative; aspect-ratio: 1; width: 100%; max-width: 580px; margin-left: auto;
}
.core canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.core-glow {
  position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 110, 255, .35), rgba(139, 92, 246, .12) 45%, transparent 70%);
}
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }
.orbit {
  position: absolute; inset: 4%; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .06);
  animation: spin 40s linear infinite;
}
.orbit::before {
  content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 12px 2px var(--cyan);
}
.orbit.o2 { inset: -4%; border-style: dashed; border-color: rgba(255, 255, 255, .05); animation-duration: 70s; animation-direction: reverse; }
.orbit.o2::before { background: var(--violet); box-shadow: 0 0 12px 2px var(--violet); top: auto; bottom: 14%; left: 4%; }
@keyframes spin { to { transform: rotate(360deg); } }

.float {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(12, 14, 26, .94); border: 1px solid var(--line-2);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
  font-size: 13px; white-space: nowrap;
  animation: floaty 7s ease-in-out infinite;
}
.float .ic {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none;
}
.float small { display: block; font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.float b { font-weight: 600; }
.float.f1 { top: 12%; left: -2%; }
.float.f2 { top: 46%; right: -4%; animation-delay: -2.5s; }
.float.f3 { bottom: 8%; left: 8%; animation-delay: -4.5s; }
@keyframes floaty { 50% { transform: translateY(-10px); } }

.code-mini { font-family: var(--f-mono); font-size: 12px; color: var(--text-2); }
.code-mini .k { color: #C792EA; } .code-mini .s { color: #A5E075; } .code-mini .f { color: #82AAFF; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase;
}
.scroll-hint i {
  width: 1px; height: 36px; background: linear-gradient(var(--line-2), transparent); position: relative; overflow: hidden;
}
.scroll-hint i::after {
  content: ""; position: absolute; left: 0; top: -12px; width: 1px; height: 12px; background: var(--cyan);
  animation: drip 2s var(--ease) infinite;
}
@keyframes drip { to { top: 36px; } }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .core { max-width: 460px; margin: 10px auto 0; }
  .scroll-hint { display: none; }
}
@media (max-width: 560px) {
  .float { font-size: 12px; padding: 8px 11px; }
  .float.f1 { left: 0; top: 4%; }
  .float.f2 { right: 0; }
  .float.f3 { display: none; }
  .scramble-line { white-space: normal; }
}

/* ───────────── Marquee ───────────── */
.marquee {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .012);
  overflow: hidden; padding: 20px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 48px;
  font-family: var(--f-display); font-size: 20px; font-weight: 500; color: var(--muted); white-space: nowrap;
}
.marquee-track span::after { content: "✦"; font-size: 12px; color: var(--violet); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────────── Sections ───────────── */
.section { padding: 130px 0; }
@media (max-width: 760px) { .section { padding: 88px 0; } }

.sec-head { max-width: 760px; margin-bottom: 64px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan);
}
.kicker::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.sec-head.center .kicker::after { content: ""; width: 24px; height: 1px; background: currentColor; }
.h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(34px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -.04em;
  margin-top: 18px;
  background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { margin-top: 20px; font-size: 17px; color: var(--text-2); line-height: 1.7; max-width: 620px; }
.sec-head.center .sub { margin-left: auto; margin-right: auto; }

/* ───────────── Spotlight card (shared) ───────────── */
.spot {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .3s, transform .4s var(--ease);
}
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(110, 120, 255, .14), transparent 45%);
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(150, 140, 255, .65), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }
.spot:hover { border-color: rgba(255, 255, 255, .12); }

/* ───────────── Services bento ───────────── */
.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(300px, auto);
}
.svc { padding: 30px; display: flex; flex-direction: column; }
.svc.span-4 { grid-column: span 4; }
.svc.span-3 { grid-column: span 3; }
.svc.span-2 { grid-column: span 2; }
.svc-top { display: flex; align-items: center; justify-content: space-between; }
.svc-ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--c1, rgba(70, 115, 255, .2)), var(--c2, rgba(139, 92, 246, .12)));
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
}
.svc-num { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.svc h3 {
  font-family: var(--f-display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15;
  margin-top: 22px;
}
.svc p { margin-top: 10px; font-size: 15px; color: var(--text-2); line-height: 1.65; max-width: 520px; }
.svc .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.svc .tags span {
  font-family: var(--f-mono); font-size: 11.5px; color: var(--text-2);
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02);
}
.svc-vis { margin-top: auto; padding-top: 26px; }

/* visual: code editor */
.editor {
  border-radius: 14px; border: 1px solid var(--line); background: rgba(3, 4, 9, .7);
  overflow: hidden; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.75;
}
.editor-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.editor-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.editor-bar i:nth-child(1) { background: #FF5F57; } .editor-bar i:nth-child(2) { background: #FEBC2E; } .editor-bar i:nth-child(3) { background: #28C840; }
.editor-bar em { margin-left: 10px; font-style: normal; font-size: 11px; color: var(--muted); }
.editor pre { padding: 14px 18px; overflow: hidden; color: var(--text-2); white-space: pre; }
.editor .ln { display: inline-block; width: 22px; color: rgba(255, 255, 255, .2); user-select: none; }
.tk-k { color: #C792EA; } .tk-f { color: #82AAFF; } .tk-s { color: #C3E88D; } .tk-c { color: #546E7A; } .tk-n { color: #F78C6C; } .tk-t { color: #FFCB6B; }
.type-line::after { content: "▍"; color: var(--cyan); animation: blink 1s steps(1) infinite; }

/* visual: dashboard bars */
.dash {
  border-radius: 14px; border: 1px solid var(--line); background: rgba(3, 4, 9, .6); padding: 16px;
}
.dash-row { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.dash-row b { color: var(--green); font-weight: 500; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 92px; margin-top: 14px; }
.bars i {
  flex: 1; border-radius: 4px 4px 1px 1px;
  background: linear-gradient(180deg, var(--blue), rgba(70, 115, 255, .15));
  transform-origin: bottom; transform: scaleY(.15);
  transition: transform 1s var(--ease);
}
.bars i:nth-child(3n) { background: linear-gradient(180deg, var(--violet), rgba(139, 92, 246, .15)); }
.in .bars i { transform: scaleY(var(--h, .5)); }
.sizes { display: flex; gap: 6px; margin-top: 14px; }
.sizes span {
  flex: 1; text-align: center; padding: 6px 0; border-radius: 8px;
  font-family: var(--f-mono); font-size: 10.5px; color: var(--text-2);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
}

/* visual: pixel game */
.pixel-stage {
  position: relative; height: 150px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(139, 92, 246, .15), rgba(236, 72, 153, .08)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 16px);
}
.pixel-stage .ground {
  position: absolute; left: 0; bottom: 0; width: calc(100% + 32px); height: 28px;
  background: repeating-linear-gradient(90deg, #6D3CF0 0 16px, #5A2ED0 16px 32px);
  box-shadow: inset 0 4px 0 #A78BFA;
  animation: scrollGround 1.2s linear infinite;
}
@keyframes scrollGround { to { transform: translateX(-32px); } }
.pixel-stage .hero-px {
  position: absolute; left: 22%; bottom: 28px; width: 24px; height: 24px;
  background: var(--cyan); box-shadow: 0 0 18px var(--cyan), inset -6px -6px 0 rgba(0,0,0,.25);
  animation: jump 1.2s cubic-bezier(.3,.0,.3,1) infinite;
}
@keyframes jump { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-58px) rotate(90deg); } 55% { transform: translateY(-58px) rotate(90deg); } }
.pixel-stage .block {
  position: absolute; bottom: 28px; width: 18px; height: 18px; background: var(--pink);
  box-shadow: inset -4px -4px 0 rgba(0,0,0,.3);
  animation: incoming 2.4s linear infinite;
}
.pixel-stage .block.b2 { animation-delay: -1.2s; height: 30px; background: var(--amber); }
@keyframes incoming { from { left: 105%; } to { left: -10%; } }
.pixel-stage .coin {
  position: absolute; top: 30px; width: 10px; height: 10px; border-radius: 50%;
  background: #FDE047; box-shadow: 0 0 10px #FDE047;
  animation: incoming 3.6s linear infinite;
}
.pixel-stage .hud {
  position: absolute; top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: 10.5px; color: #fff; letter-spacing: .08em;
}
.pixel-stage .hud b { color: #FDE047; font-weight: 600; }

/* visual: node graph */
.nodes { position: relative; height: 130px; }
.nodes svg { width: 100%; height: 100%; overflow: visible; }
.nodes .flow { stroke-dasharray: 4 6; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }

/* visual: consulting checklist */
.checks { display: grid; gap: 8px; }
.checks div {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  font-size: 13px; color: var(--text-2);
}
.checks svg { flex: none; color: var(--green); }

/* visual: innovation radar */
.radar { position: relative; height: 140px; display: grid; place-items: center; }
.radar .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(34, 211, 238, .18); }
.radar .r1 { width: 50px; height: 50px; } .radar .r2 { width: 96px; height: 96px; } .radar .r3 { width: 140px; height: 140px; }
.radar .sweep {
  position: absolute; width: 140px; height: 140px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(34, 211, 238, .35), transparent 25%);
  animation: spin 3.2s linear infinite;
}
.radar .blip { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: blipFade 3.2s linear infinite; }

@keyframes blipFade { 0%, 100% { opacity: .15; } 10% { opacity: 1; } }

@media (max-width: 1080px) {
  .svc.span-4, .svc.span-3, .svc.span-2 { grid-column: span 3; }
}
@media (max-width: 720px) {
  .bento { grid-template-columns: 1fr; }
  .svc.span-4, .svc.span-3, .svc.span-2 { grid-column: auto; }
  .svc { padding: 24px; }
}

/* ───────────── Process ───────────── */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-line {
  position: absolute; top: 27px; left: 28px; right: 28px; height: 1px; background: var(--line-2);
}
.process-line i {
  position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0));
  background: var(--grad); box-shadow: 0 0 12px rgba(139, 92, 246, .8);
}
.step { position: relative; }
.step-dot {
  position: relative; width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line-2);
  font-family: var(--f-mono); font-size: 14px; font-weight: 600; color: var(--muted);
  transition: color .4s, border-color .4s, box-shadow .4s, background .4s;
}
.step.lit .step-dot {
  color: #fff; border-color: rgba(139, 130, 255, .6);
  background: linear-gradient(145deg, rgba(70, 115, 255, .35), rgba(139, 92, 246, .25));
  box-shadow: 0 0 30px -4px rgba(110, 100, 255, .8);
}
.step h4 { font-family: var(--f-display); font-size: 21px; font-weight: 600; margin-top: 24px; letter-spacing: -.02em; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--text-2); line-height: 1.65; }
.step .out { margin-top: 14px; font-family: var(--f-mono); font-size: 11.5px; color: var(--cyan); }

@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 36px; padding-left: 0; }
  .process-line { top: 28px; bottom: 28px; left: 27px; right: auto; width: 1px; height: auto; }
  .process-line i { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 22px; }
  .step h4 { margin-top: 12px; }
  .step > :not(.step-dot) { grid-column: 2; }
  .step-dot { grid-row: span 4; }
}

/* ───────────── Stats ───────────── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
  overflow: hidden;
}
.stat { padding: 40px 30px; border-right: 1px solid var(--line); position: relative; }
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--f-display); font-size: clamp(40px, 4.4vw, 60px); font-weight: 700; letter-spacing: -.04em; line-height: 1;
  background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { margin-top: 12px; font-size: 14px; color: var(--text-2); }
.stat-label small { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--muted); margin-top: 4px; letter-spacing: .04em; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 440px) { .stat { padding: 28px 20px; } }

/* ───────────── Products ───────────── */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product {
  --c1: #4673FF; --c2: #8B5CF6;
  padding: 30px; display: flex; flex-direction: column;
  transform-style: preserve-3d;
}
.product .p-head { display: flex; align-items: flex-start; justify-content: space-between; }
.p-logo {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-family: var(--f-display); font-size: 24px; font-weight: 700; color: #fff;
  background: linear-gradient(145deg, var(--c1), var(--c2));
  box-shadow: 0 14px 30px -12px var(--c1), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .03em;
  border: 1px solid;
}
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge.live { color: #34D399; border-color: rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .08); }
.badge.dev  { color: #93A8FF; border-color: rgba(147, 168, 255, .3); background: rgba(147, 168, 255, .08); }
.badge.soon { color: #F0ABFC; border-color: rgba(240, 171, 252, .3); background: rgba(240, 171, 252, .08); }
.p-name { font-family: var(--f-display); font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin-top: 26px; }
.p-cat { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }
.p-desc { margin-top: 16px; font-size: 15px; color: var(--text-2); line-height: 1.65; }
.p-feats { list-style: none; margin-top: 20px; display: grid; gap: 9px; }
.p-feats li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.p-feats li::before {
  content: ""; width: 14px; height: 14px; flex: none; border-radius: 4px;
  background: linear-gradient(145deg, var(--c1), var(--c2));
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}
.p-foot { margin-top: auto; padding-top: 26px; }
.p-foot > * { margin-top: 0; }
.p-cta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-radius: 14px; margin-top: 26px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  font-size: 14px; font-weight: 600;
  transition: background .3s, border-color .3s;
}
a.p-cta:hover { background: linear-gradient(100deg, color-mix(in srgb, var(--c1) 25%, transparent), color-mix(in srgb, var(--c2) 20%, transparent)); border-color: color-mix(in srgb, var(--c1) 50%, transparent); }
span.p-cta { color: var(--muted); cursor: default; }
@media (max-width: 1000px) { .products { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; } }

/* ───────────── CTA band ───────────── */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px;
  padding: 80px 40px; text-align: center;
  border: 1px solid rgba(139, 130, 255, .25);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(91, 110, 255, .35), transparent 70%),
    radial-gradient(500px 300px at 50% 120%, rgba(34, 211, 238, .18), transparent 70%),
    var(--bg-2);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band .h2 { max-width: 820px; margin-left: auto; margin-right: auto; }
.cta-band .sub { margin-left: auto; margin-right: auto; }
.cta-band .hero-cta { justify-content: center; }
@media (max-width: 640px) { .cta-band { padding: 56px 20px; border-radius: 22px; } }

/* ───────────── Contact ───────────── */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.c-items { display: grid; gap: 12px; margin-top: 36px; }
.c-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
}
.c-item .ic {
  width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--cyan);
}
.c-item small { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.c-item b { font-size: 15px; font-weight: 600; }

.terminal { padding: 0; }
.term-bar {
  display: flex; align-items: center; gap: 7px; padding: 14px 20px; border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12px; color: var(--muted);
}
.term-bar i { width: 10px; height: 10px; border-radius: 50%; }
.term-bar i:nth-child(1) { background: #FF5F57; } .term-bar i:nth-child(2) { background: #FEBC2E; } .term-bar i:nth-child(3) { background: #28C840; }
.term-bar em { font-style: normal; margin-left: 10px; }
.term-body { padding: 30px; }
.term-prompt { font-family: var(--f-mono); font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.term-prompt b { color: var(--green); font-weight: 500; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--f-mono); font-size: 11.5px; color: var(--text-2); letter-spacing: .04em; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2);
  font-size: 15px; color: var(--text); outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .25); }
.field input:focus, .field textarea:focus {
  border-color: rgba(139, 130, 255, .7); background: rgba(0, 0, 0, .5);
  box-shadow: 0 0 0 4px rgba(110, 100, 255, .15);
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 18px; }
.btn-submit .spinner {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn-submit[data-loading="true"] .spinner { display: inline-block; }
.btn-submit[data-loading="true"] svg { display: none; }
.btn-submit:disabled { opacity: .8; cursor: progress; }
.form-status { display: none; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; font-size: 14px; }
.form-status.ok  { display: flex; color: #6EE7B7; background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .3); }
.form-status.err { display: flex; color: #FCA5A5; background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .3); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; }
  .term-body { padding: 22px 18px; }
}

/* ───────────── Footer ───────────── */
.footer { border-top: 1px solid var(--line); padding: 80px 0 32px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid p { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-top: 18px; max-width: 360px; }
.foot-h { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.foot-grid ul { list-style: none; display: grid; gap: 11px; }
.foot-grid ul a { font-size: 14px; color: var(--text-2); transition: color .2s; }
.foot-grid ul a:hover { color: #fff; }
.foot-word {
  font-family: var(--f-display); font-weight: 700; letter-spacing: -.05em; line-height: .8;
  font-size: clamp(64px, 17vw, 240px); text-align: center; margin: 70px 0 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.foot-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.status-pill { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ───────────── Reveal ───────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ───────────── Reduced motion ───────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ───────────── Featured product (Moneta) ───────────── */
.feature-product {
  --c1: #10B981; --c2: #06B6D4;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 44px;
}
.feature-product .p-name { font-size: clamp(34px, 3.6vw, 48px); margin-top: 22px; }
.feature-product .p-feats { grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.feature-product .p-cta { display: inline-flex; gap: 14px; margin-top: 30px; }
.invoice {
  position: relative; border-radius: 18px; padding: 24px;
  background: rgba(3, 4, 9, .72); border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(16, 185, 129, .35);
}
.inv-head { display: flex; justify-content: space-between; align-items: center; }
.inv-head b { font-family: var(--f-display); font-size: 18px; }
.inv-head small { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.inv-rows { margin-top: 20px; display: grid; gap: 10px; }
.inv-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-2); padding-bottom: 10px; border-bottom: 1px dashed var(--line-2); }
.inv-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.inv-total span { font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.inv-total b { font-family: var(--f-display); font-size: 30px; letter-spacing: -.03em; }
.inv-timeline { margin-top: 20px; display: grid; gap: 8px; }
.inv-timeline div { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }
.inv-timeline i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.inv-timeline .done { color: var(--text-2); }
.inv-timeline .done i { background: var(--green); box-shadow: 0 0 8px var(--green); }
.inv-stamp {
  position: absolute; top: 20px; right: -14px; transform: rotate(8deg);
  padding: 6px 14px; border-radius: 8px; border: 2px solid #34D399; color: #34D399;
  font-family: var(--f-mono); font-size: 13px; font-weight: 700; letter-spacing: .14em;
  background: rgba(4, 5, 10, .85);
}
@media (max-width: 900px) {
  .feature-product { grid-template-columns: 1fr; padding: 28px 22px; }
  .inv-stamp { right: 10px; }
}
@media (max-width: 480px) { .feature-product .p-feats { grid-template-columns: 1fr; } }

/* ───────────── Perf: pause off-screen loops ───────────── */
.anim-off, .anim-off *, .anim-off *::before, .anim-off *::after { animation-play-state: paused !important; }
.orbit, .float, .marquee-track, .radar .sweep { will-change: transform; }
.core-glow { background: radial-gradient(circle, rgba(91, 110, 255, .30), rgba(139, 92, 246, .10) 45%, transparent 70%); }

.field input[aria-invalid="true"] { border-color: rgba(239, 68, 68, .7); box-shadow: 0 0 0 4px rgba(239, 68, 68, .12); }
