/* ==========================================================
   ALAP STÍLUSOK ÉS VÁLTOZÓK
   ========================================================== */
:root {
  --bg-top: #0c1013;
  --bg-bottom: #090c0e;
  --footer-bg: #07090b;

  --muted: #9aa8b2;
  --text: #eaf1f6;
  --primary: #61e1d0;
  --primary-2: #6dd6ff;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter,
          'Segoe UI Variable', Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
}

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

html, body {
  height: 100%;
  color-scheme: dark;
  scroll-behavior: smooth;
  overflow: hidden;
}

body {
  font: 16px/1.6 var(--font);
  color: var(--text);
  background: linear-gradient(120deg, var(--bg-top), var(--bg-bottom));
  animation: bgPulse 18s ease-in-out infinite alternate;
}

/* ==========================================================
   INTRO LOADER
   ========================================================== */
#intro-loader {
  position: fixed;
  inset: 0;
  background: #0a0c0d;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeOut .6s ease 1.2s forwards;
}

.loader-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  opacity: 0;
  animation: fadeIn .5s ease forwards;
}

.loader-logo .brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 20px rgba(109,214,255,.6);
}

/* ==========================================================
   CANVAS RÉTEGEK (TRAIL + HÁLÓ)
   ========================================================== */
#trail-canvas,
#bg-network {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

#bg-network {
  opacity: .4;
}

/* ==========================================================
   FEJLÉC
   ========================================================== */
.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(6px);
  padding: 1rem 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 5;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 18px rgba(109,214,255,.6);
}

/* ==========================================================
   HERO SZEKCIÓ
   ========================================================== */
.hero.center {
  position: relative;
  height: calc(100vh - 180px);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  z-index: 2;
}

.fade-in > * {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease forwards;
}

.fade-in .lead {
  animation-delay: .15s;
}

.fade-in .btn {
  animation-delay: .3s;
}

.headline {
  font-size: clamp(4rem, 6vw + 2rem, 10rem);
  font-weight: 900;
}

.headline .accent {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.headline .dot {
  color: var(--primary);
  text-shadow: 0 0 20px rgba(97,225,208,.6);
}

.lead {
  color: var(--muted);
  margin: 1rem 0 2rem;
  font-size: 1.2rem;
}

/* ==========================================================
   GOMBOK
   ========================================================== */
.btn {
  position: relative;
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(109,214,255,.4);
  background: linear-gradient(180deg, rgba(109,214,255,.22), rgba(97,225,208,.18));
  border-radius: 14px;
  padding: .9rem 1.4rem;
  font-weight: 500;
  overflow: hidden;
  transition: transform .2s ease;
}

.btn:hover {
  transform: scale(1.03);
}

.btn.glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(97,225,208,.3) 0%, transparent 70%);
  animation: pulseGlow 3s ease-in-out infinite;
}

.ripple::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(109,214,255,.25) 10%, transparent 11%) center/15000%;
  opacity: 0;
  transition: opacity .6s, background-size .6s;
}

.ripple:active::after {
  opacity: 1;
  background-size: 100%;
  transition: 0s;
}

/* ==========================================================
   LEBEGŐ TEXT-PARTICLES
   ========================================================== */
.text-particle {
  position: absolute;
  top: var(--y);
  left: var(--x);
  color: rgba(109,214,255,.2);
  font-size: clamp(.7rem, 1vw, 1rem);
  animation: floatParticle 15s ease-in-out infinite;
}

/* ==========================================================
   ORB HÁTTÉR (PARALLAX)
   ========================================================== */
.bg-orb {
  position: absolute;
  pointer-events: none;
  filter: blur(60px);
  opacity: .25;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, var(--primary), transparent 60%),
    radial-gradient(circle at 70% 70%, var(--primary-2), transparent 60%);
  mix-blend-mode: lighten;
  animation: float 18s ease-in-out infinite;
}

.orb-1 {
  right: 10%;
  top: 15%;
}

.orb-2 {
  left: 8%;
  bottom: 10%;
  animation-direction: reverse;
  width: 560px;
  height: 560px;
}

/* ==========================================================
   FOOTER — minimalizált kétoldalas
   ========================================================== */
.site-footer {
  position: relative;
  background: var(--footer-bg);
  color: var(--muted);
  padding: 3rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: glowMove 6s linear infinite;
}

.footer-min {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .9rem;
  color: var(--muted);
}

.footer-left {
  color: var(--text);
  font-weight: 600;
}

.footer-right {
  color: var(--muted);
  text-decoration: none;
}

.footer-right:hover {
  color: var(--primary);
}

/* ==========================================================
   ANIMÁCIÓK
   ========================================================== */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: .5;
    transform: scale(1);
  }
  50% {
    opacity: .9;
    transform: scale(1.05);
  }
}

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

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

@keyframes bgPulse {
  0% {
    background: linear-gradient(120deg, #0c1013, #090c0e);
  }
  50% {
    background: linear-gradient(120deg, #0b1116, #070a0d);
  }
  100% {
    background: linear-gradient(120deg, #0c1013, #090c0e);
  }
}

@keyframes glowMove {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}