/* ==========================================================
   WebHive — Hamarosan jövünk
   Tiszta CSS, semmi build, semmi telepítés.
   ========================================================== */

:root {
  --honey: #ffb800;
  --amber: #ff8a00;
  --gold: #ffd45c;
  --bg: #0a0907;
  --ink: #f6efe2;
  --muted: #a39a8a;
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
  background:
    radial-gradient(1100px 760px at 50% 42%, #22190a 0%, #0d0b07 55%, #050403 100%);
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--honey); color: #1a1200; }

/* ---------- Háttérrétegek ---------- */

#hive {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 8s steps(10) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  30% { transform: translate(3%, -15%); }
  50% { transform: translate(12%, 9%); }
  70% { transform: translate(9%, 4%); }
  90% { transform: translate(-1%, 7%); }
}

.cursor-glow {
  position: fixed;
  left: 0; top: 0;
  width: 520px; height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(255, 184, 0, .13), transparent 62%);
  mix-blend-mode: screen;
  will-change: transform;
}

/* ---------- Lebegő 3D hatszögek ---------- */

.fh-wrap {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  perspective: 900px;
}

.floating-hexes {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.fhex {
  position: absolute;
  width: var(--s);
  aspect-ratio: 1 / 1.1547;
  transform-style: preserve-3d;
  animation: drift var(--dur) ease-in-out var(--delay) infinite alternate;
}

.fhex i {
  position: absolute;
  inset: 0;
  clip-path: var(--hex);
  background: linear-gradient(135deg, var(--gold), var(--amber) 60%, #b34d00);
  opacity: var(--o, .6);
}

.fhex i::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: var(--hex);
  background: linear-gradient(160deg, rgba(255, 255, 255, .45), transparent 45%);
}

.fhex.ghost i { background: linear-gradient(135deg, rgba(255, 210, 90, .7), rgba(255, 140, 0, .25)); }
.fhex.ghost i::after { inset: 2px; background: #0d0b07; }

@keyframes drift {
  0% {
    transform: translate3d(0, 0, var(--z)) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  100% {
    transform: translate3d(var(--tx), var(--ty), calc(var(--z) + 220px))
               rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(60deg);
  }
}

/* ---------- Fejléc ---------- */

.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px clamp(20px, 5vw, 60px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: 1.25rem;
  letter-spacing: .01em;
}

.logo b { color: var(--honey); font-weight: 900; }

/* 3D hatszög-hasáb logó */
.prism-wrap {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  perspective: 300px;
}

.prism {
  position: relative;
  width: 20px; height: 30px;
  transform-style: preserve-3d;
  animation: spin 7s linear infinite;
}

.prism i {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--gold), var(--amber));
  border: 1px solid rgba(255, 240, 200, .35);
  transform: rotateY(calc(var(--i) * 60deg)) translateZ(17.32px);
  backface-visibility: visible;
}

.prism i:nth-child(odd) { background: linear-gradient(180deg, var(--honey), #d96a00); }

.prism .cap {
  position: absolute;
  width: 40px; height: 34.64px;
  left: -10px; top: -2.32px;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: #ffe08a;
}

.prism .cap-top { transform: rotateX(90deg) translateZ(15px); }
.prism .cap-bottom { transform: rotateX(-90deg) translateZ(15px); background: #a84a00; }

@keyframes spin {
  from { transform: rotateX(-22deg) rotateY(0deg); }
  to   { transform: rotateX(-22deg) rotateY(360deg); }
}

.socials { display: flex; gap: 10px; }

.socials a {
  width: 40px; height: 46px;
  display: grid;
  place-items: center;
  clip-path: var(--hex);
  background: rgba(255, 184, 0, .14);
  color: var(--ink);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), background .25s, color .25s;
}

.socials a:hover,
.socials a:focus-visible {
  background: var(--honey);
  color: #1a1200;
  transform: translateY(-4px) scale(1.1);
  outline: none;
}

/* ---------- Fő színpad + 3D kártya ---------- */

.stage {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 100px 18px 64px;
  perspective: 1400px;
  overflow: hidden;
}

.card3d {
  position: relative;
  width: min(860px, 100%);
  padding: clamp(34px, 5vw, 64px) clamp(20px, 5vw, 64px);
  text-align: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.card-bg {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(20, 15, 6, .55), rgba(10, 8, 4, .25) 50%, rgba(20, 14, 5, .5));
  border: 1px solid rgba(255, 200, 80, .18);
  backdrop-filter: blur(2px) saturate(120%);
  -webkit-backdrop-filter: blur(2px) saturate(120%);
  box-shadow:
    0 50px 120px -30px rgba(0, 0, 0, .8),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

.card-shine {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 200, 80, .16), transparent 45%);
  transform: translateZ(1px);
}

.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 184, 0, .3);
  background: rgba(255, 184, 0, .07);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  transform: translateZ(40px);
  opacity: 0;
  animation: fadeUp .9s .1s cubic-bezier(.2, .8, .2, 1) forwards;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--honey);
  box-shadow: 0 0 0 0 rgba(255, 184, 0, .7);
  animation: ping 1.8s infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 184, 0, .7); }
  80%, 100% { box-shadow: 0 0 0 12px rgba(255, 184, 0, 0); }
}

/* Cím, betűnként 3D-ben beforduló karakterekkel */
.title {
  position: relative;
  margin: 22px 0 18px;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(2.3rem, 8.5vw, 6rem);
  line-height: 1;
  letter-spacing: -.035em;
  transform: translateZ(90px);
  transform-style: preserve-3d;
  perspective: 600px;
}

.title .line { display: block; white-space: nowrap; }

.title .ch {
  display: inline-block;
  opacity: 0;
  transform-origin: 50% 100%;
  animation: chIn 1.1s cubic-bezier(.2, .9, .25, 1) forwards;
  animation-delay: calc(var(--d) * 55ms + 250ms);
}

.title .ch i {
  display: inline-block;
  font-style: normal;
  transition: transform .45s cubic-bezier(.3, 1.8, .5, 1), color .3s, text-shadow .3s;
}

.title .ch i:hover {
  transform: translateY(-14px) rotateX(25deg) rotateZ(-6deg);
  color: #fff;
}

.title .accent .ch i {
  color: var(--honey);
  background: linear-gradient(180deg, #ffe08a 10%, var(--honey) 50%, var(--amber) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 30px rgba(255, 150, 0, .35));
}

.title .accent .ch i:hover { -webkit-text-fill-color: #fff; }

@keyframes chIn {
  from { opacity: 0; transform: translateY(70%) rotateX(-95deg) scale(.8); }
  to   { opacity: 1; transform: none; }
}

.lead {
  position: relative;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--muted);
  line-height: 1.6;
  transform: translateZ(50px);
  opacity: 0;
  animation: fadeUp .9s 1s cubic-bezier(.2, .8, .2, 1) forwards;
}

.typer { color: var(--ink); font-weight: 600; }

.caret {
  color: var(--honey);
  font-weight: 400;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.br-m { display: none; }

/* ---------- Visszaszámláló (3D billenő számok) ---------- */

.countdown {
  position: relative;
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2.2vw, 24px);
  margin: 30px 0 32px;
  transform: translateZ(70px);
  transform-style: preserve-3d;
  opacity: 0;
  animation: fadeUp .9s 1.2s cubic-bezier(.2, .8, .2, 1) forwards;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.flip {
  position: relative;
  width: clamp(62px, 12vw, 104px);
  height: clamp(70px, 13vw, 112px);
  perspective: 420px;
}

.flip span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.9rem);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: linear-gradient(180deg, #261d0c 0%, #17120a 50%, #120e07 50%, #0e0b06 100%);
  border: 1px solid rgba(255, 184, 0, .25);
  box-shadow:
    0 18px 40px -12px rgba(0, 0, 0, .8),
    inset 0 1px 0 rgba(255, 220, 140, .12);
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}

.flip::after {
  content: '';
  position: absolute;
  left: 6px; right: 6px;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, .7);
  box-shadow: 0 1px 0 rgba(255, 200, 100, .08);
  z-index: 2;
}

.flip.tick span { animation: tick .65s cubic-bezier(.3, 1.5, .5, 1); }

@keyframes tick {
  0%   { transform: rotateX(-100deg); opacity: .2; color: var(--honey); }
  60%  { color: var(--honey); }
  100% { transform: rotateX(0deg); opacity: 1; }
}

.unit small {
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Feliratkozás ---------- */

.notify {
  position: relative;
  display: flex;
  gap: 8px;
  max-width: 540px;
  margin: 0 auto;
  padding: 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .38);
  border: 1px solid rgba(255, 184, 0, .22);
  transform: translateZ(60px);
  opacity: 0;
  animation: fadeUp .9s 1.4s cubic-bezier(.2, .8, .2, 1) forwards;
  transition: border-color .3s, box-shadow .3s;
}

.notify:focus-within {
  border-color: rgba(255, 184, 0, .6);
  box-shadow: 0 0 0 6px rgba(255, 184, 0, .08);
}

.notify input {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.notify input::placeholder { color: #7d7466; }

.notify button {
  position: relative;
  flex-shrink: 0;
  padding: 15px 26px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .02em;
  color: #1a1200;
  background: linear-gradient(135deg, var(--gold), var(--honey) 45%, var(--amber));
  box-shadow: 0 10px 30px -8px rgba(255, 140, 0, .6);
  overflow: hidden;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s;
}

.notify button::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-20deg);
  animation: sweep 3.5s 2.5s ease-in-out infinite;
}

@keyframes sweep {
  0% { left: -60%; }
  40%, 100% { left: 130%; }
}

.notify button span { position: relative; }

.notify button:hover { box-shadow: 0 16px 40px -8px rgba(255, 140, 0, .85); }

.notify.shake { animation: shake .45s cubic-bezier(.36, .07, .19, .97); opacity: 1; }

@keyframes shake {
  0%, 100% { transform: translateZ(60px) translateX(0); }
  20% { transform: translateZ(60px) translateX(-9px); }
  40% { transform: translateZ(60px) translateX(8px); }
  60% { transform: translateZ(60px) translateX(-6px); }
  80% { transform: translateZ(60px) translateX(4px); }
}

.form-msg {
  position: relative;
  min-height: 1.5em;
  margin-top: 16px;
  font-size: .92rem;
  color: var(--gold);
  transform: translateZ(40px);
}

.form-msg.err { color: #ff8f6b; }

@keyframes fadeUp {
  from { opacity: 0; translate: 0 24px; }
  to   { opacity: 1; translate: 0 0; }
}

/* ---------- Lábléc ---------- */

.foot {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 60px);
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .04em;
  pointer-events: none;
}

.bee {
  display: inline-block;
  animation: buzz 2.4s ease-in-out infinite;
}

@keyframes buzz {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  25% { transform: translate(4px, -5px) rotate(6deg); }
  50% { transform: translate(-2px, -2px) rotate(-4deg); }
  75% { transform: translate(3px, 3px) rotate(8deg); }
}

/* ---------- Mobil ---------- */

@media (max-width: 640px) {
  .socials a { width: 34px; height: 39px; font-size: .6rem; }
  .logo { font-size: 1.05rem; gap: 10px; }
  .br-m { display: block; }
  .notify { flex-direction: column; border-radius: 22px; }
  .notify input { padding: 14px 16px; text-align: center; }
  .notify button { width: 100%; }
  .foot { position: relative; justify-content: center; gap: 16px; flex-wrap: wrap; padding-top: 0; }
  .stage { padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .fhex, .bee, .notify button::before { animation: none !important; }
  .title .ch { animation-duration: .01s; animation-delay: 0s; }
}
