/* ===== 8bithosting.cloud ===== */
:root {
  --bg-dark: #131a2b;
  --bg-darker: #0d1322;
  --border-dark: #1e293b;
  --border-mid: #334155;
  --text-light: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #22d3ee;
  --accent-on-light: #0e7490;
  --accent-deep: #164e63;
  --bg-light: #f8fafc;
  --bg-light-alt: #eef2f7;
  --text-dark: #0f172a;
  --card-border: #e2e8f0;
  --font-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "JetBrains Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--bg-dark); color: var(--text-light); line-height: 1.6; }
img, svg { max-width: 100%; display: block; }
section { scroll-margin-top: 72px; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.btn { display: inline-block; font-size: 15px; font-weight: 700; padding: 12px 22px;
  text-decoration: none; border: none; cursor: pointer; font-family: var(--font-sans); }
.btn-primary { background: var(--accent); color: var(--bg-dark); }
.btn-primary:hover { background: #06b6d4; }
.btn-ghost { border: 2px solid var(--border-mid); color: var(--text-muted); padding: 10px 22px; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.section-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.on-light .section-label { color: var(--accent-on-light); }
.section-title { font-size: clamp(26px, 4vw, 36px); font-weight: 800; line-height: 1.15; margin-bottom: 28px; }

/* ===== Fejléc ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg-darker);
  border-bottom: 1px solid var(--border-dark); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--font-mono); font-weight: 700; font-size: 18px; text-decoration: none; }
.logo b { color: var(--accent); font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { font-size: 14px; color: var(--text-muted); text-decoration: none; }
.main-nav a:hover { color: var(--text-light); }
.main-nav .lang-switch { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); }
.main-nav .btn { font-size: 14px; padding: 9px 16px; }
/* a .main-nav a szín-szabálya specifikusabb a .btn-primary-nál — itt állítjuk vissza */
.main-nav a.btn-primary, .main-nav a.btn-primary:hover { color: var(--bg-dark); }
.nav-toggle { display: none; background: none; border: 2px solid var(--border-mid);
  color: var(--text-light); font-size: 20px; width: 42px; height: 42px; cursor: pointer; }

/* ===== Lábléc ===== */
.site-footer { background: var(--bg-darker); border-top: 1px solid var(--border-dark); padding: 24px 0; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 13px; color: var(--text-dim); }
.site-footer a { color: var(--text-muted); }

/* ===== Mobil ===== */
@media (max-width: 760px) {
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-darker); border-bottom: 1px solid var(--border-dark);
    flex-direction: column; padding: 18px 24px; align-items: flex-start; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ===== Hero ===== */
.hero { background: var(--bg-dark); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px;
  align-items: center; padding-top: 72px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; line-height: 1.12; margin-bottom: 18px; }
.hero-sub { color: var(--text-muted); font-size: 18px; max-width: 460px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.terminal { border: 3px solid var(--accent); background: var(--bg-darker);
  box-shadow: 6px 6px 0 var(--bg-darker), 6px 6px 0 1px var(--border-mid); }
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  border-bottom: 2px solid var(--border-dark); }
.dot { width: 10px; height: 10px; display: inline-block; }
.dot-r { background: #ef4444; } .dot-y { background: #eab308; } .dot-g { background: #22c55e; }
.terminal-title { font-family: var(--font-mono); color: var(--text-dim); font-size: 12px; margin-left: 8px; }
.terminal-body { padding: 18px; font-family: var(--font-mono); font-size: 14px; line-height: 2; }
.t-line { color: var(--text-muted); opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.t-line.visible { opacity: 1; transform: none; }
.t-dim { color: var(--text-dim); }
.t-ok { color: var(--accent); }
.t-green { color: #22c55e; }
.t-cursor { color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: .2; } }

.stats-band { background: var(--bg-darker); border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark); padding: 18px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stat b { font-family: var(--font-mono); color: var(--accent); font-size: 22px; display: block; }
.stat span { color: var(--text-muted); font-size: 13px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Világos szekciók ===== */
.on-light { background: var(--bg-light); color: var(--text-dark); padding: 72px 0; }
.section-process { background: var(--bg-light-alt); }
.on-light p { color: var(--text-dim); }
.on-light h3 { color: var(--text-dark); font-size: 17px; margin-bottom: 6px; }

.card-grid { display: grid; gap: 18px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--card-border); border-radius: 6px; padding: 24px; }
.card p { font-size: 15px; }
.pixel-icon { width: 32px; height: 32px; margin-bottom: 14px; image-rendering: pixelated; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; }
.process-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.step-num { font-family: var(--font-mono); font-weight: 700; font-size: 15px;
  color: var(--accent); background: var(--bg-dark); display: inline-block;
  width: 38px; height: 38px; line-height: 38px; text-align: center; margin-bottom: 12px; }
.process-grid p { font-size: 14px; }

@media (max-width: 760px) {
  .card-grid.cols-2 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid.cols-3 { grid-template-columns: 1fr; }
}

/* ===== CTA-sáv ===== */
.cta-band { background: var(--accent); padding: 34px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cta-band h2 { color: var(--bg-dark); font-size: 24px; font-weight: 800; }
.cta-band p { color: var(--bg-dark); font-size: 14px; }
.btn-dark { background: var(--bg-dark); color: var(--accent); }
.btn-dark:hover { background: var(--bg-darker); }

/* ===== Rólunk ===== */
.about-text { max-width: 560px; margin-bottom: 22px; }
.brand-links { display: flex; gap: 12px; flex-wrap: wrap; }
.brand-chip { font-family: var(--font-mono); font-size: 14px; color: var(--text-dark);
  border: 1px solid #cbd5e1; padding: 9px 16px; text-decoration: none; background: transparent; }
.brand-chip.current { background: #fff; }
.brand-chip b { color: var(--accent-on-light); }

/* ===== Reveal + reduced motion ===== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .t-line { opacity: 1 !important; transform: none !important; transition: none !important; }
  .t-cursor { animation: none; }
}

/* ===== Ügyfeleknek (sötét szekció) ===== */
.section-clients { background: var(--bg-dark); padding: 72px 0; }
.section-clients .support-mail { font-family: var(--font-mono); font-size: 20px; color: var(--accent); text-decoration: none; border-bottom: 2px solid var(--border-mid); }
.section-clients .support-mail:hover { border-color: var(--accent); }
.section-note { color: var(--text-muted); max-width: 560px; margin-bottom: 18px; }

/* ===== Frontend-design pass: mono display + státusz-tábla ===== */
h1, .section-title { font-family: var(--font-mono); letter-spacing: -0.01em; }
.hero h1 { font-size: clamp(28px, 4.4vw, 44px); }

.status-board .terminal-body { font-size: 13px; }
.status-row { display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.status-row .status-ok { margin-left: auto; color: var(--accent); }
.led { width: 8px; height: 8px; flex: none; background: #22c55e;
  box-shadow: 0 0 6px #22c55e; animation: ledpulse 2.4s ease-in-out infinite; }
.status-row:nth-child(2) .led { animation-delay: .6s; }
.status-row:nth-child(3) .led { animation-delay: 1.2s; }
.status-row:nth-child(4) .led { animation-delay: 1.8s; }
@keyframes ledpulse { 50% { opacity: .35; } }

.uptime-line { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.uptime-label { color: var(--text-dim); font-size: 11px; }
.uptime-bars { flex: 1; height: 14px; opacity: .85;
  background: repeating-linear-gradient(90deg, #22c55e 0 6px, transparent 6px 10px); }

@media (prefers-reduced-motion: reduce) {
  .led { animation: none; }
}

/* ===== Tuning-kör: kártya-LED-ek, stat-uptime ===== */
#szolgaltatas .card { position: relative; }
#szolgaltatas .card::after { content: ""; position: absolute; top: 18px; right: 18px;
  width: 8px; height: 8px; background: #22c55e; box-shadow: 0 0 5px #22c55e;
  animation: ledpulse 2.4s ease-in-out infinite; }
#szolgaltatas .card:nth-child(2)::after { animation-delay: .6s; }
#szolgaltatas .card:nth-child(3)::after { animation-delay: 1.2s; }
#szolgaltatas .card:nth-child(4)::after { animation-delay: 1.8s; }

.stat-bars { display: block; height: 6px; margin: 7px auto 0; max-width: 130px;
  background: repeating-linear-gradient(90deg, #22c55e 0 4px, transparent 4px 7px);
  opacity: .7; }


@media (prefers-reduced-motion: reduce) {
  #szolgaltatas .card::after { animation: none; }
}

/* ============================================================
   CRT-monitor újratervezés (frontend-design kör 2.)
   Pixel-font: Press Start 2P — SIL Open Font License, saját hostolás
   ============================================================ */
@font-face {
  font-family: "Press Start 2P";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/press-start-2p-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+2191, U+2193;
}
@font-face {
  font-family: "Press Start 2P";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/press-start-2p-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+02DD;
}

/* --- Scanline + vignetta réteg (kattintás-átengedő) --- */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 900;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.13) 0 1px, transparent 1px 3px); }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 901;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.4) 100%); }

/* --- Pixel-font a display-szinteken (kisebb méretek: a font vizuálisan nagy) --- */
h1, .section-title { font-family: "Press Start 2P", var(--font-mono); font-weight: 400; letter-spacing: 0; }
.hero h1 { font-size: clamp(19px, 2.9vw, 32px); line-height: 1.55; }
.section-title { font-size: clamp(14px, 2vw, 20px); line-height: 1.6; margin-bottom: 26px; }
.logo { font-family: "Press Start 2P", var(--font-mono); font-size: 12px; }
.logo b { font-weight: 400; }
.cta-band h2 { font-family: "Press Start 2P", var(--font-mono); font-size: 15px; font-weight: 400; }

/* --- Foszfor-ragyogás, csak a fénylő elemeken --- */
.section-label, .status-ok, .t-green, .logo b, .stat b { text-shadow: 0 0 8px rgba(34,211,238,.35); }
.t-green, .led, .status-row .led { text-shadow: 0 0 8px rgba(34,197,94,.4); }

/* --- Vége a világos szekcióknak: minden a képernyőn belül --- */
.on-light { background: #0b1220; color: var(--text-light); }
.section-process { background: #0e1526; }
.on-light p { color: var(--text-muted); }
.on-light h3 { color: var(--text-light); }
.on-light .section-label { color: var(--accent); }
.section-note { color: var(--text-muted); }

/* --- Kártyák: foszfor-panelek pixel-sarkokkal --- */
.card { background-color: rgba(34,211,238,.05); border: 1px solid rgba(34,211,238,.28);
  border-radius: 0;
  background-image:
    linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent));
  background-size: 5px 5px; background-repeat: no-repeat;
  background-position: top left, top right, bottom left, bottom right; }
.card p { color: var(--text-muted); }

/* --- Folyamat-lépések és brand-chipek sötét változata --- */
.step-num { background: transparent; border: 2px solid var(--accent); color: var(--accent);
  line-height: 34px; }
.brand-chip { color: var(--text-light); border-color: var(--border-mid); }
.brand-chip.current { background: rgba(34,211,238,.08); }
.brand-chip b { color: var(--accent); }

/* --- Boot-szekvencia (betöltéskor egyszer; reduced-motion: kimarad) --- */
.boot { position: fixed; inset: 0; z-index: 999; background: #05070c;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .45s; }
.boot.boot-done { opacity: 0; pointer-events: none; }
.boot pre { font-family: var(--font-mono); font-size: 14px; line-height: 2;
  color: #22c55e; text-shadow: 0 0 8px rgba(34,197,94,.5); margin: 0;
  animation: bootflick .55s steps(3) 1; }
.boot-line { display: block; opacity: 0; }
.boot-line.visible { opacity: 1; }
@keyframes bootflick { 0% { opacity: .1; } 45% { opacity: 1; } 65% { opacity: .55; } 100% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  body::before, body::after { display: none; }
  .boot { display: none; }
}

/* --- Gépelős hero-cím kurzora --- */
.type-cursor { display: inline-block; width: .55em; height: .95em; margin-left: 6px;
  background: var(--accent); vertical-align: -0.08em;
  box-shadow: 0 0 8px rgba(34,211,238,.5); animation: blink 1s steps(1) infinite; }

/* ===== Extra-kör: monitor-keret (bezel) — csak desktopon ===== */
@media (min-width: 1000px) {
  html::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 902;
    border: 16px solid #04060a; border-radius: 24px;
    box-shadow: inset 0 0 0 2px #1a2333, inset 0 0 70px rgba(0,0,0,.55); }
  html::after { content: ""; position: fixed; inset: 16px; pointer-events: none; z-index: 903;
    border-radius: 14px;
    background: linear-gradient(115deg, rgba(255,255,255,.045) 0%, rgba(255,255,255,.012) 30%, transparent 46%); }
}

/* ===== Extra-kör: rejtett terminál ===== */
.egg-term { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%) translateY(100%);
  width: min(680px, calc(100vw - 24px)); height: 340px; z-index: 850;
  display: flex; flex-direction: column;
  background: rgba(5,7,12,.97); border: 2px solid var(--accent); border-bottom: none;
  box-shadow: 0 0 24px rgba(34,211,238,.25); transition: transform .25s ease; }
.egg-term.open { transform: translateX(-50%) translateY(0); }
.egg-head { display: flex; justify-content: space-between; align-items: center;
  padding: 6px 12px; border-bottom: 1px solid var(--border-dark);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.egg-log { flex: 1; overflow-y: auto; padding: 10px 12px; font-family: var(--font-mono);
  font-size: 13px; line-height: 1.7; color: var(--text-muted); white-space: pre-wrap; }
.egg-log .ok { color: #22c55e; }
.egg-log .ac { color: var(--accent); }
.egg-input-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-top: 1px solid var(--border-dark); font-family: var(--font-mono); font-size: 13px; }
.egg-prompt { color: #22c55e; white-space: nowrap; }
.egg-input { flex: 1; background: none; border: none; outline: none;
  color: var(--text-light); font-family: var(--font-mono); font-size: 13px; }
.egg-hint { cursor: pointer; color: var(--text-dim); font-family: var(--font-mono); }
.egg-hint:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .egg-term { transition: none; } }


/* --- Bezel-korrekció: a tartalom a káván BELÜL éljen --- */
@media (min-width: 1000px) {
  body { padding: 16px; }
  .site-header { top: 16px; }
  section { scroll-margin-top: 90px; }
  .egg-term { bottom: 16px; border-bottom: 2px solid var(--accent); }
}

/* a bezel lekerekített sarkai mögötti háttér */
html { background: #000; }
