@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;500;700;800&display=swap');

:root {
  /* Világos és letisztult színpaletta */
  --bg: #F8FAFC;          /* Nagyon világos szürkéskék */
  --surface: #FFFFFF;     /* Tiszta fehér kártyák */
  --surface-2: #F1F5F9;   /* Halvány háttér kiemelésekhez */
  --line: #E2E8F0;        /* Világos szürke vonalak */
  --text: #0F172A;        /* Sötétkék-fekete szöveg */
  --text-dim: #475569;    /* Lágyabb szürke másodlagos szöveg */
  --primary: #102B66;     /* Sötétkék alapszín */
  --primary-hover: #1D4ED8;
  --accent: #10B981;      /* Smaragdzöld kiemelés */
  
  --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --radius-lg: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #102B66;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
::selection { background: var(--primary); color: #fff; }

/* Finom színátmenetes háttér a vonalas blueprint helyett */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at top right, #E0E7FF 0%, transparent 40%),
              radial-gradient(circle at bottom left, #DCFCE7 0%, transparent 40%);
  opacity: 0.5;
}

/* --- HEADER (Lebegő, kapszula alakú menü) --- */
header {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 100; display: flex; align-items: center; justify-content: space-between;
  width: 95%; max-width: 1400px;
  padding: 12px 32px;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
}

.logo-img { height: 85px; width: auto; object-fit: contain; display: block; }
.back-link { font-weight: 600; color: var(--text-dim); font-size: 14px; }
.back-link:hover { color: var(--primary); }

nav { display: flex; gap: 32px; font-weight: 500; font-size: 15px; color: var(--text-dim); }
nav a:hover, nav a.active { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.social-link svg { width: 24px; height: 24px; fill: var(--text-dim); transition: fill 0.2s; }
.social-link:hover svg { fill: var(--primary); }

.lang-switcher {
  display: flex; background: var(--surface-2); border-radius: 99px; padding: 4px;
}
.lang-btn {
  background: none; border: none; color: var(--text-dim); padding: 6px 14px; 
  cursor: pointer; font-weight: 600; border-radius: 99px; transition: all 0.2s;
  font-family: 'Outfit', sans-serif;
}
.lang-btn.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }

.nav-cta, .btn {
  background: var(--primary); color: #fff; padding: 12px 24px; border-radius: 99px;
  font-weight: 600; font-family: 'Outfit', sans-serif; transition: all 0.2s;
  border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.nav-cta:hover, .btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn-secondary:hover { background: var(--surface-2); transform: translateY(-2px); color: var(--primary); }

.mobile-toggle { display: none; background: none; border: none; font-size: 28px; color: var(--text); cursor: pointer; }

section { position: relative; z-index: 1; padding: 100px 24px; max-width: 1400px; margin: 0 auto; }

/* Kapszula kinézetű Eyebrow */
.eyebrow {
  display: inline-block; background: #102B66; color: #FFFFFF; padding: 6px 16px;
  border-radius: 99px; font-weight: 700; text-transform: uppercase; font-size: 12px;
  letter-spacing: 0.05em; margin-bottom: 20px; font-family: 'Outfit', sans-serif;
}

/* Gombok körüli távolság és elrendezés */
.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px; /* Függőleges távolság a gombok és az alatta lévő elemek között */
}

/* Kétoszlopos elrendezés az aloldalak fejlécében */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; /* Vízszintes térköz a szöveges oszlop és a kép között */
  align-items: center;
  width: 100%;
  max-width: 1400px;
  text-align: left;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px; /* Mobilon egymás alá törve is megmarad a tiszta térköz */
  }
}

/* --- HERO (Középre zárt, elegáns) --- */
.hero { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-top: 160px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.1; margin-bottom: 24px; }
.hero h1 .accent { 
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: 20px; color: var(--text-dim); max-width: 700px; margin: 0 auto 40px auto; }
.hero .btn-row { justify-content: center; }

/* --- STATS (Lebegő kártyák a grid helyett) --- */
.stats-strip {
  display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; width: 100%; margin-top: 80px;
}
.stat {
  background: var(--surface); padding: 32px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); flex: 1; min-width: 200px;
  text-align: center; transition: transform 0.3s;
}
.stat:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stat .num { font-size: 36px; font-weight: 800; color: var(--primary); font-family: 'Outfit', sans-serif; }
.stat .label { font-size: 13px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; margin-top: 8px; }

/* --- KÉPKONTÉNER ÉS LEFUTÓ NEON FÉNY EFFEKT --- */
.animated-img-box {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.animated-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.product-card:hover .animated-img-box img,
.service-row:hover .animated-img-box img,
.animated-img-box:hover img {
  transform: scale(1.05);
}

.animated-img-box::after {
  content: '';
  position: absolute;
  top: -150%;
  left: 0;
  right: 0;
  height: 150%; /* Megnövelt magasság a vastagabb csóvához */
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.4) 45%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0.4) 55%,
    rgba(255, 255, 255, 0.05) 75%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

@keyframes scanline {
  0% { top: -150%; }
  100% { top: 150%; }
}

/* Ráfutáskor lefutó fény: 1.2s helyett 2s a komótosabb, lágyabb tempóhoz */
.product-card:hover .animated-img-box::after,
.service-row:hover .animated-img-box::after,
.animated-img-box:hover::after {
  animation: scanline 2s ease-in-out 1 forwards;
}

/* --- PRODUCTS GRID (Modern, világos kártyák) --- */
.section-head { text-align: center; max-width: 700px; margin: 0 auto 60px auto; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
.section-head p { color: var(--text-dim); font-size: 18px; }

.product-grid, .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 32px; }
.product-card, .feature-card {
  background: var(--surface); padding: 24px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px; cursor: pointer; transition: all 0.3s ease;
}
.product-card:hover, .feature-card:hover {
  transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(37, 99, 235, 0.2);
}
.product-card .idx, .feature-card .icon {
  background: var(--surface-2); color: var(--primary); padding: 6px 16px;
  border-radius: 99px; font-size: 14px; font-weight: 700; align-self: flex-start;
  font-family: 'Outfit', sans-serif; margin: 0;
}
.product-card h3, .feature-card h3 { font-size: 24px; }
.product-card p, .feature-card p { color: var(--text-dim); font-size: 15px; flex-grow: 1; }
.card-cta { color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 8px; font-family: 'Outfit', sans-serif; }

/* --- SERVICES (Blokkos kártyák) --- */
.services { display: flex; flex-direction: column; gap: 40px; }
.service-row {
  display: grid; grid-template-columns: 1fr 1.5fr 0.5fr; gap: 40px; align-items: center;
  background: var(--surface); padding: 40px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.service-phase { font-weight: 700; color: var(--accent); margin-bottom: 8px; display: block; font-family: 'Outfit', sans-serif;}
.service-row h3 { font-size: 28px; margin-bottom: 20px; }
.service-details { display: grid; gap: 20px; }
.service-detail { background: var(--surface-2); padding: 20px; border-radius: var(--radius); }
.service-detail strong { color: var(--text); font-size: 16px; display: block; margin-bottom: 4px; }

/* --- ABOUT & CONTACT --- */
.about-grid, .contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.location-card { background: var(--primary); color: #fff; padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.location-card .lbl { color: rgba(255,255,255,0.7); font-size: 12px; font-weight: 700; text-transform: uppercase; margin: 20px 0 4px 0; }
.location-card .lbl:first-child { margin-top: 0; }
.location-card div { font-size: 18px; font-weight: 500; }

.contact-form { background: var(--surface); padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.field input, .field textarea {
  background: var(--surface-2); border: 1px solid transparent; border-radius: 12px;
  padding: 16px; font-family: 'Inter', sans-serif; font-size: 15px; color: var(--text); transition: all 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,0.1); }
.field textarea { min-height: 120px; resize: vertical; }

/* --- PARTNERS MARQUEE --- */
.partners-section { padding: 60px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee-container { display: flex; overflow: hidden; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.marquee-track { display: flex; gap: 40px; align-items: center; animation: scroll-left 30s linear infinite; }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.partner-logo { background: #102B66; padding: 12px 24px; border-radius: 12px; border: 1px solid var(--line); transition: transform 0.2s; }
.partner-logo:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.partner-logo img { height: 40px; width: auto; filter: grayscale(100%) opacity(0.6); transition: all 0.3s; }
.partner-logo:hover img { filter: grayscale(0%) opacity(1); }

/* --- MODAL --- */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.6); backdrop-filter: blur(8px); z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { background: var(--surface); border-radius: var(--radius-lg); width: 100%; max-width: 900px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-md); display: flex; flex-direction: column; }
.modal-header { padding: 24px 32px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--surface); z-index: 10; }
.modal-close { background: var(--surface-2); border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: #FEE2E2; color: #EF4444; }
.modal-body { padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.spec-table td { padding: 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-table td:first-child { font-weight: 600; color: var(--text-dim); }
.spec-table td:last-child { text-align: right; font-weight: 500; }
ul#modal-features { list-style-type: none; padding: 0; }
ul#modal-features li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text-dim); position: relative; padding-left: 24px; }
ul#modal-features li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: bold; }

/* TOAST & FOOTER */
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--accent); color: #fff; padding: 16px 24px; font-weight: 600; border-radius: 12px; box-shadow: var(--shadow-md); transform: translateY(100px); opacity: 0; transition: all 0.3s; z-index: 1000; }
.toast.show { transform: translateY(0); opacity: 1; }
footer { background: var(--bg); padding: 40px 24px; text-align: center; border-top: 1px solid var(--line); color: var(--text-dim); font-size: 14px; display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 900px) {
  header { width: 100%; top: 0; border-radius: 0; padding: 16px 20px; }
  .mobile-toggle { display: block; }
  nav { position: fixed; top: 70px; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 32px; box-shadow: var(--shadow-md); transform: translateY(-150%); transition: transform 0.3s ease; }
  header.nav-open nav { transform: translateY(0); }
  .nav-cta { display: none; }
  .hero h1 { font-size: 36px; }
  .service-row, .about-grid, .contact-wrap, .modal-body { grid-template-columns: 1fr; }
}