/* ==========================================================================
   DataFlovv — premium dark theme
   Graphite base, burgundy + navy accents, subtle transitions only.
   Mobile first. No dependencies.
   ========================================================================== */

/* Lets the hero panels' drift amplitude ease to zero (progressive enhancement) */
@property --amp { syntax: "<length>"; inherits: true; initial-value: 0px; }

:root {
  color-scheme: dark;

  --bg: #101114;
  --bg-2: #14161a;
  --surface: #181a1f;
  --surface-2: #1f2227;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);

  --text: #eceef2;
  --muted: #a3a9b5;
  --faint: #7d8391;

  --burg: #8e2a43;
  --burg-h: #a2304d;
  --burg-d: #5f1a2d;
  --burg-l: #d0728a;

  --navy: #1f3b73;
  --navy-2: #2b4f95;
  --navy-l: #7da3ea;

  --radius: 14px;
  --radius-s: 10px;
  --header-h: 68px;
  --container: 1180px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); background: var(--bg); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main { flex: 1; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; color: var(--text); font-weight: 650; letter-spacing: -.03em; text-wrap: balance; }
h1, h2, h3 { overflow-wrap: break-word; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -.04em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); line-height: 1.1; }
.title-xl { font-size: clamp(2.3rem, 4.8vw, 3.5rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 700; }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.015em; font-weight: 600; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid #9db8f0; outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 1rem; top: -4.5rem; z-index: 100; padding: .75rem 1.1rem; background: #fff; color: #101114; font-weight: 600; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* Placeholder text that still needs real details */
.todo { border-bottom: 1px dashed var(--burg-l); color: var(--text); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: 0 1.45rem; font: inherit; font-size: .98rem; font-weight: 600; line-height: 1; text-decoration: none; border-radius: var(--radius-s); border: 1px solid transparent; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.btn--primary { background: var(--burg); color: #fff; }
.btn--primary:hover { background: var(--burg-h); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .28); }
.btn--sm { min-height: 40px; padding: 0 1.05rem; font-size: .92rem; }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.link { color: var(--navy-l); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(125, 163, 234, .4); transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(16, 17, 20, .86); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) { .site-header { background: rgba(16, 17, 20, .72); backdrop-filter: saturate(1.4) blur(14px); } }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { display: block; height: 38px; width: auto; }
.header__actions { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 1px solid var(--line-2); border-radius: var(--radius-s); cursor: pointer; color: var(--text); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease, background-color .2s ease; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; position: fixed; inset: var(--header-h) 0 auto 0; padding: .75rem 1.25rem 1.5rem; background: var(--bg-2); border-bottom: 1px solid var(--line-2); max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
.site-nav.is-open { display: block; }
.site-nav a { display: block; padding: .95rem 0; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--burg); padding-left: .85rem; }
@media (min-width: 1020px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; padding: 0; background: none; border: 0; max-height: none; overflow: visible; }
  .site-nav ul { display: flex; gap: .25rem; }
  .site-nav a { padding: .55rem .9rem; border: 0; border-radius: 8px; font-size: .95rem; white-space: nowrap; transition: color .2s ease, background-color .2s ease; }
  .site-nav a:hover { background: rgba(255, 255, 255, .05); }
  .site-nav a[aria-current="page"] { box-shadow: none; padding-left: .9rem; background: rgba(255, 255, 255, .06); }
}
@media (max-width: 420px) { .header__actions .btn { display: none; } }
@media (max-width: 600px) { .brand img { height: 32px; } }
@media (max-width: 360px) { .brand img { height: 27px; } }

/* Language switch (EN / HU) */
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius-s); overflow: hidden; }
.lang a { display: grid; place-items: center; min-width: 40px; min-height: 38px; padding: 0 .55rem; font-size: .78rem; font-weight: 650; letter-spacing: .08em; color: var(--muted); text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.lang a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.lang a[aria-current="true"] { color: var(--text); background: rgba(255, 255, 255, .09); }
.lang a:focus-visible { outline-offset: -3px; }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; font-size: .78rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--burg-l); }
.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; }
.lead { margin-top: 1.25rem; max-width: 38rem; font-size: clamp(1.08rem, 1.7vw, 1.25rem); color: var(--muted); }
.lead__em { font-weight: 600; color: #b585c9; /* fallback where gradient text is unsupported */
  background-image: linear-gradient(95deg, #e5809b 0%, #b585c9 50%, #7da3ea 100%); /* the headline fade, lightened to stay readable at body size */
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (forced-colors: active) { .lead__em { background: none; -webkit-text-fill-color: currentColor; } }
.sec-head { max-width: 44rem; margin-bottom: clamp(2.25rem, 5vw, 3.75rem); }
.sec-head--row { max-width: none; display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .sec-head--row { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 4rem; } .sec-head--row .lead { margin-top: 0; } }
.muted { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(4.5rem, 9vw, 8rem); }
.hero::before { content: ""; position: absolute; inset: -10% -10% 0; pointer-events: none; background:
  radial-gradient(38% 46% at 12% 18%, rgba(142, 42, 67, .24), transparent 72%),
  radial-gradient(44% 52% at 88% 72%, rgba(43, 79, 149, .28), transparent 72%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 85%); -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 85%); }
.hero__grid { position: relative; z-index: 1; display: grid; gap: 3.5rem; align-items: start; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 3rem; } }
.hero__head { position: relative; z-index: 2; margin-bottom: clamp(2rem, 4vw, 3rem); }  /* the page title spans the full width; .display--xl sets its size */
.hero__head .eyebrow { font-size: clamp(.74rem, 2.6vw, .85rem); margin-bottom: 1.4rem; }
.hero__copy { position: relative; z-index: 2; }
.hero__copy .lead { margin-top: 0; }
.hero__copy .btn-row { margin-top: 2.25rem; }

/* ---------- Hero: floating panels that assemble into a web interface ---------- */
.stage { --amp: 12px; position: relative; width: min(100%, 640px); margin-inline: auto; container-type: inline-size; transition: --amp 1.9s var(--ease) .3s; }
.stage.is-assembled { --amp: 0px; }
.stage__float { position: relative; }
.stage.is-done .stage__float { animation: breathe 9s ease-in-out infinite alternate; }
.ui { position: relative; aspect-ratio: 1.18; perspective: 1100px; }

.panel { position: absolute; left: var(--l); top: var(--t); width: var(--w); height: var(--h);
  transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  transition: transform 1.7s var(--ease) var(--d, 0s), opacity 1s ease var(--d, 0s); }
.anim .stage:not(.is-assembled) .panel {
  transform: translate3d(calc(var(--tx) * 1cqw), calc(var(--ty) * 1cqw), calc(var(--tz) * 1px)) rotateX(calc(var(--rx) * 1deg)) rotateY(calc(var(--ry) * 1deg)) rotateZ(calc(var(--rz) * 1deg)); }
.anim .stage:not(.is-assembled) .panel--frame { opacity: 0; }
.anim .stage:not(.is-done) .panel { will-change: transform; }
.panel__in { width: 100%; height: 100%; display: flex; border-radius: 1.5cqw; border: 1px solid rgba(255, 255, 255, .11);
  background: linear-gradient(155deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .03)), var(--surface);
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .8); }
.anim .panel__in { animation: drift var(--dur, 7s) ease-in-out var(--dd, 0s) infinite alternate, appear .9s ease both; }
.stage.is-done .panel__in { animation: none; }
.stage.is-offscreen *, .stage.is-offscreen { animation-play-state: paused !important; }

.panel--frame .panel__in { border-radius: 2.2cqw; background: linear-gradient(165deg, #1c1f26, #13151a); border-color: rgba(255, 255, 255, .13); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4); }
.panel--bar .panel__in { align-items: center; gap: 1.1cqw; padding-inline: 2.2cqw; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 2.2cqw 2.2cqw 0 0; background: rgba(255, 255, 255, .045); box-shadow: none; }
.dot { width: 1.5cqw; height: 1.5cqw; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.dot:first-child { background: var(--burg-l); }
.url { flex: 1; max-width: 46%; margin-left: 2.4cqw; height: 3.4cqw; display: flex; align-items: center; padding-inline: 1.6cqw; border-radius: 99px; background: rgba(255, 255, 255, .07); }

.panel--nav .panel__in { align-items: center; justify-content: space-between; padding-inline: 2.2cqw; }
.nav-l, .nav-r { display: flex; align-items: center; gap: 1.8cqw; }
.mark { width: 3.2cqw; height: 3.2cqw; border-radius: .8cqw; background: linear-gradient(135deg, var(--burg), var(--navy-2)); }
.pill { width: 8cqw; height: 3.4cqw; border-radius: 99px; background: var(--navy-2); }

.panel--hero .panel__in { flex-direction: column; justify-content: center; gap: 1.5cqw; padding: 3cqw; }
.panel--visual .panel__in { position: relative; overflow: hidden; border-color: rgba(255, 255, 255, .14);
  background: radial-gradient(circle at 72% 28%, rgba(255, 255, 255, .32), transparent 34%), linear-gradient(140deg, var(--navy-2), var(--burg-d) 85%); }
.panel--visual .panel__in::after { content: ""; position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px); background-size: 4cqw 4cqw; }
.panel--card .panel__in { flex-direction: column; justify-content: center; gap: 1.5cqw; padding: 2.6cqw; }
.ico { width: 4.4cqw; height: 4.4cqw; border-radius: 1.1cqw; background: rgba(125, 163, 234, .22); border: 1px solid rgba(125, 163, 234, .4); margin-bottom: .8cqw; }
.ico--burg { background: rgba(208, 114, 138, .2); border-color: rgba(208, 114, 138, .45); }
.panel--chart .panel__in { padding: 2.6cqw; flex-direction: column; justify-content: space-between; }
.panel--chart svg { width: 100%; height: 55%; overflow: visible; }
.spark { fill: none; stroke: var(--navy-l); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease) 1.6s; }
.spark--b { stroke: var(--burg-l); opacity: .8; transition-delay: 1.8s; }
.anim .stage:not(.is-assembled) .spark { stroke-dashoffset: 1; }
.panel--strip .panel__in { align-items: center; justify-content: space-between; gap: 2cqw; padding-inline: 2.6cqw; }
.strip-c { flex: 1; display: grid; gap: 1cqw; }

.ln { display: block; height: calc(var(--lh, 1) * 1cqw); min-height: 3px; width: var(--lw, 100%); border-radius: 99px; background: rgba(255, 255, 255, .17); transform-origin: left center; transition: transform 1s var(--ease) calc(var(--d, 0s) + 1.1s); }
.ln--hi { background: rgba(255, 255, 255, .82); }
.ln--burg { background: var(--burg); height: 3.6cqw; border-radius: 1cqw; }
.ln--navy { background: rgba(125, 163, 234, .3); height: 3.6cqw; border-radius: 1cqw; }
.anim .stage:not(.is-assembled) .ln { transform: scaleX(0); }

@keyframes drift {
  from { transform: translate3d(calc(var(--amp) * -.5), calc(var(--amp) * .8), 0); }
  to   { transform: translate3d(calc(var(--amp) * .6), calc(var(--amp) * -.8), 0); }
}
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes breathe { from { transform: translateY(-5px); } to { transform: translateY(5px); } }

/* ---------- Cards, grids ---------- */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card { display: flex; flex-direction: column; gap: .8rem; padding: 1.9rem 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s ease, background-color .25s ease; }
.card:hover { border-color: var(--line-2); background: var(--surface-2); }
.card p { color: var(--muted); font-size: 1rem; }
.card__icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: .6rem; border-radius: 12px; background: rgba(142, 42, 67, .18); border: 1px solid rgba(208, 114, 138, .3); color: var(--burg-l); }
.card__icon--navy { background: rgba(43, 79, 149, .22); border-color: rgba(125, 163, 234, .32); color: var(--navy-l); }
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.spot { position: relative; overflow: hidden; display: grid; gap: 2.5rem; align-items: center; padding: clamp(1.75rem, 5vw, 4rem); border-radius: 22px; border: 1px solid var(--line-2);
  background: radial-gradient(60% 90% at 100% 100%, rgba(43, 79, 149, .3), transparent 70%), radial-gradient(50% 70% at 0% 0%, rgba(142, 42, 67, .22), transparent 70%), var(--surface); }
@media (min-width: 900px) { .spot { grid-template-columns: 1fr 1.05fr; } }
.spot .btn-row { margin-top: 2rem; }
.spot__art { border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, #0d0e12, #151b2c 75%); overflow: hidden; }
.spot__art svg { width: 100%; height: auto; }

.principles { display: grid; gap: 0; border-top: 1px solid var(--line); }
.principle { display: grid; gap: .4rem 2rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.principle p { color: var(--muted); }
.principle small { display: block; margin-top: .45rem; color: var(--faint); font-size: .85rem; letter-spacing: .02em; }
@media (min-width: 820px) { .principle { grid-template-columns: 5rem 1fr 1.3fr; align-items: baseline; } .principle h3 { font-size: 1.4rem; } }
.principle__n { font-variant-numeric: tabular-nums; color: var(--burg-l); font-weight: 600; font-size: .95rem; letter-spacing: .08em; }

.steps { display: grid; gap: 2rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; } }
.step { padding-top: 1.4rem; border-top: 1px solid var(--line-2); position: relative; }
.step::before { content: ""; position: absolute; left: 0; top: -1px; width: 2.5rem; height: 2px; background: var(--burg-l); }
.step__n { font-variant-numeric: tabular-nums; font-size: .85rem; font-weight: 600; letter-spacing: .14em; color: var(--burg-l); }
.step h3 { margin: .7rem 0 .5rem; }
.step p { color: var(--muted); font-size: 1rem; }

.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(3rem, 8vw, 6rem) 1.5rem; border-radius: 24px; border: 1px solid var(--line-2);
  background: radial-gradient(60% 100% at 50% 0%, rgba(142, 42, 67, .32), transparent 70%), radial-gradient(50% 80% at 100% 100%, rgba(43, 79, 149, .3), transparent 70%), var(--surface); }
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta .lead { margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 2rem; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: clip; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 150%; pointer-events: none; background:
  radial-gradient(36% 42% at 14% 20%, rgba(142, 42, 67, .2), transparent 72%),
  radial-gradient(40% 46% at 90% 30%, rgba(43, 79, 149, .24), transparent 72%); }
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 16ch; }
.page-hero--intro { padding-bottom: clamp(1.25rem, 3vw, 2.25rem); }
.page-hero--intro::before { background: radial-gradient(40% 62% at 12% 28%, rgba(142, 42, 67, .36), transparent 72%), radial-gradient(44% 72% at 92% 38%, rgba(43, 79, 149, .36), transparent 72%); }
.page-hero--intro .eyebrow { font-size: .85rem; margin-bottom: 1.4rem; }
.page-hero--intro .lead { max-width: 38rem; margin-top: 1.6rem; font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: #c3cad6; }
.hero-split { display: grid; gap: 2.5rem; align-items: center; }
/* Display headlines (construction page): large, heavy, pure white; the second half fades from burgundy to navy blue */
.display { max-width: none; font-size: clamp(2.8rem, 6.2vw, 5.4rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; color: #fff; }
.display--xl { font-size: clamp(2.6rem, 7vw, 6.2rem); }
html:lang(hu) .display { font-size: clamp(2.5rem, 5.5vw, 4.8rem); }
html:lang(hu) .display--xl { font-size: clamp(2.3rem, 6vw, 5.4rem); }
.accent-fade { color: #b95b86; /* fallback where gradient text is unsupported */
  background-image: linear-gradient(95deg, #cc4a6c 0%, #9768ae 50%, #4376d2 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (forced-colors: active) { .accent-fade { background: none; -webkit-text-fill-color: currentColor; } }
.hero-split .eyebrow { font-size: .85rem; margin-bottom: 1.4rem; }
.hero-split .lead { max-width: 34rem; margin-top: 1.6rem; font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: #c3cad6; }
.section--glow { position: relative; overflow: clip; }
.section--glow::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(46% 72% at 82% 45%, rgba(142, 42, 67, .32), transparent 72%), radial-gradient(38% 60% at 8% 88%, rgba(43, 79, 149, .26), transparent 72%); }
.section--glow > .container { position: relative; }
.hero-split__visual { display: grid; gap: 1.5rem; }
.hero-split__visual .btn-row { gap: .65rem; }
.hero-split__visual .btn { padding-inline: 1.1rem; }
@media (min-width: 980px) { .hero-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3.5rem; } }
/* Picture and buttons on the left, headline on the right. The HTML keeps the headline first,
   so on phones (and for screen readers) the headline still comes before the picture and buttons. */
@media (min-width: 980px) {
  .hero-split--flip { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .hero-split--flip > :first-child { order: 2; }
}
.blueprint-wrap { padding: 1.25rem; border: 1px solid var(--line-2); border-radius: var(--radius); background-color: #0d1017;
  background-image: linear-gradient(rgba(125, 163, 234, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 163, 234, .08) 1px, transparent 1px); background-size: 28px 28px; }
.blueprint { width: 100%; height: auto; }

/* ---------- Services page ---------- */
.svc { display: grid; gap: 1.25rem 3rem; padding: 2.25rem 0; border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .svc { grid-template-columns: 5rem 1fr 1.2fr; } }
.svc__n { font-variant-numeric: tabular-nums; color: var(--burg-l); font-weight: 600; font-size: .95rem; letter-spacing: .08em; }
.svc h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.svc p { color: var(--muted); }
.ticks { display: grid; gap: .55rem; align-content: start; }
.ticks li { position: relative; padding-left: 1.7rem; color: var(--text); font-size: 1rem; }
.ticks li::before { content: ""; position: absolute; left: .1rem; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--burg-l); border-bottom: 2px solid var(--burg-l); transform: rotate(-45deg); }

.faq { max-width: 52rem; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem 0; font-weight: 600; font-size: 1.1rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.6rem; font-weight: 300; color: var(--burg-l); line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.5rem; color: var(--muted); max-width: 42rem; }


/* ---------- Construction: scroll-built house ---------- */
.build { position: relative; }
.anim .build { height: var(--build-h, 500svh); }
@media (max-width: 959px) { .anim .build { height: var(--build-h, 440svh); } }
.build__sticky { padding-block: 1.5rem 3rem; }
.anim .build__sticky { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding-block: 1rem; }
.build__grid { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 960px) { .build__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; } }
@media (min-width: 1200px) { .build__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4rem; } }
/* Static fallback (no JS / reduced motion): finished house stays in view beside the written stages.
   Temporary site items (scaffolding, crane, stakes) are not part of the finished picture. */
html:not(.anim) .house [data-fx="out"] { display: none; }
html:not(.anim) .build__visual { order: -1; }
@media (min-width: 960px) {
  html:not(.anim) .build__grid { align-items: start; }
  html:not(.anim) .build__visual { order: 0; position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.skip-anim { display: inline-block; margin-bottom: 1.25rem; font-size: .95rem; color: var(--faint); }
html:not(.anim) .skip-anim { display: none; }

.house-card { --p: 1; position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--line-2); aspect-ratio: 5 / 3; max-height: calc(100svh - var(--header-h) - 3rem);
  background: radial-gradient(70% 55% at 50% 92%, rgba(43, 79, 149, .5), transparent 72%), linear-gradient(180deg, #0c0d11 0%, #121726 62%, #1a2540 100%); }
.house-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: calc(var(--p) * var(--p));
  background: radial-gradient(60% 40% at 50% 88%, rgba(142, 42, 67, .5), transparent 72%); }
.house-card svg { position: relative; width: 100%; height: 100%; }
@media (max-width: 959px) { .anim .house-card { aspect-ratio: auto; height: min(34svh, 300px); max-height: none; } }

.caps { display: grid; }
.cap { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.cap__n { font-variant-numeric: tabular-nums; font-size: .86rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--burg-l); }
.cap h3 { margin: .7rem 0 .7rem; font-size: clamp(1.8rem, 3.3vw, 2.6rem); letter-spacing: -.03em; }
.cap h3 + p { max-width: 34rem; font-size: clamp(1.1rem, .9rem + .5vw, 1.3rem); }
.cap p { color: var(--muted); max-width: 30rem; }
.cap__web { margin-top: 1rem; display: inline-flex; gap: .6rem; align-items: baseline; font-size: 1.02rem; color: var(--navy-l); }
.cap__web::before { content: attr(data-label); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.anim .caps { margin-top: 0; }
.anim .cap { grid-area: 1 / 1; padding: 0; border: 0; opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.anim .cap.is-active { opacity: 1; transform: none; pointer-events: auto; }
/* Short phones: keep captions, progress bar and house inside the pinned screen */
@media (max-width: 959px) and (max-height: 720px) {
  .cap h3 { font-size: 1.6rem; margin: .45rem 0; }
  .cap h3 + p { font-size: 1.0625rem; }
  .cap__web { font-size: .95rem; margin-top: .6rem; }
  .skip-anim { margin-bottom: .5rem; }
  .progress { margin-top: 1rem; }
  .anim .house-card { height: min(30svh, 300px); }
}
@media (max-width: 959px) and (max-height: 600px) {
  .cap h3 { font-size: 1.35rem; margin: .3rem 0; }
  .cap h3 + p { font-size: .95rem; line-height: 1.5; }
  .cap__web { font-size: .9rem; margin-top: .4rem; }
  .progress { margin-top: .75rem; }
  .anim .house-card { height: min(24svh, 300px); }
}
.progress { display: none; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 1.75rem; }
.anim .progress { display: grid; }
.seg { height: 3px; background: rgba(255, 255, 255, .14); border-radius: 3px; overflow: hidden; }
.seg i { display: block; height: 100%; background: linear-gradient(90deg, var(--burg), var(--burg-l)); transform: scaleX(var(--f, 0)); transform-origin: left; }

/* House illustration colours (kept here so the SVG stays theme-able) */
.house [data-fx] { transform-box: fill-box; }
.anim .house [data-fx] { visibility: hidden; }
.house .g-line { stroke: #3a3f4c; stroke-width: 2; fill: none; }
.house .g-hl { stroke: #5a606e; stroke-width: 2; fill: none; }
.house .h-excav { fill: #08090b; }
.house .h-conc { fill: #59616f; }
.house .h-conc-l { fill: #7b8291; }
.house .h-slab { fill: #8b92a1; }
.house .h-stone { fill: url(#hs-stone); }
.house .h-dark { fill: #333742; stroke: #596072; stroke-width: 1.5; }
.house .h-darker { fill: #1f2127; }
.house .h-recess { fill: #14161b; }
.house .h-slat { stroke: #3a3e49; stroke-width: 2; fill: none; }
.house .h-glass { fill: url(#hs-glass); }
.house .h-warm { fill: url(#hs-warm); }
.house .h-mull { stroke: #0e121c; stroke-width: 3; fill: none; }
.house .h-refl { fill: rgba(255, 255, 255, .09); }
.house .h-burg { fill: #8e2a43; }
.house .h-burg-l { fill: #a8314e; }
.house .h-steel { fill: #707788; }
.house .h-step { fill: #9aa0ae; }
.house .h-leaf { fill: #2f4a47; }
.house .h-leaf-l { fill: #3e635e; }
.house .h-trunk { fill: #2a2e36; }
.house .h-pv { fill: #1c2f57; stroke: #4c76c4; stroke-width: 1.5; }
.house .h-scaf { stroke: #9aa1b3; stroke-opacity: .5; stroke-width: 2; fill: none; }
.house .h-crane { stroke: #c4506a; stroke-width: 3; stroke-linejoin: round; fill: none; }
.house .h-crane-fill { fill: #5f1a2d; stroke: #c4506a; stroke-width: 2; }
.house .h-cable { stroke: #c4506a; stroke-width: 2.5; fill: none; }
.house .h-stake { fill: #b9bdc8; }
.house .h-flag { fill: #c4506a; }
.house .h-string { stroke: #c4506a; stroke-width: 2; stroke-dasharray: 8 7; fill: none; }
.house .h-rebar { stroke: #c4506a; stroke-width: 2.5; fill: none; }
.house .h-star { fill: #cfd8ee; }
.house .h-moon { fill: #dde4f4; }
.house .h-draw { stroke-linecap: butt; }

/* ---------- Forms / contact ---------- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.35fr 1fr; gap: 5rem; } }
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .92rem; font-weight: 600; }
.field label small { font-weight: 400; color: var(--faint); }
.field input, .field select, .field textarea { width: 100%; padding: .85rem 1rem; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-s); transition: border-color .2s ease, background-color .2s ease; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .28); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #9db8f0; outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 9.5rem; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .93rem; color: var(--muted); }
.consent input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .25rem; accent-color: var(--burg); }
.form__status { padding: 1rem 1.2rem; border: 1px solid var(--line-2); border-left: 3px solid var(--burg-l); border-radius: var(--radius-s); background: var(--surface); }
.form__status[hidden] { display: none; }
.aside-box { padding: 2rem 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 1.75rem; align-self: start; }
.aside-box dl { margin: 0; display: grid; gap: 1.25rem; }
.aside-box dt { font-size: .75rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--burg-l); }
.aside-box dd { margin: .25rem 0 0; font-size: 1.05rem; }
.next { display: grid; gap: .8rem; counter-reset: n; }
.next li { counter-increment: n; display: flex; gap: .85rem; color: var(--muted); font-size: 1rem; }
.next li::before { content: counter(n); flex: none; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text); font-size: .8rem; font-weight: 600; }

.prose { max-width: 44rem; }
.prose h2 { font-size: 1.45rem; margin: 2.5rem 0 .75rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { list-style: disc; padding-left: 1.4rem; display: grid; gap: .4rem; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; padding: 4rem 0 2rem; border-top: 1px solid var(--line); background: var(--bg-2); font-size: .97rem; color: var(--muted); }
.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; } }
.site-footer .brand img { height: 44px; }
.footer__tagline { margin: 1.1rem 0 0; max-width: 24rem; }
.site-footer h3 { margin-bottom: 1rem; font-size: .75rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.site-footer ul { display: grid; gap: .6rem; }
.site-footer a { text-decoration: none; transition: color .2s ease; }
.site-footer a:hover { color: var(--text); }
.footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .88rem; color: var(--faint); }

/* ---------- Subtle reveal (opacity + a few px; easy to swap out) ---------- */
.anim [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s var(--ease); transition-delay: var(--d, 0s); }
.anim [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Hungarian: longer words, so slightly smaller headlines and hyphenated body copy ---------- */
html:lang(hu) p, html:lang(hu) li { hyphens: auto; hyphenate-limit-chars: 7 3 3; /* no tiny fragments like "le-veszi" */ }
html:lang(hu) .site-nav li, html:lang(hu) .site-nav a { hyphens: manual; }
html:lang(hu) .lead, html:lang(hu) .cap p { hyphens: manual; }
html:lang(hu) .page-hero h1 { max-width: 20ch; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}
