:root {
  --bg: #05070c;
  --bg-panel: #0b0f1a;
  --border: #1c2333;
  --accent: #17e88f;
  --accent-dim: #0d3d2c;
  --accent-glow: rgba(23, 232, 143, 0.35);
  --warn: #ffb545;
  --danger: #ff5c7a;
  --text: #e8ecf3;
  --text-dim: #8b96aa;
  --text-faint: #5b6980;
  --mono: 'JetBrains Mono', Consolas, Menlo, monospace;
  --sans: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
}

#matrix-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.16;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 232, 143, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 232, 143, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  height: 32px;
  filter: brightness(0) invert(1);
}

.header-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 64px 24px 40px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(23, 232, 143, 0.08);
  border: 1px solid var(--accent-dim);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text-dim);
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
}

.hero-lead {
  max-width: 640px;
  margin: 0 auto 40px;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.meta-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  text-align: left;
  min-width: 190px;
}

.meta-icon { font-size: 22px; }

.meta-label {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

.meta-value {
  font-size: 14.5px;
  font-weight: 600;
  margin-top: 2px;
}

/* Topics section */
.topics-section {
  padding: 8px 24px 48px;
}

.section-title {
  font-size: 1.3rem;
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.topics-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topic-block {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  transition: border-color 0.2s;
}

.topic-block:hover {
  border-color: var(--accent-dim);
}

.topic-block-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topic-badge {
  flex: none;
  font-size: 22px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 232, 143, 0.08);
  border: 1px solid var(--accent-dim);
  border-radius: 10px;
}

.topic-block-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.topic-block-text {
  margin: 12px 0 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.topic-chips {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(23, 232, 143, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-dim);
}

.topics-section .fun-note {
  max-width: 720px;
  margin: 28px auto 0;
  text-align: center;
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 24px 24px 80px;
  align-items: start;
}

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.panel-title {
  font-size: 1.3rem;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.prompt {
  font-family: var(--mono);
  color: var(--accent);
}

/* Capacity */
.capacity-box {
  background: rgba(23, 232, 143, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 26px;
}

.capacity-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.capacity-bar {
  height: 8px;
  border-radius: 999px;
  background: #10151f;
  overflow: hidden;
  border: 1px solid var(--border);
}

.capacity-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #4bffb0);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.6s ease;
}

.capacity-status {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-faint);
}

/* Form */
.field {
  display: block;
  margin-bottom: 18px;
}

.field-label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 7px;
  font-weight: 500;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  background: #0e1320;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text);
  font-size: 14.5px;
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 232, 143, 0.15);
}

input:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}

.btn-submit {
  width: 100%;
  padding: 14px 20px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #04140d;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-submit:hover { transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-message {
  margin-top: 16px;
  font-size: 14px;
  min-height: 1px;
}

.form-message.success { color: var(--accent); }
.form-message.waitlist { color: var(--warn); }
.form-message.error { color: var(--danger); }

.alert {
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.alert-error {
  background: rgba(255, 92, 122, 0.08);
  border: 1px solid rgba(255, 92, 122, 0.4);
  color: var(--danger);
}

/* Info panel */
.info-address {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.map-frame {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  filter: grayscale(0.3) invert(0.92) hue-rotate(180deg) contrast(0.9);
}

.btn-maps {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.btn-maps:hover { text-decoration: underline; }

.fun-note {
  margin: 22px 0 0;
  padding: 14px 16px;
  background: rgba(23, 232, 143, 0.05);
  border: 1px dashed var(--accent-dim);
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 28px 24px 40px;
  color: var(--text-faint);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

/* Cookie vs. scone modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 7, 12, 0.88);
  backdrop-filter: blur(6px);
}

.cookie-modal-overlay.hidden {
  display: none;
}

.cookie-modal {
  position: relative;
  width: 480px;
  max-width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--accent-dim);
  border-radius: 18px;
  padding: 36px 32px 28px;
  text-align: center;
  box-shadow: 0 0 60px rgba(23, 232, 143, 0.12);
}

.cookie-modal-icon {
  font-size: 40px;
  margin-bottom: 6px;
}

.cookie-modal h2 {
  margin: 6px 0 12px;
  font-size: 1.4rem;
}

.cookie-modal-text {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 26px;
}

.cookie-modal-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 130px;
}

.cookie-modal-actions button {
  border: none;
  border-radius: 8px;
  padding: 13px 22px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--sans);
}

.btn-scone {
  background: var(--accent);
  color: #04140d;
  box-shadow: 0 0 24px var(--accent-glow);
  transition: transform 0.15s;
}

.btn-scone:hover { transform: translateY(-1px); }

.btn-scone-note {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.75;
}

.btn-cookie {
  background: #1b2233;
  color: var(--text);
  border: 1px solid var(--border);
  transition: left 0.12s ease, top 0.12s ease;
}

.btn-cookie.is-fleeing {
  position: absolute;
}

body.modal-open {
  overflow: hidden;
}

/* Terminal-szerű begépelős animáció a "> _" blokkoknak és a főcímnek */
.type-target.is-typing::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: var(--accent);
  animation: type-cursor-blink 0.85s steps(1) infinite;
}

@keyframes type-cursor-blink {
  50% { opacity: 0; }
}

/* "Kémradar" szerű, fentről lefelé előtűnő megjelenés a cím alatti blokkoknak */
.reveal-block {
  position: relative;
  clip-path: inset(0 0 100% 0);
}

.reveal-block.is-revealing {
  animation: reveal-wipe 900ms ease-out forwards;
}

.reveal-block.is-revealing::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent) 80%, transparent);
  box-shadow: 0 0 14px 1px var(--accent-glow);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  animation: reveal-scanline 900ms ease-out forwards;
}

@keyframes reveal-wipe {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0% 0); }
}

@keyframes reveal-scanline {
  0%   { top: 0%; opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
