/* =====================================================================
   ViewPoint – nyilvános oldalak közös stílusa
   ===================================================================== */

:root {
  --bg: #0b0c0c;
  --surface: #121414;
  --surface-2: #191c1c;
  --line: rgba(236, 231, 223, 0.09);
  --line-strong: rgba(236, 231, 223, 0.18);
  --text: #ece7df;
  --muted: #9b9891;
  --faint: #6a6863;
  --accent: #3cb6c2;
  --accent-ink: #0b0c0c;

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0; }
/* Kiemelés: ugyanaz a betű, halványabb tónus (kétszínű címek) */
em { font-style: normal; color: var(--muted); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Gombok ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px;
  border-radius: 999px;
  font: 500 15px/1 var(--font);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Navigáció ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled, .nav.solid {
  background: rgba(11, 12, 12, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-size: 14px; color: var(--muted); text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { background: rgba(236,231,223,0.06); }
.nav-cta { margin-left: 10px; }
.nav-links .nav-cta a.btn { display: inline-flex; padding: 0 16px; color: var(--bg); border-radius: 999px; }
.nav-links .nav-cta a.btn:hover { color: var(--bg); }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { position: relative; display: block; width: 16px; height: 10px; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 16px; height: 1.5px; background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span::before { top: 1px; }
.nav-toggle span::after { top: 7.5px; }
.nav.open .nav-toggle span::before { top: 4.25px; transform: rotate(45deg); }
.nav.open .nav-toggle span::after { top: 4.25px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 72px 0 0 0; height: calc(100dvh - 72px);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.open { background: rgba(11, 12, 12, 0.97); border-bottom-color: var(--line); }
  .nav-links a { padding: 14px 0; font-size: 20px; color: var(--text); border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a[aria-current="page"] { background: none; color: var(--accent); }
  .nav-cta { margin: 18px 0 0; }
  .nav-cta .btn { width: 100%; --h: 52px; font-size: 16px; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px 0 clamp(40px, 7vh, 72px);
  overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; background: #050606; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(11,12,12,.55) 0%, rgba(11,12,12,0) 30%),
    linear-gradient(to top, var(--bg) 0%, rgba(11,12,12,.35) 45%, rgba(11,12,12,0) 70%);
}
.hero h1 { font-size: clamp(3rem, 9vw, 8.25rem); line-height: 0.95; letter-spacing: -0.045em; max-width: 11ch; }
.hero h1 em { color: rgba(236,231,223,.55); }
.hero-bottom {
  margin-top: clamp(28px, 5vh, 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px;
}
.hero-lead { max-width: 46ch; color: rgba(236,231,223,.78); font-size: clamp(16px, 1.4vw, 18px); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-meta {
  margin-top: clamp(36px, 7vh, 72px); padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em;
}
@media (max-width: 760px) {
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-meta span:nth-child(n+3) { display: none; }
}

/* ---------- Szekciók ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head {
  display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2.2fr); gap: 32px;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.section-head > .label { align-self: start; margin-top: 12px; }
.section-head h2 { font-size: clamp(2.25rem, 5vw, 4.25rem); letter-spacing: -0.04em; }
.section-head p { margin-top: 20px; color: var(--muted); max-width: 52ch; font-size: 17px; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- Ügyfél logók ---------- */
.clients { padding: clamp(56px, 8vw, 96px) 0 0; }
.clients-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.clients-head p { color: var(--faint); font-size: 14px; }
.clients-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.client { height: 168px; display: flex; align-items: center; justify-content: center; padding: 28px; }
.client + .client { border-left: 1px solid var(--line); }
.client img {
  width: auto; height: 88px; max-width: 100%; object-fit: contain;
  opacity: .88; transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.client img.lg { height: 116px; }   /* optikai kiegyenlítés a levegősebb logóknál */
.client:hover img { opacity: 1; transform: scale(1.04); }
@media (max-width: 760px) {
  .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client { height: 132px; padding: 20px; }
  .client img { height: 68px; }
  .client img.lg { height: 88px; }
  .client:nth-child(3) { border-left: 0; }
  .client:nth-child(n+3) { border-top: 1px solid var(--line); }
}
/* ---------- Szolgáltatás lista ---------- */
.services { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 80px minmax(0, 1.2fr) minmax(0, 1.6fr) auto;
  gap: 24px; align-items: start;
  padding: 36px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; position: relative;
  transition: padding .35s var(--ease);
}
.service-num { font-family: var(--mono); font-size: 13px; color: var(--faint); padding-top: 10px; }
.service h3 { font-size: clamp(1.75rem, 3vw, 2.6rem); letter-spacing: -0.035em; }
.service p { color: var(--muted); max-width: 48ch; padding-top: 6px; }
.service-arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; transition: background-color .3s var(--ease), border-color .3s, color .3s;
}
.service-arrow svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.service:hover .service-arrow { background: var(--text); color: var(--bg); border-color: var(--text); }
.service:hover .service-arrow svg { transform: rotate(-45deg); }
.service:hover h3 { color: #fff; }
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr auto; gap: 10px 16px; }
  .service-num { grid-column: 1 / -1; padding: 0; }
  .service p { grid-column: 1 / -1; grid-row: 3; }
  .service-arrow { grid-column: 2; grid-row: 2; width: 42px; height: 42px; }
}

/* ---------- Folyamat ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { padding: 28px 28px 8px 0; border-top: 1px solid var(--line-strong); }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step-num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.step h3 { margin: 40px 0 14px; font-size: 26px; letter-spacing: -0.03em; }
.step p { color: var(--muted); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 24px 0; border-left: 0; }
  .step h3 { margin-top: 18px; }
}

/* ---------- Számok ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 28px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-weight: 500; font-size: clamp(3.25rem, 6.5vw, 5.5rem); line-height: 1; letter-spacing: -0.05em; }
.stat span { display: block; margin-top: 14px; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 28px 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Csapat ---------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); max-width: 940px; margin-left: auto; }
.person figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; background: var(--surface); }
.person img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s var(--ease), transform .8s var(--ease); }
.person:hover img { filter: none; transform: scale(1.02); }
.person-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 18px; }
.person h3 { font-size: 26px; letter-spacing: -0.03em; }
.person-role { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; text-align: right; }
.person p.bio { margin-top: 12px; color: var(--muted); max-width: 56ch; }
@media (max-width: 640px) { .team { grid-template-columns: 1fr; } }

/* ---------- Kapcsolat ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(40px, 6vw, 96px); }
.contact h2 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -0.045em; }
.contact-lead { margin-top: 22px; color: var(--muted); max-width: 40ch; font-size: 17px; }
.contact-info { margin-top: 40px; display: grid; gap: 18px; }
.contact-info div { padding-top: 16px; border-top: 1px solid var(--line); }
.contact-info .label::before { display: none; }
.contact-info a, .contact-info p { display: block; margin-top: 6px; font-size: 18px; text-decoration: none; }
.contact-info a:hover { color: var(--accent); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  font: 16px/1.5 var(--font);
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface-2); }
.field-error { font-size: 13px; color: #ff8a7a; min-height: 0; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form-foot small { color: var(--faint); font-size: 13px; }
.honeypot-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.notice {
  padding: 28px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface);
}
.notice h3 { font-size: 26px; margin-bottom: 10px; }
.notice p { color: var(--muted); }

/* ---------- Aloldalak (szolgáltatás) ---------- */
.page-head { padding: 150px 0 clamp(48px, 7vw, 80px); }
.page-head h1 { font-size: clamp(3rem, 8vw, 7rem); letter-spacing: -0.045em; line-height: .95; margin-top: 24px; max-width: 14ch; }
.page-head .lead { margin-top: 28px; max-width: 56ch; color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); }
.crumbs { display: flex; gap: 8px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--faint); letter-spacing: .04em; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--text); }

.showcase { border-radius: var(--radius); overflow: hidden; background: #050606; border: 1px solid var(--line); }
.showcase video { width: 100%; height: auto; max-height: 78vh; object-fit: cover; }

.split-media { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-media .showcase video { aspect-ratio: 9 / 16; max-height: none; }
.split-media .detail-grid { grid-template-columns: 1fr; padding-top: 0; gap: 32px; }
@media (max-width: 860px) { .split-media { grid-template-columns: 1fr; } .split-media .showcase { max-width: 420px; } }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); padding-top: clamp(56px, 8vw, 96px); }
.detail-grid h2 { font-size: clamp(2rem, 3.5vw, 3rem); letter-spacing: -0.035em; }
.detail-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.detail-list li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.detail-list li span:first-child { font-family: var(--mono); font-size: 12px; color: var(--faint); padding-top: 4px; }
.detail-list strong { display: block; font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.detail-list p { color: var(--muted); margin-top: 4px; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }

.cta-band {
  margin-top: clamp(80px, 10vw, 140px);
  padding: clamp(40px, 6vw, 72px);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.75rem); letter-spacing: -0.04em; max-width: 16ch; }

/* ---------- Referenciák ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 2vw, 20px); }
.work { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.work iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.work.landscape { grid-column: span 6; aspect-ratio: 16 / 9; }
.work.portrait { grid-column: span 4; aspect-ratio: 9 / 16; }
@media (max-width: 960px) {
  .work.landscape { grid-column: span 12; }
  .work.portrait { grid-column: span 6; }
}
@media (max-width: 560px) { .work.portrait { grid-column: span 12; } }

/* ---------- Lábléc ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-big { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.04em; line-height: 1.05; font-weight: 500; }
.footer-big a { text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: border-color .2s, color .2s; }
.footer-big a:hover { color: var(--accent); border-color: var(--accent); }
.footer h4 { margin: 0 0 14px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer ul a { text-decoration: none; color: var(--muted); }
.footer ul a:hover { color: var(--text); }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 14px; }
.footer-bottom .brand { font-size: 15px; color: var(--muted); }
.footer-bottom .brand svg { width: 22px; height: 22px; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

/* ---------- Hibaoldalak ---------- */
.error-page { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 60px; }
.error-code { font-weight: 500; font-size: clamp(6rem, 20vw, 14rem); line-height: .85; color: var(--accent); letter-spacing: -0.06em; }
.error-page h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-top: 24px; letter-spacing: -0.04em; }
.error-page p { margin-top: 16px; color: var(--muted); max-width: 48ch; font-size: 17px; }
.error-page .hero-actions { margin-top: 36px; }

/* ---------- Animáció ---------- */
/* Csak JS esetén rejtünk el bármit – JS nélkül minden látszik */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
