@font-face{font-family:'Space Grotesk';src:url('fonts/space-grotesk-latin-ext.woff2') format('woff2');font-weight:400 700;font-style:normal;font-display:swap;unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Space Grotesk';src:url('fonts/space-grotesk-latin.woff2') format('woff2');font-weight:400 700;font-style:normal;font-display:swap;unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Inter';src:url('fonts/inter-latin-ext.woff2') format('woff2');font-weight:400 700;font-style:normal;font-display:swap;unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';src:url('fonts/inter-latin.woff2') format('woff2');font-weight:400 700;font-style:normal;font-display:swap;unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'JetBrains Mono';src:url('fonts/jetbrains-mono-latin-ext.woff2') format('woff2');font-weight:400 600;font-style:normal;font-display:swap;unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'JetBrains Mono';src:url('fonts/jetbrains-mono-latin.woff2') format('woff2');font-weight:400 600;font-style:normal;font-display:swap;unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* ═══════════════════════════════════════════════════════════════════════════
   V1 — DARK TECH
   Regulile @font-face sunt injectate automat de build.mjs, din
   src/assets/fonts/faces.mjs (generat de tools/fonts.mjs).
   Space Grotesk pe titluri, Inter pe text, JetBrains Mono pe etichete tehnice.
   Tipografie și spațiere fluide cu clamp() — fără salturi între breakpoint-uri.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #060A13;
  --bg-2: #0A1020;
  --panel: #0D1526;
  --panel-2: #111B30;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .15);
  --ink: #F2F5FA;
  --ink-2: #C3CEDF;
  --muted: #93A0B8;
  --muted-2: #6C7A93;
  --cyan: #3DE1FF;
  --violet: #7C5CFF;
  --mint: #00E5A0;
  --amber: #FFB86B;
  --wa: #1FCB68;
  --grad: linear-gradient(100deg, #3DE1FF 0%, #7C5CFF 60%, #B14BFF 100%);
  --pad: clamp(20px, 5vw, 56px);
  --sec: clamp(56px, 8vw, 104px);
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* ancorele nu mai ajung sub header-ul sticky */
  scroll-padding-top: 90px;
  background: var(--bg);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(15.5px, 1.05vw, 16.5px);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  color: var(--ink);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 2px; }
img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }

/* Plasă de siguranță: un SVG inline fără dimensiune explicită s-ar întinde la
   toată lățimea containerului din cauza regulii de mai sus. Componentele care au
   nevoie de altă mărime o suprascriu. */
svg { width: 1em; height: 1em; flex: 0 0 auto; }

:focus-visible {
  outline: 2.5px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: rgba(124, 92, 255, .45); color: #fff; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.sec { padding-top: var(--sec); padding-bottom: var(--sec); }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mono { font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace; }
.gradtext { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--cyan); color: #04121A; padding: 12px 20px; border-radius: 8px; font-weight: 700;
  text-decoration: none;
}
.skip:focus { left: 8px; }

/* ─────────────────────────────────────────────────────────── header */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(6, 10, 19, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr .wrap { display: flex; align-items: center; gap: 18px; height: 74px; }

.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: 0 0 auto; }
.logo .mark {
  width: 33px; height: 33px; border-radius: 9px; flex: 0 0 auto;
  background: var(--grad); color: #060A13;
  display: grid; place-items: center;
  box-shadow: 0 0 22px rgba(124, 92, 255, .42);
}
.logo .mark svg { width: 18px; height: 18px; }
.logo b {
  font-family: 'Space Grotesk', sans-serif; font-size: 19.5px; font-weight: 700;
  color: #fff; letter-spacing: -.028em;
}
.logo b span { color: var(--muted); font-weight: 500; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .has > a {
  display: block; padding: 9px 13px; border-radius: 9px; text-decoration: none;
  font-size: 14.6px; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: .18s;
}
.nav > a:hover, .nav .has > a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav > a[aria-current="page"] { color: var(--cyan); background: rgba(61, 225, 255, .09); }

/* dropdown pe cele 8 servicii — pe hover pe desktop, listă deschisă în panoul mobil */
.nav .has { position: relative; }
.nav .has > a::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .5;
}
.nav .menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 300px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .95); padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transition: .18s;
}
.nav .has:hover .menu, .nav .has:focus-within .menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav .menu a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 8px;
  text-decoration: none; font-size: 14.4px; font-weight: 500; color: var(--ink-2);
}
.nav .menu a:hover { background: rgba(124, 92, 255, .16); color: #fff; }
.nav .menu svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--cyan); }

.hdr-cta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
/* CTA-ul din interiorul panoului de navigație există doar pe mobil */
.nav-cta { display: none; }

.lang { display: flex; gap: 2px; border: 1px solid var(--line-2); border-radius: 9px; padding: 3px; }
.lang a {
  padding: 4px 9px; border-radius: 6px; text-decoration: none;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500;
  color: var(--muted-2); letter-spacing: .04em;
}
.lang a[aria-current="true"] { background: rgba(255, 255, 255, .1); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 21px; border-radius: 10px; border: 1px solid transparent;
  font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: .18s; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-p { background: var(--grad); color: #060A13; box-shadow: 0 8px 30px -10px rgba(124, 92, 255, .8); }
.btn-p:hover { transform: translateY(-1px); box-shadow: 0 12px 34px -10px rgba(124, 92, 255, .95); }
.btn-s { background: rgba(255, 255, 255, .04); color: var(--ink); border-color: var(--line-2); }
.btn-s:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-g { background: var(--wa); color: #04140A; box-shadow: 0 8px 26px -10px rgba(31, 203, 104, .8); }
.btn-g:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 15.5px; border-radius: 12px; }

.burger {
  display: none; margin-left: auto; width: 42px; height: 42px; flex: 0 0 auto;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); border-radius: 10px;
  cursor: pointer; padding: 0; place-items: center;
}
.burger span {
  display: block; width: 18px; height: 1.7px; background: var(--ink); border-radius: 2px;
  position: relative; transition: .2s;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.7px;
  background: var(--ink); border-radius: 2px; transition: .2s;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
body.nav-open .burger span { background: transparent; }
body.nav-open .burger span::before { top: 0; transform: rotate(45deg); }
body.nav-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* ─────────────────────────────────────────────────────── breadcrumbs */
.crumbs { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.crumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  list-style: none; padding: 13px 0;
  font-family: 'JetBrains Mono', monospace; font-size: 12.4px; color: var(--muted-2);
}
.crumbs li { display: flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: "/"; color: rgba(255, 255, 255, .22); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current="page"] { color: var(--ink); }

/* ─────────────────────────────────────────────────────── titluri secțiune */
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 500;
  letter-spacing: .17em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before, .kicker::before { content: ""; width: 26px; height: 1px; background: var(--cyan); opacity: .75; }
.sec-h { max-width: 700px; margin-bottom: clamp(32px, 4.2vw, 52px); }
.sec-h h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; margin-bottom: 15px; }
.sec-h p { font-size: clamp(15.5px, 1.3vw, 17.5px); color: var(--muted); max-width: 66ch; }
.sec-h.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-h.center .eyebrow { justify-content: center; }
.sec-h.center p { margin-left: auto; margin-right: auto; }

/* ─────────────────────────────────────────────────────── hero */
.hero {
  position: relative; overflow: hidden;
  padding-top: clamp(46px, 6.4vw, 90px); padding-bottom: clamp(50px, 6.6vw, 94px);
}
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 18%, transparent 76%);
  mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 18%, transparent 76%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.b1 { width: 520px; height: 420px; background: #7C5CFF; opacity: .42; top: -190px; left: -80px; }
.b2 { width: 460px; height: 360px; background: #0E7CFF; opacity: .34; top: -120px; right: -60px; }
.b3 { width: 340px; height: 280px; background: #00E5A0; opacity: .13; bottom: -180px; left: 38%; }

.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(34px, 4vw, 56px); align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px;
  padding: 6px 15px 6px 11px; border-radius: 100px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
  font-size: 12.8px; color: var(--muted);
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); flex: 0 0 auto; box-shadow: 0 0 10px var(--mint); }

.hero h1 { font-size: clamp(33px, 5.4vw, 60px); font-weight: 700; letter-spacing: -.03em; margin-bottom: 21px; }
.hero h1 em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--muted); max-width: 58ch; margin-bottom: 32px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 20px; }
.hero-note {
  display: flex; align-items: flex-start; gap: 9px; line-height: 1.55;
  font-family: 'JetBrains Mono', monospace; font-size: 12.2px; color: var(--muted-2);
}
/* Aliniat la prima linie, nu centrat: pe mobil textul se rupe pe două rânduri. */
.hero-note svg { width: 15px; height: 15px; margin-top: 2px; color: var(--mint); flex: 0 0 auto; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px 36px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-meta b {
  display: block; font-family: 'Space Grotesk', sans-serif; font-size: clamp(23px, 2.4vw, 28px);
  font-weight: 700; letter-spacing: -.035em; line-height: 1; color: #fff;
}
.hero-meta b i { font-style: normal; color: var(--cyan); }
.hero-meta span { display: block; margin-top: 8px; font-size: 12.6px; color: var(--muted-2); }

/* panoul din hero: „un backend, toate ecranele" arătat pe straturi, nu doar spus */
.panel {
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}
.panel-h {
  display: flex; align-items: center; gap: 12px; padding: 15px 18px;
  border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .28);
}
.panel-h b { font-family: 'Space Grotesk', sans-serif; font-size: 14.6px; font-weight: 700; color: #fff; }
.panel-h .cnt {
  margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 10.8px; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 9px; white-space: nowrap;
}
.panel-b { padding: 6px 18px 16px; }
.metric { display: flex; align-items: center; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.metric:last-of-type { border-bottom: none; }
.metric .ic {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: rgba(124, 92, 255, .14); color: var(--cyan);
}
.metric .ic svg { width: 18px; height: 18px; }
.metric .nm { font-size: 14.6px; font-weight: 600; color: var(--ink); min-width: 0; }
.metric .tag {
  margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 10.8px; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 9px; white-space: nowrap;
}
/* fluxul de jos: trei tipuri de client, o singură sursă de adevăr */
.pflow {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 15px 0 2px; margin-top: 12px; border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace; font-size: 11.4px;
}
.pflow span { border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 9px; color: var(--muted); }
.pflow i { flex: 1; min-width: 12px; height: 1px; background: var(--line-2); }
.pflow b {
  border: 1px solid rgba(61, 225, 255, .32); background: rgba(61, 225, 255, .08);
  border-radius: 6px; padding: 4px 9px; font-weight: 600; color: var(--cyan);
}

/* ─────────────────────────────────────────────────────── banda de tehnologii */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.strip .wrap { display: flex; align-items: flex-start; gap: 34px; padding: 20px var(--pad); }
.strip .lbl {
  flex: 0 0 auto; font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap;
  /* aliniat cu prima linie de tehnologii, nu centrat pe blocul care se rupe pe 2 rânduri */
  padding-top: 5px;
}
/* se rup pe linii în loc să fie tăiate — nicio tehnologie nu dispare */
.strip .row { display: flex; flex-wrap: wrap; gap: 11px 26px; flex: 1; }
.strip .row span {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15.5px;
  color: #54637E; letter-spacing: -.015em; white-space: nowrap;
}

/* ─────────────────────────────────────────────────────── carduri */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.card {
  position: relative; overflow: hidden; text-decoration: none;
  background: linear-gradient(180deg, var(--panel) 0%, rgba(13, 21, 38, .5) 100%);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(24px, 2.4vw, 28px);
  display: flex; flex-direction: column; transition: .22s;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--grad); opacity: 0; transition: .22s;
}
a.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
a.card:hover::before { opacity: 1; }
.card .ic {
  width: 44px; height: 44px; border-radius: 11px; margin-bottom: 19px; flex: 0 0 auto;
  background: rgba(124, 92, 255, .13); border: 1px solid rgba(124, 92, 255, .3);
  color: var(--violet); display: grid; place-items: center;
}
.card:nth-child(2) .ic { background: rgba(61, 225, 255, .11); border-color: rgba(61, 225, 255, .3); color: var(--cyan); }
.card:nth-child(3) .ic { background: rgba(0, 229, 160, .11); border-color: rgba(0, 229, 160, .28); color: var(--mint); }
.card:nth-child(4) .ic { background: rgba(255, 184, 107, .11); border-color: rgba(255, 184, 107, .28); color: var(--amber); }
.card:nth-child(5) .ic { background: rgba(177, 75, 255, .13); border-color: rgba(177, 75, 255, .3); color: #C87BFF; }
.card:nth-child(6) .ic { background: rgba(31, 203, 104, .11); border-color: rgba(31, 203, 104, .28); color: var(--wa); }
.card:nth-child(7) .ic { background: rgba(61, 225, 255, .11); border-color: rgba(61, 225, 255, .3); color: var(--cyan); }
.card:nth-child(8) .ic { background: rgba(0, 229, 160, .11); border-color: rgba(0, 229, 160, .28); color: var(--mint); }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.card > p { font-size: 14.5px; color: var(--muted); margin-bottom: 17px; }
.card ul { list-style: none; margin-top: auto; }
.card li {
  display: flex; gap: 9px; align-items: flex-start; padding: 5px 0;
  font-size: 13.4px; color: var(--muted-2);
}
.card li::before { content: "\25B8"; color: var(--cyan); font-size: 10px; line-height: 1.9; flex: 0 0 auto; }
.card .more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 19px;
  font-family: 'JetBrains Mono', monospace; font-size: 11.2px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--cyan);
}
.card .more svg { width: 14px; height: 14px; transition: .18s; }
a.card:hover .more svg { transform: translateX(3px); }
/* Serviciile sunt 8: pe 3 coloane grila iese 3+3+2, pe 2 coloane 4 rânduri pline.
   Un rând cu 2 din 3 carduri citește ca un rând normal, deci nu mai e nevoie de
   regula de centrare care exista cât timp ultimul card rămânea singur. */

/* primul card de serviciu poartă accentul de gradient — ancorează grila vizual */
.grid3 > .card:first-child {
  background: linear-gradient(150deg, rgba(124, 92, 255, .14), rgba(61, 225, 255, .05) 55%, rgba(13, 21, 38, .6));
  border-color: rgba(124, 92, 255, .3);
}

/* ─────────────────────────────────────────────────────── stack complet */
.stackdiag { display: flex; flex-direction: column; max-width: 980px; margin: 0 auto; }
.sd-row { display: grid; gap: 14px; }
.sd-row.c3 { grid-template-columns: repeat(3, 1fr); }
.sd-row.c2 { grid-template-columns: repeat(2, 1fr); }
.sd-node { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.sd-node .tier {
  display: block; font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 11px;
}
.sd-node h4 { font-size: 16.5px; font-weight: 600; margin-bottom: 8px; }
.sd-node p { font-size: 13.4px; color: var(--muted-2); }
.sd-node.core {
  background: linear-gradient(120deg, rgba(124, 92, 255, .2), rgba(61, 225, 255, .07) 70%, rgba(13, 21, 38, .8));
  border-color: rgba(124, 92, 255, .36);
}
.sd-node.core .tier { color: var(--cyan); }
.sd-node.core h4 { font-size: 19px; }
.sd-node.core p { color: var(--muted); }
.sd-link {
  display: flex; align-items: center; justify-content: center; gap: 14px; padding: 15px 0;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: .13em; text-transform: uppercase; color: var(--muted-2);
}
.sd-link::before, .sd-link::after { content: ""; flex: 1; max-width: 190px; height: 1px; background: var(--line); }
.stack-close {
  max-width: 720px; margin: clamp(32px, 4vw, 48px) auto 0; text-align: center;
  font-size: clamp(15.5px, 1.3vw, 17.5px); color: var(--ink-2);
}

/* ─────────────────────────────────────────────────────── statistici */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(24px, 3vw, 34px) 24px clamp(24px, 3vw, 34px) 0; }
.stat + .stat { padding-left: clamp(20px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.stat b {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 4.2vw, 46px); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: #fff;
}
.stat b i {
  font-style: normal; font-size: .58em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lb { display: block; margin-top: 12px; font-size: 13.8px; color: var(--ink-2); }
.stat .sb { display: block; margin-top: 5px; font-size: 12.6px; color: var(--muted-2); }

/* ─────────────────────────────────────────────────────── de ce eu */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 32px; }
.why > div { padding-left: 20px; border-left: 2px solid rgba(124, 92, 255, .55); }
.why > div:nth-child(3n+2) { border-left-color: rgba(61, 225, 255, .5); }
.why > div:nth-child(3n) { border-left-color: rgba(0, 229, 160, .45); }
.why h3 { font-size: 17.5px; font-weight: 600; margin-bottom: 9px; }
.why p { font-size: 14.4px; color: var(--muted); }

/* ─────────────────────────────────────────────────────── proces */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: rgba(13, 21, 38, .6); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; }
.step .n {
  display: block; font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: .12em; color: var(--violet); margin-bottom: 15px;
}
.step h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 9px; }
.step p { font-size: 13.8px; color: var(--muted-2); margin-bottom: 14px; }
.step .out {
  font-family: 'JetBrains Mono', monospace; font-size: 11.4px; line-height: 1.7; color: var(--mint);
  padding-top: 13px; border-top: 1px solid var(--line);
}

/* ─────────────────────────────────── arhitecturi de referință (blueprint-uri) */
.bps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bp {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px 6px; display: flex; flex-direction: column; transition: .2s;
}
.bp:hover { border-color: var(--line-2); }
.bp .k {
  display: block; font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin-bottom: 13px;
}
.bp h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; line-height: 1.3; }
.bp > p { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.bp ul { list-style: none; margin-top: auto; }
.bp li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13.2px; }
.bp li span {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-2); padding-top: 3px;
}
.bp li b { font-weight: 400; color: var(--muted); }

/* ─────────────────────────────────────────────────────── pagină de serviciu */
.svc-hero { position: relative; overflow: hidden; padding-top: clamp(40px, 5vw, 66px); padding-bottom: clamp(34px, 4vw, 54px); }
.svc-hero .wrap { position: relative; }
.svc-hero .in { max-width: 820px; }
.svc-hero .ic {
  width: 54px; height: 54px; border-radius: 13px; margin-bottom: 22px;
  background: rgba(124, 92, 255, .14); border: 1px solid rgba(124, 92, 255, .32);
  color: var(--violet); display: grid; place-items: center;
}
.svc-hero .ic svg { width: 26px; height: 26px; }
.svc-hero h1 { font-size: clamp(29px, 4.4vw, 50px); font-weight: 700; letter-spacing: -.03em; margin-bottom: 20px; }
.svc-hero .lead { font-size: clamp(16px, 1.45vw, 19px); color: var(--muted); margin-bottom: 28px; }
.svc-hero .btns { display: flex; flex-wrap: wrap; gap: 12px; }

.prose { max-width: 74ch; }
.prose p { font-size: clamp(15.5px, 1.15vw, 16.8px); color: var(--ink-2); margin-bottom: 1.1em; }
.prose h2 { font-size: clamp(23px, 2.8vw, 32px); font-weight: 700; margin: 1.6em 0 .7em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: clamp(18px, 1.7vw, 21px); font-weight: 600; margin: 1.5em 0 .5em; }
.prose ul { list-style: none; margin: 0 0 1.4em; }
.prose li { display: flex; gap: 11px; align-items: flex-start; padding: 7px 0; font-size: 15.4px; }
.prose li svg { width: 16px; height: 16px; color: var(--mint); flex: 0 0 auto; margin-top: 5px; }

.backlink {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-family: 'JetBrains Mono', monospace; font-size: 11.6px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--cyan);
}
.backlink svg { width: 15px; height: 15px; transform: rotate(180deg); }
.backlink:hover { color: #fff; }

.offer { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.offer > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 25px 24px; }
.offer h3 { display: flex; gap: 11px; align-items: flex-start; font-size: 17px; font-weight: 600; margin-bottom: 11px; }
.offer h3 svg { width: 18px; height: 18px; color: var(--cyan); flex: 0 0 auto; margin-top: 3px; }
.offer p { font-size: 14.4px; color: var(--muted); }

/* grupuri de tehnologii */
.stackg { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.stackg > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.stackg h3 {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tags li {
  font-family: 'JetBrains Mono', monospace; font-size: 11.8px; color: var(--ink-2);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); border-radius: 7px; padding: 5px 10px;
}
.stack-note { max-width: 70ch; margin-top: 22px; font-size: 14.4px; color: var(--muted); }

.forwho {
  background: linear-gradient(130deg, rgba(124, 92, 255, .1), rgba(13, 21, 38, .7) 60%);
  border: 1px solid var(--line); border-left: 2px solid var(--violet);
  border-radius: var(--r); padding: 28px 26px; max-width: 820px;
}
.forwho h2 { font-size: clamp(21px, 2.2vw, 26px); font-weight: 700; margin-bottom: 16px; }
.forwho ul { list-style: none; }
.forwho li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; font-size: 15px; border-top: 1px solid var(--line); }
.forwho li:first-child { border-top: none; }
.forwho li svg { width: 16px; height: 16px; color: var(--cyan); flex: 0 0 auto; margin-top: 4px; }

/* ─────────────────────────────────────────────────────── FAQ */
.faq { max-width: 860px; }
.faq details {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 11px; overflow: hidden;
}
.faq details[open] { border-color: rgba(124, 92, 255, .34); }
.faq summary {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif; font-size: 16.4px; font-weight: 600; color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-left: auto; flex: 0 0 auto; width: 10px; height: 10px; margin-top: 7px;
  border-right: 1.8px solid var(--muted-2); border-bottom: 1.8px solid var(--muted-2);
  transform: rotate(45deg); transition: .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); border-color: var(--cyan); }
.faq .a { padding: 0 22px 20px; font-size: 15px; color: var(--muted); }
.faq .a p { max-width: 72ch; }

/* ─────────────────────────────────────────────────────── contact */
.cmethods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cm { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 27px 24px; display: flex; flex-direction: column; }
.cm .ic {
  width: 44px; height: 44px; border-radius: 11px; margin-bottom: 18px; display: grid; place-items: center;
  background: rgba(61, 225, 255, .1); border: 1px solid rgba(61, 225, 255, .28); color: var(--cyan);
}
.cm.wa .ic { background: rgba(31, 203, 104, .12); border-color: rgba(31, 203, 104, .3); color: var(--wa); }
.cm .ic svg { width: 22px; height: 22px; }
.cm h3 { font-size: 18px; font-weight: 600; margin-bottom: 9px; }
.cm p { font-size: 14.4px; color: var(--muted); margin-bottom: 20px; }
.cm .btn { margin-top: auto; width: 100%; }
.cm .nt { margin-top: 13px; font-family: 'JetBrains Mono', monospace; font-size: 11.4px; color: var(--muted-2); }

/* Coloane suficient de largi ca „contact@techcraft.ro" să încapă pe un rând:
   la 200px se rupea în „contact@techcraft." + „ro". Rezultă 3+2 pe desktop. */
.cinfo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 272px), 1fr)); gap: 18px; }
.cinfo > div { padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.cinfo dl { margin: 0; }
.cinfo dt {
  display: flex; align-items: center; gap: 9px; margin-bottom: 9px;
  font-family: 'JetBrains Mono', monospace; font-size: 10.6px;
  letter-spacing: .13em; text-transform: uppercase; color: var(--muted-2);
}
.cinfo dt svg { width: 14px; height: 14px; color: var(--cyan); }
.cinfo dd { margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 600; color: #fff; word-break: break-word; }
.cinfo dd a { color: #fff; text-decoration: none; }
.cinfo dd a:hover { color: var(--cyan); }

.note {
  background: linear-gradient(130deg, rgba(124, 92, 255, .14), rgba(61, 225, 255, .05) 70%, rgba(13, 21, 38, .6));
  border: 1px solid rgba(124, 92, 255, .3); border-radius: var(--r);
  padding: 24px 26px; max-width: 820px;
}
.note h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; color: #fff; }
.note p { font-size: 14.8px; color: var(--ink-2); }

/* ─────────────────────────────────────────────────────── CTA final */
.cta { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: var(--bg-2); }
.cta::before {
  content: ""; position: absolute; left: 50%; top: -120px; width: 900px; height: 420px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse, rgba(124, 92, 255, .3), transparent 65%); filter: blur(30px);
}
.cta .in { position: relative; max-width: 740px; margin: 0 auto; text-align: center; }
.cta .kicker { justify-content: center; }
.cta h2 { font-size: clamp(27px, 3.8vw, 44px); font-weight: 700; color: #fff; margin-bottom: 18px; }
.cta p { font-size: clamp(15.5px, 1.3vw, 17.5px); color: var(--muted); margin-bottom: 30px; }
.cta .btns { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; margin-bottom: 22px; }
.cta .nt { font-family: 'JetBrains Mono', monospace; font-size: 11.6px; color: var(--muted-2); }

/* ─────────────────────────────────────────────────────── legal / prose lung */
.legal { max-width: 78ch; }
.legal .upd {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px;
  padding: 6px 13px; border-radius: 100px; background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-2); font-family: 'JetBrains Mono', monospace;
  font-size: 11.6px; color: var(--muted-2);
}
.legal .upd svg { width: 14px; height: 14px; }
.legal h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; margin-bottom: 22px; }
.legal h2 {
  font-size: clamp(20px, 2.1vw, 25px); font-weight: 600;
  margin: 2em 0 .6em; padding-top: .7em; border-top: 1px solid var(--line);
}
.legal h2:first-of-type { margin-top: 1.4em; }
.legal p { font-size: 15.6px; color: var(--ink-2); margin-bottom: 1em; }
.legal ul { list-style: none; margin: .6em 0 1.4em; }
.legal li { display: flex; gap: 11px; align-items: flex-start; padding: 7px 0; font-size: 15.2px; }
.legal li::before { content: ""; flex: 0 0 auto; width: 5px; height: 5px; margin-top: 11px; border-radius: 50%; background: var(--cyan); }
.legal .warn { background: rgba(255, 184, 107, .08); border: 1px solid rgba(255, 184, 107, .28); border-radius: var(--r); padding: 20px 22px; margin-bottom: 30px; }
.legal .warn h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 7px; color: var(--amber); }
.legal .warn p { font-size: 14.4px; margin: 0; color: #D9C7A8; }

.tbl { width: 100%; overflow-x: auto; margin: .6em 0 1.6em; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14.2px; min-width: 520px; }
.tbl th, .tbl td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.tbl th {
  font-family: 'JetBrains Mono', monospace; font-size: 10.8px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2);
  background: rgba(255, 255, 255, .03);
}
.tbl tr:last-child td { border-bottom: none; }

/* ─────────────────────────────────────────────────────── pagina de prețuri */
/* `.tbl` de mai sus e comun cu paginile legale; aici se adaugă doar coloana de
   interval și cardul cu preț. */
.tbl td.pr { white-space: nowrap; color: var(--ink); font-family: 'JetBrains Mono', monospace; font-size: 13.4px; }
.tbl td a { color: var(--cyan); }
.pcard .pr { font-family: 'JetBrains Mono', monospace; font-size: 21px; font-weight: 500; color: var(--ink); margin-bottom: 9px; }
.pcard .dur { display: flex; align-items: center; gap: 8px; margin-top: 18px; margin-bottom: 8px; font-size: 13.6px; color: var(--ink-2); }
.pcard .dur svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--cyan); }
.pcard .nt { font-size: 13.2px; color: var(--muted-2); margin-bottom: 0; }
.pcard .more { margin-top: 17px; }
.pcard:hover .more svg { transform: translateX(3px); }

/* ─────────────────────────────────────────────────────── footer */
.ftr { background: #04070E; border-top: 1px solid var(--line); padding-top: clamp(46px, 6vw, 68px); }
.ftr-g { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(28px, 3.6vw, 44px); padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.ftr .tg { margin-top: 16px; font-size: 14px; color: var(--muted-2); max-width: 32ch; }
.ftr .socials { display: flex; gap: 10px; margin-top: 20px; }
.ftr .socials a { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); color: var(--muted); }
.ftr .socials a:hover { background: rgba(124, 92, 255, .3); color: #fff; }
.ftr .socials svg { width: 17px; height: 17px; }
.ftr h4 {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 17px;
}
.ftr ul { list-style: none; }
.ftr li { margin-bottom: 11px; }
.ftr a { color: var(--muted); text-decoration: none; font-size: 14px; }
.ftr a:hover { color: #fff; }
.ftr-b {
  display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center;
  padding: 22px 0; font-size: 12.8px; color: var(--muted-2);
}
.ftr-b .sep { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 11.6px; }

/* ─────────────────────────────────────────────────────── FAB WhatsApp */
.fab {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 55;
  width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #04140A;
  place-items: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .55); text-decoration: none;
}
.fab svg { width: 28px; height: 28px; }

/* ═══════════════════════════════════════════════════ RESPONSIVE ═════════ */

@media (max-width: 1080px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero .panel { max-width: 620px; }
  .grid3, .why, .steps { grid-template-columns: 1fr 1fr; }
  .bps { grid-template-columns: 1fr 1fr; }
  /* al treilea blueprint ocupă ambele coloane în loc să lase un gol */
  .bps .bp:last-child { grid-column: span 2; }
  .offer { grid-template-columns: 1fr; }
  .cmethods { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding-right: 20px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  /* eticheta trece pe rândul propriu în loc să dispară */
  .strip .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .strip .row { flex: 0 1 auto; }
}

@media (max-width: 860px) {
  .nav, .hdr-cta { display: none; }
  .burger { display: grid; }

  /* panoul mobil: fixed, glisează de sub header */
  body.nav-open { overflow: hidden; }
  .nav {
    position: fixed; inset: 74px 0 auto; display: block; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .85); padding: 10px var(--pad) 22px;
    max-height: calc(100dvh - 74px); overflow-y: auto;
    transform: translateY(-135%); transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  }
  body.nav-open .nav { display: block; transform: translateY(0); }
  .nav > a, .nav .has > a { padding: 14px 2px; font-size: 17px; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav > a:hover, .nav .has > a:hover { background: none; }
  .nav .has > a::after { display: none; }
  /* dropdown-ul devine listă mereu vizibilă — pe touch nu există hover */
  .nav .menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; background: none; border: none; box-shadow: none;
    padding: 6px 0 10px 2px; border-bottom: 1px solid var(--line);
  }
  .nav .menu a { padding: 9px 6px; font-size: 15px; }
  .nav-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
  .nav-cta .btn { width: 100%; }
  .nav-cta .lang { align-self: center; }
  .fab { display: grid; }
}

@media (max-width: 640px) {
  .grid3, .grid2, .why, .steps, .stackg { grid-template-columns: 1fr; }
  .bps, .bps .bp:last-child { grid-template-columns: 1fr; grid-column: span 1; }
  .sd-row.c3, .sd-row.c2 { grid-template-columns: 1fr; }
  .sd-link::before, .sd-link::after { max-width: 42px; }
  .why > div { padding-left: 16px; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 22px 0; border-left: none; padding-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .hero-btns .btn, .svc-hero .btns .btn, .cta .btns .btn { width: 100%; }
  .hero-meta { gap: 18px 28px; }
  .metric .tag { display: none; }
  .pflow i { display: none; }
  .ftr-g { grid-template-columns: 1fr 1fr; gap: 30px 22px; }
  .ftr-g > div:first-child { grid-column: span 2; }
  .ftr .tg { max-width: none; }
  .ftr-b .sep { margin-left: 0; }
  .bp li, .forwho li { font-size: 14.2px; }
  .bp li { grid-template-columns: 70px 1fr; gap: 10px; }
}

@media (max-width: 420px) {
  .ftr-g { grid-template-columns: 1fr; }
  .ftr-g > div:first-child { grid-column: span 1; }
  .logo b { font-size: 18px; }
  .bp li { grid-template-columns: 1fr; gap: 3px; }
}

@media print {
  .hdr, .ftr, .fab, .cta, .crumbs, .grid-bg, .blob { display: none; }
  html, body { background: #fff; color: #000; font-size: 11pt; }
  h1, h2, h3, h4 { color: #000; }
  .sec { padding: 12pt 0; }
}
