/* ═════════ SERVICII · din schiță în sistem ═════════ */

/* ── antet: planșa de arhitect ── */
.bp-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(780px, 94svh);
  display: grid; align-items: center;
  padding: calc(var(--topbar) + 40px) 6vw 64px;
  background: radial-gradient(ellipse at 70% 50%, #1450b8 0%, #0b3a8f 55%, #082c6e 100%);
  color: #eaf2ff;
}
.bp-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  mask-image: radial-gradient(ellipse at 60% 50%, #000 40%, transparent 95%);
}
.bp-inner { max-width: 1280px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.bp-copy .kicker { color: #9fd4ff; font-family: "JetBrains Mono", monospace; }
.bp-copy h1 { font-size: clamp(40px, 5.2vw, 74px); line-height: 1.03; margin-bottom: 18px; }
.bp-copy h1 em { font-style: normal; position: relative; color: #fff; }
.bp-copy h1 em::after { /* sublinierea "de mână" a cuvântului schiță */
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .14em; border-radius: 99px;
  background: #9fd4ff; opacity: .55; transform-origin: 0 50%; animation: underline 1s .6s cubic-bezier(.65,0,.35,1) both;
}
@keyframes underline { from { transform: scaleX(0); } }
.bp-copy p { color: rgba(234, 242, 255, .78); font-size: clamp(17px, 1.4vw, 20px); max-width: 46ch; }
.bp-drawing svg { width: 100%; height: auto; overflow: visible; display: block; }
.bp-drawing .ln { fill: none; stroke: #eaf2ff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bp-drawing .dim { fill: none; stroke: #9fd4ff; stroke-width: 1; stroke-dasharray: 4 4; }
.bp-drawing .note { font: 500 11px "JetBrains Mono", monospace; fill: #9fd4ff; }
.bp-drawing .fill { stroke: none; opacity: 0; }
.bp-drawing .cursor { fill: #fff; opacity: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.bp-drawing .ping { fill: none; stroke: #fff; stroke-width: 2; opacity: 0; }
.bp-drawing .demo { font: 500 11px "JetBrains Mono", monospace; fill: rgba(234, 242, 255, .62); letter-spacing: .18em; opacity: 0; }

/* ── atelierul: un ecran care se transformă ── */
.workshop { position: relative; background: #f2f1ec; }
.ws-pin {
  position: relative; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(320px, .8fr) 1.2fr; align-items: center; gap: 32px;
  padding: calc(var(--topbar) + 24px) 6vw 40px; max-width: 1400px; margin: 0 auto;
}
.ws-copy { display: grid; position: relative; z-index: 2; }
.ws-step { grid-area: 1 / 1; align-self: center; max-width: 480px; }
.js-ws .ws-step:not(:first-child) { opacity: 0; visibility: hidden; }
.ws-num { font: 500 13px "JetBrains Mono", monospace; color: var(--blue); margin-bottom: 14px; }
.ws-step h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.06; margin-bottom: 14px; }
.ws-step > p { color: var(--muted); font-size: 18px; margin-bottom: 20px; }
.ws-stage { position: relative; height: min(70svh, 560px); }
.ws-dots { position: absolute; left: 6vw; bottom: 28px; list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.ws-dots button { font: 500 13px var(--font-body); color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; cursor: pointer; transition: all .25s ease; }
.ws-dots button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.device {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 560px; height: 360px; border-radius: 18px;
  background: linear-gradient(160deg, #0f1f5c, #081238);
  box-shadow: 0 40px 80px -30px rgba(1, 4, 15, .55), 0 0 0 1px rgba(143, 208, 255, .25);
  overflow: hidden;
}
.device .layer { position: absolute; inset: 0; opacity: 0; }
.device .layer:first-child { opacity: 1; }
.device i, .device b { position: absolute; display: block; border-radius: 4px; }
/* site */
.l-site .bar { left: 0; right: 0; top: 0; height: 9%; border-radius: 0; background: rgba(245,244,239,.08); }
.l-site .bar::before { content: ""; position: absolute; left: 3%; top: 38%; width: 1.4%; aspect-ratio: 1; border-radius: 50%; background: #ff6b6b; box-shadow: 14px 0 #ffd27f, 28px 0 #6fdc8c; }
.l-site .url { left: 30%; right: 30%; top: 2.4%; height: 4.2%; border-radius: 99px; background: rgba(245,244,239,.12); }
.l-site .logo { left: 6%; top: 15%; width: 10%; height: 4%; background: #3d7bff; }
.l-site .nav { right: 6%; top: 15.5%; width: 30%; height: 3%; background: repeating-linear-gradient(90deg, rgba(245,244,239,.4) 0 18%, transparent 18% 26%); }
.l-site .h { left: 6%; top: 30%; width: 46%; height: 9%; background: #f5f4ef; }
.l-site .h2 { left: 6%; top: 42%; width: 34%; height: 9%; background: #f5f4ef; }
.l-site .p1 { left: 6%; top: 57%; width: 42%; height: 3%; background: rgba(245,244,239,.4); }
.l-site .p2 { left: 6%; top: 63%; width: 36%; height: 3%; background: rgba(245,244,239,.4); }
.l-site .btn1 { left: 6%; top: 73%; width: 18%; height: 9%; border-radius: 99px; background: #3d7bff; }
.l-site .img { right: 6%; top: 28%; width: 36%; height: 58%; border-radius: 14px; background: linear-gradient(160deg, #3d7bff, #8fd0ff); }
/* dashboard */
.l-dash .k { top: 8%; width: 28%; height: 24%; border-radius: 10px; background: rgba(245,244,239,.08); }
.l-dash .k:nth-child(1) { left: 4%; } .l-dash .k:nth-child(2) { left: 36%; } .l-dash .k:nth-child(3) { left: 68%; }
.l-dash .k span { position: absolute; left: 10%; top: 18%; font: 600 11px var(--font-body); color: rgba(245,244,239,.6); }
.l-dash .k strong { position: absolute; left: 10%; bottom: 14%; font: 700 clamp(14px, 2vw, 22px) var(--font-head); color: #fff; }
.l-dash .k em { position: absolute; right: 10%; bottom: 16%; font: 600 11px var(--font-body); font-style: normal; color: #6fdc8c; }
.l-dash .chart { position: absolute; left: 4%; right: 4%; bottom: 8%; height: 52%; display: flex; align-items: flex-end; gap: 2.4%; padding: 0 2%; }
.l-dash .chart i { position: relative; flex: 1; height: var(--h); background: linear-gradient(to top, #3d7bff, #8fd0ff); border-radius: 4px 4px 1px 1px; transform-origin: bottom; }
.l-dash svg { position: absolute; left: 4%; right: 4%; bottom: 8%; width: 92%; height: 52%; overflow: visible; }
.l-dash svg path { fill: none; stroke: #ffd27f; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
/* aplicație (telefon) */
.l-app { padding: 22% 8% 0; }
.l-app .notch { left: 35%; top: 2.5%; width: 30%; height: 2.6%; border-radius: 99px; background: #01040f; }
.l-app .title { position: absolute; left: 8%; top: 8%; font: 700 clamp(14px, 4.4vw, 18px) var(--font-head); color: #fff; }
.l-app .row { position: relative; height: 11%; margin-bottom: 4%; border-radius: 14px; background: rgba(245,244,239,.08); }
.l-app .row::before { content: ""; position: absolute; left: 5%; top: 22%; height: 56%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(160deg, #3d7bff, #8fd0ff); }
.l-app .row::after { content: ""; position: absolute; left: 30%; top: 30%; width: 40%; height: 14%; border-radius: 3px; background: rgba(245,244,239,.6); box-shadow: 0 10px 0 -1px rgba(245,244,239,.25); }
.l-app .row b { right: 6%; top: 32%; width: 18%; height: 36%; border-radius: 99px; background: #6fdc8c; opacity: .85; }
.l-app .tabbar { left: 0; right: 0; bottom: 0; height: 9%; border-radius: 0; background: rgba(245,244,239,.08); }
/* automatizare */
.l-flow .node {
  position: absolute; width: 34%; padding: 3.4% 3%; border-radius: 12px; background: #0f1f5c; border: 1.5px solid #8fd0ff;
  font: 600 clamp(11px, 1.3vw, 14px) var(--font-body); color: #fff; display: flex; align-items: center; gap: 8px;
}
.l-flow .node::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #6fdc8c; flex: none; }
.l-flow svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.l-flow svg .wire { fill: none; stroke: #8fd0ff; stroke-width: 2; stroke-dasharray: 5 6; }
.l-flow svg .pkt { fill: #fff; filter: drop-shadow(0 0 6px #8fd0ff); }
/* integrări */
.l-int .tile {
  position: absolute; width: 26%; aspect-ratio: 1.5; border-radius: 14px; background: #0f1f5c; border: 1.5px solid rgba(143,208,255,.6);
  display: grid; place-items: center; font: 600 clamp(11px, 1.3vw, 14px) var(--font-body); color: #fff; text-align: center; padding: 4px;
}
.l-int .hub { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, #1f3f9a, #0b1a52); box-shadow: 0 0 0 6px rgba(61,123,255,.18), 0 0 40px rgba(61,123,255,.6); display: grid; place-items: center; }
.l-int .hub rootit-logo { width: 62%; --rootit-ink: #f5f4ef; --rootit-blue: #3d7bff; }
.l-int svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.l-int svg path { fill: none; stroke: #8fd0ff; stroke-width: 2; stroke-dasharray: 3 6; animation: wire 1s linear infinite; }
@keyframes wire { to { stroke-dashoffset: -18; } }
/* cod */
.l-code { background: #0a0f24; padding: 7% 6% 0 13%; font: 500 12px "JetBrains Mono", monospace; }
.l-code .gutter { position: absolute; left: 3%; top: 7%; color: rgba(245,244,239,.3); line-height: 2.1; font-size: clamp(9px, 1.1vw, 12px); }
.l-code .cl { position: relative; height: 4.4%; margin-bottom: 3.1%; display: flex; gap: 2%; }
.l-code .cl i { position: static; height: 100%; border-radius: 3px; transform-origin: 0 50%; }
.l-code .result {
  right: 5%; bottom: 7%; width: 40%; height: 46%; border-radius: 12px; background: #f5f4ef;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); opacity: 0;
}
.l-code .result::before { content: ""; position: absolute; left: 10%; top: 12%; width: 50%; height: 12%; border-radius: 3px; background: #0043d2; }
.l-code .result::after { content: ""; position: absolute; left: 10%; top: 34%; right: 10%; bottom: 12%; border-radius: 8px; background: linear-gradient(160deg, #e4ebfb, #c9d8f7); }

/* ── cum lucrăm: drum orizontal ── */
.process { background: var(--space); color: var(--cream); }
.pr-pin { height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; align-content: center; padding: calc(var(--topbar) + 24px) 0 40px; }
.pr-head { padding: 0 6vw; max-width: 820px; }
.pr-head .kicker { color: #6f9bff; }
.pr-head h2 { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.06; }
.pr-rail { position: relative; margin: 32px 6vw 28px; height: 2px; background: rgba(245,244,239,.12); }
.pr-fill { position: absolute; inset: 0; background: linear-gradient(90deg, #3d7bff, #9fd4ff); transform-origin: 0 50%; transform: scaleX(0); }
.pr-spark { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 4px #9fd4ff; }
.pr-track { display: flex; gap: 24px; padding: 0 6vw; align-items: stretch; width: max-content; }
.pc { min-height: 300px; }
.pc {
  position: relative; width: min(400px, 78vw); padding: 28px; border-radius: 26px;
  background: linear-gradient(160deg, #0f1f5c, #081238); border: 1px solid rgba(143,208,255,.2);
  display: grid; align-content: start; gap: 12px; overflow: hidden;
}
.pc-num { position: absolute; right: 18px; top: 4px; font: 700 110px/1 var(--font-head); color: transparent; -webkit-text-stroke: 1.5px rgba(143,208,255,.25); }
.pc-icon { width: 64px; height: 64px; }
.pc-icon * { fill: none; stroke: #f5f4ef; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.pc-icon .ln { stroke: #6f9bff; }
.pc h3 { font: 700 26px/1.1 var(--font-head); margin: 8px 0 0; }
.pc p { color: rgba(245,244,239,.72); font-size: 16px; }

/* ── telefon și tabletă ── */
@media (max-width: 980px) {
  .bp-inner { grid-template-columns: 1fr; }
  .bp-drawing { order: -1; max-width: 520px; width: 100%; justify-self: center; }
}
@media (max-width: 1180px) and (max-aspect-ratio: 4/3) {
  .ws-pin { grid-template-columns: 1fr; grid-template-rows: 1fr auto; align-items: stretch; gap: 12px; padding: calc(var(--topbar) + 12px) 18px 20px; }
  .ws-stage { height: auto; min-height: 0; }
  .ws-stage { grid-row: 1; }
  .ws-copy { grid-row: 2; align-self: end; }
  .ws-step { max-width: none; }
  .ws-step h2 { font-size: clamp(24px, 6.6vw, 34px); margin-bottom: 8px; }
  .ws-step > p { font-size: 15px; margin-bottom: 10px; }
  .ws-step .ticks { gap: 6px; }
  .ws-step .ticks li { font-size: 14px; }
  .ws-dots { display: none; }
}
@media (max-width: 640px) {
  .bp-hero { min-height: auto; padding: calc(var(--topbar) + 24px) 18px 48px; }
  .pr-head, .pr-track { padding: 0 18px; }
  .pr-rail { margin: 24px 18px 20px; }
  .pc { padding: 22px; }
  .pc-num { font-size: 84px; }
}
@media (max-height: 700px) and (max-width: 1180px) {
  .ws-step .ticks { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bp-copy h1 em::after { animation: none; }
  .ws-pin { height: auto; display: block; }
  .ws-step { margin-bottom: 40px; }
  .ws-stage, .ws-dots { display: none; }
  .pr-pin { height: auto; }
  .pr-track { width: auto; flex-wrap: wrap; }
  .pr-rail { display: none; }
}
