:root {
  --bg: #07090d; --card: #0e1219; --line: #ffffff17;
  --fg: #eaf0f7; --mut: #93a0b4; --aq: #2ee6d6; --rd: #ff4d5a;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg); color: var(--fg);
  font: 400 17px/1.6 Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3, .logo, dt, .num { font-family: Unbounded, Manrope, sans-serif; font-weight: 500; line-height: 1.15; overflow-wrap: break-word; }
h1 { font-size: clamp(1.7rem, 5vw, 4rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.7rem); margin: 14px 0 44px; max-width: 18em; }
h3 { font-size: 1.12rem; margin-bottom: 12px; }
h4 { font: 600 .78rem Manrope, sans-serif; color: var(--mut); text-transform: uppercase; letter-spacing: .08em; margin: 18px 0 4px; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--aq), var(--rd)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.label { font: 400 .8rem "JetBrains Mono", monospace; color: var(--aq); text-transform: uppercase; letter-spacing: .12em; }
.sub, .card p, .steps p, .note { color: var(--mut); }
:focus-visible { outline: 2px solid var(--aq); outline-offset: 3px; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 10; background: #07090dcc; backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { font-size: 1.15rem; text-decoration: none; margin-right: auto; }
.logo b { color: var(--aq); font-weight: 700; }
.links { display: flex; gap: 26px; }
.links a, .langs a { text-decoration: none; color: var(--mut); font-size: .93rem; transition: color .2s; }
.links a:hover, .langs a:hover, .nav [aria-current] { color: var(--fg); }
.langs { display: flex; gap: 12px; font-family: "JetBrains Mono", monospace; }
.langs [aria-current] { border-bottom: 2px solid var(--aq); }

/* buttons */
.btn {
  display: inline-block; padding: 15px 28px; border-radius: 999px; border: 1px solid var(--aq);
  background: var(--aq); color: #04110f; font: 600 1rem Manrope, sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 40px #2ee6d655; }
.btn.ghost { background: none; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--fg); box-shadow: none; }
.btn.small { padding: 9px 18px; font-size: .88rem; }

/* hero */
.hero { position: relative; min-height: min(100svh, 1100px); display: flex; align-items: center; padding: 110px 0 60px; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
#fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .wrap { position: relative; z-index: 1; width: 100%; pointer-events: none; }
.hero-in { max-width: 640px; }
.hero-in > * { pointer-events: auto; animation: rise .9s both; }
.hero-in > :nth-child(2) { animation-delay: .1s; } .hero-in > :nth-child(3) { animation-delay: .2s; }
.hero-in > :nth-child(4) { animation-delay: .3s; } .hero-in > :nth-child(5) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.hero h1 { margin: 20px 0 24px; }
.hero .sub { font-size: 1.14rem; max-width: 34em; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 52px; }
.stats { display: flex; flex-wrap: wrap; gap: 20px 44px; }
.stats dt { font-size: 1.7rem; color: var(--fg); }
.stats dd { color: var(--mut); font-size: .88rem; max-width: 11em; }

/* sections */
section { padding-top: 120px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.card {
  position: relative; padding: 30px; border: 1px solid var(--line); border-radius: 20px;
  background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), #2ee6d620, transparent 65%), var(--card);
  transition: border-color .3s, transform .3s;
}
.card:hover { border-color: #2ee6d666; }
.num { display: block; color: var(--rd); font-size: .85rem; margin-bottom: 26px; }
.note { margin: -28px 0 36px; }
.cases { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.cases h2 { font-size: 1.25rem; margin: 14px 0 12px; max-width: none; }
.page-title { font-size: clamp(1.8rem, 4.2vw, 3.2rem); margin: 14px 0 44px; max-width: 16em; }
.cta h2 { margin: 14px auto 20px; }
.cta .sub { max-width: 36em; margin: 0 auto; }
.cta .btn { margin: 30px 0 22px; }
.cta a:not(.btn) { color: var(--aq); }
.cta { text-align: center; padding: clamp(26px, 5vw, 60px); background: linear-gradient(135deg, #2ee6d614, #ff4d5a12), var(--card); }
.nda { margin-left: 8px; padding: 2px 8px; border: 1px solid var(--rd); border-radius: 6px; color: var(--rd); font-size: .68rem; }
/* case cover illustrations (art.mjs) */
.art { display: block; width: calc(100% + 60px); margin: -30px -30px 26px; border-radius: 19px 19px 0 0; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #2ee6d612, #ff4d5a10), #090c12; }
.art * { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art .l { stroke: var(--aq); } .art .d { stroke: #ffffff2e; stroke-width: 1.5; } .art .dash { stroke-dasharray: 5 7; }
.art .f { fill: var(--aq); } .art .fr { fill: var(--rd); } .art .fa { fill: #2ee6d622; } .art .b { fill: #ffffff1c; }
.art .o { fill: #090c12; stroke: var(--aq); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li { font: 400 .75rem "JetBrains Mono", monospace; color: var(--mut); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }

.steps { list-style: none; padding: 0; display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--line); padding-top: 22px; }
.steps li::before { content: "0" counter(s); display: block; margin-bottom: 18px; font: 700 2.6rem Unbounded, sans-serif; color: transparent; -webkit-text-stroke: 1px var(--aq); }


.footer { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding-block: 60px 40px; color: var(--mut); font-size: .88rem; }

/* scroll reveal (only when JS is on, so content is never hidden without it) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .links { display: none; }
  .nav-in { gap: 14px; }
  .nav .btn { display: none; }
  #fx { opacity: .5; }
  section { padding-top: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
