/* ============================================================
   ByClick – közös design rendszer
   Minimalista, technikai karakter · központi szín: #2abfbf
   ============================================================ */

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

:root {
  --teal: #2abfbf;
  --teal-dark: #1a9090;
  --teal-soft: rgba(42, 191, 191, 0.1);
  --teal-line: rgba(42, 191, 191, 0.25);

  --bg-dark: #070d14;
  --bg-dark-2: #0b141e;
  --ink: #0d1b2a;
  --ink-soft: #44546a;
  --gray: #6b7a8d;
  --bg: #f7f9fa;
  --white: #ffffff;

  --line: rgba(13, 27, 42, 0.09);
  --line-dark: rgba(255, 255, 255, 0.08);

  --radius: 14px;
  --radius-sm: 10px;

  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  --maxw: 1180px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--teal); color: var(--white); }

img { max-width: 100%; display: block; }
a { color: var(--teal); }

/* ---------- Technikai díszítőelemek ---------- */

.grid-bg {
  position: relative;
  isolation: isolate;
}
.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(42,191,191,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,191,191,0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 100%);
}
.grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 60% 50% at 75% 15%, rgba(42,191,191,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.mono-label::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--teal);
  opacity: 0.7;
}

/* ---------- Navigáció ---------- */

nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5%;
  background: rgba(7, 13, 20, 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
nav.site-nav.scrolled {
  background: rgba(7, 13, 20, 0.85);
  border-bottom-color: var(--line-dark);
}
nav.site-nav.nav-light {
  position: sticky;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav-logo img { width: 40px; height: 40px; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.nav-light .nav-logo-text { color: var(--ink); }
.nav-logo-text span { color: var(--teal); }
.nav-slogan {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.nav-light .nav-slogan { color: var(--gray); }

nav.site-nav ul {
  display: flex;
  list-style: none;
  gap: 34px;
  align-items: center;
}
nav.site-nav ul a:not(.nav-cta) {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  position: relative;
  transition: color 0.2s;
}
nav.site-nav ul a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
nav.site-nav ul a:not(.nav-cta):hover { color: var(--white); }
nav.site-nav ul a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--teal);
  color: var(--bg-dark) !important;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  background: #3fd4d4;
  box-shadow: 0 0 24px rgba(42,191,191,0.35);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.back-btn:hover { color: var(--teal); }
.back-btn svg { transition: transform 0.2s; }
.back-btn:hover svg { transform: translateX(-3px); }
.nav-light .back-btn { color: var(--ink-soft); }
.nav-light .back-btn:hover { color: var(--teal); }

/* Mobil menü */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
  position: relative;
  z-index: 210;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  /* a backdrop-filter containing blockká tenné a fixed menüt, ezért nyitáskor lekapcsoljuk */
  nav.site-nav.menu-open {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: transparent;
    border-bottom-color: transparent;
  }
  nav.site-nav ul {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    background: rgba(7, 13, 20, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
  }
  nav.site-nav ul.open { opacity: 1; pointer-events: auto; }
  nav.site-nav ul a:not(.nav-cta) {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
  }
  .nav-cta { font-size: 1rem; padding: 13px 30px; }
}

/* ---------- Hero (főoldal) ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 5% 90px;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}
.hero .hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.hero-content { max-width: 720px; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  line-height: 1.4;
  letter-spacing: -0.015em;
  margin-bottom: 44px;
}
.hero h1 span { color: var(--teal); }

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  background: var(--teal);
  color: var(--bg-dark);
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s, box-shadow 0.25s, transform 0.2s;
}
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover {
  background: #3fd4d4;
  box-shadow: 0 0 32px rgba(42,191,191,0.4);
  transform: translateY(-2px);
}
.btn-primary:hover svg { transform: translateX(4px); }

.btn-secondary {
  background: transparent;
  color: rgba(255,255,255,0.78);
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.18);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(42,191,191,0.06);
}

/* lebegő fénygömb a hero-ban */
.hero .orb {
  position: absolute;
  width: 540px; height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,191,191,0.13) 0%, transparent 65%);
  bottom: -180px; right: -120px;
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-60px, -50px); }
}

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 12px;
}
.scroll-hint::before {
  content: '';
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--teal);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(10px); opacity: 0.2; }
}

/* ---------- Szekciók (világos) ---------- */

.section-shell { padding: 110px 5%; }
.section-shell.alt { background: var(--bg); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem;
  color: var(--gray);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 64px;
}

/* ---------- Szolgáltatás kártyák (bento) ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 1fr;
  gap: 18px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  border-color: var(--teal-line);
  transform: translateY(-5px);
  box-shadow: 0 24px 48px -20px rgba(13, 27, 42, 0.18);
}
.service-card::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,191,191,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover::after { opacity: 1; }
/* Felül 3 kártya, alul 2 kártya – mind azonos szélességű (2-2 oszlop).
   Az alsó sor középre igazítva: az első alsó kártya a 2. oszloptól indul. */
.service-card { grid-column: span 2; }
.service-card.bottom:nth-child(4) { grid-column: 2 / span 2; }
.service-card.bottom:nth-child(5) { grid-column: 4 / span 2; }

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}
.service-icon {
  width: 48px; height: 48px;
  border: 1px solid var(--teal-line);
  background: var(--teal-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  transition: background 0.25s, color 0.25s;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card:hover .service-icon { background: var(--teal); color: var(--bg-dark); }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.65;
  flex: 1;
}
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--teal);
}
.card-more svg { transition: transform 0.2s; }
.service-card:hover .card-more svg { transform: translateX(4px); }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .service-card,
  .service-card.bottom:nth-child(4),
  .service-card.bottom:nth-child(5) { grid-column: auto; }
}
@media (max-width: 580px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Referenciák ---------- */

.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.ref-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.ref-card:hover {
  border-color: var(--teal-line);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -18px rgba(13, 27, 42, 0.15);
}
.ref-icon {
  width: 42px; height: 42px;
  border: 1px solid var(--teal-line);
  background: var(--teal-soft);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-bottom: 18px;
}
.ref-icon svg { width: 20px; height: 20px; }
.ref-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.ref-card p { font-size: 0.87rem; color: var(--gray); line-height: 1.65; }

/* ---------- Kapcsolat (sötét) ---------- */

.contact {
  padding: 110px 5%;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}
.contact-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.contact .section-title { color: var(--white); }
.contact .section-sub { color: rgba(255,255,255,0.5); margin: 0 auto 52px; }

.contact-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.32); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
  background: rgba(42,191,191,0.05);
  box-shadow: 0 0 0 3px rgba(42,191,191,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select { appearance: none; color: rgba(255,255,255,0.5); cursor: pointer; }
.form-group select option { background: var(--bg-dark-2); color: var(--white); }

.select-wrap { position: relative; }
.select-wrap::after {
  content: '';
  position: absolute;
  right: 18px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid rgba(255,255,255,0.4);
  border-bottom: 1.5px solid rgba(255,255,255,0.4);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.btn-submit {
  background: var(--teal);
  color: var(--bg-dark);
  padding: 16px 42px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  align-self: center;
  margin-top: 10px;
  transition: background 0.2s, box-shadow 0.25s, transform 0.2s;
}
.btn-submit:hover:not(:disabled) {
  background: #3fd4d4;
  box-shadow: 0 0 32px rgba(42,191,191,0.4);
  transform: translateY(-2px);
}
.btn-submit:disabled { opacity: 0.6; cursor: default; }

/* ---------- Aloldal hero ---------- */

.page-hero {
  background: var(--bg-dark);
  padding: 96px 5% 84px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero .hero-icon {
  width: 72px; height: 72px;
  margin: 0 auto 26px;
  border: 1px solid var(--teal-line);
  background: rgba(42,191,191,0.07);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}
.page-hero .hero-icon svg { width: 34px; height: 34px; }
.page-hero .mono-label { justify-content: center; }
.page-hero .mono-label::before { display: none; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero-sub {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.62);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---------- Konstelláció canvas ---------- */

#constellation,
#smarthome-net {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero--constellation .hero-inner,
.hero--constellation .scroll-hint,
.hero--net .hero-inner,
.hero--net .scroll-hint { position: relative; z-index: 1; }
.page-hero > *:not(canvas) { position: relative; z-index: 1; }

/* ---------- Aloldal tartalom ---------- */

main { background: var(--bg); }
.container { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section + .divider + .section,
.section.tight { padding-top: 0; }

.content-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}
.section-lead {
  font-size: 0.97rem;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 18px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  margin-bottom: 20px;
}

.highlight-box {
  background: var(--teal-soft);
  border: 1px solid var(--teal-line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 22px 0;
}
.highlight-box p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}
.feature-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
  transition: border-color 0.25s, transform 0.25s;
}
.feature-item:hover { border-color: var(--teal-line); transform: translateY(-3px); }
.feature-icon {
  width: 38px; height: 38px;
  color: var(--teal);
  margin-bottom: 14px;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
}
.feature-text { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.7; }

ul.check-list { list-style: none; padding: 0; }
ul.check-list li {
  padding: 11px 0 11px 30px;
  position: relative;
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.7;
  border-bottom: 1px solid var(--line);
}
ul.check-list li:last-child { border-bottom: none; }
ul.check-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 18px;
  width: 10px; height: 5px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

.divider { height: 1px; background: var(--line); margin: 30px 0; }

.service-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 16px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  transition: border-color 0.25s, transform 0.25s;
}
.service-block:hover { border-color: var(--teal-line); transform: translateY(-3px); }
.service-block-icon {
  width: 44px; height: 44px;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}
.service-block-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.service-block-text { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.75; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-soft);
  border: 1px solid var(--teal-line);
  color: var(--teal-dark);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 22px;
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Kapcsolódó szolgáltatás chipek */
.related-bar {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 22px 5%;
}
.related-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.related-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-right: 6px;
}
.chip {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--teal-dark);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 7px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.chip:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

/* ---------- CTA szekció ---------- */

.cta-section {
  background: var(--bg-dark);
  padding: 90px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.cta-sub { font-size: 0.97rem; color: rgba(255,255,255,0.55); margin-bottom: 34px; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--teal);
  color: var(--bg-dark);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.25s, transform 0.2s;
}
.cta-btn:hover {
  background: #3fd4d4;
  box-shadow: 0 0 32px rgba(42,191,191,0.4);
  transform: translateY(-2px);
}

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

footer.site-footer {
  background: var(--bg-dark-2);
  padding: 44px 5%;
  border-top: 1px solid var(--line-dark);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}
.footer-logo span { color: var(--teal); }
footer.site-footer p {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.38);
}
footer.site-footer a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
footer.site-footer a:hover { color: var(--teal); }

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ---------- Cookie banner ---------- */

#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 720px;
  margin: 0 auto;
  z-index: 9999;
  background: rgba(11, 20, 30, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
#cookie-banner.visible {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
#cookie-banner p {
  color: rgba(255,255,255,0.68);
  font-size: 0.84rem;
  margin: 0;
  flex: 1;
  min-width: 220px;
  line-height: 1.6;
}
#cookie-banner a { color: var(--teal); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn-deny {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.6);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.84rem;
  transition: border-color 0.2s, color 0.2s;
}
.cookie-btn-deny:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }
.cookie-btn-accept {
  background: var(--teal);
  border: none;
  color: var(--bg-dark);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 0.2s;
}
.cookie-btn-accept:hover { background: #3fd4d4; }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.fade-in.d1 { animation-delay: 0.12s; }
.fade-in.d2 { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Reszponzív finomítás ---------- */

@media (max-width: 768px) {
  .hero { padding: 120px 5% 70px; }
  .hero h1 { margin-bottom: 30px; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; text-align: center; }
  .section-shell, .contact { padding: 70px 5%; }
  .form-row { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .service-block { flex-direction: column; }
  .page-hero { padding: 70px 5% 60px; }
  .scroll-hint { display: none; }
  #cookie-banner { left: 12px; right: 12px; bottom: 12px; }
}
