/* Sinum CONNECT – társasházas bemutató oldal (tarsashaz.sinumconnect.hu).
 * Önálló statikus oldal. Minden mozgás kikapcsol csökkentett mozgás esetén. */

/* ── Betűtípus ────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Nunito Local";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("assets/fonts/nunito-latin-ext-variable.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF,
    U+304, U+308, U+329, 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;
}

@font-face {
  font-family: "Nunito Local";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("assets/fonts/nunito-latin-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC,
    U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokenek és alap ──────────────────────────────────────────────────── */
:root {
  --bg: #01070e;
  --surface: #155693;
  --brand: #1192e8;
  --brand-strong: #0078d4;
  --cyan: #70d9ff;
  --warm: #ffd98a;
  --hot: #ff8a5b;
  --ok: #43a047;
  --text: #ffffff;
  --muted: #dbe6f3;
  --dim: #b9cce5;
  --glass: rgb(190 226 250 / 22%);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito Local", Helvetica, Arial, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { display: block; }
.icon { width: 16px; height: 16px; flex: none; }
.brand { height: 36px; width: auto; }

/* ── Görgetési folyamatjelző ──────────────────────────────────────────── */
.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 50;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--brand), var(--cyan));
  box-shadow: 0 0 12px var(--cyan);
}

/* ── Oldal és háttér ──────────────────────────────────────────────────── */
.page {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  overflow-x: clip;
  padding-bottom: env(safe-area-inset-bottom);
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.blobA, .blobB, .blobC {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: drift 22s ease-in-out infinite alternate;
}

.blobA { width: 52vmax; height: 52vmax; top: -18vmax; right: -14vmax; background: radial-gradient(circle, #1192e8 0%, transparent 65%); }
.blobB { width: 44vmax; height: 44vmax; bottom: -20vmax; left: -16vmax; background: radial-gradient(circle, #0d5fae 0%, transparent 65%); animation-duration: 28s; animation-delay: -8s; }
.blobC { width: 30vmax; height: 30vmax; top: 40%; left: 45%; background: radial-gradient(circle, #23adda 0%, transparent 65%); opacity: 0.28; animation-duration: 34s; animation-delay: -14s; }

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-6vmax, 4vmax, 0) scale(1.12); }
  100% { transform: translate3d(5vmax, -3vmax, 0) scale(0.94); }
}

/* Finom, lassan úszó rácsháló */
.gridGlow {
  position: fixed;
  inset: -40px;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(112 217 255 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(112 217 255 / 5%) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 70%);
  animation: gridMove 30s linear infinite;
}

@keyframes gridMove { to { transform: translate3d(48px, 48px, 0); } }

.cursorGlow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgb(112 217 255 / 10%), transparent 70%);
}

.page[data-motion] .cursorGlow { opacity: 1; }

/* ── Fejléc ───────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1232px;
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 16px 14px;
  transition: background-color 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
  border-bottom: 1px solid transparent;
}

.topbar[data-scrolled] {
  background: rgb(1 12 24 / 72%);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgb(190 226 250 / 12%);
  box-shadow: 0 12px 30px -20px rgb(0 0 0 / 80%);
}

.brandLink { display: inline-flex; }

.topnav {
  display: none;
  gap: 28px;
  font-weight: 700;
  color: var(--dim);
}

.topnav a {
  position: relative;
  padding: 6px 0;
  transition: color 200ms ease;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform 300ms var(--ease);
}

.topnav a:hover { color: #fff; }
.topnav a:hover::after { transform: scaleX(1); }

/* ── Gombok ───────────────────────────────────────────────────────────── */
.primaryButton, .ghostButton {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transform: translate(var(--tx, 0), var(--ty, 0));
  transition: transform 250ms var(--ease), background-color 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.ghostButton.small { min-height: 44px; padding: 0 18px; }

.primaryButton {
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%), 0 10px 30px -10px rgb(17 146 232 / 80%);
}

.primaryButton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 35%) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 4.5s ease-in-out infinite 1.5s;
}

@keyframes sheen {
  0%, 60% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.primaryButton:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%), 0 16px 40px -12px rgb(17 146 232 / 95%); }
.arrow { transition: transform 200ms ease; }
.primaryButton:hover .arrow { transform: translateX(4px); }
.ghostButton { border: 1px solid rgb(210 238 255 / 28%); background: rgb(220 242 255 / 7%); }
.ghostButton:hover { border-color: rgb(210 238 255 / 45%); background: rgb(220 242 255 / 14%); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 32px;
  max-width: 1232px;
  margin: 0 auto;
  padding: 24px 16px 0;
}

.heroText { max-width: 620px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--glass);
  border-radius: 999px;
  background: rgb(220 242 255 / 6%);
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.liveDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  animation: ping 2s ease-out infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgb(67 160 71 / 60%); }
  100% { box-shadow: 0 0 0 10px rgb(67 160 71 / 0%); }
}

.heroTitle {
  margin-top: 20px;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.gradientText {
  background: linear-gradient(90deg, #fff, var(--cyan), var(--brand), var(--cyan), #fff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}

@keyframes shimmer { to { background-position: 300% 0; } }

/* Forgó kulcsszavak */
.rotator {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-top: 18px;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 800;
}

.rotatorFixed { color: var(--dim); }

.rotatorWords {
  display: inline-block;
  height: 1.35em;
  overflow: hidden;
  color: var(--cyan);
}

.rotatorWords span {
  display: block;
  height: 1.35em;
  line-height: 1.35em;
  animation: words 12.5s var(--ease) infinite;
}

@keyframes words {
  0%, 16% { transform: translateY(0); }
  20%, 36% { transform: translateY(-100%); }
  40%, 56% { transform: translateY(-200%); }
  60%, 76% { transform: translateY(-300%); }
  80%, 96% { transform: translateY(-400%); }
  100% { transform: translateY(-500%); }
}

.lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.intro {
  animation: rise 900ms var(--ease) both;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* Épület-jelenet keringő ikonokkal */
.scene {
  position: relative;
  width: min(100%, 470px);
  margin: 0 auto;
  animation: rise 1100ms var(--ease) 300ms both;
}

.sceneSvg {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 50px rgb(0 40 90 / 60%));
  animation: float 7s ease-in-out 1.4s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.orbit {
  position: absolute;
  inset: 4% 2% 10%;
  border: 1px dashed rgb(112 217 255 / 18%);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}

.orbitIcon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid var(--glass);
  border-radius: 50%;
  background: rgb(10 44 79 / 80%);
  color: var(--cyan);
  box-shadow: 0 0 20px -4px rgb(17 146 232 / 70%);
  transform: rotate(var(--a)) translateY(calc(-1 * min(43vw, 230px))) rotate(calc(-1 * var(--a)));
}

.orbitIcon svg {
  width: 18px;
  height: 18px;
  animation: spin 40s linear infinite reverse;
}

@keyframes spin { to { transform: rotate(1turn); } }

.window { fill: #0b3a66; animation: windowLight 6s ease-in-out infinite; }

@keyframes windowLight {
  0%, 30% { fill: #0b3a66; }
  40%, 75% { fill: var(--warm); filter: drop-shadow(0 0 6px rgb(255 210 120 / 85%)); }
  85%, 100% { fill: #0b3a66; }
}

.dataLine { fill: none; stroke: rgb(112 217 255 / 35%); stroke-width: 2; stroke-dasharray: 4 6; animation: dash 1.6s linear infinite; }
.dataPulse { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 18 220; animation: pulseTravel 2.4s ease-in-out infinite; filter: drop-shadow(0 0 4px var(--cyan)); }

@keyframes dash { to { stroke-dashoffset: -20; } }
@keyframes pulseTravel { from { stroke-dashoffset: 238; } to { stroke-dashoffset: 0; } }

.antenna { fill: var(--cyan); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.cloudGlow { transform-origin: 300px 58px; animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--glass);
  border-radius: 999px;
  background: rgb(10 44 79 / 78%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 14%), 0 12px 30px -14px rgb(0 0 0 / 70%);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  animation: chipIn 700ms var(--ease) both, float 6s ease-in-out infinite;
}

.chipA { top: 30%; left: -2%; animation-delay: 1.1s, 1.8s; }
.chipB { top: 52%; right: -2%; animation-delay: 1.5s, 2.6s; }
.chipC { bottom: 14%; left: 4%; animation-delay: 1.9s, 3.2s; }

@keyframes chipIn {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to { opacity: 1; transform: none; }
}

.chipDot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.chipDotCyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* ── Szalagok ─────────────────────────────────────────────────────────── */
.marquee { max-width: 1232px; margin: 56px auto 0; padding: 0 16px; display: grid; gap: 14px; }
.marqueeLabel { color: var(--dim); font-size: 0.85rem; text-align: center; }

.marqueeViewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marqueeTrack {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: marquee 30s linear infinite;
}

.marqueeViewport.reverse .marqueeTrack { animation-direction: reverse; animation-duration: 38s; gap: 12px; }

.marqueeTrack li {
  font-size: 1.35rem;
  font-weight: 900;
  color: rgb(219 230 243 / 55%);
  transition: color 200ms ease;
}

.marqueeTrack li:hover { color: #fff; }

.marqueeTrack.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--glass);
  border-radius: 999px;
  background: rgb(220 242 255 / 5%);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.marqueeTrack.chips svg { color: var(--cyan); }
.marqueeViewport:hover .marqueeTrack { animation-play-state: paused; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Szakaszok ────────────────────────────────────────────────────────── */
.section { max-width: 1232px; margin: 104px auto 0; padding: 0 16px; }

.kicker {
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.sectionTitle {
  max-width: 780px;
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.015em;
  margin-bottom: 32px;
}

.page[data-motion] [data-reveal]:not([data-visible]) {
  opacity: 0;
  transform: translateY(32px);
}

.page [data-reveal] {
  transition:
    opacity 800ms var(--ease) var(--reveal-delay, 0ms),
    transform 800ms var(--ease) var(--reveal-delay, 0ms);
}

/* ── Számok ───────────────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 72px;
}

.stat {
  padding: 22px 18px;
  border: 1px solid var(--glass);
  border-radius: 20px;
  background: linear-gradient(160deg, rgb(17 146 232 / 14%), transparent 70%), rgb(10 44 79 / 30%);
}

.stat strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  background: linear-gradient(90deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat > span { color: var(--dim); font-size: 0.92rem; }

/* ── Felület-bemutató ─────────────────────────────────────────────────── */
.showcase { position: relative; }

.tabs {
  position: relative;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--glass);
  border-radius: 999px;
  background: rgb(220 242 255 / 5%);
  color: var(--dim);
  font-weight: 800;
  cursor: pointer;
  transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.tabs button svg { width: 18px; height: 18px; }
.tabs button:hover { color: #fff; }

.tabs button[aria-selected="true"] {
  color: #fff;
  border-color: rgb(126 207 255 / 60%);
  background: linear-gradient(135deg, rgb(17 146 232 / 45%), rgb(112 217 255 / 15%));
  box-shadow: 0 8px 24px -12px rgb(17 146 232 / 90%);
}

.tabTimer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: rgb(255 255 255 / 8%);
  overflow: hidden;
}

.tabTimer span {
  display: block;
  height: 100%;
  background: var(--cyan);
  transform-origin: left;
  transform: scaleX(0);
}

.showcase[data-running] .tabTimer span { animation: timer var(--tab-ms, 6000ms) linear forwards; }
@keyframes timer { to { transform: scaleX(1); } }

.browser {
  border: 1px solid rgb(190 226 250 / 26%);
  border-radius: 20px;
  overflow: hidden;
  background: #031426;
  box-shadow: 0 40px 100px -40px rgb(17 146 232 / 55%), inset 0 1px 0 rgb(255 255 255 / 10%);
}

.browserBar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgb(255 255 255 / 4%);
  border-bottom: 1px solid rgb(255 255 255 / 6%);
}

.browserBar > span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.browserBar > span:nth-child(2) { background: #febc2e; }
.browserBar > span:nth-child(3) { background: #28c840; }

.url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 6%);
  color: var(--dim);
  font-size: 0.8rem;
}

.url svg { width: 12px; height: 12px; color: var(--ok); }

.appShell { display: grid; grid-template-columns: 1fr; min-height: 380px; }

.appSide {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 18px 12px;
  border-right: 1px solid rgb(255 255 255 / 6%);
  background: linear-gradient(180deg, rgb(21 86 147 / 35%), rgb(21 86 147 / 10%));
}

.appLogo { height: 22px; width: auto; margin: 0 8px 14px; align-self: flex-start; }

.sideItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--dim);
  font-size: 0.85rem;
  font-weight: 700;
}

.sideItem svg { width: 16px; height: 16px; }
.sideItem.on { color: #fff; background: rgb(17 146 232 / 35%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%); }

.panels { position: relative; padding: 20px; }

.panel {
  display: none;
  animation: panelIn 600ms var(--ease) both;
}

.panel.active { display: block; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

/* Irányítópult */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.kpi {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgb(190 226 250 / 16%);
  border-radius: 14px;
  background: rgb(21 86 147 / 25%);
  animation: rise 700ms var(--ease) both;
}

.kpi:nth-child(2) { animation-delay: 80ms; }
.kpi:nth-child(3) { animation-delay: 160ms; }
.kpi:nth-child(4) { animation-delay: 240ms; }
.kpi span { color: var(--dim); font-size: 0.78rem; }
.kpi strong { font-size: 1.4rem; font-weight: 900; }
.kpi em { font-style: normal; font-size: 0.75rem; color: var(--dim); }
.kpi em.ok { color: #7ed98a; }

.chartCard {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgb(190 226 250 / 16%);
  border-radius: 14px;
  background: rgb(21 86 147 / 18%);
}

.chartHead { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; margin-bottom: 8px; }
.chartHead span { color: var(--dim); }
.lineChart { width: 100%; height: 150px; }

.linePath {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.2s var(--ease) 200ms forwards;
  filter: drop-shadow(0 0 6px rgb(112 217 255 / 70%));
}

.linePath.second { stroke: var(--warm); stroke-width: 2; opacity: 0.8; animation-delay: 500ms; filter: none; }
.areaPath { opacity: 0; animation: fadeIn 1s ease 1.2s forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

/* Gépház */
.plantGrid { display: grid; gap: 14px; }
.plant { width: 100%; height: auto; }
.unit { fill: rgb(21 86 147 / 45%); stroke: rgb(190 226 250 / 40%); }
.tank { fill: url(#facade); stroke: rgb(190 226 250 / 40%); }
.unitText { fill: #fff; font-size: 14px; font-weight: 800; text-anchor: middle; font-family: inherit; }
.unitSub { fill: var(--dim); font-size: 12px; text-anchor: middle; font-family: inherit; }
.fanRing { fill: none; stroke: var(--cyan); stroke-width: 2; }
.fanBlade { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; }
.fanSpin { animation: spin 1.6s linear infinite; }

.pipe { fill: none; stroke-width: 8; stroke-linecap: round; opacity: 0.35; }
.pipe.hot { stroke: var(--hot); }
.pipe.cold { stroke: var(--cyan); }
.flow { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 14; animation: dash 0.9s linear infinite; }
.flow.hot { stroke: #ffc1a6; }
.flow.cold { stroke: #c9f1ff; }
.pipe.dashed { stroke-dasharray: 10 8; }
.flow.dashed { stroke-dasharray: 4 16; }
.pumpBody { fill: #0a2c4f; stroke: #fff; stroke-width: 2; }
.pumpTri { fill: #fff; }
.pump { animation: spin 2.4s linear infinite; }

.plantStats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.plantStats div {
  padding: 12px;
  border: 1px solid rgb(190 226 250 / 16%);
  border-radius: 12px;
  background: rgb(21 86 147 / 22%);
}

.plantStats span { display: block; color: var(--dim); font-size: 0.75rem; }
.plantStats strong { font-size: 1.2rem; font-weight: 900; font-variant-numeric: tabular-nums; transition: color 300ms ease; }
.plantStats strong.tick { color: var(--cyan); }

.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--dim);
  font-size: 0.8rem;
}

.legend .solid, .legend .dash { display: inline-block; width: 28px; height: 0; border-top: 3px solid var(--hot); }
.legend .dash { border-top: 3px dashed var(--cyan); margin-left: 10px; }
.legend svg { color: var(--cyan); }

/* Mérések */
.meterRow { display: grid; gap: 12px; }

.odometer {
  padding: 14px;
  border: 1px solid rgb(190 226 250 / 16%);
  border-radius: 14px;
  background: rgb(21 86 147 / 22%);
}

.odoLabel { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: 0.8rem; }
.odoLabel svg { color: var(--cyan); }
.odometer.heat .odoLabel svg { color: var(--hot); }

.digits {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-top: 10px;
  font-size: 1.6rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.digits > span, .meterSpin > span {
  display: inline-block;
  width: 1.15em;
  height: 1.5em;
  line-height: 1.5em;
  text-align: center;
  border-radius: 8px;
  background: #021a30;
  box-shadow: inset 0 2px 6px rgb(0 0 0 / 60%);
  overflow: hidden;
}

.digits em, .digits i { font-style: normal; color: var(--dim); font-size: 1rem; padding: 0 2px 6px; }

.roll b {
  display: block;
  font-weight: 900;
  animation: roll 4s steps(1, end) infinite;
}

.roll.fast b { animation-duration: 1.6s; }
.odometer:not(.heat) .roll:not(.fast) { color: var(--cyan); }
.odometer.heat .roll { color: var(--hot); }

@keyframes roll {
  0% { transform: translateY(0); }
  25% { transform: translateY(-100%); }
  50% { transform: translateY(-200%); }
  75% { transform: translateY(-300%); }
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 150px;
  margin-top: 16px;
  padding: 0 4px;
}

.bars div {
  position: relative;
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--cyan), var(--brand-strong));
  transform-origin: bottom;
  animation: grow 1s var(--ease) both;
}

.bars div:nth-child(2) { animation-delay: 60ms; }
.bars div:nth-child(3) { animation-delay: 120ms; }
.bars div:nth-child(4) { animation-delay: 180ms; }
.bars div:nth-child(5) { animation-delay: 240ms; }
.bars div:nth-child(6) { animation-delay: 300ms; }
.bars div:nth-child(7) { animation-delay: 360ms; }
.bars div:nth-child(8) { animation-delay: 420ms; }
.bars div:nth-child(9) { animation-delay: 480ms; }
.bars div.hi { background: linear-gradient(180deg, var(--warm), var(--hot)); box-shadow: 0 0 18px -2px rgb(255 138 91 / 70%); }

.bars span {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--dim);
  font-size: 0.65rem;
  white-space: nowrap;
}

@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.panel[data-panel="meters"] .legend { margin-top: 32px; }

/* Üzenetküldés */
.composer {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgb(190 226 250 / 16%);
  border-radius: 14px;
  background: rgb(21 86 147 / 22%);
}

.field { display: grid; gap: 4px; }
.field span { color: var(--dim); font-size: 0.75rem; }
.field strong { display: inline-flex; align-items: center; gap: 6px; font-size: 0.92rem; }
.tag { justify-self: start; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem !important; }
.tag.warn { background: rgb(251 140 0 / 22%); color: #ffc078; }

.typing {
  width: 100%;
  min-height: 3.2em;
  padding: 10px 12px;
  border-radius: 10px;
  background: #021a30;
  font-size: 0.92rem;
  line-height: 1.5;
  clip-path: inset(0 100% 0 0);
  animation: typeIn 2.6s steps(40, end) 300ms forwards;
}

@keyframes typeIn { to { clip-path: inset(0 0 0 0); } }

.sendRow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.pin { display: inline-flex; align-items: center; gap: 6px; color: #7ed98a; font-size: 0.8rem; font-weight: 700; opacity: 0; animation: fadeIn 400ms ease 3s forwards; }

.sendBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  font-weight: 800;
  font-size: 0.85rem;
  animation: press 600ms ease 3.3s both;
}

@keyframes press {
  40% { transform: scale(0.92); box-shadow: 0 0 0 8px rgb(17 146 232 / 25%); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgb(17 146 232 / 0%); }
}

.delivery { display: grid; gap: 8px; margin-top: 14px; }

.delivery li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgb(126 217 138 / 30%);
  border-radius: 12px;
  background: rgb(67 160 71 / 12%);
  font-size: 0.88rem;
  opacity: 0;
  animation: slideIn 500ms var(--ease) forwards;
}

.delivery li svg { color: #7ed98a; }
.delivery li:nth-child(1) { animation-delay: 3.8s; }
.delivery li:nth-child(2) { animation-delay: 4.3s; }
.delivery li:nth-child(3) { animation-delay: 4.8s; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: none; }
}

/* Asszisztens */
.chat { display: grid; gap: 12px; }

.msg {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  animation: rise 500ms var(--ease) both;
}

.msg.user { justify-self: end; background: linear-gradient(135deg, var(--brand), var(--brand-strong)); border-bottom-right-radius: 4px; }
.msg.bot { position: relative; justify-self: start; min-height: 44px; border: 1px solid rgb(190 226 250 / 18%); background: rgb(21 86 147 / 28%); border-bottom-left-radius: 4px; animation-delay: 600ms; }

.dots { position: absolute; left: 14px; top: 18px; display: inline-flex; gap: 5px; animation: fadeOut 300ms ease 2.2s forwards; }
.dots i, .aiBubble .a i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: bounce 1s ease-in-out infinite; }
.dots i:nth-child(2), .aiBubble .a i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3), .aiBubble .a i:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-5px); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }

.answer { display: block; opacity: 0; animation: fadeIn 600ms var(--ease) 2.4s forwards; }

.confirm {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px 12px;
  padding: 12px 14px;
  border: 1px dashed rgb(112 217 255 / 50%);
  border-radius: 14px;
  background: rgb(112 217 255 / 6%);
  opacity: 0;
  animation: rise 600ms var(--ease) 3.2s forwards;
}

.confirm > svg { width: 22px; height: 22px; color: var(--cyan); }
.confirm strong { display: block; font-size: 0.9rem; }
.confirm span { color: var(--dim); font-size: 0.82rem; }
.confirm em { grid-column: 1 / -1; justify-self: start; padding: 3px 10px; border-radius: 999px; background: rgb(251 140 0 / 20%); color: #ffc078; font-style: normal; font-size: 0.75rem; font-weight: 800; }

.demoNote { margin-top: 10px; color: var(--dim); font-size: 0.78rem; text-align: right; }

/* ── Funkciócsempék ───────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: 1fr; gap: 16px; }

.tile {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--glass);
  border-radius: 22px;
  background:
    radial-gradient(280px circle at var(--gx, 50%) var(--gy, 0%), rgb(112 217 255 / 16%), transparent 70%),
    linear-gradient(145deg, rgb(255 255 255 / 7%), transparent 40%),
    rgb(13 56 98 / 30%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%), 0 20px 40px -28px rgb(0 8 24 / 80%);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

.page[data-motion] .tile[data-visible] {
  transition: opacity 800ms var(--ease) var(--reveal-delay, 0ms), transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.tile:hover { border-color: rgb(126 207 255 / 50%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%), 0 24px 50px -24px rgb(0 100 180 / 70%); }

.tile h3 { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 1.15rem; font-weight: 900; }
.tile h3 svg { width: 20px; height: 20px; color: var(--cyan); }
.tile ul { display: grid; gap: 8px; margin-top: 12px; }
.tile li { position: relative; padding-left: 18px; color: var(--dim); line-height: 1.5; font-size: 0.95rem; }
.tile li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

.tileArt {
  position: relative;
  display: grid;
  place-items: center;
  height: 120px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 120%, rgb(17 146 232 / 35%), transparent 70%), rgb(2 20 38 / 60%);
  overflow: hidden;
}

/* Termosztát-tárcsa */
.dialRing {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: conic-gradient(from 220deg, var(--cyan), var(--warm), var(--hot) 70%, transparent 70%);
  mask: radial-gradient(circle, transparent 38px, #000 39px);
  -webkit-mask: radial-gradient(circle, transparent 38px, #000 39px);
  animation: dialTurn 6s ease-in-out infinite;
}

@keyframes dialTurn { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(18deg); } }
.dialValue { position: relative; font-size: 1.4rem; font-weight: 900; }
.dialValue small { font-size: 0.7rem; color: var(--dim); }
.dialMode { position: absolute; right: 18px; top: 16px; color: var(--hot); animation: blink 2s ease-in-out infinite; }
.dialMode svg { width: 20px; height: 20px; }

/* Mérőóra-csempe */
.meterSpin { display: flex; gap: 4px; font-size: 1.6rem; font-weight: 900; }
.meterSpin .roll { color: var(--cyan); }

/* Csővezeték-csempe */
.pipes svg { width: 86%; }

/* Emeletek */
.floors { perspective: 500px; }

.floors span {
  position: absolute;
  width: 120px;
  height: 56px;
  border: 1px solid rgb(112 217 255 / 50%);
  border-radius: 8px;
  background: linear-gradient(90deg, rgb(255 138 91 / 55%), rgb(255 217 138 / 45%) 35%, rgb(112 217 255 / 40%) 70%, rgb(17 146 232 / 45%));
  transform: rotateX(62deg) rotateZ(-38deg) translateZ(calc(var(--i, 0) * 1px));
  animation: stack 4s var(--ease) infinite;
  animation-delay: var(--d);
}

.floors span:nth-child(1) { --z: -30px; }
.floors span:nth-child(2) { --z: -10px; }
.floors span:nth-child(3) { --z: 10px; }
.floors span:nth-child(4) { --z: 30px; }

@keyframes stack {
  0%, 100% { transform: rotateX(62deg) rotateZ(-38deg) translateZ(var(--z)); opacity: 0.85; }
  50% { transform: rotateX(62deg) rotateZ(-38deg) translateZ(calc(var(--z) * 1.8)); opacity: 1; }
}

/* Értesítések */
.notif { place-items: stretch; align-content: center; padding: 10px 16px; gap: 6px; }

.notif span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgb(190 226 250 / 22%);
  border-radius: 10px;
  background: rgb(21 86 147 / 45%);
  font-size: 0.78rem;
  font-weight: 700;
  animation: notifCycle 3.6s var(--ease) infinite;
  animation-delay: var(--d);
  opacity: 0;
}

.notif svg { color: var(--cyan); width: 14px; height: 14px; }

@keyframes notifCycle {
  0% { opacity: 0; transform: translateY(-12px) scale(0.96); }
  12%, 80% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(6px); }
}

/* AI-buborék */
.aiBubble { place-items: stretch; align-content: center; padding: 14px 18px; gap: 10px; }
.aiBubble .q { justify-self: end; padding: 7px 12px; border-radius: 12px 12px 4px 12px; background: linear-gradient(135deg, var(--brand), var(--brand-strong)); font-size: 0.8rem; font-weight: 700; }
.aiBubble .a { justify-self: start; display: inline-flex; gap: 5px; padding: 10px 14px; border-radius: 12px 12px 12px 4px; background: rgb(21 86 147 / 45%); }

/* Várólista */
.queue { place-items: stretch; align-content: center; padding: 14px 18px; gap: 10px; }

.queue span {
  position: relative;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgb(255 255 255 / 6%);
  font-size: 0.75rem;
  font-weight: 700;
  overflow: hidden;
  isolation: isolate;
}

.queue span::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  width: var(--w);
  background: linear-gradient(90deg, var(--brand-strong), var(--cyan));
  opacity: 0.55;
  transform-origin: left;
  animation: fill 3.6s var(--ease) infinite;
  animation-delay: var(--d);
}

@keyframes fill { 0% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); } }

/* Pajzs */
.shield .shieldIcon { position: relative; z-index: 1; width: 48px; height: 48px; color: #7ed98a; }

.shield span {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid rgb(126 217 138 / 60%);
  border-radius: 50%;
  animation: ripple 2.8s ease-out infinite;
}

.shield span:last-child { animation-delay: 1.4s; }
@keyframes ripple { from { transform: scale(0.8); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }

/* ── Lakói app ────────────────────────────────────────────────────────── */
.appSection { display: grid; gap: 40px; align-items: center; }
.checks { display: grid; gap: 18px; }
.checks li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }

.checks li > svg {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgb(17 146 232 / 35%), rgb(112 217 255 / 12%));
  color: var(--cyan);
}

.checks strong { display: block; font-size: 1.05rem; }
.checks span { color: var(--dim); line-height: 1.55; }

.phone {
  position: relative;
  justify-self: center;
  width: min(300px, 82vw);
  aspect-ratio: 9 / 19;
  padding: 12px;
  border-radius: 46px;
  background: linear-gradient(145deg, #2b3a4d, #0b1420);
  box-shadow: 0 50px 100px -40px rgb(17 146 232 / 70%), inset 0 0 0 2px rgb(255 255 255 / 10%);
  animation: float 7s ease-in-out infinite;
}

.phoneScreen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 0%, #155693, #01070e 70%);
}

.phoneTop { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px 0; font-size: 0.75rem; font-weight: 800; }
.phoneTop svg { width: 14px; height: 14px; }
.notch { width: 84px; height: 24px; border-radius: 999px; background: #000; }

.scanStage {
  position: absolute;
  inset: 48px 0 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  animation: stageOut 10s ease infinite;
}

.qr { position: relative; padding: 14px; border: 2px solid var(--cyan); border-radius: 18px; overflow: hidden; }
.qrIcon { width: 110px; height: 110px; color: #fff; stroke-width: 1.4; }

.scanLine {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cyan);
  box-shadow: 0 0 16px 4px rgb(112 217 255 / 70%);
  animation: scan 1.4s ease-in-out infinite alternate;
}

@keyframes scan { from { top: 6%; } to { top: 92%; } }

.scanText { color: var(--dim); font-size: 0.85rem; animation: textSwap 10s steps(1) infinite; }
.pairedText { display: inline-flex; align-items: center; gap: 6px; position: absolute; bottom: 30%; color: #7ed98a; font-weight: 800; font-size: 0.9rem; opacity: 0; animation: paired 10s ease infinite; }

@keyframes textSwap { 0%, 24% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes paired { 0%, 24% { opacity: 0; } 26%, 34% { opacity: 1; } 36%, 100% { opacity: 0; } }
@keyframes stageOut { 0%, 34% { opacity: 1; transform: none; } 38%, 96% { opacity: 0; transform: scale(0.9); } 100% { opacity: 1; } }

.phoneHome {
  position: absolute;
  inset: 56px 14px 14px;
  display: grid;
  align-content: start;
  gap: 10px;
  opacity: 0;
  animation: homeIn 10s ease infinite;
}

@keyframes homeIn { 0%, 36% { opacity: 0; transform: translateY(20px); } 40%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }

.roomCard {
  display: grid;
  gap: 2px;
  padding: 14px;
  border: 1px solid rgb(190 226 250 / 22%);
  border-radius: 18px;
  background: rgb(21 86 147 / 40%);
}

.roomCard span { color: var(--dim); font-size: 0.75rem; }
.roomCard strong { font-size: 1.5rem; font-weight: 900; }
.roomCard em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 0.75rem; color: var(--warm); }
.roomCard:nth-child(2) em { color: var(--cyan); }
.roomCard svg { width: 12px; height: 12px; }

.push {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgb(255 255 255 / 92%);
  color: #0b1a2b;
  box-shadow: 0 12px 30px -12px rgb(0 0 0 / 70%);
  opacity: 0;
}

.push svg { width: 20px; height: 20px; color: var(--brand-strong); }
.push strong { display: block; font-size: 0.78rem; }
.push span { font-size: 0.75rem; color: #3a4b5f; }
.push.p1 { animation: pushIn 10s var(--ease) infinite; }
.push.p2 { animation: pushIn2 10s var(--ease) infinite; }

@keyframes pushIn { 0%, 48% { opacity: 0; transform: translateY(-30px) scale(0.95); } 52%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes pushIn2 { 0%, 62% { opacity: 0; transform: translateY(-30px) scale(0.95); } 66%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }

/* ── Saját arculat ────────────────────────────────────────────────────── */
.brandSection { display: grid; gap: 40px; align-items: center; }
.brandDemo { display: grid; place-items: center; }

.brandCard {
  --b: #1192e8;
  --b2: #70d9ff;
  position: relative;
  display: grid;
  gap: 16px;
  width: min(360px, 100%);
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--b) 50%, transparent);
  border-radius: 24px;
  background: radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--b) 35%, transparent), transparent 60%), #06182b;
  box-shadow: 0 30px 80px -30px var(--b);
  animation: palette 9s ease-in-out infinite;
}

@property --b { syntax: "<color>"; inherits: true; initial-value: #1192e8; }
@property --b2 { syntax: "<color>"; inherits: true; initial-value: #70d9ff; }

@keyframes palette {
  0%, 28% { --b: #1192e8; --b2: #70d9ff; }
  33%, 61% { --b: #f5c518; --b2: #ffe58a; }
  66%, 94% { --b: #23adda; --b2: #8ff0d6; }
  100% { --b: #1192e8; --b2: #70d9ff; }
}

.brandHead { display: flex; align-items: center; gap: 10px; }
.brandMark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--b), var(--b2)); }
.brandBar { height: 8px; border-radius: 999px; background: rgb(255 255 255 / 8%); overflow: hidden; }
.brandBar span { display: block; height: 100%; width: 70%; background: linear-gradient(90deg, var(--b), var(--b2)); }
.brandBtns { display: flex; gap: 10px; }
.brandBtns span { padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 800; }
.bPrimary { background: var(--b); color: #021020; }
.bGhost { border: 1px solid color-mix(in srgb, var(--b) 60%, transparent); }
.brandQr { position: absolute; right: 20px; bottom: 20px; color: var(--b2); }
.brandQr svg { width: 46px; height: 46px; }

/* ── Katalógus ────────────────────────────────────────────────────────── */
.catalog { display: grid; gap: 12px; }

.catGroup {
  border: 1px solid var(--glass);
  border-radius: 18px;
  background: rgb(13 56 98 / 25%);
  overflow: hidden;
}

.catGroup[open] { border-color: rgb(126 207 255 / 40%); background: rgb(13 56 98 / 38%); }

.catGroup summary {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 18px;
  cursor: pointer;
  list-style: none;
}

.catGroup summary::-webkit-details-marker { display: none; }
.catGroup summary:hover { background: rgb(255 255 255 / 3%); }

.catIcon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgb(17 146 232 / 35%), rgb(112 217 255 / 12%));
  color: var(--cyan);
}

.catIcon svg { width: 20px; height: 20px; }
.catGroup summary strong { font-size: 1.05rem; }
.catGroup summary em { font-style: normal; color: var(--dim); font-size: 0.8rem; white-space: nowrap; }
.chev { transition: transform 300ms var(--ease); color: var(--dim); }
.catGroup[open] .chev { transform: rotate(180deg); }

.catGroup ul { display: grid; gap: 10px; padding: 4px 18px 20px 70px; }
.catGroup li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; color: var(--muted); line-height: 1.5; }
.catGroup li svg { margin-top: 3px; color: #7ed98a; }
.catGroup[open] li { animation: slideIn 400ms var(--ease) both; }
.catGroup[open] li:nth-child(2) { animation-delay: 40ms; }
.catGroup[open] li:nth-child(3) { animation-delay: 80ms; }
.catGroup[open] li:nth-child(4) { animation-delay: 120ms; }
.catGroup[open] li:nth-child(5) { animation-delay: 160ms; }
.catGroup[open] li:nth-child(6) { animation-delay: 200ms; }
.catGroup[open] li:nth-child(7) { animation-delay: 240ms; }

/* ── Idővonal ─────────────────────────────────────────────────────────── */
.timeline { position: relative; display: grid; gap: 24px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--cyan));
  transform-origin: top;
  transition: transform 1600ms cubic-bezier(0.6, 0, 0.2, 1);
}

.page[data-motion] .timeline:not([data-visible])::before { transform: scaleY(0); }

.timelineItem {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  transition: opacity 700ms ease var(--reveal-delay, 0ms), transform 700ms ease var(--reveal-delay, 0ms);
}

.page[data-motion] .timeline:not([data-visible]) .timelineItem { opacity: 0; transform: translateX(-16px); }

.timelineNumber {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 0 0 6px var(--bg), 0 8px 24px -6px rgb(17 146 232 / 80%);
  font-weight: 900;
  font-size: 1.1rem;
}

.cardTitle { margin-top: 10px; font-size: 1.1rem; font-weight: 800; }
.cardText { margin-top: 8px; color: var(--dim); line-height: 1.6; }

/* ── Kapcsolat ────────────────────────────────────────────────────────── */
.contact {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 24px;
  border-radius: 28px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.contact::before {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: -2;
  background: conic-gradient(from 0deg, transparent 0 60%, var(--brand) 75%, var(--cyan) 85%, transparent 100%);
  animation: spin 6s linear infinite;
}

.contact::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: 26px;
  background: radial-gradient(500px circle at 50% 0%, rgb(17 146 232 / 28%), transparent 70%), #041526;
}

.contact .sectionTitle { margin-bottom: 0; }
.contact .lead { max-width: 560px; margin-bottom: 28px; }
.contact .primaryButton { max-width: 100%; overflow-wrap: anywhere; }

.footer {
  max-width: 1232px;
  margin: 96px auto 0;
  padding: 24px 16px 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--dim);
  border-top: 1px solid rgb(190 226 250 / 16%);
}

.footer a:hover { color: #fff; }

/* ── Töréspontok ──────────────────────────────────────────────────────── */
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .plantGrid { grid-template-columns: 1.6fr 1fr; align-items: center; }
  .meterRow { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(4, 1fr); }

  .timeline::before {
    left: 24px; right: 24px; top: 23px; bottom: auto; width: auto; height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--cyan));
    transform-origin: left;
  }

  .page[data-motion] .timeline:not([data-visible])::before { transform: scaleX(0); }
  .timelineItem { grid-template-columns: 1fr; gap: 8px; }
  .page[data-motion] .timeline:not([data-visible]) .timelineItem { transform: translateY(16px); }
  .catalog { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (min-width: 960px) {
  .topnav { display: flex; }
  .hero { grid-template-columns: 1.05fr 0.95fr; min-height: min(82vh, 760px); padding-top: 0; }
  .scene { width: 100%; }
  .appShell { grid-template-columns: 210px 1fr; min-height: 420px; }
  .appSide { display: flex; }
  .panels { padding: 26px; }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .tile.wide { grid-column: span 2; }
  .tile.wide .tileArt { height: 140px; }
  .appSection, .brandSection { grid-template-columns: 1.1fr 0.9fr; }
  .brandSection { grid-template-columns: 0.9fr 1.1fr; }
}

@media (max-width: 719px) {
  .chip { font-size: 0.72rem; padding: 6px 10px; }
  .chipA { left: 0; }
  .chipB { right: 0; }
  .orbitIcon { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
  .catGroup ul { padding-left: 18px; }
  .catGroup summary { grid-template-columns: 40px 1fr auto; }
  .catGroup summary em { display: none; }
}

/* ── Csökkentett mozgás és átlátszóság ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .page *, .page *::before, .page *::after, .progress span {
    animation: none !important;
    transition: none !important;
  }

  .tile { transform: none; }
  .window:nth-child(3n) { fill: var(--warm); }
  .linePath { stroke-dashoffset: 0; }
  .areaPath, .pin, .delivery li, .confirm, .answer { opacity: 1; max-height: none; }
  .typing { clip-path: none; }
  .dots { display: none; }
  .scanStage, .push.p2 { display: none; }
  .phoneHome, .push.p1 { opacity: 1; }
  .notif span { opacity: 1; }
  .rotatorWords { height: auto; }
  .rotatorWords span:not(:first-child) { display: none; }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .chip, .tile, .topbar[data-scrolled] {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}


/* ══ Megoldások: nagy eszközábra + leírás ═════════════════════════════ */
.sectionLead { max-width: 720px; margin: -16px 0 28px; }

.solNav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 8px;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.solNav::-webkit-scrollbar { display: none; }

.solNav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--glass);
  border-radius: 999px;
  background: rgb(10 44 79 / 70%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
  transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease;
}

.solNav a svg { color: var(--cyan); }
.solNav a:hover, .solNav a[aria-current="page"] { color: #fff; border-color: rgb(126 207 255 / 60%); background: linear-gradient(135deg, rgb(17 146 232 / 50%), rgb(112 217 255 / 15%)); }

.solGroup { margin-top: 72px; scroll-margin-top: 140px; }

.solGroupHead {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgb(190 226 250 / 14%);
}

.solGroupNum {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, var(--cyan), rgb(17 146 232 / 20%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.solGroupHead h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 900; }
.solGroupHead p { margin-top: 4px; color: var(--dim); line-height: 1.55; }

.solRow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding: 40px 0;
  scroll-margin-top: 140px;
}

.solRow + .solRow { border-top: 1px dashed rgb(190 226 250 / 10%); }

.solFigure {
  position: relative;
  margin: 0;
  padding: 18px;
  border: 1px solid rgb(190 226 250 / 20%);
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 0%, rgb(17 146 232 / 30%), transparent 60%),
    radial-gradient(circle at 100% 100%, rgb(112 217 255 / 12%), transparent 55%),
    #041628;
  box-shadow: 0 40px 90px -45px rgb(17 146 232 / 70%), inset 0 1px 0 rgb(255 255 255 / 10%);
  overflow: hidden;
}

.solFigure::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgb(112 217 255 / 6%) 1px, transparent 1px), linear-gradient(90deg, rgb(112 217 255 / 6%) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.page[data-motion] .solRow:not([data-visible]) .solFigure { transform: scale(0.94); opacity: 0; }
.solFigure { transition: transform 900ms var(--ease), opacity 900ms var(--ease); }
.figSvg { position: relative; width: 100%; height: auto; }

.solFigure figcaption {
  position: relative;
  margin-top: 8px;
  color: var(--dim);
  font-size: 0.8rem;
  text-align: center;
}

.solTag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(112 217 255 / 10%);
  color: var(--cyan);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.solBody h4 { margin-top: 14px; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; font-weight: 900; letter-spacing: -0.01em; }
.solLead { margin-top: 14px; color: var(--muted); line-height: 1.7; font-size: 1.02rem; }

.specs { display: grid; gap: 12px; margin-top: 22px; }

.specs > div {
  padding: 16px;
  border: 1px solid var(--glass);
  border-radius: 16px;
  background: rgb(13 56 98 / 28%);
  transition: border-color 250ms ease, transform 250ms ease;
}

.specs > div:hover { border-color: rgb(126 207 255 / 45%); transform: translateY(-2px); }
.specs strong { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.specs strong svg { color: var(--cyan); }
.specs ul { display: grid; gap: 6px; margin-top: 10px; }
.specs li { position: relative; padding-left: 14px; color: var(--dim); font-size: 0.9rem; line-height: 1.45; }
.specs li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

.page[data-motion] .solRow:not([data-visible]) .specs > div { opacity: 0; transform: translateY(14px); }
.solRow .specs > div { transition: opacity 600ms var(--ease), transform 600ms var(--ease), border-color 250ms ease; }
.solRow .specs > div:nth-child(2) { transition-delay: 120ms; }
.solRow .specs > div:nth-child(3) { transition-delay: 240ms; }

@media (min-width: 960px) {
  .solRow { grid-template-columns: 1.15fr 1fr; gap: 56px; padding: 56px 0; }
  .solRow.reverse .solFigure { order: 2; }
  .specs { grid-template-columns: repeat(3, 1fr); }
}

/* ── Ábrák közös elemei ───────────────────────────────────────────────── */
.figSvg text { font-family: "Nunito Local", Helvetica, Arial, sans-serif; text-anchor: middle; }
.badgeBox { fill: rgb(10 44 79 / 85%); stroke: rgb(190 226 250 / 35%); }
.badgeLabel { fill: var(--dim); font-size: 12px; font-weight: 700; }
.badgeValue { fill: #fff; font-size: 18px; font-weight: 900; }
.badgeValue.small { font-size: 15px; }
.pill { fill: rgb(10 44 79 / 90%); stroke: rgb(112 217 255 / 45%); }
.pillText { fill: #fff; font-size: 13px; font-weight: 800; }
.hotText { fill: var(--hot); }
.coldText { fill: var(--cyan); }
.mixText { fill: var(--warm); }
.tempTag { font-size: 14px; font-weight: 900; text-anchor: start !important; }
.ductLabel { fill: var(--dim); font-size: 12px; font-weight: 700; text-anchor: start !important; }
.ductLabel.end { text-anchor: end !important; }
.ductLabel.mid { text-anchor: middle !important; }
.spinSlow { animation: spin 2.6s linear infinite; }
.spinFast { animation: spin 1.2s linear infinite; }
.pipe.mixed { stroke: var(--warm); }
.flow.mixed { stroke: #ffeec4; }

/* Fűtés–hűtés váltás: a szín 8 másodpercenként vált meleg és hideg között */
.swapTone { animation: toneSwap 8s ease-in-out infinite; }
@keyframes toneSwap { 0%, 40% { stroke: var(--cyan); } 50%, 90% { stroke: var(--hot); } 100% { stroke: var(--cyan); } }
.swapFill { animation: fillSwap 8s ease-in-out infinite; }
@keyframes fillSwap { 0%, 40% { fill: rgb(112 217 255 / 55%); } 50%, 90% { fill: rgb(255 138 91 / 55%); } 100% { fill: rgb(112 217 255 / 55%); } }
.swapText { animation: textTone 8s ease-in-out infinite; }
@keyframes textTone { 0%, 40% { fill: #c9f1ff; } 50%, 90% { fill: #ffd2bd; } 100% { fill: #c9f1ff; } }

/* Fan-coil */
.fcBody { fill: #0b2f52; stroke: rgb(190 226 250 / 40%); stroke-width: 2; }
.fcBay { fill: #061d33; stroke: rgb(190 226 250 / 20%); }
.fcRing { fill: none; stroke: var(--cyan); stroke-width: 3; }
.fcBlade { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.fcCoil { fill: none; stroke-width: 4; stroke-linecap: round; }
.fcFin { fill: none; stroke: rgb(190 226 250 / 25%); stroke-width: 2; }
.fcGrille { fill: #082440; stroke: rgb(190 226 250 / 30%); }
.airOut { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 8; animation: dash 0.8s linear infinite, toneSwap 8s ease-in-out infinite; }
.airOut.cool { stroke: var(--cyan); animation: dash 0.8s linear infinite; }
.gaugeTrack { fill: #021a30; stroke: rgb(190 226 250 / 25%); }
.gaugeFill { fill: var(--cyan); transform-origin: 0 108px; transform-box: view-box; animation: volt 4s ease-in-out infinite; }
@keyframes volt { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(0.85); } }

/* Mennyezet és padló */
.room { fill: rgb(6 29 51 / 70%); stroke: rgb(190 226 250 / 22%); }
.panel { fill: rgb(112 217 255 / 55%); }
.flowLine { fill: none; stroke-width: 3; stroke-dasharray: 8 10; animation: dash 0.9s linear infinite, toneSwap 8s ease-in-out infinite; }
.radiateDown { fill: none; stroke-width: 3; stroke-linecap: round; opacity: 0.8; animation: waveDown 2.4s ease-in-out infinite, toneSwap 8s ease-in-out infinite; }
@keyframes waveDown { 0% { transform: translateY(-6px); opacity: 0; } 40% { opacity: 0.9; } 100% { transform: translateY(70px); opacity: 0; } }
.floor { fill: rgb(190 226 250 / 18%); }
.slab { fill: #0a2742; stroke: rgb(190 226 250 / 25%); }
.heatUp { fill: none; stroke: var(--hot); stroke-width: 3; stroke-linecap: round; animation: waveUp 2.6s ease-in-out infinite; }
@keyframes waveUp { 0% { transform: translateY(10px); opacity: 0; } 40% { opacity: 0.9; } 100% { transform: translateY(-50px); opacity: 0; } }
.act { fill: #23384f; stroke: rgb(190 226 250 / 30%); }
.act.on { animation: actOn 3s ease-in-out infinite; }
.act.d2 { animation-delay: 1s; }
.act.d3 { animation: actOn 3s ease-in-out 2s infinite; }
@keyframes actOn { 0%, 100% { fill: #23384f; } 40%, 70% { fill: var(--hot); } }

/* Harmatpont */
.dewRing { fill: rgb(10 44 79 / 85%); stroke: rgb(190 226 250 / 25%); stroke-width: 10; }
.dewArc { fill: none; stroke: #7ed98a; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 390; stroke-dashoffset: 390; transform: rotate(-90deg); transform-origin: 320px 160px; animation: dewFill 4s var(--ease) infinite; }
@keyframes dewFill { 0% { stroke-dashoffset: 390; } 60%, 100% { stroke-dashoffset: 130; } }
.dewValue { fill: #fff; font-size: 26px; font-weight: 900; }
.okPill { fill: rgb(67 160 71 / 20%); stroke: rgb(126 217 138 / 60%); }
.okText { fill: #a8eab1; font-size: 12px; font-weight: 800; }
.drip { fill: #e6f8ff; animation: dripFall 2.4s ease-in infinite; }
@keyframes dripFall { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 70% { transform: translateY(60px); opacity: 1; } 100% { transform: translateY(60px) scale(1.6, 0.2); opacity: 0; } }

/* Klíma */
.acBody { fill: #e9f3fb; stroke: #b8d4ea; stroke-width: 2; }
.acSlot { fill: #b8cfe2; }
.acFlap { fill: #cfe2f2; stroke: #9ebdd6; }
.flap { animation: flapSwing 4s ease-in-out infinite; }
@keyframes flapSwing { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(14deg); } }
.ledOn { fill: #43a047; animation: blink 2s ease-in-out infinite; }
.gwBox { fill: #0b2f52; stroke: var(--cyan); stroke-width: 2; }

/* Légtechnika */
.hrvBody { fill: #0b2f52; stroke: rgb(190 226 250 / 40%); stroke-width: 2; }
.hrvCore { fill: none; stroke: rgb(190 226 250 / 30%); stroke-width: 3; }
.duct { fill: none; stroke-width: 18; stroke-linecap: round; opacity: 0.25; }
.duct.cool { stroke: var(--cyan); }
.duct.warm { stroke: var(--hot); }
.ductFlow { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 10 14; animation: dash 0.8s linear infinite; }
.ductFlow.cool { stroke: #c9f1ff; }
.ductFlow.warm { stroke: #ffc1a6; }

/* Keverőszelep */
.valve { fill: #0b2f52; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.valveHub { fill: var(--warm); }
.valveStem { stroke: var(--warm); stroke-width: 4; stroke-linecap: round; }
.valveTurn { animation: valveTurn 5s ease-in-out infinite; }
@keyframes valveTurn { 0%, 100% { transform: rotate(-35deg); } 50% { transform: rotate(35deg); } }

/* Hőtermelők */
.tank { fill: #0a2742; stroke: rgb(190 226 250 / 40%); stroke-width: 2; }
.tankLevel { fill: rgb(255 138 91 / 35%); transform-origin: 250px 256px; animation: tankFill 6s ease-in-out infinite; }
@keyframes tankFill { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(0.92); } }
.coil { fill: none; stroke: var(--hot); stroke-width: 4; stroke-linecap: round; animation: blink 2.4s ease-in-out infinite; }

/* Mérés */
.meterFace { fill: #e9f3fb; stroke: #9ebdd6; stroke-width: 3; }
.meterInner { fill: #fff; stroke: #cfe2f2; }
.needle { fill: var(--brand-strong); }
.lcd { fill: #a8eab1; font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.bus { stroke: var(--warm); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 10; animation: dash 0.6s linear infinite; fill: none; }
.busDrop { stroke: rgb(255 217 138 / 60%); stroke-width: 2; fill: none; }
.leakBox { fill: #0b2f52; stroke: var(--cyan); }
.leakRipple { fill: none; stroke: var(--cyan); stroke-width: 2; transform-origin: 400px 178px; animation: ripple 2.4s ease-out infinite; }
.leakRipple.r2 { animation-delay: 1.2s; }

/* Világítás */
.cord { stroke: rgb(190 226 250 / 40%); stroke-width: 2; }
.lamp { fill: var(--warm); }
.glow { fill: rgb(255 217 138 / 30%); filter: blur(12px); animation: dim 5s ease-in-out infinite; }
.glow.g2 { animation-delay: 2.5s; }
@keyframes dim { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.window { fill: rgb(112 217 255 / 25%); stroke: rgb(190 226 250 / 40%); }
.blindSheet { fill: #12395f; }
.slats { stroke: rgb(190 226 250 / 30%); stroke-width: 2; fill: none; }
.blinds { transform-origin: 370px 70px; animation: blindsMove 7s ease-in-out infinite; }
@keyframes blindsMove { 0%, 15% { transform: scaleY(1); } 45%, 70% { transform: scaleY(0.18); } 100% { transform: scaleY(1); } }

/* Integrációk */
.hub { fill: #0b4c86; stroke: var(--cyan); stroke-width: 3; }
.hubPulse { fill: none; stroke: var(--cyan); stroke-width: 2; transform-origin: 240px 160px; animation: ripple 2.6s ease-out infinite; }
.hubText { fill: #fff; font-size: 14px; font-weight: 900; }
.spoke { stroke: rgb(112 217 255 / 25%); stroke-width: 2; }
.packet { stroke: var(--cyan); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 10 260; animation: packet 2.4s linear infinite; filter: drop-shadow(0 0 4px var(--cyan)); }
.packet.p2 { animation-delay: .4s; stroke: var(--warm); filter: drop-shadow(0 0 4px var(--warm)); }
.packet.p3 { animation-delay: .8s; }
.packet.p4 { animation-delay: 1.2s; stroke: var(--warm); filter: drop-shadow(0 0 4px var(--warm)); }
.packet.p5 { animation-delay: 1.6s; }
.packet.p6 { animation-delay: 2s; stroke: var(--warm); filter: drop-shadow(0 0 4px var(--warm)); }
@keyframes packet { from { stroke-dashoffset: 270; } to { stroke-dashoffset: 0; } }
.node { fill: rgb(10 44 79 / 90%); stroke: rgb(112 217 255 / 55%); }
.nodeText { fill: #fff; font-size: 13px; font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  .page[data-motion] .solRow .solFigure, .page[data-motion] .solRow .specs > div { opacity: 1; transform: none; }
  .gaugeFill { transform: scaleY(0.6); }
  .tankLevel { transform: scaleY(0.7); }
  .dewArc { stroke-dashoffset: 130; }
  .glow { opacity: 0.7; }
}

/* ══ Többoldalas váz ══════════════════════════════════════════════════ */
.topbar { padding-top: calc(18px + env(safe-area-inset-top)); padding-bottom: 18px; }
.topnav a[aria-current="page"] { color: #fff; }
.topnav a[aria-current="page"]::after { transform: scaleX(1); }

/* Mobilmenü JavaScript nélkül */
.menu { position: relative; }
.menu summary {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--glass);
  border-radius: 14px;
  background: rgb(220 242 255 / 7%);
  cursor: pointer;
  list-style: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; }
.menu .menuClose, .menu[open] .menuOpen { display: none; }
.menu[open] .menuClose { display: block; }
.menuPanel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--glass);
  border-radius: 18px;
  background: rgb(4 22 40 / 96%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / 80%);
  animation: rise 300ms var(--ease) both;
}
.menuPanel a { padding: 12px 14px; border-radius: 12px; font-weight: 800; color: var(--muted); }
.menuPanel a:hover, .menuPanel a[aria-current="page"] { color: #fff; background: rgb(17 146 232 / 30%); }

/* Oldalfejléc az aloldalakon */
.pageHead { max-width: 1232px; margin: 0 auto; padding: 56px 16px 0; }
.pageTitle {
  max-width: 900px;
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.pageHead .lead { max-width: 720px; }
.section.first { margin-top: 48px; }

/* Főoldali „Fedezze fel” és megoldáscsoport-kártyák */
.exploreGrid, .groupGrid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.exploreCard, .groupCard {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--glass);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(280px circle at var(--gx, 50%) var(--gy, 0%), rgb(112 217 255 / 18%), transparent 70%),
    linear-gradient(145deg, rgb(255 255 255 / 7%), transparent 40%),
    rgb(13 56 98 / 32%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%), 0 20px 40px -28px rgb(0 8 24 / 80%);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.page[data-motion] .exploreCard[data-visible], .page[data-motion] .groupCard[data-visible] {
  transition: opacity 800ms var(--ease) var(--reveal-delay, 0ms), transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.exploreCard:hover, .groupCard:hover { border-color: rgb(126 207 255 / 55%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%), 0 30px 60px -28px rgb(0 100 180 / 75%); }
.exploreIcon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgb(17 146 232 / 40%), rgb(112 217 255 / 12%));
  color: var(--cyan);
  box-shadow: 0 0 30px -8px var(--cyan);
  transition: transform 400ms cubic-bezier(0.3, 1.6, 0.5, 1);
}
.exploreIcon svg { width: 28px; height: 28px; }
.exploreCard:hover .exploreIcon, .groupCard:hover .exploreIcon { transform: scale(1.1) rotate(-6deg); }
.exploreCard strong, .groupCard strong { margin-top: 6px; font-size: 1.3rem; font-weight: 900; }
.exploreCard > span:not(.exploreIcon), .groupDesc { color: var(--dim); line-height: 1.55; }
.exploreCard em, .groupCard em { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-style: normal; font-weight: 800; color: var(--cyan); }
.exploreCard:hover .arrow, .groupCard:hover .arrow { transform: translateX(5px); }
.groupNum {
  position: absolute;
  top: 14px;
  right: 22px;
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgb(112 217 255 / 35%);
}
.groupCard ul { display: grid; gap: 6px; margin-top: 4px; }
.groupCard li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; color: var(--muted); font-size: 0.92rem; }
.groupCard li svg { margin-top: 3px; color: #7ed98a; }

/* Előző–következő lapozás */
.prevNext { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 48px; }
.pnLink {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--glass);
  border-radius: 18px;
  background: rgb(13 56 98 / 28%);
  transition: border-color 250ms ease, transform 250ms var(--ease);
}
.pnLink:hover { border-color: rgb(126 207 255 / 55%); transform: translateY(-2px); }
.pnLink svg { width: 22px; height: 22px; color: var(--cyan); flex: none; }
.pnLink span { display: grid; gap: 2px; font-weight: 800; }
.pnLink em { font-style: normal; font-size: 0.78rem; color: var(--dim); font-weight: 700; }
.pnLink.next { justify-content: space-between; text-align: right; }

/* Lábléc */
.footer { align-items: center; }
.footBrand { display: grid; gap: 8px; }
.footBrand img { height: 30px; width: auto; }
.footNav { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 700; }
.footNav a:hover, .footMail:hover { color: #fff; }
.footMail { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }

@media (min-width: 720px) {
  .exploreGrid { grid-template-columns: repeat(2, 1fr); }
  .groupGrid { grid-template-columns: repeat(2, 1fr); }
  .prevNext { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .brand { height: 44px; }
  .menu { display: none; }
  .exploreGrid { grid-template-columns: repeat(4, 1fr); }
  .groupGrid { grid-template-columns: repeat(3, 1fr); }
  .pageHead { padding-top: 72px; }
}

/* ══ Főoldal: egész képernyős társasház-jelenet ═══════════════════════ */
.stage {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: calc(100dvh - 90px);
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 16px 24px;
}

.stageText { position: relative; z-index: 2; text-align: center; padding-top: 12px; }

.stageTitle {
  margin-top: 16px;
  font-size: clamp(2.2rem, 5.6vw, 4.6rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.stageArt {
  position: relative;
  align-self: start;
  width: min(100%, calc((100dvh - 300px) * 1.6667));
  aspect-ratio: 1200 / 720;
  margin: 24px auto 0;
  border-radius: 32px;
  box-shadow: 0 60px 120px -50px rgb(17 146 232 / 70%), inset 0 0 0 1px rgb(190 226 250 / 16%);
  animation: rise 1200ms var(--ease) 250ms both;
}

.stageSvg { display: block; width: 100%; height: 100%; border-radius: 32px; }
@media (min-width: 720px) and (max-height: 640px) { .stageArt { width: 100%; } }

/* Parallaxis rétegek (a JS állítja a --px / --py értéket) */
.layerFar { transform: translate(calc(var(--px, 0) * -6px), calc(var(--py, 0) * -4px)); transition: transform 600ms var(--ease); }
.layerMid { transform: translate(calc(var(--px, 0) * -12px), calc(var(--py, 0) * -6px)); transition: transform 600ms var(--ease); }
.layerNear { transform: translate(calc(var(--px, 0) * 8px), calc(var(--py, 0) * 4px)); transition: transform 600ms var(--ease); }

.star { fill: #fff; animation: twinkle 3.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.moon { fill: #eaf7ff; filter: drop-shadow(0 0 18px rgb(223 244 255 / 70%)); }

.cloudShape { fill: #e6f6ff; filter: drop-shadow(0 0 24px rgb(112 217 255 / 70%)); }
.cloudText { fill: #0b3a66; font: 900 13px "Nunito Local", sans-serif; text-anchor: middle; }
.cloudHaloAnim { transform-origin: 1000px 130px; animation: breathe 3.6s ease-in-out infinite; }

.bgw { fill: #ffd98a; opacity: .15; animation: bgLight 7s ease-in-out infinite; animation-delay: var(--d); }
@keyframes bgLight { 0%, 100% { opacity: .12; } 50% { opacity: .55; } }

.ground { fill: #041526; }
.groundLine { stroke: rgb(112 217 255 / 35%); stroke-width: 2; }
.trunk { fill: #2a3d52; }
.crown { fill: #0f5a4a; filter: drop-shadow(0 0 10px rgb(67 160 71 / 35%)); }
.tree { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

.facadeEdge { fill: none; stroke: rgb(159 216 255 / 35%); stroke-width: 2; }
.roofSlab { fill: #2a8ae0; }
.bw { fill: url(#windowLit); animation: aptLight 9s ease-in-out infinite; animation-delay: var(--d); }
.bw.dark { fill: #0a2f55; animation: aptDark 11s ease-in-out infinite; animation-delay: var(--d); }
@keyframes aptLight {
  0%, 18% { fill: #0a2f55; filter: none; }
  26%, 82% { fill: url(#windowLit); filter: drop-shadow(0 0 8px rgb(255 200 120 / 75%)); }
  92%, 100% { fill: #0a2f55; filter: none; }
}
@keyframes aptDark { 0%, 70%, 100% { fill: #0a2f55; } 78%, 90% { fill: #2f6fa8; } }
.balcony { fill: rgb(190 226 250 / 45%); }
.door { fill: #041a30; stroke: rgb(112 217 255 / 60%); }
.canopy { fill: #2a8ae0; }
.doorLight { fill: #ffd98a; filter: drop-shadow(0 0 8px #ffd98a); animation: blink 3s ease-in-out infinite; }

.riser { stroke: rgb(112 217 255 / 25%); stroke-width: 3; }
.riserPulse { stroke: #c9f1ff; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 18 480; animation: riser 2.6s linear infinite; filter: drop-shadow(0 0 6px var(--cyan)); }
.riserPulse.p2 { animation-delay: 1.3s; }
@keyframes riser { from { stroke-dashoffset: 498; } to { stroke-dashoffset: 0; } }

.hpBox { fill: #dbe9f5; stroke: #9ebdd6; }
.hpFan { transform-box: fill-box; transform-origin: center; animation: spin 1.1s linear infinite; }
.hpRing { fill: #0b3a66; stroke: #6e8faa; stroke-width: 2; }
.hpBlade { stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.hpGrill { fill: #9ebdd6; }
.mast { stroke: #9fd8ff; stroke-width: 3; stroke-linecap: round; }
.beacon { fill: var(--cyan); animation: blink 1.6s ease-in-out infinite; }
.beaconRing { fill: none; stroke: var(--cyan); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ripple 2s ease-out infinite; }

.uplink { fill: none; stroke: rgb(112 217 255 / 30%); stroke-width: 2; stroke-dasharray: 5 8; animation: dash 1.4s linear infinite; }
.uplinkPulse { fill: none; stroke: var(--cyan); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 26 600; animation: uplink 3s ease-in-out infinite; filter: drop-shadow(0 0 6px var(--cyan)); }
.uplinkPulse.p2 { animation-delay: 1.5s; stroke: var(--warm); filter: drop-shadow(0 0 6px var(--warm)); }
@keyframes uplink { from { stroke-dashoffset: 626; } to { stroke-dashoffset: 0; } }

/* Lebegő állapotjelzők a jeleneten */
.stageChips { position: absolute; inset: 0; pointer-events: none; }

.sChip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgb(190 226 250 / 30%);
  border-radius: 16px;
  background: rgb(6 30 54 / 78%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 14%), 0 18px 40px -16px rgb(0 0 0 / 80%);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  translate: calc(var(--px, 0) * 14px) calc(var(--py, 0) * 8px);
  transition: translate 600ms var(--ease);
  animation: chipCycle 12s var(--ease) infinite;
}

.sChip > svg { width: 22px; height: 22px; padding: 4px; border-radius: 8px; background: rgb(112 217 255 / 15%); color: var(--cyan); box-sizing: content-box; }
.sChip span { display: grid; color: var(--dim); }
.sChip b { color: #fff; font-weight: 800; }
.sChip.c1 { left: 6%; top: 40%; animation-delay: 0s; }
.sChip.c2 { right: 6%; top: 46%; animation-delay: 2s; }
.sChip.c3 { left: 56%; top: 4%; animation-delay: 4s; }
.sChip.c4 { left: 10%; top: 66%; animation-delay: 6s; }
.sChip.c5 { right: 9%; top: 72%; animation-delay: 8s; }
.sChip.c6 { left: 24%; top: 14%; animation-delay: 10s; }
.sChip.c3 > svg, .sChip.c1 > svg { color: var(--warm); background: rgb(255 217 138 / 15%); }
.sChip.c6 > svg { color: #7ed98a; background: rgb(126 217 138 / 15%); }

@keyframes chipCycle {
  0% { opacity: 0; transform: translateY(14px) scale(.92); }
  5%, 40% { opacity: 1; transform: none; }
  48%, 100% { opacity: 0; transform: translateY(-10px) scale(.96); }
}

@media (max-width: 719px) {
  .stageArt { width: auto; aspect-ratio: 3 / 4; margin: 20px -8px 0; border-radius: 22px; }
  .stage { min-height: 0; }
  .stageSvg { border-radius: 22px; }
  .sChip { font-size: 0.66rem; padding: 6px 9px; gap: 6px; }
  .sChip > svg { width: 16px; height: 16px; }
  .sChip.c3 { left: 44%; }
}

@media (prefers-reduced-motion: reduce) {
  .stageChips .sChip { animation: none; opacity: 1; }
  .stageChips .sChip.c4, .stageChips .sChip.c5, .stageChips .sChip.c6 { display: none; }
  .bw { fill: url(#windowLit); }
}
