/* ==========================================================================
   Világ Érdekességei · alapréteg (tokenek, reset, elrendezés, gombok, megjelenés)
   Stílusirány: az Introxis-oldal sötét, letisztult, lekerekített felülete,
   a csatorna Kódszem-arculatával (türkiz, majdnem fekete, Geist betű).
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-VF.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Felületek */
  --bg: #05090d;
  --bg-deep: #030609;
  --bg-elev: #0b1217;
  --bg-elev-2: #121c23;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);

  /* A csatorna színe: türkiz */
  --accent: #1fc7b6;
  --accent-bright: #7eefe0;
  --accent-deep: #0e3b4a;
  --mint: #d4fdf6;

  /* Szöveg */
  --text: #f1f6f6;
  --text-muted: #a3b4b8;
  --text-faint: #6c7e84;

  /* Üveg (lebegő fejléc, címkék) */
  --glass-bg: rgba(14, 22, 28, .58);
  --glass-border: rgba(255, 255, 255, .10);
  --glass-blur: saturate(180%) blur(22px);

  /* Lekerekítés */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* Betű */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --fs-hero: clamp(2.5rem, 7vw, 5.7rem);
  --fs-h2: clamp(2rem, 4.6vw, 3.6rem);
  --fs-h3: clamp(1.2rem, 1.7vw, 1.45rem);
  --fs-lead: clamp(1.06rem, 1.5vw, 1.3rem);
  --fs-small: .875rem;
  --fs-micro: .78rem;

  /* Elrendezés */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --section-pad: clamp(72px, 9.5vw, 132px);

  /* Mozgás, mélység */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow-lg: 0 40px 120px rgba(0, 0, 0, .55);
  --shadow-md: 0 18px 40px rgba(0, 0, 0, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 8px; }
[id] { scroll-margin-top: calc(var(--header-h) + 32px); }
.section[id] { scroll-margin-top: calc(var(--header-h) + 36px - var(--section-pad)); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-pad); }
.section--szuk { padding-block: clamp(40px, 6vw, 80px); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Szekciófej: kis címke + h2 + bevezető */
.section-head { max-width: 760px; margin-inline: auto; text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--bal { margin-inline: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: var(--fs-small); font-weight: 600; letter-spacing: .02em;
  color: var(--accent-bright); margin-bottom: 18px;
}
.section-head h2, .h2 { font-size: var(--fs-h2); }
.lead { font-size: var(--fs-lead); color: var(--text-muted); line-height: 1.5; margin-top: 20px; }

/* Színátmenetes kiemelés (menta → türkiz) */
.text-gradient {
  background: linear-gradient(100deg, var(--mint) 0%, var(--accent-bright) 42%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Gombok */
.btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: var(--btn-h); padding-inline: 24px; border-radius: var(--r-pill);
  font-size: 1rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--sm { --btn-h: 38px; padding-inline: 18px; font-size: .9375rem; }
.btn--lg { --btn-h: 56px; padding-inline: 30px; font-size: 1.0625rem; }
.btn--primary {
  background: #eef6f5; color: #061013;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 10px 30px rgba(31, 199, 182, .18);
}
.btn--primary:hover { background: #ffffff; box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 14px 40px rgba(31, 199, 182, .32); }
.btn--accent {
  background: var(--accent); color: #03120f;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 12px 34px rgba(31, 199, 182, .28);
}
.btn--accent:hover { background: #35d9c8; }
.btn--ghost {
  background: rgba(255, 255, 255, .04); color: var(--text);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Kis címke (pirula) */
.cimke {
  display: inline-flex; align-items: center; gap: .4em;
  height: 24px; padding-inline: 10px; border-radius: var(--r-pill);
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: .01em;
  color: var(--accent-bright); background: rgba(31, 199, 182, .12); border: 1px solid rgba(31, 199, 182, .22);
}

/* Megjelenés görgetéskor (a main.js teszi rá az .is-visible osztályt) */
html.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
.hero-in { animation: hero-in .9s var(--ease) both; animation-delay: var(--reveal-delay, 0s); }
@keyframes hero-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .hero-in { animation: none; }
  .szem__rajz, .szem__belso { animation: none !important; }
}
