/* Aqulify weboldal – MAKETT (látványterv). Arculat: az asztali program „Stúdió Konzol” témájából (meleg antracit,
   borostyán akcentus); a világos változat a rendszer beállítását követi. A víztürkiz akcentus a tulajdonos döntése
   szerint nem használható. Nincs külső betűtípus, szkript vagy kérés. */
:root {
  --bg: #121316; --bg-2: #0E0F12; --surface: #181A1F; --surface-2: #1F222A;
  --line: #262932; --line-2: #343844; --control-line: #67707F;
  --text: #EDEDEE; --text-2: #A6ACB8; --text-3: #8E95A5;
  --accent: #E5A93C; --accent-2: #F2C46D; --accent-ink: #1A1303; --accent-soft: rgba(229, 169, 60, 0.14);
  --shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.65);
  --glow: 0 0 140px -36px rgba(229, 169, 60, 0.32);
  --radius: 14px; --maxw: 1120px; --gutter: clamp(16px, 4vw, 32px);
  --font: "Inter Variable", Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F4F5F7; --bg-2: #ECEEF2; --surface: #FFFFFF; --surface-2: #F0F2F5;
    --line: #D5D9E0; --line-2: #BFC6D1; --control-line: #707A8A;
    --text: #15171C; --text-2: #454B58; --text-3: #5A6170;
    --accent: #9A6400; --accent-2: #7F5200; --accent-ink: #FFFFFF; --accent-soft: rgba(154, 100, 0, 0.10);
    --shadow: 0 28px 70px -30px rgba(30, 34, 44, 0.35);
    --glow: 0 0 120px -40px rgba(154, 100, 0, 0.25);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--font); font-feature-settings: "cv11", "ss03"; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; z-index: 100; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 0.92em; }

/* ---- fejléc ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 1.125rem; letter-spacing: -0.01em; margin-right: auto; }
.brand:hover { color: var(--text); }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 26px); font-size: 0.9375rem; }
.nav a { color: var(--text-2); text-decoration: none; padding: 12px 4px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .lang { font-family: var(--mono); font-size: 0.8125rem; border: 1px solid var(--control-line); border-radius: 8px; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; color: var(--text); }
.nav .lang:hover { border-color: var(--accent); color: var(--accent); }

/* ---- gombok ---- */
.btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 12px 30px;
  border-radius: 14px; font-weight: 650; font-size: 1.0625rem; text-decoration: none; border: 1px solid var(--control-line); color: var(--text);
  background: transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s, border-color .18s; }
.btn:hover { border-color: var(--accent); color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 34px -12px var(--accent); }
.btn-primary:hover { color: var(--accent-ink); background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-1px); box-shadow: 0 16px 40px -12px var(--accent); }
.btn-sub { font-family: var(--mono); font-size: 0.78rem; font-weight: 400; opacity: 0.85; }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 0.9375rem; border-radius: 10px; flex-direction: row; }

/* ---- hős ---- */
.hero { position: relative; overflow: hidden; padding: clamp(28px, 5vh, 60px) 0 0; }
.hero canvas { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 56%); mask-image: linear-gradient(to bottom, transparent 30%, #000 56%); opacity: .95; }
.hero .wrap { position: relative; z-index: 1; text-align: center; }
.eyebrow { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: .04em; color: var(--text-3); margin: 0 0 16px; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; letter-spacing: -0.028em; font-weight: 680; margin: 0 auto; max-width: 19em; text-wrap: balance; }
.nb { white-space: nowrap; }
.lead { color: var(--text-2); font-size: clamp(1.0625rem, 2vw, 1.25rem); max-width: 46ch; margin: 18px auto 0; text-wrap: balance; }
.cta { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.others { width: 100%; max-width: 560px; }
.others summary { list-style: none; cursor: pointer; color: var(--text-2); font-size: 0.9375rem; min-height: 44px; padding: 0 14px; border-radius: 10px; display: inline-flex; align-items: center; }
.others summary::-webkit-details-marker { display: none; }
.others summary::after { content: " ▾"; }
.others[open] summary::after { content: " ▴"; }
.others summary:hover { color: var(--text); }
.others ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.others li a { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; text-decoration: none; color: var(--text); background: color-mix(in srgb, var(--surface) 80%, transparent); }
.others li a:hover { border-color: var(--accent); }
.others li small { color: var(--text-3); font-family: var(--mono); font-size: 0.75rem; }
.note { color: var(--text-3); font-size: 0.875rem; max-width: 56ch; margin: 0 auto; }
.shot { position: relative; margin: clamp(24px, 4vh, 40px) auto 0; max-width: 1040px; border: 1px solid var(--line-2); border-radius: 16px 16px 0 0; border-bottom: 0;
  overflow: hidden; box-shadow: var(--shadow), var(--glow); background: var(--surface); }
.shot img { width: 100%; }
.cue { position: absolute; left: 50%; top: calc(100svh - 150px); transform: translateX(-50%); z-index: 2; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--control-line); color: var(--text); background: color-mix(in srgb, var(--bg) 70%, transparent); text-decoration: none; transition: opacity .3s; }
.site-header.scrolled ~ main .cue { opacity: 0; pointer-events: none; }
.cue:hover { border-color: var(--accent); color: var(--accent); }
.cue svg { width: 18px; height: 18px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* ---- szakaszok ---- */
section { padding: clamp(56px, 10vw, 112px) 0; }
.sec-head { max-width: 62ch; margin-bottom: 40px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 660; margin: 0 0 12px; text-wrap: balance; }
.sec-head p { color: var(--text-2); margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, border-color .25s, box-shadow .25s; }
.card:hover, .card:focus-within { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.media { aspect-ratio: 16 / 9; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.crop { background-image: url("main.png"); background-repeat: no-repeat; background-size: 250% auto; }
.icon-media { display: grid; place-items: center; color: var(--accent); background: radial-gradient(120% 120% at 50% 0%, var(--accent-soft), transparent 70%), var(--bg-2); }
.icon-media svg { width: 96px; height: 96px; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
h3 { font-size: 1.1875rem; line-height: 1.25; letter-spacing: -0.01em; font-weight: 640; margin: 0; }
.card-body p { margin: 0; color: var(--text-2); font-size: 0.98rem; }
.more { margin-top: auto; min-height: 44px; font-weight: 600; font-size: 0.9375rem; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; width: fit-content; }
.more span { transition: transform .2s; }
.more:hover span, .card:focus-within .more span { transform: translateX(4px); }

.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.dl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.dl h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dl .file { font-family: var(--mono); font-size: 0.8125rem; color: var(--text-3); word-break: break-all; }
.dl p { margin: 0; color: var(--text-2); font-size: 0.93rem; }
.dl .btn { margin-top: auto; }
.dl .sum { font-size: 0.8125rem; }
.code { display: flex; align-items: flex-start; gap: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 10px 10px 14px;
  font-family: var(--mono); font-size: 0.78rem; line-height: 1.55; color: var(--text); }
.code code { flex: 1; min-width: 0; overflow-x: auto; white-space: pre; padding: 4px 0 8px; font: inherit; }
.copy { flex: none; min-width: 44px; min-height: 44px; border-radius: 8px; border: 1px solid var(--control-line); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; font-size: 0.9rem; }
.copy:hover { border-color: var(--accent); color: var(--accent); }
.dl .sig { color: var(--text-2); font-size: 0.8125rem; display: inline-flex; align-items: center; min-height: 44px; width: fit-content; }

.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap { display: grid; gap: 28px; grid-template-columns: 1.2fr 1fr; align-items: center; }
.band p { color: var(--text-2); margin: 0 0 18px; }
.facts-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts-mini li { display: flex; gap: 12px; color: var(--text-2); font-size: 0.97rem; }
.facts-mini li::before { content: ""; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Funkciók oldal ---- */
.page-head { padding: clamp(40px, 8vw, 80px) 0 12px; }
.page-head h1 { text-align: left; margin: 0; max-width: 22ch; font-size: clamp(2rem, 4.6vw, 3rem); }
.page-head p { color: var(--text-2); max-width: 60ch; margin: 16px 0 0; }
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); padding: 36px 0 96px; align-items: start; }
.toc { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; font-size: 0.9375rem; }
.toc a { color: var(--text-2); text-decoration: none; padding: 7px 12px; border-left: 2px solid var(--line); border-radius: 0 8px 8px 0; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-soft); }
.doc { padding: 0 0 56px; margin: 0 0 56px; border-bottom: 1px solid var(--line); scroll-margin-top: 88px; }
.doc:last-child { border-bottom: 0; margin-bottom: 0; }
.doc h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.doc .lead2 { color: var(--text-2); margin: 0 0 22px; max-width: 62ch; }
.doc .shot2 { margin: 0 0 26px; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; max-width: 760px; }
.doc .shot2 .media { border: 0; }
dl.facts { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; margin: 0; border-top: 1px solid var(--line); }
dl.facts dt, dl.facts dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
dl.facts dt { color: var(--text-3); font-size: 0.9rem; padding-right: 16px; }
dl.facts dd { color: var(--text); font-size: 0.98rem; }

/* ---- lábléc ---- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 52px; color: var(--text-3); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--text-2); }
.site-footer .src-mark { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -12px 0; color: var(--text-3); opacity: .75; }
.site-footer .src-mark svg { width: 16px; height: 16px; }
.site-footer .src-mark:hover { color: var(--text-2); opacity: 1; }
.site-footer .tm { flex-basis: 100%; margin: 0; font-size: 0.8125rem; }

/* ---- megjelenés görgetéskor (csak ha van JS és nincs csökkentett mozgás) ---- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0ms); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .cue svg { animation: none; }
  .card, .btn, .more span { transition: none; }
}

@media (max-width: 860px) {
  .band .wrap { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .toc a { border-left: 0; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; }
  .toc a.active { border-color: var(--accent); }
}
@media (max-width: 560px) {
  .hero canvas { -webkit-mask-image: linear-gradient(to bottom, transparent 56%, #000 78%); mask-image: linear-gradient(to bottom, transparent 56%, #000 78%); }
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dt { border-bottom: 0; padding-bottom: 0; }
  dl.facts dd { padding-top: 4px; }
  .btn { width: 100%; }
  .cta-row .btn { width: 100%; max-width: 360px; }
  .shot { border-radius: 12px 12px 0 0; }
}
