/* Tárhelyed.hu – filmszerű főoldal. Az animált kezdőállapotok csak .js-anim alatt
   rejtenek el bármit, így CDN-hiba vagy csökkentett mozgás esetén is minden látszik. */

.home .main-header { position: fixed; left: 0; right: 0; }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--th-gold-grad); transform-origin: 0 50%; transform: scaleX(0); z-index: 1200; }
.reduce-motion .scroll-progress { display: none; }

/* ---------- 1. Hero ---------- */
.scene-hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; display: flex; align-items: center; isolation: isolate; }
#orb { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-vignette { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, transparent 0%, rgba(5,7,13,.35) 55%, var(--th-bg-main) 100%), linear-gradient(180deg, rgba(5,7,13,.6) 0%, transparent 25%, transparent 75%, var(--th-bg-main) 100%); }
.hero-stage { position: relative; width: 100%; }
.hero-copy { max-width: 1240px; margin: 0 auto; padding: 0 24px; text-align: center; }
.hero-eyebrow { margin-bottom: 26px; padding: 7px 16px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--th-border-strong); backdrop-filter: blur(8px); letter-spacing: .1em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--th-green-light); box-shadow: 0 0 12px var(--th-green-light); animation: pulse 2s infinite; }
.hero-h1 { font-size: clamp(42px, 8.4vw, 124px); font-weight: 800; line-height: .98; letter-spacing: -.055em; color: var(--th-text-bright); margin-bottom: 28px; }
.hero-h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-h1 .line-inner { display: inline-block; will-change: transform; }
.hero-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--th-text-muted); max-width: 560px; margin: 0 auto 34px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-phrases { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.phrase { grid-area: 1 / 1; font-size: clamp(30px, 5.6vw, 84px); font-weight: 800; letter-spacing: -.045em; color: var(--th-text-bright); text-align: center; padding: 0 20px; opacity: 0; line-height: 1.05; }
.phrase b { display: block; font-size: 1.6em; background: var(--th-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reduce-motion .hero-phrases { display: none; }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--th-text-muted); }
.scroll-hint i { width: 1px; height: 46px; background: linear-gradient(var(--th-gold), transparent); animation: hint 2.2s var(--th-ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.js-anim .hero-h1 .line-inner { transform: translateY(110%); }
.js-anim .hero-eyebrow, .js-anim .hero-lead, .js-anim .hero-ctas, .js-anim .scroll-hint { opacity: 0; }

/* ---------- 2. Manifesztó ---------- */
.scene-manifesto { min-height: 100vh; display: flex; align-items: center; padding: 120px 0; }
.manifesto { font-size: clamp(28px, 4.6vw, 64px); font-weight: 700; line-height: 1.16; letter-spacing: -.035em; color: var(--th-text-bright); margin-top: 22px; max-width: 1100px; }
.manifesto em { font-style: normal; background: var(--th-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.manifesto .w { display: inline-block; }
.js-anim .manifesto .w { opacity: .14; }

/* ---------- 3. Számok ---------- */
.scene-stats { position: relative; padding: 140px 0; overflow: hidden; border-top: 1px solid var(--th-border); border-bottom: 1px solid var(--th-border); background: var(--th-bg-surface); }
.stats-bg-word { position: absolute; top: 50%; left: 0; transform: translateY(-50%); font-size: clamp(120px, 22vw, 360px); font-weight: 800; letter-spacing: -.06em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.06); pointer-events: none; line-height: 1; }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.big-stat { border-left: 1px solid var(--th-border-strong); padding: 10px 0 10px 24px; }
.big-num { font-size: clamp(54px, 7vw, 104px); font-weight: 800; letter-spacing: -.06em; color: var(--th-text-bright); line-height: 1; font-variant-numeric: tabular-nums; }
.big-unit { font-size: clamp(22px, 2.4vw, 34px); font-weight: 800; color: var(--th-gold); margin-left: 4px; }
.big-stat p { color: var(--th-text-muted); font-size: 14px; margin-top: 10px; }

/* ---------- 4. Vízszintes filmszalag ---------- */
.scene-horizontal { position: relative; overflow: hidden; padding: 110px 0 120px; }
.h-intro { margin-bottom: 56px; }
.h-track { display: flex; gap: 28px; padding: 0 max(24px, calc((100vw - 1240px) / 2 + 24px)); width: max-content; will-change: transform; perspective: 1400px; }
.reduce-motion .h-track, .no-pin .h-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; }
.h-panel { position: relative; flex: 0 0 auto; width: min(460px, 82vw); min-height: 460px; padding: 34px; border-radius: 24px; border: 1px solid var(--th-border); background: linear-gradient(160deg, var(--th-bg-card-hover), var(--th-bg-card) 60%); display: flex; flex-direction: column; overflow: hidden; scroll-snap-align: center; }
.h-panel::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 0%, rgba(245,165,36,.12), transparent 50%); pointer-events: none; }
.h-num { font-family: var(--th-mono); font-size: 13px; color: var(--th-gold); letter-spacing: .1em; }
.h-visual { position: relative; height: 170px; margin: 18px 0 26px; display: flex; align-items: center; gap: 22px; }
.h-panel h3 { font-size: 26px; font-weight: 800; color: var(--th-text-bright); letter-spacing: -.03em; line-height: 1.15; margin-bottom: 12px; }
.h-panel p { color: var(--th-text-muted); font-size: 15px; margin-top: auto; }
.orbit { position: relative; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: 34px; color: var(--th-gold); background: radial-gradient(circle, rgba(245,165,36,.18), transparent 70%); border: 1px solid rgba(245,165,36,.35); }
.orbit::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; border: 1px dashed rgba(245,165,36,.3); animation: spin 18s linear infinite; }
.orbit.blue { color: var(--th-blue-light); background: radial-gradient(circle, rgba(59,130,246,.2), transparent 70%); border-color: rgba(59,130,246,.4); }
.orbit.blue::after { border-color: rgba(59,130,246,.3); }
.orbit.green { color: var(--th-green-light); background: radial-gradient(circle, rgba(16,185,129,.2), transparent 70%); border-color: rgba(16,185,129,.4); }
.orbit.green::after { border-color: rgba(16,185,129,.3); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; flex: 1; }
.bars i { flex: 1; background: linear-gradient(var(--th-gold), rgba(245,165,36,.1)); border-radius: 4px 4px 0 0; animation: bar 1.6s ease-in-out infinite alternate; }
.bars i:nth-child(2) { animation-delay: -.3s; } .bars i:nth-child(3) { animation-delay: -.9s; } .bars i:nth-child(4) { animation-delay: -.5s; } .bars i:nth-child(5) { animation-delay: -1.2s; } .bars i:nth-child(6) { animation-delay: -.2s; } .bars i:nth-child(7) { animation-delay: -.7s; }
.bars.slow i { animation-duration: 3s; background: linear-gradient(var(--th-blue-light), rgba(59,130,246,.1)); }
@keyframes bar { from { height: 20%; } to { height: 100%; } }
.wave { flex: 1; height: 80px; overflow: visible; }
.wave path { fill: none; stroke: var(--th-blue-light); stroke-width: 2.5; stroke-dasharray: 18 10; animation: dash 1.2s linear infinite; filter: drop-shadow(0 0 6px rgba(124,176,255,.6)); }
.wave.fast path { stroke: var(--th-gold); stroke-dasharray: 400; animation: trace 2s var(--th-ease) infinite; filter: drop-shadow(0 0 6px rgba(245,165,36,.6)); }
@keyframes dash { to { stroke-dashoffset: -28; } }
@keyframes trace { from { stroke-dashoffset: 400; } to { stroke-dashoffset: -400; } }
.shield-rings { position: relative; flex: 1; height: 110px; }
.shield-rings i { position: absolute; left: 0; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; border: 2px solid var(--th-green-light); opacity: 0; animation: ring 2.4s ease-out infinite; }
.shield-rings i:nth-child(2) { animation-delay: .8s; } .shield-rings i:nth-child(3) { animation-delay: 1.6s; }
@keyframes ring { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(5) translateX(20px); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 5. Csomagok ---------- */
.scene-pricing { padding: 120px 0; perspective: 1400px; }
.scene-pricing .pricing-card { transform-style: preserve-3d; }

/* ---------- 6. Lépések (egymásra csúszó kártyák) ---------- */
.scene-steps { padding: 120px 0; border-top: 1px solid var(--th-border); }
.steps-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.steps-intro { position: sticky; top: 140px; }
.steps-intro .section-subtitle { margin-bottom: 26px; }
.steps-stack { display: flex; flex-direction: column; gap: 28px; padding-bottom: 10vh; }
.step-card { position: sticky; top: calc(120px + var(--i, 0) * 22px); min-height: 280px; padding: 34px; border-radius: 22px; border: 1px solid var(--th-border-strong); background: linear-gradient(160deg, #161d2e, var(--th-bg-card) 70%); box-shadow: 0 -20px 40px -20px rgba(0,0,0,.8); transform-origin: 50% 0; }
.step-card:nth-child(1) { --i: 0; } .step-card:nth-child(2) { --i: 1; } .step-card:nth-child(3) { --i: 2; } .step-card:nth-child(4) { --i: 3; }
.step-n { position: absolute; top: 26px; right: 30px; font-family: var(--th-mono); font-size: 56px; font-weight: 700; color: transparent; -webkit-text-stroke: 1px rgba(245,165,36,.45); line-height: 1; }
.step-card > i { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; color: var(--th-gold); background: var(--th-gold-subtle); border: 1px solid rgba(245,165,36,.3); margin-bottom: 40px; }
.step-card h3 { font-size: 26px; font-weight: 800; color: var(--th-text-bright); letter-spacing: -.03em; margin-bottom: 10px; }
.step-card p { color: var(--th-text-muted); font-size: 15px; max-width: 420px; }

/* ---------- 7. Domain ---------- */
.scene-domain { padding: 120px 0; background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(59,130,246,.1), transparent 70%); }
.scene-domain .domain-search-box { max-width: 920px; margin: 0 auto; }

/* ---------- 8. Referenciák ---------- */
.scene-refs { padding: 80px 0 120px; overflow: hidden; }
.marquee { overflow: hidden; margin-bottom: 56px; border-top: 1px solid var(--th-border); border-bottom: 1px solid var(--th-border); padding: 26px 0; }
.marquee-track { display: flex; align-items: center; gap: 48px; width: max-content; font-size: clamp(40px, 7vw, 96px); font-weight: 800; letter-spacing: -.05em; white-space: nowrap; }
.marquee-track span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35); transition: color .3s; }
.marquee-track span:hover { color: var(--th-text-bright); }
.marquee-track b { color: var(--th-gold); font-size: .5em; }
.reduce-motion .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
a.reference-card { display: block; }
.reference-url { font-size: 13px; font-weight: 700; color: var(--th-blue-light); }

/* ---------- 9. Záró CTA ---------- */
.scene-cta { position: relative; height: 100vh; min-height: 560px; overflow: hidden; }
.cta-base, .cta-reveal { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.cta-base h2 { font-size: clamp(48px, 9vw, 140px); font-weight: 800; letter-spacing: -.06em; color: var(--th-text-dim); }
.cta-reveal { background: var(--th-gold-grad); clip-path: circle(0% at 50% 50%); }
.reduce-motion .cta-reveal, .no-anim .cta-reveal { clip-path: none; }
.cta-reveal h2 { font-size: clamp(44px, 8vw, 128px); font-weight: 800; letter-spacing: -.06em; line-height: .98; color: #120c02; margin-bottom: 36px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn-dark, .btn-outline-dark { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; border-radius: 12px; padding: 14px 26px; font-size: 15px; transition: transform .2s var(--th-ease), background .2s; }
.btn-dark { background: #0b0802; color: #fcd581; }
.btn-dark:hover { transform: translateY(-2px); background: #000; }
.btn-outline-dark { border: 1.5px solid rgba(18,12,2,.6); color: #120c02; }
.btn-outline-dark:hover { background: rgba(18,12,2,.08); transform: translateY(-2px); }

/* ---------- Reszponzív ---------- */
@media (max-width: 980px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps-layout { grid-template-columns: 1fr; gap: 40px; }
  .steps-intro { position: static; }
}
@media (max-width: 640px) {
  .scene-manifesto, .scene-pricing, .scene-steps, .scene-domain { padding: 80px 0; }
  .scene-stats { padding: 90px 0; }
  .big-stat { padding-left: 16px; }
  .h-panel { min-height: 420px; padding: 26px; }
  .step-card { min-height: 240px; padding: 26px; }
  .step-n { font-size: 40px; }
}
