:root {
  --bg: #FFFFFF;
  --bg-soft: #F5F7FA; 
  --ink: #0B0C0E;
  --ink-soft: #5B616B;
  --line: rgba(11, 12, 14, 0.10);
  --accent: #1CA8EB;
  --accent-blue: #2490FD;
  --accent-hover: #1796d4;
  --accent-ink: #FFFFFF;
  --accent-soft: #EAF0FF;
  --surface: #FFFFFF;
  --surface-2: #F2F4F7;
  --green: #12B76A;
  --green-soft: #E7F9F1;
  --red: #F04438;
  --red-soft: #FEECEB;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
}

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

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

/* ---------- BETÖLTÉSI ANIMÁCIÓ (PRELOADER) ---------- */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg, #FFFFFF);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.motto {
  font-family: "Great Vibes", cursive;
  font-size: 30px;
  opacity: 0.95;
  line-height: 1.6;
  rotate: -3deg;
  margin-top: -40px;
  color: var(--accent);
  font-weight: 600;
}

/* Elrejti a betöltőt a fade-out osztály hozzáadásakor */
#page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Középső tipográfia pulzálása */
.loader-logo {
  font-family: 'League Gothic', cursive, sans-serif;
  font-size: clamp(54px, 12vw, 90px);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--accent-blue, #2490FD);
  letter-spacing: 4px;
  user-select: none;
  animation: logo-pulse 1s ease-in-out infinite alternate;
}

@keyframes logo-pulse {
  0% {
    opacity: 0.4;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1.02);
  }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Barlow', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-top: 100px;
  line-height: 1.5;
}

::selection {
  background: var(--accent-blue);
  color: #ffffff;
}

/* ---------- TIPOGRÁFIA ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'League Gothic', cursive, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

h1 { font-size: 2.5rem; line-height: 1.1; }
h2 { font-size: 2rem; line-height: 1.15; }
h3 { font-size: 1.5rem; line-height: 1.2; }
h4 { font-size: 1.25rem; }

p {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--ink);
}

.hero-inner p {
  color: var(--ink-soft);
}

/* ---------- KONTÉNER ---------- */
.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 20px 100px;
  width: 100%;
}

/* ---------- HEADER & NAV ---------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 100px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

/* Amikor a modal nyitva van, a header semmilyen körülmények között nem látszódhat */
body.modal-open header {
  display: none !important;
}

.logo-mark img {
  height: 38px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.logo-mark img:hover {
  transform: scale(1.02);
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
}

nav ul li {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

nav ul li a {
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
  text-transform: uppercase;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.2s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--accent);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

/* ---------- HAMBURGER MENU ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
  header {
    padding: 0 20px;
    height: 80px;
  }

  body {
    padding-top: 80px;
  }

  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--surface);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
  }

  /* Mindkét osztályra rányitjuk a nav-ot, hogy minden JS szkripttel kompatibilis legyen */
  nav.open,
  nav.active {
    right: 0 !important;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  nav ul li {
    font-size: 18px;
  }
}

/* ---------- GLOBÁLIS GOMBOK ---------- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-blue);
  color: #ffffff;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(36, 144, 253, 0.3);
  transition: all 0.2s ease;
  text-align: center;
}

.cta-button:hover {
  background-color: #1a78d6;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(36, 144, 253, 0.4);
}

.btn-secondary {
  background-color: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: #e2e6ea;
}

/* ---------- SUPPORTED BY & FOOTER ---------- */
.supportedBy {
  background: var(--accent-blue);
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.supportedBy-header { 
  max-width: 840px; 
  margin: 0 auto 36px; 
}

.supportedBy-header h2 { 
  font-size: 20px; 
  font-weight: 500; 
  line-height: 1.6; 
  margin: 0; 
  color: #ffffff; 
}

.supportedBy-content { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: 48px; 
  flex-wrap: wrap; 
}

.supportedBy-content img { 
  max-width: 140px; 
  height: auto; 
}

footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 30px 20px;
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 40px;
}

footer img { 
  height: 40px; 
  width: auto; 
}

footer a { 
  color: var(--accent-blue); 
  text-decoration: none; 
  font-weight: 600; 
}

footer a:hover { 
  text-decoration: underline; 
}

@media (max-width: 768px) {
  footer { 
    flex-direction: column; 
    gap: 16px; 
    text-align: center; 
  }
}