@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

/* ── VÁLTOZÓK (Birte Electric márkapaletta, sötét téma) ──────── */
:root {
  --navy:        #0B1F3A;
  --navy-dark:   #060f1d;
  --surface:     #10213c;
  --surface-2:   #16294a;
  --ink:         #ffffff;
  --muted:       rgba(255,255,255,0.68);
  --line:        rgba(255,255,255,0.14);
  --line-strong: rgba(255,255,255,0.24);
  --red:         #C8102E;
  --red-dark:    #A50D26;
  --gold:        #E8A020;
  --green:       #2ECC71;
  --shadow:      0 16px 40px rgba(0,0,0,0.45);
  --font-title:  'Oswald', sans-serif;
  --font-body:   'Open Sans', sans-serif;
  --radius:      10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--navy-dark);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-shell { min-height: 100vh; }

/* ── TOPBAR ───────────────────────────────────────────────────── */
.topbar {
  background: #04101f;
  color: #fff;
  border-bottom: 4px solid var(--red);
}

.topbar-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: #fff;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
}

.home-link {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.home-link:hover { background: rgba(255,255,255,0.08); color: #fff; }

.topnav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topnav a {
  text-decoration: none;
  color: rgba(255,255,255,0.68);
  font-family: var(--font-title);
  letter-spacing: 0.5px;
  font-size: 13.5px;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.topnav a:hover { background: rgba(255,255,255,0.1); color: #fff; }

.topnav a.active {
  background: var(--red);
  color: #fff;
}

.topnav a.cta {
  background: rgba(232,160,32,0.18);
  color: var(--gold);
}

.topnav a.cta:hover {
  background: var(--gold);
  color: #1a1200;
}

/* ── HERO (csak az áttekintő oldalon) ─────────────────────────── */
.hero {
  background:
    linear-gradient(120deg, rgba(6,15,29,0.92), rgba(11,31,58,0.82)),
    repeating-linear-gradient(135deg, #0b1f3a 0, #0b1f3a 16px, #102848 16px, #102848 32px);
  color: #fff;
}

.hero-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 36px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: var(--font-title);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
}

h1, h2, h3 {
  font-family: var(--font-title);
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
}

h1 { font-size: clamp(30px, 4.6vw, 48px); max-width: 850px; letter-spacing: 0.5px; }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 19px; font-weight: 600; }

.lead {
  color: rgba(255,255,255,0.82);
  max-width: 720px;
  font-size: 17px;
  margin: 16px 0 0;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 18px rgba(200,16,46,0.3);
  transition: background 0.15s, transform 0.12s, box-shadow 0.2s;
}

.button:hover { background: var(--red-dark); transform: translateY(-1px); }

.button.secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  box-shadow: none;
}

.button.secondary:hover { background: rgba(255,255,255,0.1); }

.hero-panel {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 22px;
}

.mini-title {
  color: var(--gold);
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.check-list, .plain-list { padding: 0; margin: 0; list-style: none; }

.check-list li, .plain-list li { padding: 8px 0 8px 26px; position: relative; font-size: 15px; }

.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 15px;
  width: 10px; height: 6px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

.plain-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 16px;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* ── FŐ TARTALOM ──────────────────────────────────────────────── */
.main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.section { margin-top: 34px; }

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro-grid--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card p { color: var(--muted); margin: 10px 0 0; }

.icon-box {
  width: 50px; height: 50px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(200,16,46,0.14);
  color: var(--red);
  margin-bottom: 16px;
}

.icon-box svg { width: 28px; height: 28px; }

.phase-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.phase-link {
  min-height: 112px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}

.phase-link:hover {
  border-color: rgba(200,16,46,0.5);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.phase-number {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--red);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
}

.phase-link strong {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ── LÉPÉS-ELRENDEZÉS (sticky oldalsáv + tartalom-kártya) ─────── */
.step-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.step-side { position: sticky; top: 20px; }

.step-badge {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.step-badge::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.step-badge .big {
  font-size: 60px;
  line-height: 1;
  color: var(--red);
  font-family: var(--font-title);
  font-weight: 700;
}

.step-badge h2 { margin-top: 6px; }

.step-badge p { color: var(--muted); margin: 12px 0 0; font-size: 15px; }

.content-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.content-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.content-panel > p.lead { color: var(--muted); }

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.info-item {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.info-item strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.info-item, .info-item * { color: var(--muted); }
.info-item strong { color: var(--ink); }

/* ── BEÚSZÓ ANIMÁCIÓ (kártyák/dobozok – kevésbé "száraz" első benyomás) ── */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.info-strip .info-item,
.intro-grid .card,
.feature-list .feature-item,
.phase-grid .phase-link {
  opacity: 0;
  animation: fadeSlideIn 0.45s ease forwards;
}

.info-strip .info-item:nth-child(1), .intro-grid .card:nth-child(1), .phase-grid .phase-link:nth-child(1) { animation-delay: 0.05s; }
.info-strip .info-item:nth-child(2), .intro-grid .card:nth-child(2), .phase-grid .phase-link:nth-child(2) { animation-delay: 0.12s; }
.info-strip .info-item:nth-child(3), .intro-grid .card:nth-child(3), .phase-grid .phase-link:nth-child(3) { animation-delay: 0.19s; }
.intro-grid .card:nth-child(4), .phase-grid .phase-link:nth-child(4) { animation-delay: 0.26s; }
.intro-grid .card:nth-child(5), .phase-grid .phase-link:nth-child(5) { animation-delay: 0.33s; }
.intro-grid .card:nth-child(6), .phase-grid .phase-link:nth-child(6) { animation-delay: 0.40s; }

/* ── FOLYAMATÁBRA (pl. "két kiszállás" – lépésről lépésre kirajzolódó ábra) ── */
.flow-diagram {
  position: relative;
  margin: 26px 0 30px;
}

.flow-diagram__track {
  position: absolute;
  top: 27px;
  left: 16.6%;
  right: 16.6%;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.flow-diagram__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform-origin: left center;
  transform: scaleX(0);
  animation: flowFill 1.3s ease-out 0.25s forwards;
}

@keyframes flowFill { to { transform: scaleX(1); } }

.flow-diagram__steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.flow-diagram__step {
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeSlideIn 0.5s ease forwards;
}

.flow-diagram__step:nth-child(1) { animation-delay: 0.1s; }
.flow-diagram__step:nth-child(2) { animation-delay: 0.5s; }
.flow-diagram__step:nth-child(3) { animation-delay: 0.9s; }

.flow-diagram__icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 10px;
  box-shadow: 0 4px 14px rgba(200,16,46,0.25);
}

.flow-diagram__who {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.flow-diagram__title {
  font-size: 15.5px;
  margin-bottom: 8px;
}

.flow-diagram__text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 700px) {
  .flow-diagram__track { display: none; }
  .flow-diagram__steps { grid-template-columns: 1fr; gap: 0; }
  .flow-diagram__step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
    padding: 16px 0;
  }
  .flow-diagram__step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 26px;
    top: 54px;
    bottom: -16px;
    width: 2px;
    background: linear-gradient(180deg, var(--red), var(--gold));
  }
  .flow-diagram__icon { margin: 0; flex-shrink: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-diagram__fill,
  .flow-diagram__step,
  .info-strip .info-item,
  .intro-grid .card,
  .feature-list .feature-item,
  .phase-grid .phase-link,
  .compare-split__side,
  .compare-split__divider {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── ÖSSZEHASONLÍTÓ ÁBRA (pl. "Én végzem" / "Elosztó végzi") ─────── */
.compare-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: start;
  margin: 26px 0 30px;
}

.compare-split__side {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  opacity: 0;
}

.compare-split__side--mine {
  border-left: 3px solid var(--red);
  animation: compareSlideLeft 0.5s ease 0.15s forwards;
}

.compare-split__side--theirs {
  border-left: 3px solid var(--gold);
  animation: compareSlideRight 0.5s ease 0.15s forwards;
}

@keyframes compareSlideLeft {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes compareSlideRight {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.compare-split__icon { font-size: 26px; margin-bottom: 8px; }

.compare-split__label {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.compare-split__side--mine .compare-split__label { color: var(--red); }
.compare-split__side--theirs .compare-split__label { color: var(--gold); }

.compare-split__list {
  margin: 0;
  padding-left: 18px;
}

.compare-split__list li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 6px;
}

.compare-split__divider {
  align-self: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy-dark);
  border: 2px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--muted);
  opacity: 0;
  animation: fadeSlideIn 0.4s ease 0.5s forwards;
}

@media (max-width: 700px) {
  .compare-split { grid-template-columns: 1fr; }
  .compare-split__divider { justify-self: center; margin: -4px 0; }
}

/* ── ACCORDION ────────────────────────────────────────────────── */
.accordion {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 0 16px;
}

summary {
  cursor: pointer;
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 16px 0;
  color: var(--ink);
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: '+';
  float: right;
  color: var(--red);
  font-size: 18px;
}

details[open] summary::after { content: '−'; }

details p, details ul { color: var(--muted); }
details ul { margin: 0 0 16px; padding-left: 20px; }
details p { margin: 0 0 16px; }
details li { margin-bottom: 6px; }

.nav-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.nav-row .button { min-width: 150px; }

/* ── FIGYELMEZTETÉS / KIEMELÉS ────────────────────────────────── */
.warning {
  background: rgba(200,16,46,0.09);
  border: 1px solid rgba(200,16,46,0.3);
  border-left: 6px solid var(--red);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 22px;
}

.warning h3 { color: var(--red); }
.warning p { color: rgba(255,255,255,0.85); margin: 0; }

.note {
  background: rgba(46,204,113,0.08);
  border: 1px solid rgba(46,204,113,0.28);
  border-left: 6px solid var(--green);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 20px;
}

.note p, .note { color: rgba(255,255,255,0.85); }

.success-note {
  background: rgba(46,204,113,0.1);
  border: 1px solid rgba(46,204,113,0.28);
  border-left: 4px solid var(--green);
  border-radius: 6px;
  color: rgba(255,255,255,0.85);
  margin-top: 12px;
  padding: 12px;
  font-size: 14px;
}

/* Arany, semleges kiemelés (pl. "ez az elosztó feladata") */
.info-note {
  background: rgba(232,160,32,0.08);
  border: 1px solid rgba(232,160,32,0.28);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 20px;
}

.info-note p, .info-note { color: rgba(255,255,255,0.85); }

.footer {
  background: #04101f;
  color: rgba(255,255,255,0.7);
  padding: 24px 0;
  border-top: 3px solid var(--red);
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13.5px;
}

.footer a { color: var(--gold); text-decoration: none; }
.footer a:hover { color: #f0b840; }

/* ── RESZPONZÍV ───────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-inner, .step-layout { grid-template-columns: 1fr; }
  .intro-grid, .intro-grid--2col, .info-strip { grid-template-columns: 1fr; }
  .phase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-side { position: static; }
}

@media (max-width: 560px) {
  .topbar-inner { align-items: stretch; padding: 10px 0; flex-direction: column; flex-wrap: nowrap; gap: 8px; min-height: 0; width: 100%; }
  .brand { font-size: 13px; max-width: 100%; }
  .brand > div:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
  .topnav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    width: 100%;
    max-width: 100%;
  }
  .topnav a {
    flex: 0 0 auto;
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
  }
  .phase-grid { grid-template-columns: 1fr; }
  .content-panel { padding: 22px; }
  .nav-row { flex-direction: column; }
  .nav-row .button { width: 100%; }
}
