/*
═══════════════════════════════════════════════════════════════
  ESETTANULMÁNY · Nívó Bútor · V06 mockup — oldal-specifikus stílusok
  Alap: main.css (nav, footer, popup, tokenek, tipográfia)
  ───────────────────────────────────────────────────────────
  CHANGELOG
  v1 (2026-07-16) — hero (fotó) + kiinduló helyzet + folyamat-idővonal
                    + 7 modul + eredmény (projekció) + Bence-idézet
                    + partner-bemutató + záró CTA
═══════════════════════════════════════════════════════════════
*/

body { overflow-x: clip; }

/* ezen az oldalon a fejléc mindig tömör fekete */
.nav, .nav.nav--dark {
  background: #0a0a0c;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* GSAP nem rejt el semmit; JS/reduced-motion nélkül minden látszik */

/* ============ HERO (fotó-háttér) ============ */
.cs-hero {
  position: relative;
  /* a 44px a mockup-banner; élesítéskor sima 100vh */
  min-height: calc(100vh - 44px);
  display: flex;
  align-items: flex-start;
  padding: 160px clamp(24px, 5vw, 60px) clamp(60px, 7vw, 90px);
  overflow: hidden;
  background: #0a0a0c;
}
.cs-hero-bg {
  position: absolute;
  inset: 0;
  background-image: image-set(
    url("../media/case-hero-nivo-01-2k.webp") 1x
  );
  background-size: cover;
  background-position: center 40%;
  will-change: transform;
}
.cs-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 12, 0.92) 0%, rgba(10, 10, 12, 0.68) 40%, rgba(10, 10, 12, 0.2) 70%, transparent 100%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.45) 0%, transparent 30%, rgba(10, 10, 12, 0.8) 100%);
  pointer-events: none;
}
.cs-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cs-hero-inner > * { width: min(780px, 100%); }
.cs-hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  padding: 8px 16px 8px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.cs-hero-brand img { height: 30px; width: auto; border-radius: 999px; }
.cs-hero-brand span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.85);
}
.cs-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.72);
  margin-bottom: 22px;
}
.cs-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: #fff;
  text-wrap: balance;
  max-width: 16ch;
  margin-bottom: 22px;
}
.cs-hero h1 .dim { color: rgba(245, 245, 247, 0.5); }

.cs-hero-lead {
  max-width: 620px;
  font-size: clamp(1.05rem, 1.3vw, 1.28rem);
  color: rgba(245, 245, 247, 0.82);
  line-height: 1.6;
}
.cs-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(30px, 4vw, 46px);
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.cs-hero-meta div .k {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.5);
  display: block;
  margin-bottom: 6px;
}
.cs-hero-meta div .v {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  font-weight: 600;
  color: #fff;
}

/* ============ KÖZÖS SZEKCIÓ-FEJEK ============ */
.cs-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  margin-bottom: 20px;
}
.cs-section { padding: clamp(80px, 10vw, 150px) clamp(24px, 5vw, 60px); }
.cs-inner { max-width: 1120px; margin: 0 auto; }
.cs-head { max-width: 780px; margin: 0 auto clamp(48px, 6vw, 76px); text-align: center; }
.cs-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: #0a0a0c;
}
.cs-head h2 span { color: var(--text-mute); }
.cs-head p { margin-top: 18px; color: var(--text-mute); font-size: clamp(1rem, 1.1vw, 1.15rem); line-height: 1.65; }

/* ============ KIINDULÓ HELYZET (fehér, nyitott oszlopok) ============ */
.cs-before { background: #fff; }
.cs-before-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cs-chaos {
  padding: clamp(20px, 1.8vw, 26px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.cs-chaos .cs-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cs-chaos .cs-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg-tint); color: #0a0a0c;
}
.cs-chaos .cs-ic svg { width: 22px; height: 22px; }
.cs-chaos .no {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.cs-chaos h3 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.15vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0a0a0c;
  margin-bottom: 8px;
}
.cs-chaos p { font-size: 0.9rem; color: var(--text-mute); line-height: 1.55; }
.cs-before-line {
  max-width: 780px;
  margin: clamp(44px, 5vw, 64px) auto 0;
  text-align: center;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.5;
  color: var(--text);
}
.cs-before-line b { color: var(--accent); font-style: normal; font-weight: 600; }
@media (max-width: 1100px) { .cs-before-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .cs-before-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cs-before-grid { grid-template-columns: 1fr; } }

/* ============ FOLYAMAT-IDŐVONAL — Pötty-mező háttérrel ============ */
.cs-flow { position: relative; background: var(--bg-soft); border-top: 1px solid var(--line); overflow: hidden; }
.cs-flow::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(15, 18, 22, 0.1) 1px, transparent 0);
  background-size: 20px 20px;
  -webkit-mask: radial-gradient(ellipse 78% 85% at 50% 45%, black 28%, transparent 80%);
  mask: radial-gradient(ellipse 78% 85% at 50% 45%, black 28%, transparent 80%);
  pointer-events: none;
}
.cs-flow .cs-inner { position: relative; z-index: 2; }
.cs-timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 3vw, 40px);
}
.cs-timeline::before {
  content: '';
  position: absolute;
  left: 27px; top: 12px; bottom: 12px;
  width: 2px;
  background: var(--line);
}
.cs-timeline .prog {
  content: '';
  position: absolute;
  left: 27px; top: 12px;
  width: 2px;
  height: 0;
  background: var(--good);
  will-change: height;
}
.cs-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: start;
}
.cs-step .dot {
  position: relative;
  z-index: 2;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mute);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease), background 0.4s var(--ease);
}
.cs-step.on .dot { border-color: var(--good); color: #fff; background: var(--good); }
/* záró pipa-csomópont: az idővonal teljesülés-jele */
.cs-step-final { align-items: center; }
.cs-step-final .dot { color: var(--text-faint); }
.cs-step-final .dot svg { width: 22px; height: 22px; }
.cs-step-final .cs-step-caption {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-mute);
  transition: color 0.4s var(--ease);
}
.cs-step-final.on .cs-step-caption { color: #0a0a0c; }
.cs-step-card {
  padding: clamp(20px, 2.4vw, 28px) clamp(22px, 2.6vw, 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 18px 44px -22px rgba(16, 24, 40, 0.16);
}
.cs-step-card .ph {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.cs-step-card h3 { font-family: var(--font-display); font-size: clamp(1.2rem, 1.6vw, 1.5rem); font-weight: 700; letter-spacing: -0.02em; color: #0a0a0c; margin-bottom: 8px; }
.cs-step-card p { color: var(--text-mute); font-size: 0.96rem; line-height: 1.6; }
/* a kártya a vonallal SZINKRONBAN lép be: akkor, amikor a pötty aktiválódik (.on). minden méretben. */
.cs-timeline.cs-anim .cs-step-card { opacity: 0; transform: translateX(40px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.cs-timeline.cs-anim .cs-step.on .cs-step-card { opacity: 1; transform: none; }

/* ============ 7 MODUL — Mérnöki rács háttérrel ============ */
#modulok { position: relative; overflow: hidden; }
#modulok::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 18, 22, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 18, 22, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask: radial-gradient(ellipse 85% 90% at 50% 50%, black 30%, transparent 82%);
  mask: radial-gradient(ellipse 85% 90% at 50% 50%, black 30%, transparent 82%);
  pointer-events: none;
}
#modulok .cs-inner { position: relative; z-index: 2; }
.cs-mods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 30px 60px -34px rgba(16, 24, 40, 0.2);
}
.cs-mod {
  padding: clamp(24px, 2.6vw, 34px) clamp(20px, 2.2vw, 28px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cs-mod:nth-child(4n) { border-right: none; }
.cs-mod:nth-last-child(-n+4) { border-bottom: none; }
.cs-mod .num { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.16em; color: var(--accent); display: block; margin-bottom: 14px; }
.cs-mod h3 { font-family: var(--font-display); font-size: clamp(1.25rem, 1.6vw, 1.55rem); font-weight: 800; letter-spacing: -0.025em; color: #0a0a0c; margin-bottom: 8px; }
.cs-mod p { font-size: 0.94rem; font-weight: 500; color: #374151; line-height: 1.55; }
.cs-mod.feature { background: linear-gradient(150deg, rgba(225, 90, 48, 0.09), rgba(225, 90, 48, 0.02)); }
.cs-mod.feature .num { color: var(--accent-hot); }
.cs-mod .soon {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-faint);
  padding: 3px 10px;
  border: 1px dashed var(--line-2);
  border-radius: 999px;
}
@media (max-width: 900px) {
  .cs-mods-grid { grid-template-columns: 1fr 1fr; }
  .cs-mod:nth-child(4n) { border-right: 1px solid var(--line); }
  .cs-mod:nth-child(2n) { border-right: none; }
}
@media (max-width: 560px) {
  .cs-mods-grid { grid-template-columns: 1fr; }
  .cs-mod { border-right: none !important; }
}

/* ============ EREDMÉNY (projekció) — Vonal-rojt az alján ============ */
.cs-result { position: relative; background: var(--bg-soft); border-top: 1px solid var(--line); overflow: hidden; }
.cs-result::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 14px);
  -webkit-mask: linear-gradient(0deg, #000 0%, transparent 92%);
  mask: linear-gradient(0deg, #000 0%, transparent 92%);
  pointer-events: none;
}
.cs-result .cs-inner { position: relative; z-index: 2; }
.cs-result-note {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.cs-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cs-metric {
  padding: clamp(28px, 3vw, 40px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 20px 48px -24px rgba(16, 24, 40, 0.18);
  text-align: center;
}
.cs-metric .big {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 12px;
}
.cs-metric .lbl { font-size: 0.96rem; color: var(--text-mute); line-height: 1.5; }
@media (max-width: 780px) { .cs-result-grid { grid-template-columns: 1fr; } }

/* ============ IDÉZET ============ */
.cs-quote { position: relative; background: #0a0a0c; color: #f5f5f7; text-align: center; overflow: hidden; }
/* Pötty-mező: halvány pontrács az idézet mögött */
.cs-quote::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.09) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask: radial-gradient(ellipse 70% 80% at 50% 50%, black 25%, transparent 78%);
  mask: radial-gradient(ellipse 70% 80% at 50% 50%, black 25%, transparent 78%);
  pointer-events: none;
}
.cs-quote-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.cs-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.32;
  color: #fff;
  text-wrap: balance;
}
.cs-quote blockquote em { color: var(--accent-hot); font-style: normal; }
.cs-quote .mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.6;
  color: var(--accent);
  display: block;
  margin-bottom: 20px;
}
.cs-quote figcaption {
  margin-top: clamp(28px, 4vw, 44px);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.cs-quote figcaption img { height: 46px; width: 46px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255, 255, 255, 0.2); }
.cs-quote figcaption .who { text-align: left; }
.cs-quote figcaption .who b { display: block; font-size: 1rem; font-weight: 600; color: #fff; }
.cs-quote figcaption .who span { font-size: 0.86rem; color: rgba(245, 245, 247, 0.55); }
.cs-quote .disclaim { margin-top: 26px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; color: rgba(245, 245, 247, 0.34); }

/* ============ A PARTNER ============ */
.cs-partner { background: #fff; padding-top: clamp(100px, 12vw, 180px); padding-bottom: clamp(100px, 12vw, 180px); }
.cs-partner-inner {
  max-width: 1300px; margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.cs-partner-text .logo { height: 40px; width: auto; margin-bottom: 24px; }
.cs-partner-text h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: #0a0a0c; margin-bottom: 18px; }
.cs-partner-text p { color: var(--text-mute); font-size: 1rem; line-height: 1.7; margin-bottom: 16px; }
.cs-partner-text .visit {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 10px;
  font-weight: 600; font-size: 1rem;
  color: #0a0a0c;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cs-partner-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; min-height: clamp(420px, 44vw, 620px); }
.cs-partner-photos img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 20px 48px -24px rgba(16, 24, 40, 0.28);
}
.cs-partner-photos img:first-child { grid-row: span 2; height: 100%; }
@media (max-width: 820px) {
  .cs-partner-inner { grid-template-columns: 1fr; }
  .cs-partner-photos { grid-template-columns: 1fr; min-height: auto; }
  .cs-partner-photos img:first-child { grid-row: auto; }
}

/* ============ ZÁRÓ CTA — Vonal-rojt az alján ============ */
.cs-cta { position: relative; text-align: center; padding: clamp(90px, 12vw, 160px) clamp(24px, 5vw, 60px); background: var(--bg-soft); border-top: 1px solid var(--line); overflow: hidden; }
.cs-cta-inner { position: relative; z-index: 2; }
/* Pötty-mező a záró CTA mögött */
.cs-cta-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(15, 18, 22, 0.11) 1px, transparent 0);
  background-size: 20px 20px;
  -webkit-mask: radial-gradient(ellipse 72% 80% at 50% 45%, black 25%, transparent 78%);
  mask: radial-gradient(ellipse 72% 80% at 50% 45%, black 25%, transparent 78%);
  will-change: transform, opacity;
  pointer-events: none;
}
.cs-cta-inner { max-width: 720px; margin: 0 auto; }
.cs-cta h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; color: #0a0a0c; margin-bottom: 20px; }
.cs-cta h2 span { color: var(--text-mute); }
.cs-cta p { color: var(--text-mute); font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.6; margin-bottom: 34px; }
.cs-cta .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ LAPTOP-KOMPAKT ============ */



/* ============ LAPTOP-KOMPAKT ============ */
@media (max-height: 1000px) {
  /* a hero-szöveg legalább 100px-szel feljebb laptopon */
  .cs-hero { padding-top: 58px; }
}

/* hero-cím nagy képernyőn (egységesítve a főoldalhoz) */
@media (min-width: 1900px) { .cs-hero h1 { font-size: 4.6rem; } }
