/* ================================================================
   KUPAK BROWSER — Landing page styles
   ================================================================ */

:root {
  --bg: #1b1b1b;
  --bg-2: #161618;
  --bg-card: #1c1c1e;
  --bg-card-2: #202024;
  --bg-row: #1a1a1c;
  --text: #f5f5f7;
  --text-dim: #b8b8bd;
  --text-muted: #7a7a80;
  --green: #29e065;
  --green-2: #1ec455;
  --green-glow: rgba(41, 224, 101, 0.45);
  --border: rgba(255, 255, 255, 0.06);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.35);
  --font-serif: "Playfair Display", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --maxw: 1120px;
  /* Szekciók közötti lépték: kisebb függőleges padding (a min-magasság a .section szabályban, vh→dvh) */
  --section-pad-y: clamp(14px, 2.5vh, 36px);
}

* { box-sizing: border-box; }

/* Csillagos háttér (canvas) — a --bg szín a html/body-n marad, átlátszó rétegen a csillagok */
.starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

html {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page-stack {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

main {
  flex: 1 0 auto;
}

.floating-logo-mount,
.features-peek-modal,
.footer-legal-modal,
.download-progress-modal {
  flex: none;
}

.floating-logo-mount {
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

img { user-select: none; -webkit-user-drag: none; }

::selection { background: var(--green); color: #06140b; }

/* ================================================================
   SCROLL REVEAL ANIMATIONS
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .floating-logo-mount .floating-logo { transition: none; }
  .starfield {
    opacity: 0.55;
  }
  .features-peek-modal,
  .features-peek-modal__inner,
  .features-peek__open {
    transition: none !important;
  }
  .footer-legal-modal,
  .footer-legal-modal__panel {
    transition: none !important;
  }
  .download-progress-modal,
  .download-progress-modal__panel {
    transition: none !important;
  }
  .download-progress-modal__track[data-indeterminate] .download-progress-modal__bar {
    animation: none !important;
    opacity: 0.85;
  }
}

/* ================================================================
   LAYOUT — Sections
   ================================================================ */
main { display: block; }

.section {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--section-pad-y) 32px;
  min-height: 72vh;
  min-height: 74dvh;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow-x: hidden;
  overflow-y: visible;
}

.section__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: .2px;
  margin: 0 0 clamp(14px, 2.2vh, 36px);
  text-align: center;
  color: var(--text);
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, filter .2s ease;
}

.btn__icon {
  height: 1.05em;
  width: auto;
  display: block;
}

/* Letöltés — látványterv: felül #66FF33 → alul #32CD32, fekete serif szöveg + ikon */
.btn--download {
  background: linear-gradient(180deg, #66ff33 0%, #32cd32 100%);
  color: #000000;
  padding: 14px 36px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  gap: 14px;
  box-shadow: none;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}
.btn--download .btn__icon {
  height: 1.15em;
  width: auto;
  filter: brightness(0);
}
.btn--download::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-25deg);
  transition: left .85s ease;
}
.btn--download:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.03);
}
.btn--download:hover::after { left: 130%; }
.btn--download:active { transform: translateY(0) scale(.99); }

.btn--hero-cta {
  margin-bottom: clamp(16px, 3vh, 36px);
  position: relative;
  z-index: 25;
  padding: 18px 46px;
  font-size: 22px;
}

.btn--big {
  padding: 16px 38px;
  font-size: 20px;
}

/* ================================================================
   FLOATING SCROLL-FOLLOWING LOGO
   ================================================================ */
.floating-logo {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  height: 380px;
  pointer-events: none;
  z-index: 15;
  will-change: left, top, width, height, opacity;
}

/* Láthatatlan fix pont a lebegő logónak — getBoundingClientRect a scriptben */
.floating-logo-anchor {
  box-sizing: border-box;
  pointer-events: none;
  visibility: hidden;
}

.floating-logo__tilt {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(0) rotateY(0);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
  cursor: pointer;
  overflow: hidden;
  border-radius: 50%;
  isolation: isolate;
}

.floating-logo__tilt img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: none;
  transition: filter .25s ease;
  pointer-events: none;
  border-radius: 50%;
}

.floating-logo__tilt:hover img {
  filter: saturate(1.04);
}

/* Fém / lemez jellegű fény: lágy folt, maszk, kevésbé „zseblámpa” */
.floating-logo__shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(
      ellipse 72% 58% at var(--shine-x, 50%) var(--shine-y, 44%),
      rgba(255, 255, 255, 0.26) 0%,
      rgba(255, 255, 255, 0.1) 22%,
      rgba(255, 255, 255, 0.03) 40%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 130% 110% at var(--shine-x2, 46%) var(--shine-y2, 52%),
      rgba(255, 255, 255, 0.09) 0%,
      rgba(255, 255, 255, 0.02) 35%,
      transparent 55%
    );
  mix-blend-mode: soft-light;
  -webkit-mask-image: radial-gradient(
    circle at 50% 50%,
    #000 0%,
    #000 54%,
    transparent 72%
  );
  mask-image: radial-gradient(
    circle at 50% 50%,
    #000 0%,
    #000 54%,
    transparent 72%
  );
  transition: opacity 0.38s ease;
  transform: translateZ(14px);
}

.floating-logo__tilt:hover .floating-logo__shine {
  opacity: 0.72;
}

/* ================================================================
   HERO
   ================================================================ */
.hero.section {
  position: relative;
  padding: clamp(40px, 8vh, 100px) 32px clamp(48px, 22vh, 180px);
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
}
/* Logó középpont: a képernyő/konténer alsó része felé (nagy top = lejjebb) */
.hero__logo-anchor {
  position: absolute;
  left: 50%;
  top: clamp(70vh, 78vh, 88vh);
  bottom: auto;
  width: 8px;
  height: 8px;
  max-width: none;
  max-height: none;
  aspect-ratio: unset;
  transform: translate(-50%, -50%);
}
.hero {
  text-align: center;
  background: transparent;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  gap: 0;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(36px, 6.2vw, 72px);
  letter-spacing: 0.3px;
  line-height: 1.12;
  margin: -0.08em auto clamp(5vh, 7vmin, 14vh);
  max-width: 920px;
  padding: 0 20px 0.5em;
  position: relative;
  z-index: 1;
}

/* ================================================================
   NUMBERS
   ================================================================ */
.section--numbers {
  justify-content: flex-start;
  padding-top: clamp(56px, 14vh, 120px);
  padding-bottom: var(--section-pad-y);
}

.numbers__wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.numbers__logo-anchor {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* this is where the floating logo lands — invisible placeholder */
}

.numbers__table {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 8px 0;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.numbers__row {
  display: grid;
  grid-template-columns: 1.3fr 1fr .7fr;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 14.5px;
  color: var(--text-dim);
}
.numbers__row:last-child { border-bottom: none; }

.numbers__row--head {
  color: var(--text);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .3px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.numbers__row--head > div:first-child { color: var(--text); }

.numbers__cell-label {
  color: var(--text);
  font-weight: 600;
}

.numbers__cell-strong {
  color: var(--text);
  font-weight: 700;
}

/* ================================================================
   FEATURES
   ================================================================ */
.section--features {
  --peek-img-max-h: min(54vh, 580px);
  overflow-x: visible;
  overflow-y: visible;
}

.features__wrap {
  display: grid;
  /* Bal oszlop: ne zsugorodjon 0-ra (kártyák + szöveg); jobb: nagy kép, de ne vegyen el minden helyet a listától */
  grid-template-columns: minmax(min(100%, 280px), 1fr) minmax(240px, min(580px, 44vw));
  gap: 28px 40px;
  align-items: center;
  width: 100%;
  overflow: visible;
}

.features__main {
  min-width: min(100%, 280px);
  align-self: stretch;
  position: relative;
  z-index: 2;
}

.features-peek-row {
  justify-self: end;
  align-self: center;
  width: 100%;
  max-width: min(580px, 100%);
  margin-left: clamp(28px, 7vw, 96px);
  padding-right: max(0px, env(safe-area-inset-right, 0px));
  position: relative;
  z-index: 1;
}

.features-peek-stage {
  position: relative;
  width: 100%;
  max-width: min(580px, 100%);
  margin: 0;
  margin-left: auto;
}

.features-peek__open {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0;
  margin: 0 auto;
  border: none;
  background: transparent;
  cursor: zoom-in;
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 14px;
  max-width: 100%;
  text-align: center;
  border-radius: var(--radius);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s ease;
}

.features-peek__open:hover {
  transform: translateY(-3px) scale(1.01);
  filter: brightness(1.06);
}

.features-peek__open:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.features-peek__thumb {
  display: block;
  width: 100%;
  height: auto;
  max-height: var(--peek-img-max-h, min(54vh, 580px));
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: var(--bg-card);
}

.features-peek__hint {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.features-peek-stage .features-peek-panel {
  display: none;
}

.features-peek-stage[data-active="default"] .features-peek-panel[data-peek-panel="default"],
.features-peek-stage[data-active="reader"] .features-peek-panel[data-peek-panel="reader"],
.features-peek-stage[data-active="import"] .features-peek-panel[data-peek-panel="import"],
.features-peek-stage[data-active="energy"] .features-peek-panel[data-peek-panel="energy"],
.features-peek-stage[data-active="quick"] .features-peek-panel[data-peek-panel="quick"],
.features-peek-stage[data-active="cleanup"] .features-peek-panel[data-peek-panel="cleanup"] {
  display: block;
}

.features-peek-figure {
  margin: 0;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--bg-card);
}

.features-peek-figure__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: var(--peek-img-max-h, min(54vh, 580px));
  object-fit: contain;
}

.features-peek-zoom {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  border-radius: inherit;
}

.features-peek-zoom:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.features-peek-dual {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  height: var(--peek-img-max-h, min(54vh, 580px));
  max-height: var(--peek-img-max-h, min(54vh, 580px));
  background: transparent;
  border: none;
  box-shadow: none;
}

.features-peek-dual__slot {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  overflow: visible;
}

.features-peek-dual__slot .features-peek-zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.features-peek-dual__slot .features-peek-zoom img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* Olvasómód — előtte / utána csúszka */
.features-compare {
  width: 100%;
  text-align: center;
}

.features-compare__viewport {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: var(--bg-card);
  aspect-ratio: 16 / 10;
  max-height: var(--peek-img-max-h, min(54vh, 580px));
  touch-action: none;
}

.features-compare__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  pointer-events: none;
}

.features-compare__layer--after {
  z-index: 1;
}

.features-compare__layer--before {
  z-index: 2;
  -webkit-clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0);
  clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0);
}

.features-compare__split-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 3px;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(180deg, var(--green) 0%, #1ec455 50%, var(--green) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(41, 224, 101, 0.55);
  border-radius: 2px;
}

.features-compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  z-index: 6;
  cursor: ew-resize;
  opacity: 0.001;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.features-compare__range::-webkit-slider-runnable-track {
  height: 100%;
  background: transparent;
}

.features-compare__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 100%;
  min-height: 160px;
  background: transparent;
  cursor: ew-resize;
}

.features-compare__range::-moz-range-track {
  height: 100%;
  background: transparent;
}

.features-compare__range::-moz-range-thumb {
  width: 44px;
  height: 100%;
  min-height: 160px;
  background: transparent;
  border: none;
  cursor: ew-resize;
}

.features-compare__hint {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}

/* Nagyító overlay */
.features-peek-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(16px, 4vh, 40px) clamp(16px, 3vw, 48px) clamp(16px, 4vh, 40px) clamp(16px, 4vh, 40px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.features-peek-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.features-peek-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.features-peek-modal__close {
  position: fixed;
  top: clamp(12px, 2.5vh, 24px);
  right: clamp(12px, 2.5vw, 28px);
  z-index: 210;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(28, 28, 32, 0.92);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.features-peek-modal__close:hover {
  background: rgba(40, 40, 46, 0.98);
  border-color: rgba(255, 255, 255, 0.22);
  transform: scale(1.05);
}

.features-peek-modal__inner {
  position: relative;
  z-index: 2;
  max-width: min(96vw, 1280px);
  max-height: min(88vh, 900px);
  margin-left: auto;
  margin-right: clamp(12px, 3vw, 48px);
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.2, 0.85, 0.2, 1), opacity 0.35s ease;
}

.features-peek-modal.is-open .features-peek-modal__inner {
  transform: scale(1);
  opacity: 1;
}

.features-peek-modal__title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.features-peek-modal__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(86vh, 880px);
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body.features-peek-open {
  overflow: hidden;
}

body.footer-legal-open {
  overflow: hidden;
}

/* Footer — Változásnapló / Adatvédelem modálok */
.footer-legal-modal {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vh, 40px) clamp(16px, 3vw, 32px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.footer-legal-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.footer-legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.footer-legal-modal__close {
  position: fixed;
  top: clamp(12px, 2.5vh, 24px);
  right: clamp(12px, 2.5vw, 28px);
  z-index: 191;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(28, 28, 32, 0.94);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.footer-legal-modal__close:hover {
  background: rgba(40, 40, 46, 0.98);
  border-color: rgba(255, 255, 255, 0.22);
  transform: scale(1.05);
}

.footer-legal-modal__panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(640px, 100%);
  max-height: min(86vh, 820px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), var(--shadow-card);
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.85, 0.2, 1), opacity 0.3s ease;
}

.footer-legal-modal.is-open .footer-legal-modal__panel {
  transform: scale(1);
  opacity: 1;
}

.footer-legal-modal__scroll {
  max-height: min(86vh, 820px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(22px, 3vh, 32px) clamp(22px, 3vw, 36px) clamp(26px, 3.5vh, 40px);
  -webkit-overflow-scrolling: touch;
}

.footer-legal-modal__heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--text);
}

.footer-legal-modal__lede {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
}

.footer-legal-modal__meta {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-legal-modal__scroll > p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-dim);
}

.footer-legal-modal__subhead {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 22px 0 12px;
  color: var(--text);
}

.footer-legal-modal__subhead:first-of-type {
  margin-top: 8px;
}

.footer-legal-modal__list {
  margin: 0 0 8px;
  padding-left: 1.15em;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.55;
}

.footer-legal-modal__list li {
  margin-bottom: 10px;
}

.footer-legal-modal__list li:last-child {
  margin-bottom: 0;
}

.footer-legal-modal__scroll a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal-modal__scroll a:hover {
  color: var(--green-2);
}

/* Letöltés — előkészítő képernyő (lassú hálózat, nincs dupla kattintás) */
body.download-progress-open {
  overflow: hidden;
}

.download-progress-modal {
  position: fixed;
  inset: 0;
  z-index: 215;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vh, 40px) clamp(16px, 3vw, 28px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.download-progress-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.download-progress-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.download-progress-modal__panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(420px, 100%);
  padding: clamp(26px, 4vh, 36px) clamp(22px, 4vw, 32px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.55), var(--shadow-card);
  text-align: center;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.2, 0.85, 0.2, 1), opacity 0.28s ease;
}

.download-progress-modal.is-open .download-progress-modal__panel {
  transform: scale(1);
  opacity: 1;
}

.download-progress-modal__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  margin: 0 0 14px;
  color: var(--text);
}

.download-progress-modal__hint {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
}

.download-progress-modal__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 10px;
}

.download-progress-modal__bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-2), var(--green));
  transition: width 0.12s ease-out;
}

.download-progress-modal__track[data-indeterminate] .download-progress-modal__bar {
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(41, 224, 101, 0.15) 0%,
    var(--green) 45%,
    rgba(41, 224, 101, 0.15) 90%
  );
  background-size: 200% 100%;
  animation: downloadBarShimmer 1.35s ease-in-out infinite;
}

@keyframes downloadBarShimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.download-progress-modal__pct {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  min-height: 1.35em;
}

.download-progress-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.download-progress-modal__btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.download-progress-modal__btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.download-progress-modal__btn--primary {
  background: linear-gradient(180deg, #2effaa 0%, #20d670 100%);
  color: #0a1f10;
  border-color: transparent;
  box-shadow: 0 4px 16px var(--green-glow);
}

.download-progress-modal__btn--primary:hover {
  filter: brightness(1.05);
}

.download-progress-modal__done p,
.download-progress-modal__error p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
}

.download-progress-modal__error p {
  color: #ffb4a8;
}

.features__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

.feature-card {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0,0,0,.5);
  background: #25252a;
}

.feature-card__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 26px;
  background: transparent;
  color: var(--text);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  text-align: left;
}

.feature-card__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.feature-card__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}
.feature-card__title small {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: .2px;
}

.feature-card__chev {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  flex-shrink: 0;
}

.feature-card.is-open .feature-card__chev { transform: rotate(180deg); }

.feature-card__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.2,.8,.2,1);
}
.feature-card__body p {
  margin: 0;
  padding: 0 26px 22px 72px;
  color: var(--text-dim);
  font-size: 14.5px;
}
.feature-card.is-open .feature-card__body { max-height: min(72vh, 560px); }

/* ================================================================
   STORY
   ================================================================ */
.section--story {
  position: relative;
  padding-bottom: var(--section-pad-y);
}

.story__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 44px 60px;
  max-width: 720px;
  width: 100%;
  box-shadow: var(--shadow-card);
}
.story__card p {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.45;
  margin: 0;
  color: var(--text);
}

/* ================================================================
   DOWNLOAD
   ================================================================ */
.section--download {
  position: relative;
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

.download__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px 36px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  box-shadow: var(--shadow-card);
}

.download__box {
  width: clamp(180px, 24vw, 260px);
  height: auto;
  filter: drop-shadow(0 24px 50px rgba(0,0,0,.55));
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.download__card:hover .download__box {
  transform: translateY(-6px) rotate(-1.5deg) scale(1.02);
}

.download__other {
  margin-top: clamp(18px, 2.5vh, 28px);
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 14px 26px;
  max-width: 760px;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.download__other p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
  text-align: center;
  flex: 1;
}
.download__os {
  width: 26px;
  height: 26px;
  fill: var(--text);
  flex-shrink: 0;
  transition: transform .3s ease, fill .3s ease;
}
.download__os--linux { fill: #d9d9dd; }
.download__os--apple { fill: #ededed; }
.download__os:hover { transform: scale(1.15) rotate(-4deg); }
.wink { font-size: 16px; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  margin-top: auto;
  padding: clamp(24px, 4vh, 48px) 32px clamp(32px, 6vh, 80px);
  min-height: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  scroll-snap-align: end;
  scroll-snap-stop: normal;
  overflow-x: visible;
  overflow-y: visible;
  flex-shrink: 0;
}

/* Teljes nézetszélességű vonal (kilóg a max-width-os láblécből) */
.footer__divider {
  flex-shrink: 0;
  width: 100vw;
  max-width: none;
  height: 1px;
  margin: 0 0 clamp(20px, 3vh, 40px);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border: none;
  padding: 0;
  background: #ffffff;
  box-shadow: none;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px 28px 26px;
  max-width: 520px;
  margin: 0 auto clamp(20px, 3vh, 36px);
  box-shadow: var(--shadow-card);
}
.contact-card__title {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  font-family: var(--font-serif);
}
.contact-card__row {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}
.contact-card__email {
  background: linear-gradient(180deg, #2effaa 0%, #20d670 100%);
  color: #0a1f10;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 18px var(--green-glow), inset 0 1px 0 rgba(255,255,255,.45);
  user-select: all;
  cursor: text;
  flex: 1;
  max-width: 360px;
  text-align: center;
}

.contact-card__copy {
  position: relative;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.contact-card__copy:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-1px);
}
.contact-card__copy:active { transform: scale(.94); }
.contact-card__copy img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.contact-card__copied {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--green);
  color: #06140b;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity .25s ease, transform .25s ease;
}
.contact-card__copied.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0 auto clamp(18px, 2.5vh, 32px);
}
.footer__links .footer__link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-family: var(--font-serif);
  transition: color 0.2s ease;
}
.footer__links .footer__link:hover {
  color: var(--green);
}
.footer__links .footer__link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.footer__made {
  font-family: var(--font-serif);
  font-size: 10.5px;
  color: var(--text);
  margin: 0 0 4px;
  letter-spacing: .3px;
}
.footer__heart {
  display: inline-block;
  animation: heartbeat 1.8s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  20%      { transform: scale(1.15); }
  40%      { transform: scale(1); }
  60%      { transform: scale(1.1); }
}

.footer__brand-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 auto clamp(18px, 2.5vh, 28px);
}

.footer__brand-logo {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.footer__brand {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 0;
  color: var(--text);
  font-weight: 500;
}

.footer__fuleki {
  display: inline-block;
  transition: transform .25s ease, filter .25s ease;
}
.footer__fuleki img {
  height: 22px;
  width: auto;
  display: block;
}
.footer__fuleki:hover {
  transform: translateY(-2px) scale(1.05);
  filter: drop-shadow(0 6px 16px rgba(255,90,40,.5));
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 880px) {
  .section { padding: var(--section-pad-y) 22px; }
  .hero.section { padding: clamp(32px, 6vh, 72px) 22px clamp(36px, 16vh, 88px); }
  .hero__logo-anchor {
    top: clamp(64vh, 72vh, 84vh);
  }
  .section--numbers {
    padding-top: clamp(48px, 12vh, 96px);
  }
  .footer { padding: var(--section-pad-y) 22px; }
  .section--numbers .numbers__wrap,
  .section--features .features__wrap {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .numbers__logo-anchor {
    display: none;
  }
  .feature-card,
  .feature-card:nth-child(n) { margin-left: 0; max-width: 100%; }

  .numbers__row {
    grid-template-columns: 1fr 1fr;
    padding: 14px 18px;
    font-size: 13px;
  }
  .numbers__row > div:nth-child(1) { grid-column: 1 / -1; padding-bottom: 4px; }
  .numbers__row--head > div:nth-child(1) { display: none; }

  .download__card { padding: 22px 22px 28px; }
  .download__other { flex-direction: row; padding: 12px 18px; }
  .download__other p { font-size: 13px; }

  .story__card { padding: 30px 28px; }

  .section--features {
    --peek-img-max-h: min(40vh, 420px);
  }

  .features-peek-row {
    max-width: 100%;
    justify-self: center;
    margin-left: clamp(0px, 3vw, 16px);
  }

  .features-peek-stage {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .features-peek__open {
    align-items: center;
    text-align: center;
    margin-left: 0;
  }

  .features-peek-modal {
    justify-content: center;
    padding: clamp(12px, 3vh, 28px);
  }

  .features-peek-modal__inner {
    margin-left: auto;
    margin-right: auto;
  }

  .features-peek__thumb {
    max-height: var(--peek-img-max-h, min(40vh, 420px));
  }

  .features-peek-figure__img {
    max-height: var(--peek-img-max-h, min(40vh, 420px));
  }

  .features-peek-dual {
    height: var(--peek-img-max-h, min(40vh, 420px));
    max-height: var(--peek-img-max-h, min(40vh, 420px));
  }

  .floating-logo-mount { display: none; } /* keep mobile clean */
}
