/* ============================================
   Változók
   ============================================ */
:root {
  --bg: #ffffff;
  --bg-muted: #f4f7fb;
  --text: #172033;
  --muted: #607089;
  --dark: #0f172a;
  --blue: #0067b8;
  --cyan: #00a7c8;
  --teal: #009688;
  --magenta: #e20074;
  --orange: #ff9f1c;
  --border: #dce5ef;
  --shadow: 0 20px 45px rgba(15, 23, 42, .12);
  --radius: 22px;
  --container: 1160px;
}

/* ============================================
   Alap / reset
   ============================================ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: white;
  padding: .75rem 1rem;
  z-index: 999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ============================================
   Fejléc / navigáció
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220, 229, 239, .75);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--magenta));
  color: white;
  font-weight: 900;
}

.brand-text {
  font-size: 1.02rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--text);
  font-weight: 650;
  font-size: .96rem;
}

.nav-menu a {
  opacity: .88;
}

.nav-menu a:hover {
  opacity: 1;
  color: var(--blue);
}

.nav-cta {
  padding: .65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}

.language-switcher {
  display: flex;
  gap: .25rem;
  padding: .25rem;
  background: var(--bg-muted);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.language-switcher a {
  border: 0;
  height: 35px;
  background: transparent;
  padding: .42rem .6rem;
  border-radius: 999px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
}

.language-switcher a.active {
  background: var(--dark);
  color: white;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: white;
  border-radius: 12px;
  padding: .6rem .8rem;
  font-weight: 800;
}

/* ============================================
   Szekciók / tipográfia
   ============================================ */
.section {
  padding: 92px 0;
}

.section-muted {
  background: var(--bg-muted);
}

.section-dark {
  background: radial-gradient(circle at top left, #193b74 0, #0f172a 45%, #101827 100%);
  color: white;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 900;
  color: var(--cyan);
  margin: 0 0 .75rem;
}

h1, h2, h3 {
  line-height: 1.08;
  margin: 0;
  letter-spacing: -.04em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 5.1rem);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3.4rem);
}

h3 {
  font-size: 1.15rem;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 44px;
}

.section-heading.narrow {
  max-width: 760px;
}

.section-heading p,
.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
}

.section-dark .hero-lead,
.section-dark p:not(.eyebrow) {
  color: #d5e5f7;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 112px 0 88px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 54px;
}

.hero-copy {
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .9rem 1.25rem;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--magenta));
  color: white;
  box-shadow: 0 18px 34px rgba(0, 103, 184, .25);
}

.btn.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: white;
  animation: btn-spin .7s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.btn-secondary {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
  color: white;
}

.cta-section .btn-secondary,
.section:not(.section-dark) .btn-secondary {
  background: white;
  color: var(--text);
  border-color: var(--border);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
}

.hero-facts div {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
}

.hero-facts dt {
  font-size: 1.35rem;
  font-weight: 950;
}

.hero-facts dd {
  margin: 0;
  color: #d5e5f7;
  font-size: .9rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

/* ============================================
   Hero vizuál – épület-kártya (dekoráció)
   Skálázódó, %-alapú pozícionálás
   ============================================ */
.building-card {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1 / 1.05;
  border-radius: 36px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.building {
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 22%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5%;
  padding: 6% 6% 10% 6%;
  border-radius: 20px;
  background: rgba(255, 255, 255, .88);
}

.building span {
  aspect-ratio: 1.5;
  border-radius: 8px;
  background: #dbeafe;
}

.antenna-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 16%;
  width: 4px;
  height: 57%;
  background: linear-gradient(var(--cyan), var(--magenta));
  border-radius: 4px;
}

.tech-room {
  position: absolute;
  left: 31%;
  right: 31%;
  bottom: 8%;
  text-align: center;
  background: var(--dark);
  color: white;
  padding: .6rem;
  border-radius: 14px;
  font-weight: 900;
  white-space: nowrap;
}

/* Épület-kártya + DAS gomb függőleges elrendezése */
.hero-visual-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: min(420px, 100%);
}

/* DAS rendszerkép gomb: hoverre kis előnézet a gomb fölött,
   abszolút pozicionálva, hogy ne tolja el a többi elemet */
.das-preview-btn {
  position: relative;
  text-decoration: none;
}

.das-preview {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  width: min(280px, 72vw);
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .45);
  background: white;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 5;
}

.das-preview-btn:hover .das-preview,
.das-preview-btn:focus-visible .das-preview {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.signal {
  position: absolute;
  aspect-ratio: 1 / 1;
  border: 2px solid rgba(0, 167, 200, .55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.signal-a {
  width: 30%;
  left: 50%;
  top: 28%;
}

.signal-b {
  width: 46%;
  left: 50%;
  top: 28%;
}

.signal-c {
  width: 66%;
  left: 50%;
  top: 28%;
}

/* ============================================
   Kártyák (applications)
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card,
.requirement-card,
.partner-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  font-weight: 950;
  margin-bottom: 1rem;
}

.card p,
.requirement-card p,
.partner-item p {
  color: var(--muted);
  margin: .45rem 0 0;
}

/* ============================================
   Solution / rács-elrendezések
   ============================================ */
.solution-grid,
.tunnel-grid,
.partners-grid,
.cta-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: .8rem;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
}

.check-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal);
  font-weight: 950;
}

.system-card {
  background: white;
  border-radius: 32px;
  padding: 2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.system-step {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  font-weight: 900;
}

.system-step.active {
  background: linear-gradient(135deg, var(--blue), var(--magenta));
  color: white;
}

.system-arrow {
  width: 3px;
  height: 26px;
  background: var(--border);
  margin: auto;
}

/* ============================================
   Requirements
   ============================================ */
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.requirement-card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

/* ============================================
   Tunnels (dekoráció)
   ============================================ */
.tunnel-section {
  position: relative;
  overflow: hidden;
}

.tunnel-visual {
  position: relative;
  min-height: 310px;
}

.tunnel-arch {
  position: absolute;
  inset: 20px 30px 60px;
  border: 12px solid rgba(255, 255, 255, .2);
  border-bottom: 0;
  border-radius: 240px 240px 0 0;
}

.tunnel-road {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 55px;
  height: 86px;
  background: #111827;
  border-radius: 0 0 24px 24px;
}

.tunnel-node {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 12px rgba(255, 159, 28, .18);
}

.n1 { left: 22%; top: 42%; }
.n2 { left: 39%; top: 36%; }
.n3 { left: 57%; top: 36%; }
.n4 { left: 74%; top: 42%; }

/* ============================================
   Process (timeline)
   ============================================ */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  counter-reset: step;
}

.timeline-item {
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

.timeline-item:before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--dark);
  color: white;
  font-weight: 950;
  margin-bottom: 1rem;
}

/* ============================================
   Partners
   ============================================ */
.partner-list {
  display: grid;
  gap: 14px;
}

.partner-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  align-items: start;
}

.partner-item strong {
  color: var(--blue);
}

/* ============================================
   Contact / CTA
   ============================================ */
.cta-card {
  background: var(--dark);
  color: white;
  border-radius: 34px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.cta-card p {
  color: #d5e5f7;
}

.contact-form {
  background: white;
  color: var(--text);
  border-radius: 26px;
  padding: 1.25rem;
  display: grid;
  gap: .9rem;
}

.contact-form label {
  display: grid;
  gap: .35rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .85rem;
  font: inherit;
}

.form-note {
  font-size: .82rem;
  color: var(--muted) !important;
  margin: 0;
}

.form-status {
  margin: 0;
  padding: .7rem .9rem;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 700;
}

.form-status.is-success {
  background: rgba(0, 150, 136, .12);
  color: var(--teal);
  border: 1px solid rgba(0, 150, 136, .35);
}

.form-status.is-error {
  background: rgba(226, 0, 116, .1);
  color: var(--magenta);
  border: 1px solid rgba(226, 0, 116, .3);
}

/* ============================================
   Lábléc
   ============================================ */
.site-footer {
  padding: 36px 0;
  background: #08111f;
  color: #d8e6f5;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.footer-grid p {
  color: #98a8bd;
  max-width: 580px;
}

.footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-links a {
  color: #d8e6f5;
  font-weight: 800;
}

/* ============================================
   Reszponzív – tablet (max 980px)
   ============================================ */
@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu.open {
    display: flex;
  }

  .hero-grid,
  .solution-grid,
  .tunnel-grid,
  .partners-grid,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .requirements-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .partner-item {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
  }

  .hero {
    padding-top: 74px;
  }
}

/* ============================================
   Reszponzív – mobil (max 640px)
   ============================================ */
@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .cards-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 2rem;
  }

  .brand-text {
    display: none;
  }

  .cta-card {
    padding: 1.25rem;
  }
}
