/* Malina — AI munkafolyamatok (primary offer). Layered on top of styles.css */
:root {
  --ink: #0a0a0c;
  --ink-2: #121217;
  --ink-3: #1b1b22;
  --on-ink: #f5f5f7;
  --on-ink-2: #b4b4be;
  --rose-l: #f28ba3;
  --rose-glow: rgba(242, 139, 163, 0.35);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ok: #4fd18b;
  --wait: #f5c26b;
}

.nowrap { white-space: nowrap; }

/* ---------- Header: dark glass ---------- */
.ai-page .site-header {
  background: rgba(12, 12, 16, calc(var(--header-bg-alpha) + 0.15));
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.ai-page .brand, .ai-page .brand:hover { color: var(--on-ink); }
.ai-page .brand img { filter: brightness(1.25); }
.ai-page .nav-menu a { color: #c9c9d1; }
.ai-page .nav-menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.ai-page .nav-cta { background: var(--accent) !important; color: #fff !important; }
.ai-page .nav-cta:hover { background: #b9455f !important; }
.ai-page .nav-toggle-bar { background: var(--on-ink); }
@media (max-width: 760px) {
  .ai-page .nav-menu { background: rgba(14, 14, 18, 0.97); border-bottom-color: rgba(255,255,255,.08); }
}
.scroll-meter { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
.scroll-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--rose-l)); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }

.ai-page :focus-visible { outline-color: var(--rose-l); }
.ai-page main :focus-visible { outline-color: var(--accent); }
.ai-hero :focus-visible, .graph-scene :focus-visible, .gate-band :focus-visible, .section-dark :focus-visible { outline-color: var(--rose-l) !important; }

/* ---------- Buttons ---------- */
.btn-lg { padding: 1rem 1.8rem; font-size: 1.0625rem; }
.btn-glass { background: rgba(255,255,255,.08); color: var(--on-ink); border: 1px solid rgba(255,255,255,.16); }
.btn-glass:hover { background: rgba(255,255,255,.16); color: #fff; }
.eyebrow--dark { color: var(--rose-l); }

/* ---------- Hero ---------- */
.ai-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  background: var(--ink); color: var(--on-ink);
  padding: clamp(4rem, 10vh, 7rem) 0 clamp(5rem, 12vh, 8rem);
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(3rem, 9vh, 6rem));
  min-height: 100svh;
}
.ai-hero--sub { min-height: 82svh; }
.ai-hero-bg { position: absolute; inset: -6% -2%; z-index: -1; will-change: transform; }
.hero-net { width: 100%; height: 100%; display: block; }
.hero-net .hn-edges path { stroke: rgba(242,139,163,.16); stroke-width: 1; fill: none; }
.hero-net .hn-pkts circle { fill: var(--rose-l); opacity: .75; }
.hero-net .hn-nodes circle { fill: #2a1a20; stroke: rgba(242,139,163,.55); stroke-width: 1.2; animation: twinkle 4.5s ease-in-out infinite; animation-delay: var(--d); }
@keyframes twinkle { 0%,100% { opacity: .45 } 50% { opacity: 1 } }
.ai-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 60% 55% at 50% 48%, rgba(10,10,12,.82), rgba(10,10,12,.35) 70%, transparent),
  linear-gradient(180deg, transparent 70%, var(--ink)); }
.ai-hero-copy { text-align: center; will-change: transform, opacity; }
.ai-hero h1 { color: #fff; font-size: clamp(3rem, 9.4vw, 8.4rem); line-height: .98; letter-spacing: -0.045em; font-weight: 600; }
.ah-line { display: block; }
.ah-grad { background: linear-gradient(100deg, #fff 0%, #ffd0db 35%, var(--rose-l) 70%, #ff9fb5 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-hero-lead { margin: 1.6rem auto 0; max-width: 40rem; font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.45; color: var(--on-ink-2); }
.ai-hero .hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2.2rem; }
.hero-stats { list-style: none; padding: 0; margin: clamp(2.5rem, 6vh, 4rem) auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 52rem; }
.hero-stats li { padding: 1.1rem 1rem; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: #fff; letter-spacing: -.03em; font-weight: 600; }
.hero-stats span { display: block; font-size: .9rem; color: var(--on-ink-2); line-height: 1.35; margin-top: .2rem; }
.hero-stats strong span { display: inline; font-size: inherit; color: inherit; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.6rem; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--rose-l); animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1 } 80% { transform: translateY(14px); opacity: 0 } 100% { opacity: 0 } }

/* entrance (JS only) */
.js .ah-in { opacity: 0; transform: translateY(28px); filter: blur(10px); }
.js .is-ready .ah-in { opacity: 1; transform: none; filter: blur(0); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out), filter 1.1s var(--ease-out); transition-delay: calc(var(--i) * 110ms + 80ms); }

/* ---------- Manifesto (word scrub) ---------- */
.manifesto { background: var(--ink); padding-block: clamp(5rem, 14vw, 10rem); }
.manifesto-text { margin: 0 auto; max-width: 56rem; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4.6vw, 3.6rem); line-height: 1.14; letter-spacing: -.03em; color: #fff; text-align: center; }
.manifesto-text .w { display: inline-block; }
.js:not(.reduce) .manifesto-text .w { opacity: var(--o, .18); transition: opacity .25s linear; }

/* ---------- Generic reveal ---------- */
.js:not(.reduce) [data-r] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js:not(.reduce) [data-r].in { opacity: 1; transform: none; }

/* ---------- Graph scene ---------- */
.graph-scene { background: var(--ink); color: var(--on-ink); position: relative; }
.graph-sticky { padding: calc(var(--header-h) + 1.5rem) 0 2.5rem; }
.graph-inner { width: min(100% - 2.5rem, 1240px); margin-inline: auto; display: flex; flex-direction: column; gap: 1rem; }
.graph-head { text-align: center; }
.graph-head h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
.graph-stage { display: flex; justify-content: center; }
.graph-fig { margin: 0; width: 100%; display: flex; justify-content: center; }
.graph-svg { display: block; width: 100%; height: auto; overflow: visible; }
.graph-svg--v { display: none; }
@media (max-width: 760px) { .graph-svg--h { display: none; } .graph-svg--v { display: block; } }

.graph-svg .lane { fill: rgba(255,255,255,.025); stroke: rgba(255,255,255,.09); stroke-dasharray: 4 6; }
.graph-svg .lane-t { fill: #8f8f9b; font: 600 11px var(--font); letter-spacing: .14em; }
.graph-svg .arr { fill: var(--rose-l); }
.ge-track { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 2; }
.ge-line { fill: none; stroke: var(--rose-l); stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--ease-out), opacity .4s; }
.ge--loop .ge-line { stroke: var(--wait); stroke-dasharray: none; }
.ge--loop .ge-track { stroke-dasharray: 5 6; }
.ge--side .ge-line { stroke: #9aa3ff; }
.ge-pkt { fill: #fff; filter: drop-shadow(0 0 6px var(--rose-l)); transition: opacity .4s; }
.ge--loop .ge-pkt { fill: var(--wait); }
.ge-label { fill: #c7c7d0; font: 500 13px var(--font); transition: opacity .4s; }
.graph-svg--v .ge-label { font-size: 12px; }
.gn-box { fill: var(--ink-3); stroke: rgba(255,255,255,.22); stroke-width: 1.4; transition: fill .5s, stroke .5s; }
.gn-halo { fill: none; stroke: var(--rose-l); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.gn-title { fill: #fff; font: 600 16px var(--font); letter-spacing: -.01em; }
.gn-sub { fill: var(--rose-l); font: 600 10.5px var(--font); letter-spacing: .14em; }
.gn--trigger .gn-box { stroke: var(--rose-l); }
.gn--branch .gn-box { fill: #2a1720; stroke: var(--rose-l); }
.gn--gate .gn-box { stroke: var(--wait); stroke-dasharray: 6 4; }
.gn--gate .gn-sub { fill: var(--wait); }
.gn--side .gn-box { stroke: #9aa3ff; } .gn--side .gn-sub { fill: #b9beff; }
.gn--end .gn-box { fill: #13261c; stroke: var(--ok); } .gn--end .gn-sub { fill: var(--ok); }
.gate-badge circle { fill: var(--ink); stroke: var(--wait); stroke-width: 1.6; }
.gate-badge path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gate-wait { stroke: var(--wait); }
.gate-ok { stroke: var(--ok); opacity: 0; }

/* live (JS, scroll-driven) state */
.graph-live .gn { opacity: .26; transition: opacity .6s var(--ease-out); }
.graph-live .gn.is-on { opacity: 1; }
.graph-live .gn.is-on .gn-box { fill: #22161b; }
.graph-live .gn--end.is-on .gn-box { fill: #13261c; }
.graph-live .gn.is-current .gn-halo { animation: halo 1.6s var(--ease-out) infinite; }
@keyframes halo { 0% { opacity: .9; transform: scale(.96) } 100% { opacity: 0; transform: scale(1.12) } }
.graph-live .ge-line { stroke-dashoffset: 1; }
.graph-live .ge.is-on .ge-line { stroke-dashoffset: 0; }
.graph-live .ge:not(.is-on) .ge-pkt, .graph-live .ge:not(.is-on) .ge-label { opacity: 0; }
.graph-live .ge--loop .ge-line { opacity: 0; }
.graph-live .ge--loop.is-on .ge-line { opacity: 1; }
.graph-live .ge.is-on:not(.is-current) .ge-pkt { opacity: .35; }
.graph-live .gn--gate.is-passed .gate-wait { opacity: 0; }
.graph-live .gn--gate.is-passed .gate-ok { opacity: 1; }
.graph-live .gn--gate.is-passed .gn-box { stroke: var(--ok); stroke-dasharray: none; }
.graph-live .gn--gate.is-current .gn-box { stroke-width: 2.4; }

.graph-bottom { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.5rem; align-items: start; }
.g-caps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.g-cap { position: relative; padding-left: 3.2rem; }
.g-cap-n { position: absolute; left: 0; top: .1rem; font: 500 .85rem var(--mono); color: var(--rose-l); border: 1px solid rgba(242,139,163,.4); border-radius: 99px; padding: .2rem .5rem; }
.g-cap-tag { margin: 0 0 .25rem; font: 500 .78rem var(--mono); color: #c3c3cc; letter-spacing: .02em; }
.g-cap h3 { color: #fff; font-size: clamp(1.25rem, 2.2vw, 1.65rem); }
.g-cap p:last-child { margin: .35rem 0 0; color: var(--on-ink-2); font-size: 1rem; line-height: 1.45; max-width: 36rem; }
.g-log { border-radius: 16px; background: #0f0f14; border: 1px solid rgba(255,255,255,.08); padding: .9rem 1rem; font: 400 .78rem/1.55 var(--mono); color: #c9c9d3; }
.g-log-h { margin: 0 0 .5rem; color: #9b9ba6; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: .45rem; }
.g-log .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: twinkle 1.6s infinite; }
.g-log ol { list-style: none; margin: 0; padding: 0; }
.g-log li { display: grid; grid-template-columns: 4.6rem 5.6rem 1fr; gap: .4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-log time { color: #8a8a96; } .g-log b { color: var(--rose-l); font-weight: 500; } .g-log span { overflow: hidden; text-overflow: ellipsis; }
.graph-progress { display: none; }

/* JS + motion: pinned, one caption at a time */
.js:not(.reduce) .graph-track { height: calc(100svh + 9 * min(62svh, 560px)); }
.js:not(.reduce) .graph-sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + .75rem) 0 1.25rem; box-sizing: border-box; }
.js:not(.reduce) .graph-inner { height: 100%; }
.js:not(.reduce) .graph-stage { flex: 1 1 auto; min-height: 0; }
.js:not(.reduce) .graph-fig { height: 100%; }
.js:not(.reduce) .graph-svg { width: auto; height: 100%; max-width: 100%; }
.js:not(.reduce) .g-caps { display: grid; gap: 0; }
.js:not(.reduce) .g-cap { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.js:not(.reduce) .g-cap.is-active { opacity: 1; transform: none; }
.js:not(.reduce) .g-log li { opacity: .18; transition: opacity .4s; }
.js:not(.reduce) .g-log li.is-on { opacity: 1; }
.js:not(.reduce) .g-log li.is-current { color: #fff; }
.js:not(.reduce) .graph-progress { display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.graph-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--rose-l)); transform-origin: 0 50%; transform: scaleX(var(--gp, 0)); }
@media (max-width: 760px) {
  .graph-bottom { grid-template-columns: 1fr; }
  .g-log { display: none; }
  .graph-head h2 { font-size: 1.45rem; }
  .js:not(.reduce) .graph-head h2 { display: none; }
  .js:not(.reduce) .graph-head .eyebrow { margin: 0; }
  .g-cap { padding-left: 0; } .g-cap-n { position: static; display: inline-block; margin-bottom: .35rem; }
  .js:not(.reduce) .g-cap h3 { font-size: 1.2rem; }
  .js:not(.reduce) .g-cap p:last-child { font-size: .93rem; }
  .js:not(.reduce) .graph-track { height: calc(100svh + 9 * 75svh); }
}
@media (max-height: 760px) and (min-width: 761px) {
  .js:not(.reduce) .graph-head h2 { font-size: 1.5rem; }
  .js:not(.reduce) .g-cap p:last-child { font-size: .92rem; }
}

/* ---------- Pillars ---------- */
.pillars { background: var(--bg); }
.pillar { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.pillar:first-of-type { border-top: 0; }
.pillar--rev .pillar-copy { order: 2; }
.pillar-num { margin: 0 0 .5rem; font: 500 .9rem var(--mono); color: var(--accent); }
.pillar h3 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -.035em; }
.pillar-lead { margin: 1rem 0 1.4rem; font-size: 1.15rem; color: var(--text-secondary); line-height: 1.5; }
.terms { margin: 0; display: grid; gap: .1rem; }
.terms > div { padding: .8rem 0; border-top: 1px solid var(--line); }
.terms dt { font-weight: 600; font-size: 1rem; color: var(--text); }
.terms dd { margin: .15rem 0 0; color: var(--text-secondary); font-size: .97rem; line-height: 1.45; }
.chips { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li { font-size: .85rem; font-weight: 500; padding: .35rem .75rem; border-radius: 99px; background: var(--accent-soft); color: #7d2a3e; border: 1px solid rgba(163,59,82,.18); }
.chips--center { justify-content: center; margin-top: 2rem; }
.pillar-visual { border-radius: 28px; background: radial-gradient(ellipse at 50% 30%, #1d1218, var(--ink) 70%); padding: clamp(1rem, 3vw, 2rem); box-shadow: 0 30px 80px rgba(10,10,12,.22); aspect-ratio: 4 / 3; display: flex; align-items: center; }
.pv { width: 100%; height: auto; display: block; overflow: visible; }
.pv-e { fill: none; stroke: rgba(242,139,163,.45); stroke-width: 1.6; }
.pv-e--loop { stroke: var(--wait); stroke-dasharray: 5 6; opacity: .7; }
.pv-e--off { stroke: rgba(255,255,255,.12); stroke-dasharray: 3 5; }
.pv-p { fill: #fff; filter: drop-shadow(0 0 5px var(--rose-l)); }
.pv-n circle, .pv-n rect, .pv-n polygon { fill: var(--ink-3); stroke: var(--rose-l); stroke-width: 1.6; }
.pv-flag path { fill: rgba(79,209,139,.2); stroke: var(--ok); stroke-width: 1.4; }
.pv-t { fill: #b4b4be; font: 500 12px var(--font); }
.pv-doc rect { fill: var(--ink-3); stroke: rgba(242,139,163,.5); }
.pv-doc text { fill: #f0f0f3; font: 500 12.5px var(--font); }
.pv-doc--off { opacity: .38; } .pv-doc--off text { text-decoration: line-through; }
.pv-doc { animation: docin 4s var(--ease-out) infinite; animation-delay: var(--d); }
@keyframes docin { 0%,100% { transform: translateX(0) } 50% { transform: translateX(6px) } }
.pv-chip rect, .pv-core circle { fill: #2a1720; stroke: var(--rose-l); stroke-width: 1.8; }
.pv-chip-t { fill: #fff; font: 700 20px var(--font); }
.pv-ring circle { fill: none; stroke: var(--wait); stroke-width: 1.4; stroke-dasharray: 10 8; opacity: .8; }
.pv-ring--2 circle { stroke: rgba(242,139,163,.35); stroke-dasharray: 2 9; }
.pv-ring { transform-box: fill-box; transform-origin: center; animation: spin 26s linear infinite; }
.pv-ring--2 { animation-direction: reverse; animation-duration: 40s; }
@keyframes spin { to { transform: rotate(360deg) } }
.pv-t--ring { fill: var(--wait); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.pv-tool rect { fill: #17171d; stroke: rgba(255,255,255,.3); }
.pv-tool text { fill: #f0f0f3; font: 500 12.5px var(--font); }
.pv-tool--s text { font-size: 11.5px; }
.pv-panel { fill: #0f0f14; stroke: rgba(255,255,255,.12); }
.pv-mono { fill: #c9c9d3; font: 400 11.5px var(--mono); }
.pv-log { animation: logscroll 9s linear infinite; }
@keyframes logscroll { to { transform: translateY(-204px) } }
.pv-shield path:first-child { fill: rgba(79,209,139,.12); stroke: var(--ok); stroke-width: 1.8; }
.pv-check { fill: none; stroke: var(--ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: check 3s var(--ease-out) infinite; }
@keyframes check { 0% { stroke-dashoffset: 1 } 40%,100% { stroke-dashoffset: 0 } }

/* ---------- Gate band ---------- */
.gate-band { background: var(--ink); color: var(--on-ink); padding-block: clamp(5rem, 12vw, 9rem); text-align: center; }
.gate-band h2 { color: #fff; font-size: clamp(2.6rem, 7vw, 5.6rem); letter-spacing: -.045em; line-height: 1; }
.gate-visual { max-width: 640px; margin: 2.5rem auto; }
.gate-svg { width: 100%; height: auto; display: block; }
.gb-gate rect { fill: #13261c; stroke: var(--ok); stroke-width: 2; }
.gb-check { fill: none; stroke: var(--ok); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.pv-e--after { stroke: rgba(79,209,139,.55); }
.pv-p--after { filter: drop-shadow(0 0 5px var(--ok)); }
.gate-lead { max-width: 38rem; margin: 0 auto; color: var(--on-ink-2); font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.5; }

/* ---------- Use cases ---------- */
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.uc { background: #fff; border-radius: 24px; padding: 1.4rem 1.4rem 1.5rem; box-shadow: var(--shadow-soft); border: 1px solid rgba(0,0,0,.05); display: flex; flex-direction: column; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), opacity .9s var(--ease-out); }
.uc:hover { box-shadow: var(--shadow-lift); }
.uc-graph { border-radius: 16px; background: var(--ink); padding: .6rem .4rem 0; margin-bottom: 1.1rem; }
.mini-graph { width: 100%; height: auto; display: block; }
.mg-e { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1.6; }
.mg-e--on { stroke: rgba(242,139,163,.55); }
.mg-e--branch { stroke: var(--wait); stroke-dasharray: 4 4; }
.mg-p { fill: #fff; filter: drop-shadow(0 0 4px var(--rose-l)); }
.mg-p--b { fill: var(--wait); }
.mg-c { fill: var(--ink-3); stroke: var(--rose-l); stroke-width: 1.6; }
.mg-ring { fill: none; stroke: var(--rose-l); stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; animation: mgpulse 1.75s var(--ease-out) infinite; animation-delay: var(--d); }
@keyframes mgpulse { 0% { opacity: .8; transform: scale(.8) } 70%,100% { opacity: 0; transform: scale(1.35) } }
.mg-n--gate .mg-c { stroke: var(--ok); fill: #13261c; }
.mg-n--end .mg-c { fill: #2a1720; }
.mg-ic { fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mg-t { fill: #d6d6dd; font: 500 11px var(--font); }
.mg-bn { fill: rgba(245,194,107,.12); stroke: var(--wait); stroke-width: 1; }
.mg-bt { fill: var(--wait); font: 500 10.5px var(--font); }
.uc-who { margin: 0 0 .35rem; font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.uc h3 { font-size: 1.35rem; }
.uc-desc { color: var(--text-secondary); font-size: .97rem; line-height: 1.5; margin: .6rem 0 1.2rem; flex: 1; }
.uc-time { display: grid; gap: .5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.uc-row { display: grid; grid-template-columns: 3.4rem 1fr auto; gap: .6rem; align-items: center; font-size: .86rem; }
.uc-k { color: var(--text-secondary); font-weight: 500; }
.uc-v { font-weight: 600; color: var(--text); white-space: nowrap; }
.uc-bar { height: 8px; border-radius: 8px; background: #efeff3; overflow: hidden; }
.uc-bar i { display: block; height: 100%; border-radius: 8px; transform-origin: 0 50%; }
.uc-bar--before i { background: #8e8e96; transform: scaleX(1); }
.uc-bar--after i { background: linear-gradient(90deg, var(--accent), #d0647d); transform: scaleX(max(var(--after), .04)); }
.js:not(.reduce) .uc .uc-bar i { transform: scaleX(0); transition: transform 1.2s var(--ease-out) .35s; }
.js:not(.reduce) .uc.in .uc-bar--before i { transform: scaleX(1); }
.js:not(.reduce) .uc.in .uc-bar--after i { transform: scaleX(max(var(--after), .04)); transition-delay: .9s; }
.uc-note { text-align: center; color: var(--text-secondary); font-size: .9rem; margin: 2rem auto 0; max-width: 40rem; }

/* ---------- Process ---------- */
.process { background: var(--bg); }
.pr-wrap { position: relative; }
.pr-line { position: absolute; left: 10%; right: 10%; top: 22px; width: 80%; height: 8px; }
.pr-line-bg { stroke: #e3e3e8; stroke-width: 3; fill: none; }
.pr-line-fg { stroke: var(--accent); stroke-width: 3; fill: none; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--pp, 1)); }
.js:not(.reduce) .pr-line-fg { stroke-dashoffset: calc(1 - var(--pp, 0)); }
.pr-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; position: relative; }
.pr-step { text-align: center; }
.pr-dot { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); color: var(--accent); font: 600 1.1rem var(--font); margin-bottom: 1rem; box-shadow: 0 0 0 8px var(--bg); }
.pr-step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.pr-step p { margin: 0; color: var(--text-secondary); font-size: .95rem; line-height: 1.45; }

/* ---------- FAQ ---------- */
.faq-container { max-width: 820px; }
.faq-list { display: grid; gap: .75rem; }
.faq-item { background: #fff; border-radius: 18px; border: 1px solid rgba(0,0,0,.06); box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.15rem 1.35rem; font-weight: 600; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); position: relative; transition: transform .35s var(--ease-out); }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; background: var(--accent); border-radius: 2px; }
.faq-item summary i::after { transform: rotate(90deg); transition: transform .35s var(--ease-out); }
.faq-item[open] summary i::after { transform: rotate(0); }
.faq-item p { margin: 0; padding: 0 1.35rem 1.25rem; color: var(--text-secondary); line-height: 1.55; }

/* ---------- More services ---------- */
.more { padding-block: clamp(3.5rem, 7vw, 5rem); background: var(--bg); border-top: 1px solid var(--line); }
.h2-sm { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.more .section-head { margin-bottom: 1.5rem; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.more-card { padding: 1.3rem 1.4rem; border-radius: 18px; background: var(--bg-soft); }
.more-card h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.more-card p { margin: 0; color: var(--text-secondary); font-size: .95rem; line-height: 1.45; }

/* ---------- Contact ---------- */
.ai-contact { background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(163,59,82,.08), transparent 60%), var(--bg); }
.ai-contact .email-card-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
.ai-contact .email-card-hint { flex-basis: 100%; text-align: center; color: #1e7a45; }
.contact-bullets { list-style: none; padding: 0; color: var(--text-secondary); }

/* ---------- Deep-dive page ---------- */
.section-dark { background: var(--ink); color: var(--on-ink); }
.section-dark h2 { color: #fff; }
.section-dark .section-lead { color: var(--on-ink-2); }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--rev > header { order: 2; }
.blk-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.blk { background: var(--bg-soft); border-radius: 20px; padding: 1.2rem; }
.blk-i { font: 500 .85rem var(--mono); color: var(--accent); }
.blk h3 { font-size: 1.15rem; margin: .5rem 0 .2rem; }
.blk-tag { margin: 0 0 .5rem; font: 500 .78rem var(--mono); color: #5c5c63; }
.blk p:last-child { margin: 0; font-size: .93rem; color: var(--text-secondary); line-height: 1.45; }
.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; perspective: 900px; }
.layer { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-radius: 16px; background: linear-gradient(90deg, rgba(242,139,163,calc(.06 + var(--i) * .025)), rgba(255,255,255,.03)); border: 1px solid rgba(242,139,163,.22); }
.layer b { color: #fff; } .layer span { color: var(--on-ink-2); font-size: .95rem; }
.rings { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ring { padding: 1rem 1.2rem; border-radius: 16px; border: 1px solid rgba(163,59,82,.25); background: rgba(163,59,82, calc(.03 + var(--i) * .02)); margin-inline: calc((4 - var(--i)) * 1rem); display: grid; gap: .15rem; }
.ring b { color: var(--text); } .ring span { color: var(--text-secondary); font-size: .95rem; }
.int-visual { max-width: 560px; margin: 0 auto; background: var(--ink); border-radius: 28px; padding: 1.5rem; }
.table-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); }
.tasks { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
.tasks th, .tasks td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tasks thead th { background: var(--bg-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #4a4a50; }
.tasks tbody th { font-weight: 600; }
.tasks td { color: var(--text-secondary); }
.tasks td:last-child { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .uc-grid { grid-template-columns: repeat(2, 1fr); }
  .blk-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .pillar, .split { grid-template-columns: 1fr; }
  .pillar--rev .pillar-copy, .split--rev > header { order: 0; }
  .pr-list { grid-template-columns: 1fr; text-align: left; gap: 1.5rem; }
  .pr-step { display: grid; grid-template-columns: 48px 1fr; column-gap: 1rem; text-align: left; }
  .pr-step .pr-dot { grid-row: span 2; margin: 0; }
  .pr-line { left: 23px; top: 0; bottom: 0; width: 3px; height: 100%; }
  .more-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero-stats { grid-template-columns: 1fr; max-width: 22rem; gap: .6rem; }
  .hero-stats li { display: flex; align-items: baseline; gap: .8rem; text-align: left; padding: .8rem 1rem; }
  .hero-stats strong { font-size: 1.7rem; flex: none; min-width: 3.6rem; }
  .uc-grid, .blk-grid { grid-template-columns: 1fr; }
  .layer { grid-template-columns: 1fr; gap: .2rem; }
  .ring { margin-inline: 0; }
  .ai-hero h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .scroll-cue { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ge-pkt, .pv-p, .mg-p, .hn-pkts { display: none; }
  .hero-net .hn-nodes circle, .mg-ring, .pv-ring, .pv-doc, .pv-log, .pv-check, .g-log .dot, .scroll-cue span { animation: none !important; }
  .pv-check { stroke-dashoffset: 0; }
  .ai-hero-bg, .ai-hero-copy { transform: none !important; opacity: 1 !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Graph tuning ---------- */
.graph-live .ge-line { opacity: 0; }
.graph-live .ge.is-on .ge-line { opacity: 1; }
@media (min-width: 761px) {
  .js:not(.reduce) .graph-head h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
  .js:not(.reduce) .graph-head .eyebrow { margin-bottom: .35rem; }
  .js:not(.reduce) .graph-inner { gap: .6rem; }
  .js:not(.reduce) .g-log-win { height: calc(5 * 1.55em); overflow: hidden; }
  .js:not(.reduce) .g-log-win ol { transition: transform .5s var(--ease-out); }
}

.ai-page .footer-copy, .ai-page .footer-brand a { color: #6e6e73; }

/* ---------- AI developer pipeline (second showcase) ---------- */
.graph-scene--dev { border-top: 1px solid rgba(255,255,255,.06); background: radial-gradient(ellipse 60% 40% at 30% 30%, rgba(163,59,82,.12), transparent 70%), var(--ink); }
.graph-scene--dev .row-sep { stroke: rgba(255,255,255,.06); stroke-dasharray: 2 8; fill: none; }
.gn-title--pill { font-size: 13.5px; font-weight: 600; }
.graph-svg--v .gn-title--pill { font-size: 12px; }
.gn--pill .gn-box { fill: #19141a; stroke: rgba(242,139,163,.45); }
.gn--start .gn-box { stroke: var(--rose-l); }
.ge--fail .ge-line { stroke: #ff8a8a; }
.ge--fail .ge-pkt { fill: #ff8a8a; filter: drop-shadow(0 0 6px #ff8a8a); }
.ge--fail .ge-label { fill: #ffb3b3; }
.legend-box { fill: #0f0f14; stroke: rgba(255,255,255,.1); }
.legend text { fill: #c9c9d3; font: 500 13px var(--font); }
.legend .lg-note { fill: #9b9ba6; font-size: 11.5px; }
.lg-flow { fill: var(--rose-l); }
.lg-loop { stroke: var(--wait); stroke-width: 2.4; fill: none; }
.lg-fail { stroke: #ff8a8a; stroke-width: 2.4; fill: none; }
.lg-gate { fill: none; stroke: var(--wait); stroke-width: 1.6; stroke-dasharray: 4 3; }
.graph-live.graph-scene--dev .ge--loop.is-on:not(.is-current) .ge-line { opacity: .22; }
.graph-live.graph-scene--dev .ge--loop:not(.is-current) .ge-pkt,
.graph-live.graph-scene--dev .ge--loop:not(.is-current) .ge-label { opacity: 0; }
.graph-live.graph-scene--dev .ge--loop.is-current .ge-pkt { opacity: 1; }

.dev-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1.5rem; align-items: start; }
.dev-pan { display: none; }
.dev-panel { display: flex; flex-direction: column; gap: .85rem; min-width: 0; }
.dev-panel .g-cap { padding-left: 0; }
.dev-panel .g-cap-n { position: static; display: inline-block; margin-bottom: .4rem; }
.dev-panel .g-cap h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
.dev-panel .g-cap p:last-child { font-size: .93rem; }
.dev-meter { display: grid; gap: .35rem; }
.dev-count { margin: 0; font: 500 .75rem var(--mono); color: #b4b4be; }
.dev-count b { color: #fff; font-weight: 500; }
.dev-status { list-style: none; margin: 0; padding: .7rem .85rem; display: grid; gap: 1px; border-radius: 14px; background: #0f0f14; border: 1px solid rgba(255,255,255,.08); font-size: .78rem; line-height: 1.32; }
.dev-status li { display: flex; align-items: center; gap: .5rem; color: #d2d2da; white-space: nowrap; }
.dev-status span { overflow: hidden; text-overflow: ellipsis; }
.dev-status em { margin-left: auto; font: 500 .7rem var(--mono); font-style: normal; color: #9b9ba6; }
.st-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #3d3d48; transition: background .3s, box-shadow .3s; }
.graph-live .dev-status em::after { content: "vár"; }
.graph-live .dev-status li.is-on .st-dot { background: var(--ok); }
.graph-live .dev-status li.is-on em { color: var(--ok); }
.graph-live .dev-status li.is-on em::after { content: "kész"; }
.graph-live .dev-status li[data-gate].is-on em::after { content: "jóváhagyva"; }
.graph-live .dev-status li.is-current { color: #fff; }
.graph-live .dev-status li.is-current .st-dot { background: var(--rose-l); box-shadow: 0 0 8px var(--rose-l); }
.graph-live .dev-status li.is-current em { color: var(--rose-l); }
.graph-live .dev-status li.is-current em::after { content: "fut…"; }
.graph-live .dev-status li[data-gate].is-current em { color: var(--wait); }
.graph-live .dev-status li[data-gate].is-current em::after { content: "jóváhagyásra vár"; }
.graph-scene--dev .g-log li { grid-template-columns: 1.6rem 6.6rem 1fr; }
.graph-scene--dev .g-log { font-size: .74rem; }

.js:not(.reduce) .graph-scene--dev .graph-track { height: calc(100svh + var(--n) * min(40svh, 360px)); }
.js:not(.reduce) .dev-body { flex: 1 1 auto; min-height: 0; height: 100%; }
.js:not(.reduce) .dev-stage { height: 100%; }
@media (min-width: 761px) {
  .js:not(.reduce) .graph-scene--dev .graph-head { text-align: left; display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
  .js:not(.reduce) .graph-scene--dev .graph-svg--h { width: 100%; height: 100%; }
}
@media (max-height: 820px) and (min-width: 761px) { .js:not(.reduce) .graph-scene--dev .g-log { display: none; } }
@media (max-height: 640px) and (min-width: 761px) { .js:not(.reduce) .dev-status { display: none; } }
@media (max-width: 1100px) and (min-width: 761px) { .dev-body { grid-template-columns: minmax(0, 1fr) 270px; } }
@media (max-width: 760px) {
  .dev-body { grid-template-columns: 1fr; }
  .graph-scene--dev .graph-svg--h { display: none; }
  .dev-pan { display: block; }
  .dev-status, .graph-scene--dev .g-log { display: none; }
  .js:not(.reduce) .graph-scene--dev .graph-track { height: calc(100svh + var(--n) * 55svh); }
  .js:not(.reduce) .dev-body { display: flex; flex-direction: column; gap: .8rem; }
  .js:not(.reduce) .dev-stage { flex: 1 1 auto; min-height: 0; height: auto; }
  .js:not(.reduce) .graph-scene--dev .graph-fig { height: 100%; }
  .js:not(.reduce) .dev-pan { height: 100%; width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent); }
  .js:not(.reduce) .dev-pan .graph-svg { width: 100%; height: auto; max-width: none; transition: transform .7s var(--ease-out); will-change: transform; }
  .js:not(.reduce) .dev-panel { flex: none; gap: .5rem; }
}
.tasks--dev td.num { font: 500 .85rem var(--mono); color: var(--accent); white-space: nowrap; }
.tasks--dev td:last-child { color: var(--text-secondary); font-weight: 400; white-space: normal; }
.tasks--dev { min-width: 860px; }
