/* ====== Base / Theme ====== */
:root{
  --bg:#0b0d10;
  --bg2:#0f1217;
  --card:#12161c;
  --card2:#10141a;
  --stroke:rgba(255,255,255,.08);
  --text:#e9eef7;
  --muted:rgba(233,238,247,.72);
  --muted2:rgba(233,238,247,.55);
  --blue:#0b6bff;
  --blue2:#39b9ff;
  --shadow:0 24px 60px rgba(0,0,0,.45);
  --radius:18px;
  --radius2:26px;
}
/* ===== Typography baseline reset ===== */
html { font-size: 16px; }
body{
  font-size: 16px;
  line-height: 1.6;
}

[data-theme="light"]{
  --bg:#f6f7fb;
  --bg2:#ffffff;
  --card:#ffffff;
  --card2:#ffffff;
  --stroke:rgba(10,20,30,.10);
  --text:#0d1220;
  --muted:rgba(13,18,32,.70);
  --muted2:rgba(13,18,32,.55);
  --shadow:0 18px 50px rgba(0,0,0,.12);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: var(--bg);
  color:var(--text);
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
.container{width:min(1120px, 92vw); margin:0 auto}
.section{padding:88px 0}
.center{text-align:center}
.muted{color:var(--muted)}
.note{color:var(--blue2); margin-top:14px; font-size:14px}
.link{color:var(--blue2)}
.link:hover{opacity:.9; text-decoration:underline}
.kicker{
  letter-spacing:.14em;
  font-weight:700;
  font-size:12px;
  color:var(--blue2);
  margin-bottom:14px;
}
.h2{
  font-size:44px;
  line-height:1.08;
  margin:10px 0 14px;
}
@media (max-width:820px){
  .h2{font-size:34px}
}

/* ====== Nav ====== */
.nav{
  position:sticky; top:0; z-index:60;
  background: rgba(10,12,16,.58);
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--stroke);
}
[data-theme="light"] .nav{background: rgba(255,255,255,.75)}
.nav__inner{
  height:64px;
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
}
.brand{display:flex; align-items:center; gap:10px; font-weight:800}
.brand__icon{
  width:34px; height:34px; display:grid; place-items:center;
  background: rgba(11,107,255,.20);
  color: var(--blue2);
  border:1px solid var(--stroke);
  border-radius:10px;
}
.brand__text{font-size:16px}

.menu{display:flex; gap:26px; align-items:center}
.menu__link{
  color:var(--muted);
  font-weight:600;
}
.menu__link:hover{color:var(--text)}

.nav__actions{display:flex; align-items:center; gap:10px}
.iconbtn{
  width:40px; height:40px; border-radius:999px;
  display:grid; place-items:center;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  color: var(--text);
  cursor:pointer;
}
.iconbtn:hover{transform:translateY(-1px)}
.iconbtn--hamb{display:none}
.iconbtn--hamb span{
  display:block; width:16px; height:2px; background:var(--text);
  margin:2px 0; border-radius:9px;
}

.mobilemenu{
  display:none;
  padding:12px 16px 16px;
  border-bottom:1px solid var(--stroke);
}
.mobilemenu a{
  display:block;
  padding:12px 10px;
  border-radius:12px;
  color:var(--muted);
}
.mobilemenu a:hover{background:rgba(255,255,255,.04); color:var(--text)}
@media (max-width:920px){
  .menu{display:none}
  .iconbtn--hamb{display:grid}
}

/* ====== Buttons ====== */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:11px 18px;
  border-radius:999px;
  border:1px solid var(--stroke);
  font-weight:700;
  cursor:pointer;
}
.btn--primary{
  background: linear-gradient(180deg, rgba(15,85,175,1), rgba(15,85,175,.82));
  border-color: rgba(15,85,175,.45);
}
.btn--ghost{
  background: transparent;
  color: var(--text);
}
.btn--full{width:100%}
.arrow{opacity:.9}

/* ====== Hero ====== */
.hero__grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:34px;
  align-items:center;
}
.hero__title{
  font-size:54px;
  line-height:1.02;
  margin:0 0 14px;
}
.accent{color:var(--blue2)}
.hero__subtitle{
  color:var(--muted);
  font-size:16px;
  line-height:1.55;
  max-width:56ch;
}
.hero__cta{display:flex; gap:14px; margin-top:24px; flex-wrap:wrap}

.hero__right{position:relative}
.mediaCard{
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.mediaCard img{width:100%; height:auto}

.floatingBadge{
  position:absolute;
  right: 10px;
  bottom: -14px;
  display:flex; gap:12px; align-items:center;
  background: rgba(18,22,28,.92);
  border:1px solid var(--stroke);
  border-radius: 14px;
  padding:12px 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
[data-theme="light"] .floatingBadge{background: rgba(255,255,255,.92)}
.floatingBadge__icon{
  width:36px; height:36px; border-radius:12px;
  display:grid; place-items:center;
  background: rgba(11,107,255,.18);
  color: var(--blue2);
  border:1px solid var(--stroke);
}
.floatingBadge__title{font-weight:800}
.floatingBadge__sub{font-size:13px; color:var(--muted2)}

@media (max-width:920px){
  .hero__grid{grid-template-columns:1fr}
  .hero__title{font-size:44px}
  .floatingBadge{right:14px}
}

/* ====== Promo ====== */
.promo{
  background: linear-gradient(90deg, rgba(11,107,255,1), rgba(0,196,179,1));
  padding:72px 0;
}
.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 14px;
  border-radius:999px;
  font-weight:800;
  border:1px solid rgba(255,255,255,.25);
  margin-bottom:20px;
  color: var(--text);
}

.pill--light{ background: transparent; color: inherit; }

.promoCard{
  width:min(760px, 96%);
  margin:0 auto;
  background: var(--card);
  color: var(--text);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 22px 60px rgba(0,0,0,.25);
}
.promoCard__img img{width:100%; height:auto}
.promoCard__body{padding:18px 18px 22px; text-align:left}
.promoCard__body h3{margin:0 0 6px}
.promoCard__body p{margin:0; opacity:.8}

/* ====== Chips / Services ====== */
.chips{
  display:flex; gap:10px; justify-content:center; flex-wrap:wrap;
  margin:22px 0 30px;
}
.chip{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
  font-weight:800;
}
.chip:hover{color:var(--text)}
.chip--active{
  color: var(--text);
  background: rgba(11,107,255,.18);
  border-color: rgba(11,107,255,.35);
}

.serviceGrid{display:flex; justify-content:center}
.glassCard{
  width:min(420px, 96%);
  text-align:left;
  padding:22px 22px 24px;
  border-radius: 20px;
  background: radial-gradient(500px 200px at 20% 0%, rgba(11,107,255,.12), transparent 50%),
              var(--card);
  border:1px solid var(--stroke);
  box-shadow: var(--shadow);
}
.glassIcon{
  width:44px; height:44px;
  border-radius:14px;
  display:grid; place-items:center;
  background: rgba(11,107,255,.18);
  border:1px solid var(--stroke);
  margin-bottom:14px;
}
.glassCard h3{margin:0 0 10px}
.callout{margin-top:26px}

/* ====== Devices ====== */
.deviceControls{
  margin-top:26px;
  display:flex; align-items:center; justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.filters{display:flex; gap:10px; flex-wrap:wrap}
.filterBtn{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
  font-weight:800;
  display:flex; gap:8px; align-items:center;
}
.filterBtn--active{
  background: rgba(11,107,255,.18);
  border-color: rgba(11,107,255,.35);
  color: var(--text);
}
.search{
  display:flex; align-items:center; gap:10px;
  border:1px solid var(--stroke);
  border-radius:999px;
  padding:10px 14px;
  min-width:min(360px, 92vw);
  background: rgba(255,255,255,.03);
  color: var(--muted);
}
.search input{
  width:100%;
  border:0; outline:0;
  background: transparent;
  color: var(--text);
  font-weight:700;
}

.deviceGrid{
  margin-top:22px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:18px;
}
@media (max-width:1100px){ .deviceGrid{grid-template-columns: repeat(3,1fr);} }
@media (max-width:820px){ .deviceGrid{grid-template-columns: repeat(2,1fr);} }
@media (max-width:520px){ .deviceGrid{grid-template-columns: 1fr;} }

.deviceCard{
  text-align:left;
  padding:16px;
  border-radius: 18px;
  background: var(--card);
  border:1px solid var(--stroke);
  box-shadow: 0 18px 44px rgba(0,0,0,.25);
  min-height:150px;
}
.deviceTop{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:10px;
}
.deviceIcon{
  width:36px; height:36px; border-radius:12px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.04);
  border:1px solid var(--stroke);
}
.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(11,107,255,.20);
  border:1px solid rgba(11,107,255,.35);
  color: var(--blue2);
  font-weight:900;
}
.deviceName{margin:12px 0 2px; font-weight:900}
.deviceMeta{margin:0 0 12px; color:var(--muted2); font-size:13px}
.deviceNote{margin:0 0 12px; color:var(--blue2); font-size:12px; font-weight:800}
.price{margin:0; font-size:20px; font-weight:900}

/* ====== About / Offer / Contact ====== */
.aboutGrid{
  margin-top:26px;
  display:grid;
  grid-template-columns: 380px 1fr;
  gap:20px;
  align-items:start;
}
.mediaCard--tall img{height:420px; object-fit:cover}
@media (max-width:920px){
  .aboutGrid{grid-template-columns:1fr}
  .mediaCard--tall img{height:320px}
}

.offer{
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap:24px;
  align-items:center;
  background: rgba(255,255,255,.02);
  border:1px solid var(--stroke);
  border-radius: 26px;
  padding:22px;
}
[data-theme="light"] .offer{background: rgba(0,0,0,.02)}
.offer__left{text-align:left}
.offer__right{text-align:right}
.checkRow{display:flex; align-items:center; gap:10px; margin-top:16px; color:var(--muted)}
.checkRow__icon{color:var(--blue2)}
.mediaCard--wide img{height:360px; object-fit:cover}
@media (max-width:920px){
  .offer{grid-template-columns:1fr}
  .offer__right{text-align:left}
  .mediaCard--wide img{height:260px}
}

.contactGrid{
  margin-top:26px;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:20px;
  align-items:start;
}
.contactLeft{
  display:grid;
  gap:16px;
  align-items:start;
}
.mapCard{
  border-radius: 18px;
  overflow:hidden;
  border:1px solid var(--stroke);
  background: var(--card);
  box-shadow: var(--shadow);
}

/* ====== Contact form (map alatt) ====== */
.contactFormCard{
  border-radius: 18px;
  border:1px solid var(--stroke);
  background: var(--card);
  box-shadow: var(--shadow);
  padding:18px;
  text-align:left;
}
.contactFormTitle{margin:0 0 10px; font-weight:900}
.contactForm{display:grid; gap:12px}
.contactForm .row2{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.formField label{
  display:block;
  font-size:12px;
  font-weight:800;
  letter-spacing:.06em;
  color:var(--muted2);
  margin-bottom:6px;
}
.formField input,
.formField textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  color:var(--text);
  font-family: inherit;
  font-size:14px;
  outline:none;
}
[data-theme="light"] .formField input,
[data-theme="light"] .formField textarea{
  background: rgba(0,0,0,.02);
}
.formField textarea{min-height:120px; resize:vertical}
.formField input:focus,
.formField textarea:focus{
  border-color: rgba(57,185,255,.55);
  box-shadow: 0 0 0 4px rgba(57,185,255,.12);
}
.contactStatus{min-height:20px; font-weight:800}
.contactStatus.is-ok{color:var(--blue2)}
.contactStatus.is-err{color:#ff3b3b}
.contactInfo{text-align:left}
.infoRow{
  display:flex; gap:14px; align-items:flex-start;
  padding:14px 0;
  border-bottom:1px solid var(--stroke);
}
.infoRow:last-child{border-bottom:0}
.infoIcon{
  width:40px; height:40px; border-radius:14px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.04);
  border:1px solid var(--stroke);
}
.infoLabel{color:var(--muted2); font-weight:800; font-size:12px; letter-spacing:.06em}
.infoValue{font-weight:900; margin-top:4px}
.small{font-weight:700; color:var(--muted); line-height:1.5}

.socialRow{display:flex; align-items:center; gap:10px; margin:16px 0}
.socialBtn{
  width:38px; height:38px; border-radius:12px;
  display:grid; place-items:center;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  font-weight:900;
}
.qrCard{
  margin-top:18px;
  border-radius: 18px;
  border:1px solid var(--stroke);
  background: var(--card);
  padding:16px;
}
.qrTitle{color:var(--muted); font-weight:900; margin-bottom:12px}
.qrBox{
  background:#fff;
  border-radius: 12px;
  padding:12px;
  width:180px;
}
.qrBox img{width:100%; height:auto}

@media (max-width:920px){
  .contactGrid{grid-template-columns:1fr}
  .qrBox{width:160px}
}

@media (max-width:680px){
  .contactForm .row2{grid-template-columns:1fr}
}

/* ====== Footer ====== */
.footer{
  padding:44px 0 26px;
  background: rgba(255,255,255,.02);
  border-top:1px solid var(--stroke);
}
.footer__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap:24px;
}
.footerTitle{font-weight:900; margin-bottom:10px}
.footer__grid a{display:block; padding:6px 0; color:var(--muted)}
.footer__grid a:hover{color:var(--text)}
.footerLine{color:var(--muted); padding:6px 0}
.footerBrand{display:flex; align-items:center; gap:10px; margin-bottom:8px}
.footerSocial{margin-top:10px; display:flex; gap:10px}

.footer__bottom{
  margin-top:24px;
  padding-top:16px;
  border-top:1px solid var(--stroke);
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.footerBottomRight{display:flex; gap:18px; align-items:center}

/* ====== Fade on scroll ====== */
.fade{opacity:0; transform: translateY(18px); transition: .8s ease}
.fade.show{opacity:1; transform: translateY(0)}

/* ====== Utility ====== */
.pill__icon{filter: saturate(1.2)}

/* ===== Device Modal ===== */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}
.modal.show{ display:block; }

.modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(2px);
}

.modal__panel{
  position: relative;
  width: min(920px, 94vw);
  margin: 5vh auto;
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  display: grid;
  grid-template-columns: 1fr;
}

.modal__close{
  position:absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  z-index: 3;
}

.modal__media{
  position: relative;
  background: rgba(0,0,0,.20);
  min-height: 420px;
  display:grid;
  place-items:center;
}

.modal__img{
  width: 100%;
  max-height: 460px;
  object-fit: contain;   /* ✅ illesztés */
  background: rgba(0,0,0,.18); /* hogy a “csíkok” szépek legyenek */
}


.modal__nav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  display:grid;
  place-items:center;
  font-size: 26px;
  line-height: 1;
}
.modal__nav--left{ left: 14px; }
.modal__nav--right{ right: 14px; }

.modal__dots{
  position:absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display:flex;
  gap:8px;
  z-index: 2;
}
.modal__dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  border: 1px solid rgba(255,255,255,.12);
  cursor: pointer;
}
.modal__dot.active{
  width: 24px;
  background: rgba(11,107,255,.95);
  border-color: rgba(11,107,255,.35);
}

.modal__content{
  padding: 18px 18px 20px;
  background: rgba(0,0,0,.12);
}
[data-theme="light"] .modal__content{ background: rgba(0,0,0,.03); }

.modal__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.modal__title{
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}
.modal__meta{
  margin-top: 10px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.modal__note{
  color: var(--blue2);
  font-weight: 800;
  font-size: 13px;
}
.modal__price{
  margin-top: 14px;
  font-size: 30px;
  font-weight: 900;
  color: var(--blue2);
}

.modal__cta{
  margin-top: 14px;
  display:block;
  text-align:center;
  padding: 14px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(11,107,255,1), rgba(11,107,255,.82));
  border: 1px solid rgba(11,107,255,.45);
  font-weight: 900;
}

@media (max-width:520px){
  .modal__media{ min-height: 320px; }
  .modal__price{ font-size: 28px; }
}

/* ===== Modal open animation ===== */
.modal{ opacity: 0; transition: opacity .18s ease; }
.modal.show{ opacity: 1; }

.modal__backdrop{
  opacity: 0;
  transition: opacity .18s ease;
}
.modal.show .modal__backdrop{ opacity: 1; }

.modal__panel{
  transform: translateY(18px) scale(.985);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
.modal.show .modal__panel{
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* kép váltás finoman */
.modal__img{
  opacity: 0;
  transition: opacity .18s ease;
}
.modal.show .modal__img{ opacity: 1; }
.modal__img.is-loading{ opacity: 0; }

/* ===== Card click micro-interaction ===== */
.deviceCard{ transition: transform .12s ease, box-shadow .12s ease; }
.deviceCard:active{ transform: scale(.985); }

@media (hover:hover){
  .deviceCard:hover{
    transform: translateY(-2px);
    box-shadow: 0 22px 60px rgba(0,0,0,.35);
  }
}
.modal.show ~ main{
  filter: blur(2px);
}

/* ===============================
   SECTION BASED FADE BACKGROUND
   =============================== */

.sectionFade{
  position: relative;
  overflow: visible;
  isolation: isolate;
  z-index: 0;
}

.sectionFade::before{
  content:"";
  position:absolute;
  inset: 0;                 /* <-- a szekció dobozára korlátozzuk */
  z-index:-1;
  pointer-events:none;

  background:
    radial-gradient(1200px 700px at 15% 0%, rgba(11,107,255,.14), transparent 55%),
    radial-gradient(1000px 650px at 85% 5%, rgba(57,185,255,.10), transparent 58%),
    linear-gradient(to bottom, rgba(11,107,255,.08), transparent 75%);

  opacity:0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}



.sectionFade.is-visible::before{
  opacity:1;
  transform: translateY(0);
}

/* ===== Headings size normalization ===== */
h1 { font-size: clamp(32px, 4vw, 54px); line-height: 1.1; }
h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; }
h3 { font-size: 18px; line-height: 1.25; }
p, li { font-size: 16px; }

/* ===== SPACING FIX: vissza a levegőt ===== */

:root{
  --section-pad: 96px;  /* általános szekció távolság */
  --hero-pad-top: 110px;
  --hero-pad-bottom: 140px; /* EZ adja vissza a nagy rést a hero alatt */
}
/* ===== Vertical rhythm fix (hero + sections) ===== */

/* Minden szekció kapjon “levegőt” */
main#top > section{
  padding: 96px 0;
}

/* HERO: legyen nagyobb tér felül és főleg alul */
main#top > section.hero{
  padding-top: 110px;
  padding-bottom: 150px; /* EZ adja vissza a nagy teret a hero alatt */
}

/* Hero belső grid: kényelmesebb távolság */
.hero__grid{
  gap: 42px;
  align-items: center;
}

/* ===== Promo pill theme fix (data-theme based) ===== */

/* alap: mindkét témában változók */
.pill{
  border: 1px solid var(--stroke);
  color: var(--text);
}

/* LIGHT téma: sötét szöveg, finom világos háttér */
[data-theme="light"] .pill--light{
  background: rgba(0,0,0,.06) !important;
  color: var(--text) !important;     /* --text light módban sötét */
  border-color: rgba(0,0,0,.12) !important;
}

/* DARK téma: világos szöveg, finom fehér overlay háttér */
:not([data-theme="light"]) .pill--light{
  background: rgba(255,255,255,.14) !important;
  color: var(--text) !important;     /* --text dark módban világos */
  border-color: rgba(255,255,255,.25) !important;
}
