/* PYR Energy — főoldal, rev_3 (színek: Brand Visual Manual rev_3, 02 és 06 fejezet)
   Forrás: Brand Visual Manual rev_3 (website/rev_3/). Az index_rev_3.html használja; a tartalom az index_rev_2.html-lel azonos.

   - Archivo (címek SemiExpanded 112,5%), táblázatos számjegyek, monospace nincs
   - Deep Navy keret (fejléc, hero, vízió, lábléc), Paper tartalmi alap, rajta fehér widgetek
   - Widget: 18 px sarok, kétrétegű lágy árnyék, hover-emelkedés
   - Adatszínek csak adat-szerepben: Grid Blue = töltés, töltöttség, hálózat; Volt Green = kisütés, bevétel; Fire Orange = ár/IDC
   - Állapot (Működik / Fejlesztés alatt / SoC-védelem) állapotszínnel: Success, Warning
   - Fire Orange márkaelemként nézetenként egyszer: a hero kulcsgombja, a platform-piramis csúcsa, az űrlap gombja
   - Mozgás csak finoman, csökkentett mozgásnál kikapcsolva */

:root {
  --navy: #0F1923;
  --harbor: #1C3550;
  --fire: #FF5C28;
  --fire-deep: #C2410C;
  --steel: #4F6B85;
  --steel-light: #A9B8C6;
  --paper: #F3F1EC;
  --white: #FFFFFF;
  --graphite: #50555C;
  --line: #D9D5CC;          /* Line */
  --grid: #E9E6DF;          /* rácsvonal, a Line-nál halványabb (Visual Manual 06) */
  --on-dark: #A9B8C6;       /* Steel Light: szöveg és vonal sötét felületen */
  --hair-dark: rgba(255, 255, 255, .14);
  --blue: #2F6FDB; --blue-ink: #2459B8;
  --green: #14996A; --green-ink: #0E7A54;
  --amber: #E8A317; --amber-ink: #8A5D00;
  --success: #2E7D55; --warning: #96600F; --danger: #B9342C;   /* állapotszínek */

  --font: 'Archivo', Arial, sans-serif;
  --wide: 112.5%;
  --radius: 10px;
  --radius-card: 18px;
  --shadow-card: 0 1px 2px rgba(15, 25, 35, .04), 0 10px 28px -12px rgba(15, 25, 35, .14);
  --shadow-lift: 0 2px 4px rgba(15, 25, 35, .05), 0 18px 36px -14px rgba(15, 25, 35, .20);
  --shadow-on-dark: 0 2px 6px rgba(0, 0, 0, .20), 0 28px 60px -24px rgba(0, 0, 0, .55);
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); scrollbar-color: var(--steel) var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--navy);
  font: 400 17px/1.6 var(--font); font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: rgba(255, 92, 40, .22); color: var(--navy); }
img { max-width: 100%; display: block; }
a { color: var(--fire-deep); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--fire); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
.ph { line-height: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 60; background: var(--white); color: var(--navy); padding: 10px 14px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 40px; }

/* ── gombok ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1px solid transparent;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease-out, color .2s ease-out, border-color .2s ease-out, box-shadow .2s ease-out, transform .2s ease-out;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-key { background: var(--fire); color: var(--navy); box-shadow: 0 1px 2px rgba(15, 25, 35, .12), 0 8px 18px -10px rgba(15, 25, 35, .45); }
.btn-key:hover { background: #FF6D3D; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(15, 25, 35, .14), 0 14px 24px -12px rgba(15, 25, 35, .5); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--harbor); transform: translateY(-1px); }
.btn-ghost-dark { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .28); }
.btn-ghost-dark:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.site-header .btn-ghost-dark { border-color: rgba(169, 184, 198, .45); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ── widget alap ────────────────────────────────────────────────────────── */
.widget {
  background: var(--white); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); outline: 1px solid rgba(15, 25, 35, .05); outline-offset: -1px;
}
.ic { width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.tint-blue { background: rgba(47, 111, 219, .12); color: var(--blue-ink); }
.tint-green { background: rgba(20, 153, 106, .12); color: var(--green-ink); }
.tint-fire { background: rgba(255, 92, 40, .12); color: var(--fire-deep); }
.tint-navy { background: rgba(15, 25, 35, .07); color: var(--navy); }

/* ── fejléc ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: var(--navy); border-bottom: 1px solid transparent;
  transition: border-color .2s ease-out, box-shadow .2s ease-out;
}
.site-header.scrolled { border-bottom-color: var(--hair-dark); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.nav { height: 100%; display: flex; align-items: center; gap: 40px; }
.nav-logo img { height: 20px; width: auto; }
.nav-links { margin-left: auto; display: flex; gap: 4px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--radius);
  color: var(--on-dark); font: 500 15px var(--font); text-decoration: none; transition: color .2s ease-out, background-color .2s ease-out;
}
.nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--hair-dark);
  background: transparent; color: var(--white); font-size: 22px; cursor: pointer; align-items: center; justify-content: center;
}

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; padding: 96px 0 112px; }
.hero-strata { position: absolute; right: -100px; bottom: 24px; width: 640px; max-width: none; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero .display { font-stretch: var(--wide); font-size: clamp(44px, 5.8vw, 80px); line-height: 1.02; letter-spacing: -.03em; max-width: 11ch; }
.hero .lead { margin-top: 24px; font-size: 21px; line-height: 1.45; color: var(--white); font-weight: 500; max-width: 34ch; }
.hero .support { margin-top: 16px; color: var(--on-dark); max-width: 52ch; }
.hero-actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual { padding: 22px 22px 18px; color: var(--navy); box-shadow: var(--shadow-on-dark); outline: 0; }
.viz-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.viz-head .ic { width: 32px; height: 32px; border-radius: 10px; font-size: 18px; }
.viz-title { font-weight: 600; font-size: 15px; }
.viz-unit { margin-left: auto; font-size: 13px; color: var(--graphite); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero-visual svg { width: 100%; height: auto; display: block; }
.viz-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; font-size: 13px; color: var(--graphite); }
.viz-legend span { display: inline-flex; align-items: center; gap: 8px; }
.key { display: inline-block; flex-shrink: 0; }
.key-line { width: 18px; height: 2.5px; border-radius: 2px; background: var(--navy); }
.key-split { width: 18px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, var(--blue) 50%, var(--green) 50%); }
.viz-caption { margin-top: 8px; font-size: 12.5px; color: var(--graphite); }

/* ── szekciók: bal oldalt bevezető, jobb oldalt tartalom (4/8) ──────────── */
.section { padding: 112px 0; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.section-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.section h2, .section .h2 { font-stretch: var(--wide); letter-spacing: -.02em; line-height: 1.1; }
.section h2 { font-size: clamp(30px, 3.2vw, 42px); }
.section .h2 { font-size: clamp(24px, 2.4vw, 30px); }
.section-intro p { margin-top: 16px; color: var(--graphite); font-size: 18px; max-width: 42ch; }

/* amit vállalunk */
.proof { padding-top: 96px; }
.commitments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.commitments li { padding: 24px 24px 26px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr; column-gap: 12px; transition: box-shadow .2s ease-out, transform .2s ease-out; }
.commitments li:last-child { grid-column: 1 / -1; }
.commitments li:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.commitments .ic { grid-row: 1; }
.commitments .status { grid-row: 1; justify-self: end; align-self: center; }
.commitments h3 { grid-column: 1 / -1; margin-top: 18px; font-stretch: 106%; font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
.commitments p { grid-column: 1 / -1; margin-top: 8px; color: var(--graphite); font-size: 15.5px; line-height: 1.55; }
.status { display: inline-flex; align-items: center; gap: 7px; min-height: 26px; padding: 0 10px; border-radius: 999px; font: 600 13px var(--font); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-live { background: rgba(46, 125, 85, .08); color: var(--success); }
.status-dev { background: rgba(150, 96, 15, .07); color: var(--warning); }

/* döntési napló */
.log-block { margin-top: 96px; }
.log { padding: 8px 0; overflow: hidden; }
.log-scroll { overflow-x: auto; }
.log-scroll:focus-visible { outline-offset: -3px; }
.log table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.log th { text-align: left; font: 500 13px var(--font); color: var(--graphite); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.log td { padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.log tr:last-child td { border-bottom: 0; }
.log th:first-child, .log td:first-child { padding-left: 24px; font-weight: 600; }
.log th:last-child, .log td:last-child { padding-right: 24px; }
.log .num { text-align: right; }
.log .ref { color: var(--graphite); }
.log .pos { color: var(--green-ink); font-weight: 500; }
.log .neg { color: var(--blue-ink); font-weight: 500; }
.log tbody tr { transition: background-color .15s ease-out; }
.log tbody tr:hover td { background: var(--paper); }
.out { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font: 600 13px var(--font); }
.out-discharge { background: rgba(20, 153, 106, .12); color: var(--green-ink); }
.out-charge { background: rgba(47, 111, 219, .12); color: var(--blue-ink); }
.out-hold { background: rgba(15, 25, 35, .06); color: var(--graphite); }
.out-guard { background: rgba(150, 96, 15, .07); color: var(--warning); }

/* kiknek szól */
.audience { padding-top: 0; }
.persona-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.persona { padding: 26px 26px 28px; transition: box-shadow .2s ease-out, transform .2s ease-out; }
.persona:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.persona .role { display: flex; align-items: center; gap: 12px; font: 600 14px var(--font); color: var(--graphite); margin-bottom: 20px; }
.persona h3 { font-stretch: 106%; font-size: 21px; line-height: 1.25; letter-spacing: -.01em; }
.persona p:last-child { margin-top: 10px; color: var(--graphite); font-size: 15.5px; line-height: 1.55; }

/* platform */
.platform { background: var(--white); }
.platform-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.platform-copy p { margin-top: 18px; color: var(--graphite); max-width: 56ch; }
.platform-copy .btn { margin-top: 32px; }
.platform-diagram { padding: 32px 32px 24px; background: var(--paper); box-shadow: none; outline: 0; }
.platform-diagram svg { width: 100%; max-width: 420px; height: auto; margin: 0 auto; display: block; }
.diagram-caption { text-align: center; margin-top: 16px; font-size: 13px; color: var(--graphite); }

/* alapértékek: egy widget, sorok */
.values-list { overflow: hidden; }
.value { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; padding: 22px 28px; border-top: 1px solid var(--line); }
.value:first-child { border-top: 0; }
.value dt { font-stretch: 106%; font-weight: 600; font-size: 18px; line-height: 1.35; display: flex; gap: 12px; align-items: baseline; }
.value dt::before { content: ""; width: 9px; height: 8px; clip-path: polygon(50% 0, 100% 100%, 0 100%); flex-shrink: 0; transform: translateY(-1px); background: var(--navy); }
.value dd { color: var(--graphite); font-size: 15.5px; line-height: 1.55; }

/* vízió */
.vision { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding: 136px 0; }
.vision-strata { position: absolute; left: -160px; top: -40px; width: 620px; max-width: none; pointer-events: none; }
.vision .container { position: relative; }
.vision blockquote p { font-stretch: var(--wide); letter-spacing: -.02em; font-size: clamp(30px, 3.9vw, 52px); line-height: 1.1; font-weight: 600; max-width: 24ch; }
.vision .cite { margin-top: 28px; color: var(--on-dark); font-size: 16px; }

/* kapcsolat */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.contact-info .intro { margin-top: 18px; color: var(--graphite); font-size: 18px; max-width: 44ch; }
.contact-fact { display: flex; align-items: center; gap: 14px; margin-top: 20px; font-size: 16px; }
.contact-info .intro + .contact-fact { margin-top: 36px; }

.contact-form { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font: 500 14px var(--font); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--paper); color: var(--navy); font: 400 16px var(--font);
  transition: border-color .2s ease-out, background-color .2s ease-out, box-shadow .2s ease-out;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #5F646B; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--steel-light); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 3px rgba(255, 92, 40, .25); }
.contact-form .btn { align-self: flex-start; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { display: none; font-size: 15px; padding: 12px 14px; border-radius: var(--radius); }
.form-msg.show { display: block; }
.form-msg.ok { background: rgba(46, 125, 85, .1); color: var(--success); }
.form-msg.err { background: rgba(185, 52, 44, .08); color: var(--danger); }

/* lábléc */
.site-footer { background: var(--navy); color: var(--on-dark); padding: 56px 0 32px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--hair-dark); }
.footer-logo img { height: 20px; width: auto; }
.footer-tagline { font-stretch: var(--wide); font-weight: 600; color: var(--white); font-size: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 14px; }
.footer-bottom a { color: var(--on-dark); }
.footer-bottom a:hover { color: var(--white); }

/* ── reszponzív ─────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-grid, .platform-grid, .contact-grid, .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .section-intro { position: static; }
  .hero { padding: 64px 0 80px; }
}
@media (max-width: 860px) {
  .nav { gap: 16px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0; flex-direction: column; gap: 0;
    background: var(--navy); border-top: 1px solid var(--hair-dark); padding: 8px 16px 16px;
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .6); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { min-height: 48px; width: 100%; font-size: 16px; }
  .nav-cta { margin-left: auto; }
  .commitments, .persona-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .value { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .nav-cta .btn { display: none; }
  .hero { padding: 40px 0 56px; }
  .hero-strata { width: 420px; right: -150px; bottom: 16px; }
  .hero .lead { font-size: 19px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { padding: 16px 14px 14px; }
  .viz-unit { display: none; }
  .widget { border-radius: 14px; }
  .section { padding: 72px 0; }
  .proof { padding-top: 64px; }
  .audience { padding-top: 0; }
  .log-block { margin-top: 64px; }
  .commitments li, .persona { padding: 20px; }
  .value { padding: 18px 20px; }
  .vision { padding: 88px 0; }
  .vision-strata { width: 420px; left: -180px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .contact-form { padding: 20px; }
  .contact-form .btn { align-self: stretch; }
  .platform-diagram { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .commitments li, .persona, .log tbody tr { transition: none; }
  .btn:hover, .commitments li:hover, .persona:hover { transform: none; }
}
