/* VINC3NT DESIGN — egyetlen, sötét téma (a márka sötét) */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;

  /* típusskála */
  --text-xs: 0.75rem; --text-sm: 0.875rem; --text-base: 1rem; --text-lg: 1.25rem; --text-xl: 1.5rem;
  --text-2xl: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  --text-3xl: clamp(2rem, 1.2rem + 3.2vw, 3rem);
  --text-4xl: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);

  /* térközök */
  --space-xs: 0.5rem; --space-sm: 0.75rem; --space-md: 1rem;
  --space-lg: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  --space-xl: clamp(2rem, 1rem + 4vw, 4rem);
  --space-section: clamp(4rem, 2rem + 7vw, 9rem);
  --gutter: clamp(1rem, 5vw, 4rem);
  --content-max: 72rem;

  /* mozgás */
  --dur-instant: 100ms; --dur-fast: 150ms; --dur-base: 200ms; --dur-slow: 300ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* hideg palaszürke skála (a fodorvincent.com háttere alapján) */
  --slate-950: #040405; --slate-900: #0b0c0e; --slate-850: #191e26; --slate-800: #1e242d;
  --slate-700: #2a313c; --slate-500: #6b7890; --slate-400: #8d9bb3; --slate-300: #a9b7cf; --slate-100: #e6ebf3;
  /* Deep Olive (a SuttoGo témájából, Theme.swift) – a márka kiemelőszíne */
  --brand-300: #c2c6a3; --brand-400: #a8aa82; --brand-500: #919567; --brand-700: #4f5430; --brand-900: #1e220f;

  --background: var(--slate-900);
  --card: rgb(255 255 255 / 0.025);
  --card-hover: rgb(255 255 255 / 0.045);
  --border: rgb(255 255 255 / 0.08);
  --border-strong: rgb(255 255 255 / 0.16);
  --foreground: var(--slate-100);
  --description: var(--slate-300);
  --muted-foreground: var(--slate-400);
  --accent: var(--brand-400);
  --chip: rgb(255 255 255 / 0.06);
  --ring: var(--slate-300);
}

* { box-sizing: border-box; }
html { background: var(--slate-950); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; position: relative; overflow-x: hidden;
  /* a fodorvincent.com háttere, sokkal sötétebbre véve */
  background: radial-gradient(120% 90% at 50% 0%, #121417 0%, #07080a 55%, #040405 100%) no-repeat;
  color: var(--foreground);
  font: var(--text-base)/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- háttér: fentről jövő fény + szemcse ---------- */
.bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-light {
  position: absolute; inset: 0 0 auto; height: min(95vh, 60rem);
  background: url("/assets/img/light.webp") center top / cover no-repeat;
  mix-blend-mode: screen; opacity: 0.4;
  transform-origin: 50% 0; will-change: transform; /* a motion.js finoman az egér felé fordítja */
  animation: light-in 2.4s var(--ease-out) both;
}
@keyframes light-in { from { opacity: 0; } to { opacity: 0.4; } }
.bg-grain {
  position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* pontmező: csak a lap alsó részén, felfelé elhalványul */
.field {
  position: absolute; inset: auto 0 0; height: min(110svh, 64rem); z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 55%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 55%);
}
.field canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.container { position: relative; z-index: 1; width: min(100% - 2 * var(--gutter), var(--content-max)); margin-inline: auto; }

/* ---------- fejléc ---------- */
.topbar { position: relative; z-index: 2; display: flex; justify-content: flex-end; padding-block: var(--space-md); }
.langs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--chip); }
.langs a {
  min-width: 44px; min-height: 36px; display: inline-grid; place-items: center; border-radius: 999px;
  color: var(--muted-foreground); text-decoration: none; font-size: var(--text-sm); font-weight: 500;
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.langs a[aria-current="page"] { background: rgb(255 255 255 / 0.12); color: var(--foreground); }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 1; text-align: center; padding-block: clamp(3rem, 1.5rem + 8vw, 8rem) var(--space-section); }
.logo { width: clamp(13rem, 10rem + 12vw, 20rem); margin: 0 auto var(--space-xl);
  animation: logo-in 1.6s var(--ease-out) 0.1s both, glow 6s var(--ease-in-out) 1.8s infinite; }
@keyframes logo-in { from { opacity: 0; transform: scale(1.08); filter: blur(16px); } to { opacity: 0.85; transform: none; filter: blur(0); } }
@keyframes glow {
  0%, 100% { opacity: 0.85; filter: drop-shadow(0 0 0 rgb(255 255 255 / 0)); }
  50% { opacity: 1; filter: drop-shadow(0 0 8px rgb(255 255 255 / 0.45)) drop-shadow(0 0 22px rgb(255 255 255 / 0.22)); }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 var(--space-lg);
  font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground);
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgb(168 170 130 / 0.6); }
h1 {
  margin: 0 auto; max-width: 20ch; font-size: var(--text-4xl); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance;
}
.lead { margin: var(--space-lg) auto 0; max-width: 48ch; font-size: var(--text-lg); line-height: 1.5; color: var(--description); text-wrap: pretty; }
.cta {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 52px; margin-top: var(--space-xl); padding: 0 1.5rem 0 1.75rem;
  border-radius: 10px; background: #0d1014; color: #f1f4f9; text-decoration: none; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1), 0 10px 30px rgb(0 0 0 / 0.35);
  transition: background-color var(--dur-base) var(--ease-out), transform var(--dur-instant) var(--ease-out);
}
.cta svg { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-out); }
.cta:active { transform: scale(0.98); }

/* ---------- szekciók ---------- */
section { position: relative; z-index: 1; padding-block: 0 var(--space-section); }
.label {
  margin: 0; font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground);
}
.split { display: grid; gap: var(--space-md) var(--space-xl); border-top: 1px solid var(--border); padding-top: var(--space-lg); }
@media (min-width: 64rem) { .split { grid-template-columns: 14rem 1fr; } }
h2 { margin: 0; max-width: 24ch; font-size: var(--text-3xl); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.prose > p { margin: var(--space-md) 0 0; max-width: 62ch; font-size: var(--text-lg); line-height: 1.55; color: var(--description); text-wrap: pretty; }
.prose > p:first-of-type { margin-top: var(--space-lg); }

.pillars { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.pillars li {
  padding: var(--space-lg); border-radius: 18px; background: var(--card); border: 1px solid var(--border);
  backdrop-filter: blur(6px); transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.pillars .n { font-size: var(--text-xs); font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.pillars h3 { margin: var(--space-md) 0 0; font-size: var(--text-lg); font-weight: 600; line-height: 1.4; }
.pillars p { margin: var(--space-xs) 0 0; font-size: var(--text-sm); line-height: 1.6; color: var(--description); text-wrap: pretty; }

/* ---------- projektek: fehér, halvány logók, hoverre hófehér ---------- */
.logos { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); align-items: center; }
.logos li { display: flex; align-items: center; min-height: 44px; }
/* a fehér és a színes logó egymáson; hoverre a színes úszik be */
.partner { display: grid; align-items: center; justify-items: start; min-height: 44px; text-decoration: none; }
.partner img { grid-area: 1 / 1; width: auto; height: auto; max-width: 100%; max-height: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  transition: opacity var(--dur-slow) var(--ease-out); }
.partner img.tall { max-height: clamp(2.25rem, 1.8rem + 1.4vw, 3rem); }
/* fehér logó: lassan pulzáló fehér fény (a --pulse 0→1→0 animálódik, így az opacity hoverre szabadon átváltható) */
@property --pulse { syntax: "<number>"; inherits: false; initial-value: 0; }
@keyframes pulse { 0%, 100% { --pulse: 0; } 50% { --pulse: 1; } }
.partner { transition: transform var(--dur-slow) var(--ease-out); }
.partner .w {
  opacity: calc(0.32 + var(--pulse) * 0.22);
  filter: drop-shadow(0 0 calc(var(--pulse) * 7px) rgb(255 255 255 / calc(var(--pulse) * 0.55)));
  animation: pulse 5s var(--ease-in-out) infinite;
}
.logos > li:nth-child(2) .w { animation-delay: -1.25s; }
.logos > li:nth-child(3) .w { animation-delay: -2.5s; }
.logos > li:nth-child(4) .w { animation-delay: -3.75s; }
/* színes logó: finom, sötét árnyék a logó mögött */
.partner .c { opacity: 0; filter: drop-shadow(0 6px 12px rgb(0 0 0 / 0.45)) drop-shadow(0 1px 2px rgb(0 0 0 / 0.3)); }
.partner:focus-visible .w { opacity: 0; }
.partner:focus-visible .c { opacity: 1; }
a.partner:active { transform: scale(1.02); }

/* ---------- saját alkalmazások ---------- */
.apps { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.apps li {
  display: flex; flex-direction: column; gap: var(--space-md);
  padding: var(--space-lg); border-radius: 18px; background: var(--card); border: 1px solid var(--border);
  backdrop-filter: blur(6px); transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.apps img { width: 3.5rem; height: 3.5rem; object-fit: contain; border-radius: 12px; }
.apps h3 { margin: 0; font-size: var(--text-lg); font-weight: 600; line-height: 1.3; }
.apps .platform { display: inline-block; margin-top: 0.35rem; padding: 0.15rem 0.5rem; border-radius: 6px; background: var(--chip);
  font-size: var(--text-xs); font-weight: 500; color: var(--muted-foreground); }
.apps p { margin: var(--space-sm) 0 0; font-size: var(--text-sm); line-height: 1.6; color: var(--description); text-wrap: pretty; }

/* ---------- kapcsolat ---------- */
.contact .note { margin: var(--space-md) 0 0; max-width: 52ch; color: var(--description); text-wrap: pretty; }

/* ---------- tervezői elemek: Figma-szerű kijelölés ---------- */
:root { --sel: rgb(168 170 130 / 0.75); --sel-line: rgb(168 170 130 / 0.4); --mark: rgb(255 255 255 / 0.3); }
.hd { position: absolute; z-index: 2; width: 7px; height: 7px; background: var(--slate-950); border: 1px solid var(--sel); pointer-events: none; }
.hd.tl { top: -4px; left: -4px; } .hd.tr { top: -4px; right: -4px; }
.hd.bl { bottom: -4px; left: -4px; } .hd.br { bottom: -4px; right: -4px; }

/* főcím kijelölve, ahogy a Figmában: keret, fogantyúk, rétegnév és méret */
.sel { position: relative; width: fit-content; max-width: 100%; margin: 0 auto 1.75rem; padding: 0.1em 0.3em 0.15em; }
.sel::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--sel-line); pointer-events: none; }
.sel-tag, .sel-size, .frame-size {
  position: absolute; font-size: 0.6875rem; font-weight: 500; line-height: 1; letter-spacing: 0.02em; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.sel-tag { bottom: calc(100% + 8px); left: -1px; color: var(--accent); }
.sel-size, .frame-size { top: calc(100% + 10px); left: 50%; translate: -50% 0; padding: 4px 6px; border-radius: 4px; background: var(--brand-400); color: #111409; }
.sel-size:empty { display: none; }
.sel::before, .sel .hd, .sel-tag, .sel-size { animation: fade 0.9s var(--ease-out) 1.9s both; }

/* szekcióelválasztók: illesztőjelek a vonal két végén */
.split { position: relative; }
.split::before, .split::after {
  content: ""; position: absolute; top: -5px; width: 9px; height: 9px; pointer-events: none;
  background: linear-gradient(var(--mark), var(--mark)) center / 1px 100% no-repeat, linear-gradient(var(--mark), var(--mark)) center / 100% 1px no-repeat;
}
.split::before { left: -4px; } .split::after { right: -4px; }

/* kártyák: hoverre kijelölt állapot */
.pillars li, .apps li { position: relative; }
.pillars li .hd, .apps li .hd { opacity: 0; transition: opacity var(--dur-base) var(--ease-out); }

/* ---------- lábléc: cégadatok egy kijelölt keretben ---------- */
footer { position: relative; z-index: 1; padding-block: var(--space-xl) calc(var(--space-lg) + env(safe-area-inset-bottom)); }
.frame { position: relative; margin-top: var(--space-lg); border: 1px solid var(--sel-line); }
.frame-tag {
  position: absolute; bottom: calc(100% + 8px); left: -1px; display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.6875rem; font-weight: 500; line-height: 1; letter-spacing: 0.02em; color: var(--accent);
}
.frame-tag svg { width: 10px; height: 10px; }
.legal-grid { margin: 0; display: grid; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .legal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .legal-grid { grid-template-columns: repeat(4, 1fr); } }
.legal-grid > div {
  display: grid; gap: 0.35rem; align-content: start; padding: var(--space-md) var(--space-lg) var(--space-md) var(--space-md);
  background: rgb(255 255 255 / 0.015); box-shadow: 1px 0 0 var(--border), 0 1px 0 var(--border);
}
.legal-grid .wide { grid-column: 1 / -1; }
.legal-grid dt { font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-500); }
.legal-grid dd { margin: 0; font-size: var(--text-sm); color: var(--description); font-variant-numeric: tabular-nums; }
.copy {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xs);
  margin-top: calc(var(--space-xl) + 0.5rem); font-size: var(--text-xs); color: var(--muted-foreground);
}
.copy a { text-decoration: none; }

/* ---------- kapcsolati űrlap ---------- */
.contact-form { margin-top: calc(var(--space-xl) + 0.5rem); padding: var(--space-lg); display: grid; gap: var(--space-lg); max-width: 46rem; background: rgb(255 255 255 / 0.015); }
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fields { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
@media (min-width: 40rem) { .fields { grid-template-columns: 1fr 1fr; } .fields .wide { grid-column: 1 / -1; } }
.fld { display: grid; gap: 0.4rem; }
.fld span { font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-500); }
.fld input, .fld textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem; border-radius: 8px; border: 1px solid var(--border-strong);
  background: rgb(255 255 255 / 0.03); color: var(--foreground); font: inherit; font-size: var(--text-base);
  transition: border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.fld textarea { resize: vertical; min-height: 8rem; line-height: 1.5; }
.fld input::placeholder, .fld textarea::placeholder { color: var(--slate-500); opacity: 1; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--sel); background: rgb(255 255 255 / 0.05); box-shadow: 0 0 0 3px rgb(168 170 130 / 0.15); }
.ts:empty { display: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); }
.privacy { margin: 0; font-size: var(--text-xs); color: var(--muted-foreground); max-width: 32ch; }
.cta.send { margin-top: 0; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.cta.send[disabled] { cursor: progress; opacity: 0.7; }
.form-status { margin: 0; font-size: var(--text-sm); color: var(--description); }
.form-status:empty { display: none; }
.form-status.err { color: #ff8a80; }
.contact-form.done .fields, .contact-form.done .form-foot, .contact-form.done .ts { display: none; }
.contact-form.done .form-status { font-size: var(--text-lg); color: var(--foreground); }
.direct { margin: var(--space-lg) 0 0; font-size: var(--text-sm); color: var(--muted-foreground); }
.direct a { color: var(--description); text-decoration: none; border-bottom: 1px solid var(--border-strong); transition: border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); }

/* ---------- alkalmazáskártya → képernyőkép-nézegető ---------- */
.apps li { cursor: pointer; }
.app-open {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 36px; padding: 0 0.75rem; border: 1px solid var(--border-strong); border-radius: 999px; background: transparent;
  color: var(--description); font: inherit; font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.02em; cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.app-open .count { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 0.3rem; border-radius: 999px; background: var(--chip); color: var(--foreground); font-variant-numeric: tabular-nums; }
.app-open svg { width: 14px; height: 14px; transition: transform var(--dur-base) var(--ease-out); }
.app-open:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }

.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--foreground); overflow: hidden;
}
.lightbox::backdrop { background: rgb(4 4 5 / 0.82); backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox[open]::backdrop { animation: fade 0.45s var(--ease-out) both; }
.lb-stage { display: grid; justify-items: center; gap: var(--space-lg); padding: 4.5rem var(--gutter) 2rem; max-width: 100%; max-height: 100svh; }
.lightbox[open] .lb-stage { animation: lb-in 0.7s var(--ease-out) both; }
@keyframes lb-in { from { opacity: 0; transform: translate3d(0, 24px, 0) scale(0.94); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
.lb-frame { position: relative; margin: 0; border: 1px solid var(--sel-line); }
.lb-img { display: block; width: auto; height: auto; max-width: min(88vw, 64rem); max-height: calc(100svh - 12rem); object-fit: contain; transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out), filter 0.35s var(--ease-out); }
.lb-img.swap { opacity: 0; transform: scale(0.98); filter: blur(6px); }
.lb-tag { position: absolute; bottom: calc(100% + 8px); left: -1px; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.02em; color: var(--accent); white-space: nowrap; }
.lb-size { position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; padding: 4px 6px; border-radius: 4px; background: var(--brand-400); color: #111409; font-size: 0.6875rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-size:empty { display: none; }
.lb-caption { display: flex; gap: 0.75rem; align-items: baseline; margin-top: 1.25rem; font-size: var(--text-sm); color: var(--description); text-align: center; }
.lb-count { color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.lb-btn {
  position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: rgb(255 255 255 / 0.06); color: var(--foreground); cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-instant) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.lb-btn svg { width: 20px; height: 20px; }
.lb-btn:active { transform: scale(0.96); }
.lb-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: max(1rem, env(safe-area-inset-left)); top: 50%; translate: 0 -50%; }
.lb-next { right: max(1rem, env(safe-area-inset-right)); top: 50%; translate: 0 -50%; }
.lightbox.single .lb-prev, .lightbox.single .lb-next, .lightbox.single .lb-count { display: none; }
@media (max-width: 40rem) { .lb-prev, .lb-next { top: auto; bottom: 1rem; translate: none; } .lb-stage { padding-bottom: 5rem; } }

/* ---------- mobil: nyelvválasztó lenyíló, nagyobb főcím soronként, kisebb leírás ---------- */
.langs-mob { display: none; position: relative; }
.langs-mob summary {
  list-style: none; display: inline-flex; align-items: center; gap: 0.35rem; min-width: 44px; min-height: 40px; padding: 0 0.75rem 0 0.9rem;
  border-radius: 999px; background: var(--chip); color: var(--foreground); font-size: var(--text-sm); font-weight: 500; cursor: pointer;
}
.langs-mob summary::-webkit-details-marker { display: none; }
.langs-mob summary svg { width: 12px; height: 12px; transition: transform var(--dur-base) var(--ease-out); }
.langs-mob[open] summary svg { transform: rotate(180deg); }
.langs-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; display: grid; min-width: 11rem; padding: 4px;
  border-radius: 14px; border: 1px solid var(--border-strong); background: rgb(14 15 18 / 0.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 16px 40px rgb(0 0 0 / 0.5);
  animation: menu-in var(--dur-base) var(--ease-out) both;
}
@keyframes menu-in { from { opacity: 0; transform: translate3d(0, -4px, 0) scale(0.98); } to { opacity: 1; transform: none; } }
.langs-menu a { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0 0.75rem; border-radius: 10px; color: var(--description); text-decoration: none; font-size: var(--text-sm); }
.langs-menu a b { width: 1.75rem; font-weight: 600; color: var(--foreground); }
.langs-menu a[aria-current="page"] { background: rgb(255 255 255 / 0.08); color: var(--foreground); }

@media (max-width: 40rem) {
  .langs-desk { display: none; }
  .langs-mob { display: block; }
  .hero h1 .line { display: block; }
  .hero h1 { font-size: min(13.6vw, 3.75rem); line-height: 1.02; }
  html[lang="ro"] .hero h1 { font-size: min(12.8vw, 3.75rem); }
  html[lang="hu"] .hero h1 { font-size: min(10.8vw, 3.5rem); }
  .hero .lead { font-size: var(--text-sm); line-height: 1.6; max-width: 36ch; margin-top: var(--space-md); }
  .sel { margin-bottom: 2.5rem; }
}

/* ---------- mozgás: Apple-stílusú megjelenés ---------- */
/* Betöltéskor: a cím szavai egymás után, elmosódásból élesedve emelkednek be. */
.words .word { display: inline-block; }
.hero .eyebrow { animation: rise 1.1s var(--ease-out) 0.35s both; }
.hero h1 .word { animation: word-in 1.3s var(--ease-out) both; animation-delay: calc(0.55s + (var(--wi, 0) + var(--li, 0)) * 75ms); }
.hero h1 .line:nth-child(2) { --li: 2; } .hero h1 .line:nth-child(3) { --li: 4; } .hero h1 .line:nth-child(4) { --li: 6; }
.hero .lead { animation: rise 1.3s var(--ease-out) 1.15s both; }
.hero .cta { animation: rise 1.2s var(--ease-out) 1.35s both; }
.topbar { animation: fade 1.2s var(--ease-out) 0.9s both; }
@keyframes word-in {
  from { opacity: 0; transform: translate3d(0, 0.5em, 0) scale(0.96); filter: blur(12px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 24px, 0); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Görgetéskor: a motion.js .in osztályt ad, amikor az elem a képbe ér. JS nélkül minden látszik. */
html.js [data-reveal]:not(.words) { opacity: 0; }
html.js [data-reveal].in:not(.words) { animation: rise 1.1s var(--ease-out) var(--rd, 0ms) both; }
html.js h2.words[data-reveal] .word { opacity: 0; }
html.js h2.words[data-reveal].in .word { animation: word-in 1.1s var(--ease-out) both; animation-delay: calc(var(--wi, 0) * 55ms); }
/* kártyák, logók: lépcsőzetes késleltetés */
:is(.pillars, .apps, .logos) > :nth-child(2) { --rd: 90ms; }
:is(.pillars, .apps, .logos) > :nth-child(3) { --rd: 180ms; }
:is(.pillars, .apps, .logos) > :nth-child(4) { --rd: 270ms; }
.words .word:nth-child(2) { --wi: 1; } .words .word:nth-child(3) { --wi: 2; } .words .word:nth-child(4) { --wi: 3; }
.words .word:nth-child(5) { --wi: 4; } .words .word:nth-child(6) { --wi: 5; } .words .word:nth-child(7) { --wi: 6; }
.words .word:nth-child(8) { --wi: 7; } .words .word:nth-child(9) { --wi: 8; } .words .word:nth-child(10) { --wi: 9; }
.words .word:nth-child(11) { --wi: 10; } .words .word:nth-child(12) { --wi: 11; } .words .word:nth-child(13) { --wi: 12; }
.words .word:nth-child(n+14) { --wi: 13; }

@media (hover: hover) {
  .langs a:hover { color: var(--foreground); }
  .langs-menu a:hover { background: rgb(255 255 255 / 0.06); color: var(--foreground); }
  .cta:hover { background: #1a1f27; }
  .cta:hover svg { transform: translateX(3px); }
  .apps li:hover { background: var(--card-hover); border-color: rgb(255 255 255 / 0.12); }
  .apps li:hover .app-open { border-color: var(--accent); color: var(--foreground); }
  .apps li:hover .app-open svg { transform: translateX(3px); }
  .lb-btn:hover { background: rgb(255 255 255 / 0.12); border-color: rgb(255 255 255 / 0.4); }
  .pillars li:hover { background: var(--card-hover); border-color: rgb(255 255 255 / 0.12); }
  .partner:hover { transform: scale(1.05); }
  .partner:hover .w { opacity: 0; }
  .partner:hover .c { opacity: 1; }
  .copy a:hover { color: var(--foreground); }
  .direct a:hover { color: var(--foreground); border-color: var(--accent); }
  .pillars li:hover .hd, .apps li:hover .hd { opacity: 1; }
  .pillars li:hover, .apps li:hover { border-color: var(--sel-line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .logo { animation: none; opacity: 1; }
  .bg-light { animation: none; }
  .partner .w { animation: none; }
  .lightbox[open] .lb-stage, .lightbox[open]::backdrop { animation: none; }
}
