/* ============ Webfont (önhostolt Inter variable) ============ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0;
}

/* ============ Téma-változók ============ */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #edf0f7;
  --text: #171a21;
  --text-2: #4d5568;
  --border: #e1e5f0;
  --accent: #4a63d0;
  --accent-2: #7b5bd6;
  --accent-soft: rgba(74, 99, 208, .10);
  --header-bg: rgba(246, 247, 251, .8);
  --shadow: 0 10px 30px rgba(23, 26, 33, .07);
  --footer-bg: #12151d;
  --footer-text: #b8bfd1;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0d1017;
  --surface: #151a25;
  --surface-2: #10141d;
  --text: #e8ebf4;
  --text-2: #9aa3b8;
  --border: #242c3f;
  --accent: #8ca2ff;
  --accent-2: #b49bff;
  --accent-soft: rgba(140, 162, 255, .10);
  --header-bg: rgba(13, 16, 23, .75);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --footer-bg: #0a0d13;
  --footer-text: #9aa3b8;
  color-scheme: dark;
}

/* ============ Alap ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Logóváltás témánként */
.logo-light, :root[data-theme="dark"] .logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: inline-block; }

/* ============ Fejléc ============ */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { width: 200px; height: auto; } /* korábbi: 150px — visszaállítható */
#mainnav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
#mainnav a {
  color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 600;
  padding: 8px 14px; border-radius: 8px;
}
#mainnav a:hover { background: var(--accent-soft); color: var(--accent); }

.theme-switch {
  display: flex; gap: 2px; padding: 3px; margin-left: 10px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.theme-switch button {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 28px; border: 0; border-radius: 7px;
  background: transparent; color: var(--text-2); cursor: pointer;
}
.theme-switch button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-switch button.active { background: var(--accent); color: #fff; }
.theme-switch button:not(.active):hover { background: var(--accent-soft); color: var(--accent); }

#hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 40px; padding: 0 10px;
  background: transparent; border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
}
#hamburger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
#hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Gombok ============ */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-weight: 600; font-size: 1rem; font-family: inherit;
  padding: 13px 28px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 6px 20px rgba(74, 99, 208, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(74, 99, 208, .45); }

/* ============ Hero ============ */
.hero { position: relative; padding: 170px 0 110px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  /* korábbi pöttyrács — visszaállítható:
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 26px 26px; */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent);
}
#hero-net { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg::before, .hero-bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35;
}
.hero-bg::before { width: 480px; height: 480px; top: -160px; right: -80px; background: var(--accent); }
.hero-bg::after { width: 380px; height: 380px; bottom: -180px; left: -100px; background: var(--accent-2); }
.hero-inner { max-width: 780px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 6px 14px; border-radius: 20px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; margin-bottom: 22px; }
.grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lead { font-size: 1.18rem; color: var(--text-2); max-width: 620px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; margin-bottom: 44px; }
.hero-points li {
  font-size: .88rem; font-weight: 600; color: var(--text-2);
  border: 1px solid var(--border); background: var(--surface);
  padding: 7px 16px; border-radius: 20px;
}
.hero-points li::before { content: "✓ "; color: var(--accent); }

/* ============ Szekciók ============ */
.section { padding: 96px 0; }
.section-alt { background: var(--surface-2); }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 16px; }
.section-lead { color: var(--text-2); font-size: 1.08rem; max-width: 640px; margin-bottom: 48px; }

/* Kártyák */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 30px 26px;
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 14px;
  align-content: start;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 13px;
  background: var(--accent-soft); color: var(--accent);
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.15rem; align-self: center; }
.card p { grid-column: 1 / -1; }
.card p { color: var(--text-2); font-size: .95rem; }

/* Miért mi */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 44px; }
.why-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 26px 28px 24px;
  display: grid; grid-template-columns: 42px 1fr; column-gap: 18px; row-gap: 10px;
  align-content: start;
}
.why-num {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 10px 26px rgba(74, 99, 208, .45);
}
.why-item h3 { font-size: 1.1rem; align-self: center; }
.why-item p { grid-column: 1 / -1; color: var(--text-2); font-size: .95rem; }

/* ============ Kapcsolat ============ */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 8px; }
.ci {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; border-radius: 12px;
  color: var(--text); text-decoration: none;
}
a.ci:hover { background: var(--accent-soft); }
.ci strong { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); font-weight: 600; }
.ci-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
}
.ci-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

form {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 32px 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .98rem;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .err { display: none; font-size: .82rem; color: #d64550; margin-top: 5px; }
.field.invalid input, .field.invalid textarea { border-color: #d64550; }
.field.invalid .err { display: block; }
#formstatus { margin-top: 14px; font-size: .95rem; display: none; }
#formstatus.ok { display: block; color: #3d9e5f; }
#formstatus.fail { display: block; color: #d64550; }
#sendbtn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Honeypot – látogatónak láthatatlan */
.hp-field { position: absolute; left: -6000px; top: -6000px; width: 1px; height: 1px; overflow: hidden; }

/* ============ Lábléc ============ */
footer { background: var(--footer-bg); color: var(--footer-text); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding-bottom: 44px; }
.footer-logo { width: 300px; margin-bottom: 14px; } /* korábbi: 150px, majd 200px — visszaállítható */
footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; letter-spacing: .04em; }
footer p { font-size: .93rem; }
footer a { color: var(--footer-text); text-decoration: none; }
footer a:hover { color: #fff; }
.copyright {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 18px; padding-bottom: 18px; font-size: .85rem;
}

/* ============ Reveal animáció ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ============ Reszponzív ============ */
@media (max-width: 992px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  #hamburger { display: flex; margin-left: auto; }
  #mainnav {
    position: fixed; top: 68px; left: 0; right: 0; z-index: 99;
    display: none; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 14px 20px 18px; box-shadow: var(--shadow);
  }
  #mainnav.open { display: flex; }
  #mainnav a { padding: 13px 14px; font-size: 1.05rem; }
  .theme-switch { align-self: flex-start; margin: 10px 0 0 14px; }
  .hero { padding: 130px 0 80px; }
  .section { padding: 68px 0; }
  .cards, .why-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
}
