/* ===== 16bitdev.cloud ===== */
:root {
  --bg-dark: #131a2b;
  --bg-darker: #0d1322;
  --border-dark: #1e293b;
  --border-mid: #334155;
  --text-light: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #fbbf24;
  --accent-on-light: #b45309;
  --accent-deep: #78350f;
  --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: #f59e0b; }
.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: var(--accent); } .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; }
.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; }
}

/* ===== Árak ===== */
.pricing-grid { margin-bottom: 28px; }
.price-card .price { font-size: 15px; margin-bottom: 10px; }
.price-card .price b { font-family: var(--font-mono); font-size: 26px; color: var(--accent-on-light); }
.estimate-entry { background: #fff; border: 1px solid var(--card-border); border-radius: 6px;
  padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.estimate-entry p { font-weight: 700; color: var(--text-dark); }

/* ===== Munkáink ===== */
.section-works { background: var(--bg-dark); padding: 72px 0; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work-card { background: var(--bg-darker); border: 1px solid var(--border-dark); }
.work-art { display: flex; align-items: center; justify-content: center; height: 90px;
  border-bottom: 2px solid var(--accent);
  background: repeating-linear-gradient(45deg, var(--bg-dark), var(--bg-dark) 8px, var(--bg-darker) 8px, var(--bg-darker) 16px); }
.work-body { padding: 18px; }
.work-body h3 { font-size: 16px; margin-bottom: 6px; }
.work-body p { color: var(--text-dim); font-size: 14px; }
.tags { margin-top: 12px; display: flex; gap: 6px; }
.tags span { font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  border: 1px solid var(--border-mid); padding: 3px 8px; }

/* ===== 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(--accent-deep); 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); }

@media (max-width: 760px) {
  .works-grid { grid-template-columns: 1fr; }
}

/* ===== Kapcsolat ===== */
.section-contact { background: var(--bg-dark); padding: 72px 0; }
.contact-sub { color: var(--text-muted); margin: -16px 0 26px; }
.contact-form { max-width: 560px; display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; color: var(--text-muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  background: var(--bg-darker); border: 1px solid var(--border-mid); color: var(--text-light);
  padding: 11px 12px; font-family: var(--font-sans); font-size: 15px; }
.contact-form textarea { resize: vertical; }
.botcheck { position: absolute; left: -9999px; }
#form-status { font-size: 14px; min-height: 20px; }
#form-status.ok { color: #22c55e; }
#form-status.err { color: #ef4444; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ===== 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; }
}

/* ===== Chat panel ===== */
.chat-panel { position: fixed; right: 24px; bottom: 24px; z-index: 100;
  width: min(400px, calc(100vw - 32px)); height: min(560px, calc(100vh - 48px));
  display: flex; flex-direction: column; background: var(--bg-darker);
  border: 3px solid var(--accent); box-shadow: 6px 6px 0 var(--bg-dark); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 2px solid var(--border-dark); }
.chat-tag { font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); }
.chat-close { background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; padding: 10px 12px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.chat-msg.user { align-self: flex-end; background: var(--accent); color: var(--bg-dark); }
.chat-msg.bot { align-self: flex-start; background: var(--bg-dark); border: 1px solid var(--border-mid); color: var(--text-light); }
.chat-msg.bot.thinking { color: var(--text-dim); font-family: var(--font-mono); }
.chat-msg.err { border-color: #ef4444; }
.chat-note { font-size: 11px; color: var(--text-dim); padding: 0 16px 8px; }
.chat-input { display: flex; gap: 8px; padding: 0 16px 16px; }
.chat-input input { flex: 1; background: var(--bg-dark); border: 1px solid var(--border-mid);
  color: var(--text-light); padding: 10px 12px; font-size: 14px; }
.chat-input .btn { padding: 10px 16px; }
@media (max-width: 560px) {
  .chat-panel { right: 0; bottom: 0; width: 100vw; border-width: 0 0 0 0;
    height: 100vh; height: 100dvh; }
}

/* ===== Lebegő chat-buborék ===== */
.chat-bubble { position: fixed; right: 24px; bottom: 24px; z-index: 90;
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--accent); color: var(--bg-dark); border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  box-shadow: 4px 4px 0 var(--bg-darker); }
.chat-bubble:hover { background: #f59e0b; }
.chat-bubble svg { width: 20px; height: 20px; image-rendering: pixelated; }
.chat-bubble[hidden] { display: none; }
@media (max-width: 560px) {
  .chat-bubble { right: 16px; bottom: 16px; padding: 12px; }
  .chat-bubble span { display: none; }
}

.pricing-note { font-size: 13px; margin: -14px 0 24px; }
