/* ==========================================================================
   Vexel — style.css
   Tartalom: 1. Tokenek  2. Alapok  3. Segédosztályok  4. Gombok  5. Navigáció
   6. Hero  7. Szalagok  8. Rólunk  9. Szolgáltatások  10. Folyamat
   11. Csomagok  12. GYIK  13. Kapcsolat  14. Lábléc  15. Jogi oldalak
   16. Animációk  17. Csökkentett mozgás  18. Mobil / érintőképernyő
   ========================================================================== */

/* 1. Tokenek ------------------------------------------------------------- */
:root {
  /* Mély éjkék alap a fekete helyett */
  --bg: #111A2F;
  --bg-rgb: 17, 26, 47;
  --bg-2: #141E36;
  --surface: #19243F;
  --surface-2: #1F2C4B;
  --line: rgba(148, 170, 214, .13);
  --line-2: rgba(148, 170, 214, .22);
  --text: #F1F4FA;
  --muted: #9DA9C0;

  /* Világos „lap” szekció */
  --light: #EDF1F8;
  --light-2: #DFE6F2;
  --ink: #111A2F;
  --ink-muted: #4F5B73;
  --ink-line: rgba(17, 26, 47, .12);

  /* Kék akcentcsalád */
  --indigo: #7C6CFF;
  --blue: #3B82F6;
  --sky: #38BDF8;
  --cyan: #67E8F9;
  --ok: #5EEAD4;
  --amber: #FBBF24;
  --spectrum: linear-gradient(90deg, #7C6CFF, #3B82F6, #38BDF8, #67E8F9);
  --spectrum-soft: linear-gradient(90deg, #C7D2FE, #BFDBFE, #BAE6FD, #A5F3FC);
  --error: #FDA4AF;
  --focus: #93C5FD;

  --font-display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 10vw, 140px);
  --nav-h: 76px;
}

/* 2. Alapok -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent; /* saját :active visszajelzést adunk */
  scroll-behavior: smooth;
  color-scheme: dark;
}
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Finom filmszemcse az egész oldalon */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }

::selection { background: #93C5FD; color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 300;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .3s var(--ease-out);
}
.skip:focus { transform: none; }

/* 3. Segédosztályok ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  /* Notch / kerekített kijelzők: fekvő módban se lógjon a tartalom a kivágás alá */
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.i {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Kiemelt szavak (pl. „létezik.”, „kérdések”): ugyanaz a betű, mint a környező szöveg,
   csak vastagabb és világos kék–cián színátmenetes — jól látható a sötét háttéren.
   A „Rólunk” mondatot a JS sorokra bontja és a kiemeléseket sima <em>-ként írja vissza, ezért kell a második szelektor is. */
.hl, .statement em {
  font-style: normal;
  font-weight: 800;
  padding-right: .06em;
  background: linear-gradient(90deg, #A5B4FC, #7DD3FC, #67E8F9, #A5F3FC);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--ok);
  animation: ping 2.4s var(--ease-out) infinite;
}

.label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.label__line { width: 40px; height: 1px; background: var(--spectrum); }

.section { position: relative; padding-block: var(--section-y); }

.section__head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
@media (min-width: 960px) {
  .section__head { grid-template-columns: 1.5fr 1fr; align-items: end; gap: 64px; }
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  max-width: 15ch;
  text-wrap: balance;
}

.section__lead {
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 18px);
  max-width: 44ch;
  text-wrap: pretty;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.link:hover { background-size: 100% 1px; }
.link .i { width: 18px; height: 18px; color: var(--sky); }

/* 4. Gombok -------------------------------------------------------------- */
.btn {
  --h: 56px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font: 600 16px/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .5s var(--ease-out), color .35s, background-color .35s, box-shadow .35s;
}
.btn .i { width: 18px; height: 18px; transition: transform .45s var(--ease-out); }

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--spectrum-soft);
  transform: translateY(102%);
  transition: transform .55s var(--ease-out);
}

.btn--light { background: var(--text); color: var(--ink); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn--ghost::before { background: var(--text); }

.btn--dark { background: var(--ink); color: var(--light); }

.btn--sm { --h: 44px; padding: 0 20px; font-size: 15px; }
.btn--sm .i { width: 16px; height: 16px; }
.btn[disabled] { cursor: progress; opacity: .7; }

/* 5. Navigáció ----------------------------------------------------------- */
.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: 2px;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--spectrum);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: transform .6s var(--ease-out), background-color .4s, border-color .4s;
}
.nav.is-scrolled {
  background: rgba(var(--bg-rgb), .7);
  border-color: var(--line);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
}
.nav.is-hidden { transform: translateY(-100%); }
html.menu-open .nav { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

.nav__inner { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
  text-decoration: none;
}
.brand__mark { width: 30px; height: 30px; transition: transform .8s var(--ease-out); }
.brand__name { font: 800 25px/1 var(--font-display); letter-spacing: -.045em; }
.brand__dot {
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav__links { display: none; gap: 2px; }
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color .25s, background-color .25s;
}
.nav__links a:hover,
.nav__links a.is-current { color: var(--text); background: rgba(255, 255, 255, .07); }
.nav__cta { display: none; }

.nav__toggle {
  display: grid;
  place-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(var(--bg-rgb), .45);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .5s var(--ease-out);
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 24px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: var(--bg);
  visibility: hidden;
  clip-path: circle(0 at calc(100% - var(--gutter) - 24px) calc(var(--nav-h) / 2));
  transition: clip-path .7s var(--ease-in-out), visibility 0s .7s;
}
.menu.is-open {
  visibility: visible;
  clip-path: circle(150% at calc(100% - var(--gutter) - 24px) calc(var(--nav-h) / 2));
  transition: clip-path .8s var(--ease-in-out), visibility 0s;
}
.menu__links li { overflow: hidden; }
.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 4px 0;
  font: 700 clamp(2.2rem, 10.5vw, 4rem)/1.12 var(--font-display);
  letter-spacing: -.04em;
  text-decoration: none;
  transform: translateY(105%);
  transition: transform .6s var(--ease-out);
}
.menu.is-open .menu__links a {
  transform: none;
  transition: transform .9s var(--ease-out) calc(.18s + var(--i) * .06s);
}
.menu__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.menu__foot a { text-decoration: none; color: var(--text); min-height: 44px; display: inline-flex; align-items: center; }

/* 6. Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 48px) 0 clamp(28px, 4vw, 44px);
  /* --art-x / --art-y: a JS állítja a V helyére, így a derengés és a rács követi */
  background: radial-gradient(ellipse 55% 50% at var(--art-x, 78%) var(--art-y, 30%), rgba(59, 130, 246, .14), transparent 70%);
}
.hero__canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(148, 170, 214, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 170, 214, .07) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 45% 45% at var(--art-x, 78%) var(--art-y, 30%), #000 5%, transparent 75%);
  mask-image: radial-gradient(ellipse 45% 45% at var(--art-x, 78%) var(--art-y, 30%), #000 5%, transparent 75%);
}
/* Sötétítés a szöveg mögött a jó olvashatóságért */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(var(--bg-rgb), .55) 38%, rgba(var(--bg-rgb), 0) 70%),
    linear-gradient(to bottom, rgba(var(--bg-rgb), .6), transparent 18%);
}

.hero__inner { position: relative; }

.hero__title {
  margin: 22px 0 0;
  font-family: var(--font-display);
  /* A Syne 800 nagyon széles: a „Weboldalak,” kb. 9.6em — ehhez igazítjuk */
  font-size: clamp(1.8rem, 9vw, 4.4rem); /* 360 px alatt kisebb, hogy a szikra se lógjon ki */
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.05em;
}
@media (min-width: 1024px) { .hero__title { font-size: clamp(4.4rem, 7.6vw, 8.2rem); } }
.hero__title .line {
  display: block;
  overflow: hidden;
  padding: 0 .12em .1em 0;
  margin-bottom: -.1em;
}
.hero__title .line > span { display: inline-block; }

/* „amikre” után: 4 pixelkocka lépcsőzetesen, mint a logó V-jének jobb szára (díszítőelem) */
.hero__px {
  display: inline-flex;
  align-items: flex-end;
  gap: .07em;
  height: .62em;
  margin-left: .16em;
  vertical-align: .02em;
}
.hero__px i {
  display: block;
  width: .2em;
  height: .2em;
  border-radius: .05em;
  background: var(--c);
  box-shadow: 0 0 .4em -.06em var(--c);
  transform: translateY(var(--y));
  animation:
    pxIn .8s var(--ease-out) calc(.75s + var(--k) * .1s) both,
    pxHop 3s var(--ease-in-out) calc(2.2s + var(--k) * .14s) infinite;
}
.hero__px i:nth-child(1) { --c: #7C6CFF; --y: 0em; --k: 0; }
.hero__px i:nth-child(2) { --c: #3B82F6; --y: -.14em; --k: 1; }
.hero__px i:nth-child(3) { --c: #38BDF8; --y: -.28em; --k: 2; }
.hero__px i:nth-child(4) { --c: #67E8F9; --y: -.42em; --k: 3; }
@keyframes pxIn {
  from { opacity: 0; transform: translateY(calc(var(--y) + .6em)) scale(.3) rotate(90deg); }
  to { opacity: 1; transform: translateY(var(--y)); }
}
@keyframes pxHop {
  0%, 34%, 100% { transform: translateY(var(--y)); filter: none; }
  16% { transform: translateY(calc(var(--y) - .13em)); filter: brightness(1.45); }
}

/* „emlékeznek”: kiíródik, ragyog, fénycsík fut végig rajta, alatta ecsetvonás rajzolódik, a végén szikra */
/* több hely a szó ragyogásának, hogy a sor maszkja ne vágja le (különben téglalap rajzolódna ki) */
.hero__title .line:last-child { padding: .22em .6em .45em .22em; margin: -.22em 0 -.45em -.22em; }
.hero__title .hero__word {
  /* ugyanaz a vastag Syne, mint a többi kiemelt szó (.hl) */
  font-style: normal;
  font-weight: 800;
  line-height: .9;
}
.hero__word {
  position: relative;
  display: inline-block;
  padding-right: .1em;
  /* világos kék–cián átmenet: sötét háttéren is erős kontraszt */
  background-image:
    linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%),
    linear-gradient(90deg, #A5B4FC, #7DD3FC, #67E8F9, #A5F3FC, #C7D2FE, #A5B4FC);
  background-size: 300% 100%, 200% 100%;
  background-repeat: no-repeat, repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 .14em rgba(103, 232, 249, .45));
  animation:
    wordWrite 1.25s var(--ease-out) .45s both,
    wordShine 6s linear 1.9s infinite;
}
@keyframes wordWrite {
  from { clip-path: inset(-40% 100% -40% -5%); }
  to { clip-path: inset(-40% -30% -40% -5%); }
}
@keyframes wordShine {
  0% { background-position: 100% 0, 0% 0; }
  30% { background-position: 0% 0, 60% 0; }
  100% { background-position: 0% 0, 200% 0; }
}
.hero__swoosh {
  position: absolute;
  left: .02em;
  bottom: -.2em;
  width: calc(100% - .16em);
  height: .26em;
  overflow: visible;
  fill: none;
  stroke: url(#spectrumLight);
  stroke-linecap: round;
  pointer-events: none;
}
.hero__swoosh path {
  stroke-width: max(3px, .05em);
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: swooshDraw .9s var(--ease-out) 1.4s forwards;
}
.hero__swoosh .hero__swoosh-2 { stroke-width: max(2px, .03em); opacity: .55; animation-delay: 1.65s; }
@keyframes swooshDraw { to { stroke-dashoffset: 0; } }
.hero__spark {
  position: absolute;
  right: -.24em;
  top: -.04em;
  width: .32em;
  height: .32em;
  overflow: visible;
  animation:
    sparkPop .7s var(--ease-out) 2.1s both,
    sparkTwinkle 3.4s var(--ease-in-out) 3s infinite;
}
@keyframes sparkPop {
  from { opacity: 0; transform: scale(0) rotate(-90deg); }
  to { opacity: 1; transform: none; }
}
@keyframes sparkTwinkle {
  0%, 70%, 100% { opacity: 1; transform: none; }
  80% { opacity: .45; transform: scale(.4) rotate(45deg); }
  90% { opacity: 1; transform: scale(1.25) rotate(90deg); }
}

.hero__bottom { display: grid; gap: 28px; margin-top: clamp(28px, 4vw, 44px); }
.hero__lead {
  max-width: 46ch;
  color: #CDD6E6; /* világosabb, mint a többi másodlagos szöveg: a hero alatt jobban kell látszania */
  font-size: clamp(17px, 1.45vw, 20px);
  font-weight: 500;
  line-height: 1.6;
  text-wrap: pretty;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .hero__bottom { grid-template-columns: 1fr auto; align-items: end; } }

.hero__foot {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(36px, 5vw, 60px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 32px; color: var(--muted); font-size: 15px; }
.hero__facts li { display: inline-flex; align-items: center; gap: 10px; }
.hero__facts .i { width: 16px; height: 16px; color: var(--ok); }
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .3s;
}
.hero__scroll:hover { color: var(--text); }
.hero__scroll .i { width: 16px; height: 16px; animation: bob 2.2s var(--ease-in-out) infinite; }
@media (min-width: 720px) { .hero__foot { display: flex; } }

/* 7. Szalagok ------------------------------------------------------------ */
.bands {
  position: relative;
  height: clamp(150px, 18vw, 230px);
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-top: -20px;
}
.band {
  position: absolute;
  left: -6%;
  right: -6%;
  padding: clamp(12px, 1.4vw, 20px) 0;
  white-space: nowrap;
  overflow: hidden;
}
.band--a {
  z-index: 2;
  background: var(--light);
  color: var(--ink);
  transform: rotate(-3deg);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.band--b {
  background: var(--surface);
  border-block: 1px solid var(--line);
  transform: rotate(2.4deg);
}
.band__track { display: inline-flex; will-change: transform; }
.band__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
  padding-right: clamp(20px, 2.6vw, 40px);
  font: 800 clamp(1.6rem, 3.6vw, 3.1rem)/1.05 var(--font-display);
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.band--b .band__item { color: transparent; -webkit-text-stroke: 1.2px rgba(241, 244, 250, .55); }
.star { width: .62em; height: .62em; flex: none; }

/* 8. Rólunk -------------------------------------------------------------- */
.statement {
  max-width: 28ch;
  font: 600 clamp(1.7rem, 3.6vw, 3.2rem)/1.16 var(--font-display);
  letter-spacing: -.035em;
  text-wrap: pretty;
}
/* Soronkénti beúszás: a JS sorokra bontja a szöveget, a sorok egymás után kicsúsznak a maszk mögül */
.statement .sline {
  display: block;
  overflow: hidden;
  padding: .06em .12em .1em 0;
  margin: -.06em 0 -.1em;
}
.statement .sline__in {
  display: inline-block;
  vertical-align: top; /* különben az alapvonal miatt nagyobb lenne a sorköz, mint animáció után */
  transition: transform 1.1s var(--ease-out) calc(var(--i, 0) * 120ms);
}
.statement.is-split:not(.is-in) .sline__in { transform: translateY(110%); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(56px, 7vw, 96px);
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}
.stat dt { color: var(--muted); font-size: 14px; max-width: 24ch; }
.stat__num { font: 700 clamp(1.9rem, 5vw, 4.4rem)/1 var(--font-display); letter-spacing: -.05em; white-space: nowrap; }
.stat__num small { margin-left: .1em; font-size: .38em; font-weight: 600; letter-spacing: -.01em; color: var(--muted); }
@media (min-width: 640px) { .stats { gap: 24px; } .stat dt { font-size: 15px; } }

/* 9. Szolgáltatások ------------------------------------------------------ */
.bento { display: grid; gap: 16px; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .bento { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}
/* Egérkövető fényfolt */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 0%), rgba(147, 197, 253, .1), transparent 45%);
  opacity: 0;
  transition: opacity .5s;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(147, 197, 253, .85), rgba(103, 232, 249, .35) 35%, transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity .5s;
}

.card__visual {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 210px;
  margin-bottom: 24px;
}
.card__tag { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.card h3 { margin: 8px 0 8px; font: 700 clamp(1.4rem, 2vw, 1.75rem)/1.1 var(--font-display); letter-spacing: -.035em; }
.card__body p:not(.card__tag) { color: var(--muted); font-size: 16px; max-width: 42ch; }

/* Közös „alkalmazás-panel” a kártyák illusztrációihoz */
.panel {
  width: 100%;
  max-width: 320px;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--surface-2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  transition: transform .8s var(--ease-out);
}
.panel ul { list-style: none; margin: 0; padding: 0; }
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.panel__head .i { width: 16px; height: 16px; color: var(--sky); }

/* — Design: rétegzett makettek — */
.mock {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(50%, 210px);
  aspect-ratio: 4 / 3;
  padding: 9px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #1A2542;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  transition: transform 1s var(--ease-out);
}
.mock i { display: block; border-radius: 4px; background: rgba(255, 255, 255, .09); }
.mock .mock__nav { width: 38%; height: 6px; }
.mock .mock__hero { flex: 1; background: linear-gradient(135deg, #263355, #1C2846); }
.mock .mock__ln { width: 78%; height: 5px; }
.mock .mock__ln--s { width: 52%; }
.mock__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mock__row i { height: 16px; }
.mock--l { transform: translate(-96%, -44%) rotate(-8deg); opacity: .8; }
.mock--r { transform: translate(-4%, -56%) rotate(7deg); opacity: .8; }
.mock--c { z-index: 2; transform: translate(-50%, -50%); background: #202D4E; }
.mock--c .mock__hero { background: linear-gradient(120deg, #C7D2FE, #93C5FD 40%, #67E8F9); }
.mock--l .mock__hero { background: linear-gradient(135deg, #34307A, #1C2846); }
.mock--r .mock__hero { background: linear-gradient(135deg, #0F4C6B, #1C2846); }

.cursor {
  position: absolute;
  left: 56%;
  top: 34%;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  animation: cursor 9s var(--ease-in-out) infinite;
}
.cursor svg { width: 20px; height: 20px; fill: var(--cyan); stroke: var(--bg); stroke-width: 1.5; stroke-linejoin: round; }
.cursor b {
  margin: 16px 0 0 -2px;
  padding: 3px 9px;
  border-radius: 6px 10px 10px 10px;
  background: var(--cyan);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

/* — Admin: felhasználók és jogosultságok — */
.perm li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-top: 1px solid var(--line);
}
.perm li div { flex: 1; min-width: 0; font-size: 14px; line-height: 1.25; }
.perm li b { display: block; font-weight: 700; }
.perm li small { color: var(--muted); font-size: 12px; }
.av {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c);
  color: var(--ink);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}
.role { flex: none; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.role--full { background: rgba(124, 108, 255, .2); color: #C7D2FE; }
.role--edit { background: rgba(56, 189, 248, .16); color: #BAE6FD; }
.role--view { background: rgba(94, 234, 212, .14); color: #99F6E4; }

/* — Statisztika — */
.chart__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 0 4px; }
.chart__head small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.chart__head b { font: 700 30px/1.15 var(--font-display); letter-spacing: -.04em; }
.chart__trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(94, 234, 212, .14);
  color: #99F6E4;
  font-size: 12px;
  font-weight: 700;
}
.chart__trend .i { width: 14px; height: 14px; }
.chart__bars { display: flex; align-items: flex-end; gap: 8px; height: 92px; margin-top: 16px; padding: 0 4px; }
.chart__bars i {
  flex: 1;
  height: calc(var(--v) * 100%);
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #38BDF8, rgba(59, 130, 246, .3));
  transform-origin: bottom;
  transition: transform .9s var(--ease-out) calc(var(--i, 0) * 70ms + .2s);
}
.chart__bars i:last-child { background: linear-gradient(180deg, #A5F3FC, #38BDF8); }
.js .card:not(.is-in) .chart__bars i { transform: scaleY(.08); }
.chart__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 8px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

/* — Naptár — */
.cal__grid {
  display: grid;
  grid-template-columns: 38px repeat(5, 1fr);
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}
.cal__grid .dh { text-align: center; line-height: 1.2; }
.cal__grid .dh b { display: block; color: var(--text); font-size: 13px; }
.cal__grid .t { align-self: center; }
.cal__grid i { height: 24px; border-radius: 6px; background: rgba(148, 170, 214, .08); }
.cal__grid i.busy { background: linear-gradient(135deg, rgba(59, 130, 246, .8), rgba(124, 108, 255, .7)); }
.cal__grid i.new {
  background: linear-gradient(135deg, #67E8F9, #38BDF8);
  box-shadow: 0 0 0 3px rgba(103, 232, 249, .22);
  animation: glow 2.4s var(--ease-in-out) infinite;
}

/* — Google — */
.serp { display: grid; gap: 10px; width: 100%; max-width: 320px; transition: transform .8s var(--ease-out); }
.serp__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 14px;
}
.serp__bar .i { width: 16px; height: 16px; }
.serp__bar span::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--text);
  animation: blink 1.1s steps(1) infinite;
}
.serp__res {
  position: relative;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.serp__res small { color: var(--muted); font-size: 12px; }
.serp__res b { display: block; margin: 2px 0 6px; color: #93C5FD; font-size: 15px; font-weight: 700; }
.serp__rank {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(56, 189, 248, .16);
  color: #BAE6FD;
  font-size: 11px;
  font-weight: 700;
}
.serp__stars { display: flex; align-items: center; gap: 2px; color: var(--amber); }
.serp__stars .i { width: 13px; height: 13px; }
.serp__stars em { margin-left: 6px; color: var(--muted); font-size: 12px; font-style: normal; font-weight: 600; }
.serp__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.serp__tags li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.serp__tags .i { width: 13px; height: 13px; color: var(--ok); }

/* — Webshop — */
.prod {
  width: min(100%, 200px);
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--surface-2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  transform: rotate(-4deg) translateX(-14%);
  transition: transform .8s var(--ease-out);
}
.prod__img {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / .78;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 25%, #2C3A60, #16203A);
}
.prod__img span {
  width: 44%;
  aspect-ratio: 1;
  border-radius: 38% 38% 46% 46% / 30% 30% 60% 60%;
  background: linear-gradient(145deg, #C7D2FE, #67E8F9 60%, #38BDF8);
  box-shadow: inset -8px -10px 18px rgba(0, 0, 0, .28), 0 20px 30px -12px rgba(56, 189, 248, .45);
}
.prod__info { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-top: 10px; font-size: 13px; line-height: 1.3; }
.prod__info b { display: block; font-weight: 700; }
.prod__info small { color: var(--muted); font-size: 11.5px; }
.prod__price { white-space: nowrap; }
.prod__btn {
  display: block;
  margin-top: 10px;
  padding: 9px;
  border-radius: 10px;
  background: var(--text);
  color: var(--ink);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.toast {
  position: absolute;
  right: 2%;
  top: 8%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(31, 44, 75, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
  font-size: 13px;
  line-height: 1.3;
  animation: toast 5.5s var(--ease-out) infinite;
}
.toast--bl { top: auto; right: auto; bottom: 2%; left: 0; animation-delay: 1.8s; }
.toast b { display: block; }
.toast small { color: var(--muted); font-size: 12px; }
.toast__ic {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(94, 234, 212, .15);
  color: var(--ok);
}
.toast__ic .i { width: 16px; height: 16px; }

/* 10. (A Folyamat szekció kikerült az oldalról) --------------------------- */

/* 11. Csomagok ----------------------------------------------------------- */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
/* Egymás alatt nagyobb sorköz kell, hogy a kiemelt kártya füle ne érjen a felette lévőhöz */
.plans { display: grid; gap: 36px 16px; max-width: 1040px; padding-top: 16px; }
@media (min-width: 820px) {
  .plans { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
  /* Subgrid: az árak és gombok mindkét kártyán egy vonalba kerülnek */
  @supports (grid-template-rows: subgrid) {
    .plans { grid-template-rows: repeat(6, auto); row-gap: 0; }
    .plans > .plan { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }
  }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  transition: transform .6s var(--ease-out), border-color .4s;
}
.plan--featured {
  background: var(--surface);
  border-color: transparent;
  box-shadow: 0 40px 120px -40px rgba(59, 130, 246, .55), 0 0 90px -30px rgba(103, 232, 249, .3);
}
.plan--featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  background: conic-gradient(from var(--angle), #7C6CFF, #3B82F6, #38BDF8, #67E8F9, #3B82F6, #7C6CFF);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 7s linear infinite;
}
/* „Fül” a kártya felső szélén, középen — így semmilyen képernyőn nem fed rá a tartalomra */
.plan__badge {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  max-width: calc(100% - 32px);
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--spectrum-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  /* háttérszínű gyűrű: a keret „megszakad” a fül körül */
  box-shadow: 0 0 0 4px var(--bg);
}
@media (max-width: 359px) { .plan__badge { white-space: normal; } }
.plan__name { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.plan__title { margin: 10px 0 10px; font: 700 clamp(1.6rem, 2.4vw, 2.1rem)/1.1 var(--font-display); letter-spacing: -.035em; }
.plan__desc { color: var(--muted); font-size: 15.5px; }
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 24px 0 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.plan__price b { font: 700 clamp(2.4rem, 4vw, 3.4rem)/1 var(--font-display); letter-spacing: -.05em; white-space: nowrap; }
.plan__price span { color: var(--muted); font-weight: 600; }
.plan__cta { width: 100%; }
.plan__body { margin-top: 26px; }
.plan__features { display: grid; gap: 12px; }
.plan__features li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.plan__features .i { width: 18px; height: 18px; margin-top: 3px; color: var(--ok); }
.plan__features .is-meta, .plan__features .is-meta .i { color: var(--muted); }

.plan__extra { margin-top: 22px; padding: 16px 18px; border: 1px dashed var(--line-2); border-radius: 16px; }
.plan__extra p { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.plan__extra ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.plan__extra li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, .12);
  color: #BAE6FD;
  font-size: 14px;
  font-weight: 600;
}
.plan__extra .i { width: 14px; height: 14px; }
.fineprint { margin-top: 20px; color: var(--muted); font-size: 14px; }

/* 12. GYIK --------------------------------------------------------------- */
.faq__grid { display: grid; gap: 40px; }
.faq__intro .link { margin-top: 18px; }
@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: 5fr 7fr; gap: 96px; }
  .faq__intro { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
}
.faq__list { border-top: 1px solid var(--line-2); }
.qa { border-bottom: 1px solid var(--line-2); }
.qa h3 { font: inherit; }
.qa__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 76px;
  padding: 20px 0;
  border: 0;
  background: none;
  text-align: left;
  font: 600 clamp(1.1rem, 1.6vw, 1.3rem)/1.35 var(--font-body);
  letter-spacing: -.01em;
  cursor: pointer;
}
.qa__icon {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: transform .5s var(--ease-out), background-color .35s, border-color .35s;
}
.qa__icon::before, .qa__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 2px;
  background: currentColor;
  transition: background-color .35s;
}
.qa__icon::after { transform: rotate(90deg); }
.qa.is-open .qa__icon { transform: rotate(135deg); background: var(--text); border-color: var(--text); }
.qa.is-open .qa__icon::before, .qa.is-open .qa__icon::after { background: var(--ink); }
.qa__a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .55s var(--ease-out); }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 0 24px; color: var(--muted); max-width: 62ch; }
@media (min-width: 640px) { .qa__a p { padding-right: 64px; } }
.js .qa:not(.is-open) .qa__a { grid-template-rows: 0fr; }
.js .qa:not(.is-open) .qa__a > div { visibility: hidden; transition: visibility 0s .55s; }

/* 13. Kapcsolat ---------------------------------------------------------- */
.contact { padding-bottom: clamp(72px, 9vw, 120px); }
.contact__title {
  max-width: 17ch;
  font: 700 clamp(2.3rem, 5.6vw, 5.2rem)/.98 var(--font-display);
  letter-spacing: -.045em;
  text-wrap: balance;
}
/* telefonon a vastag, kiemelt „emlékezetes” szó is férjen ki egy sorban */
@media (max-width: 559px) { .contact__title { font-size: min(2.3rem, 8.7vw); } }

.contact__grid { display: grid; gap: 40px; margin-top: clamp(40px, 5vw, 72px); }
@media (min-width: 1024px) { .contact__grid { grid-template-columns: 5fr 7fr; gap: 96px; } }

.contact__lead { color: var(--muted); font-size: 18px; max-width: 38ch; }
.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 20px;
  font: 700 clamp(1.2rem, 2.1vw, 1.65rem)/1.2 var(--font-display);
  letter-spacing: -.03em;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .5s var(--ease-out);
  word-break: break-all;
}
.contact__mail:hover { background-size: 100% 2px; }
.contact__mail .i { width: 22px; height: 22px; color: var(--sky); }
.next { margin-top: 36px; counter-reset: n; }
.next li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 14px 0 14px 52px;
  border-top: 1px solid var(--line);
  counter-increment: n;
}
.next li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 12px;
  font: 700 21px/1 var(--font-display);
  letter-spacing: -.03em;
  color: #93C5FD;
}
.next span { color: var(--muted); font-size: 15.5px; }

.form-wrap {
  position: relative;
  padding: clamp(24px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}
.form { display: grid; gap: 28px; }
.form__row { display: grid; gap: 28px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.req { color: #93C5FD; }
.opt { color: var(--muted); font-weight: 500; }
.field__ctl { position: relative; }
.field__ctl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--spectrum);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.field__ctl:focus-within::after { transform: scaleX(1); }
.field input, .field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  font-size: 18px;
  outline: none;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: rgba(148, 170, 214, .4); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 100px var(--surface) inset; caret-color: var(--text); }
.field__err { margin-top: 8px; color: var(--error); font-size: 14px; font-weight: 600; }
.field__err:empty { display: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: background-color .3s, color .3s, border-color .3s;
}
.chip:hover span { border-color: rgba(148, 170, 214, .5); }
.chip input:checked + span { background: var(--text); border-color: var(--text); color: var(--ink); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__foot { display: grid; gap: 20px; align-items: center; }
@media (min-width: 640px) { .form__foot { grid-template-columns: 1fr auto; } }
.form__legal { color: var(--muted); font-size: 14px; }
.form__legal a { display: inline-block; padding: 10px 0; margin: -10px 0; color: var(--text); text-underline-offset: 3px; }
.form__status { color: var(--muted); font-size: 15px; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--error); font-weight: 600; }
.form__status a { color: var(--text); }
.form__submit[aria-busy="true"] .i { animation: nudge .9s var(--ease-in-out) infinite; }

.form__success { display: grid; justify-items: start; gap: 14px; padding: 24px 0; }
.form__success[hidden] { display: none; }
.form__success-ic {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--spectrum-soft);
  color: var(--ink);
  animation: pop .8s var(--ease-out) both;
}
.form__success-ic .i { width: 30px; height: 30px; stroke-width: 2.5; }
.form__success h3 { font: 700 clamp(1.8rem, 3vw, 2.6rem)/1.05 var(--font-display); letter-spacing: -.04em; outline: none; }
.form__success p { color: var(--muted); max-width: 44ch; }

/* 14. Lábléc ------------------------------------------------------------- */
.footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(59, 130, 246, .18), transparent 70%), var(--bg);
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer__top { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.footer__claim {
  margin-bottom: 24px;
  font: 700 clamp(2rem, 4vw, 3.2rem)/1.02 var(--font-display);
  letter-spacing: -.04em;
  max-width: 16ch;
}
.footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer__h { margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  transition: color .3s;
  word-break: break-word;
}
.footer__nav a:hover { color: #93C5FD; }

.footer__word {
  margin: clamp(36px, 5vw, 72px) 0 0;
  font: 800 19vw/.8 var(--font-display); /* a pontos méretet a JS illeszti a szélességhez */
  letter-spacing: -.07em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(199, 210, 254, 1), rgba(56, 189, 248, .85) 30%, rgba(59, 130, 246, .4) 50%, transparent 68%),
    linear-gradient(180deg, #24304F 0%, #172038 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateY(.06em);
}

.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__bottom a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; transition: color .3s; }
.footer__bottom a:hover { color: var(--text); }
.totop .i { width: 15px; height: 15px; transition: transform .4s var(--ease-out); }
.totop:hover .i { transform: translateY(-3px); }

/* 15. Jogi aloldalak ----------------------------------------------------- */
.legal { padding: calc(var(--nav-h) + 72px) 0 96px; }
.legal h1 { font: 700 clamp(2.4rem, 6vw, 4.4rem)/1 var(--font-display); letter-spacing: -.045em; margin-bottom: 24px; }
.legal h2 { font: 700 1.5rem/1.2 var(--font-display); letter-spacing: -.03em; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); max-width: 70ch; }
.legal dl { display: grid; grid-template-columns: minmax(140px, auto) 1fr; gap: 10px 24px; max-width: 760px; }
.legal dt { color: var(--muted); }
.legal .note { margin: 24px 0; padding: 16px 20px; border: 1px dashed var(--amber); border-radius: var(--radius-sm); color: var(--amber); }

/* 16. Animációk ---------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1.2s var(--ease-out) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js .hero__title .line > span { transform: translateY(110%); animation: rise 1.25s var(--ease-out) forwards; }
.js .hero__title .line:nth-child(2) > span { animation-delay: .1s; }
.js .hero__title .line:nth-child(3) > span { animation-delay: .2s; }
.js .hero__eyebrow, .js .hero__bottom, .js .hero__foot { opacity: 0; animation: fadeUp 1.1s var(--ease-out) forwards; }
.js .hero__eyebrow { animation-delay: .05s; }
.js .hero__bottom { animation-delay: .45s; }
.js .hero__foot { animation-delay: .65s; }

@keyframes rise { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes sweep { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { --angle: 360deg; } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgba(103, 232, 249, .1); } }
@keyframes cursor {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-90px, 40px); }
  50% { transform: translate(-30px, 80px); }
  75% { transform: translate(50px, 30px); }
}
@keyframes toast {
  0%, 10% { opacity: 0; transform: translateY(12px) scale(.94); }
  18%, 72% { opacity: 1; transform: none; }
  82%, 100% { opacity: 0; transform: translateY(-8px) scale(.98); }
}

/* 17. Csökkentett mozgás ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .cursor, .toast { animation: none; }
}

/* „E-mail cím másolva” üzenet ---------------------------------------------- */
.ctoast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 80;
  /* ikon | cím | gomb — alatta az e-mail cím a teljes szélességben, hogy ne törjön */
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "ic title act" "ic addr addr";
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 10px 10px 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: rgba(var(--bg-rgb), .94);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .75), 0 0 0 1px rgba(103, 232, 249, .08);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 18px) scale(.96);
  transition: transform .4s var(--ease-out), opacity .25s, visibility 0s .4s;
}
.ctoast.is-show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  transition: transform .5s var(--ease-out), opacity .25s, visibility 0s;
}
/* telefonon a lebegő ajánlatkérő sáv fölé kerül, teljes szélességben */
@media (max-width: 959px) { .ctoast { bottom: calc(86px + env(safe-area-inset-bottom)); } }
@media (max-width: 559px) { .ctoast { width: calc(100% - 24px); } }
.ctoast__ic {
  grid-area: ic;
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(94, 234, 212, .16);
  color: var(--ok);
}
.ctoast__ic .i { width: 18px; height: 18px; stroke-width: 2.5; }
.ctoast.is-error .ctoast__ic { background: rgba(253, 164, 175, .16); color: var(--error); }
.ctoast__title { grid-area: title; font-size: 15px; font-weight: 700; line-height: 1.3; }
.ctoast__addr {
  grid-area: addr;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  user-select: all;
}
.ctoast__act {
  grid-area: act;
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.ctoast__act:active { transform: scale(.96); }

/* 18. Mobil / érintőképernyő --------------------------------------------- */

/* Hover-effektusok csak egérrel — érintőképernyőn nem „ragadnak be” */
@media (hover: hover) and (pointer: fine) {
  .btn:hover .i { transform: translateX(3px); }
  .btn:hover::before { transform: none; }
  .btn--light:hover { box-shadow: 0 10px 40px -10px rgba(56, 189, 248, .6); }
  .btn--ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--text); }
  .btn--dark:hover { color: var(--ink); }
  .brand:hover .brand__mark { transform: rotate(-12deg) scale(1.06); }
  .card:hover::before, .card:hover::after { opacity: 1; }
  .card:hover .panel, .card:hover .serp { transform: translateY(-6px); }
  .card:hover .mock--l { transform: translate(-110%, -42%) rotate(-11deg); }
  .card:hover .mock--r { transform: translate(10%, -58%) rotate(10deg); }
  .card:hover .mock--c { transform: translate(-50%, -54%) scale(1.04); }
  .card:hover .prod { transform: rotate(-1deg) translateX(-14%) translateY(-6px); }
  .plan:hover { transform: translateY(-6px); border-color: var(--line-2); }
}

/* Érintéskor azonnali, finom visszajelzés */
.btn:active, .nav__toggle:active, .mbar__icon:active { transform: scale(.96); transition-duration: .12s; }
.chip span { transition: background-color .3s, color .3s, border-color .3s, transform .15s; }
.chip:active span { transform: scale(.96); }

/* Telefon: teljes szélességű gombok a könnyű hüvelykujj-eléréshez */
@media (max-width: 559px) {
  .hero__ctas .btn, .form__submit { width: 100%; }
  /* Telefonon nem teljes képernyős a hero: a V a címke fölötti kompakt sávban ül */
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 168px); padding-bottom: 32px; }
  .hero__bottom { gap: 24px; }
  /* Telefonon a „Mi történik ezután?” lista elmarad, hogy az űrlap előrébb kerüljön */
  .next { display: none; }
  .contact__grid { gap: 28px; }
}

/* Telefon: a szolgáltatások vízszintesen lapozható kártyák — sokkal rövidebb oldal */
.bento__nav { display: none; }
@media (max-width: 719px) {
  .bento {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .bento::-webkit-scrollbar { display: none; }
  .bento > .card { flex: 0 0 86%; min-height: 0; scroll-snap-align: start; }
  .js .bento > .card[data-reveal] { opacity: 1; transform: none; }
  .card__visual { min-height: 200px; }

  .bento__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
  }
  .bento__dots { display: flex; gap: 6px; }
  .bento__dots i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--line-2);
    transition: width .4s var(--ease-out), background-color .3s;
  }
  .bento__dots i.is-on { width: 24px; background: var(--sky); }
  .bento__hint { display: inline-flex; align-items: center; gap: 8px; transition: opacity .5s; }
  .bento__hint.is-done { opacity: 0; }
  .bento__hint .i { width: 16px; height: 16px; animation: nudge 1.6s var(--ease-in-out) infinite; }
}

/* Telefon/tablet: lebegő ajánlatkérő sáv a képernyő alján */
.mbar { display: none; }
@media (max-width: 959px) {
  .mbar {
    position: fixed;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 50;
    display: flex;
    gap: 8px;
    max-width: 520px;
    margin-inline: auto;
    padding: 6px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: rgba(var(--bg-rgb), .8);
    backdrop-filter: saturate(1.4) blur(16px);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6);
    transform: translateY(calc(100% + 32px + env(safe-area-inset-bottom)));
    transition: transform .5s var(--ease-out);
  }
  .mbar.is-visible { transform: none; }
  html.menu-open .mbar { transform: translateY(calc(100% + 32px + env(safe-area-inset-bottom))); }
  .mbar__cta { flex: 1; --h: 52px; }
  .mbar__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    color: var(--text);
    transition: transform .2s;
  }
  .mbar__icon .i { width: 20px; height: 20px; }
}
/* nagyon keskeny telefonon is férjen ki az „Indítsuk el a projekted” felirat */
@media (max-width: 359px) {
  .mbar__cta { padding-inline: 14px; font-size: 15px; }
}

/* 19. Asztali nézet: tömörebb térközök a blokkok között ------------------- */
/* (960 px felett; a telefonos és tabletes nézet nem változik) */
@media (min-width: 960px) {
  :root { --section-y: clamp(56px, 5.5vw, 88px); } /* két szekció között kb. 140-175 px a korábbi 256-280 helyett */
  .section__head { margin-bottom: clamp(32px, 3vw, 48px); }
  .stats { margin-top: clamp(40px, 4vw, 56px); }
  .bands { height: clamp(150px, 12.5vw, 200px); }
  .contact { padding-bottom: var(--section-y); }
  .contact__grid { margin-top: clamp(32px, 3vw, 48px); }
  .footer { padding-top: clamp(48px, 5vw, 72px); }
  .footer__word { margin-top: clamp(28px, 3vw, 48px); }
}