/* ===========================
   RESET
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===========================
   TOKENS — forward hook: zkopíruj do member zóny pro brand konzistenci
   =========================== */
:root {
  --color-bg: #0A0A0F;
  --color-text: #F5F5F0;
  --color-accent: #00FF88;
  --color-beer: #F4B400;
  --color-muted: #2A2A35;
  --font-display: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ===========================
   BASE
   =========================== */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* ===========================
   LAYOUT
   =========================== */
.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
h1 {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.8rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 2.5rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ===========================
   LOGO WORDMARK
   =========================== */
.logo-wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--color-text);
  margin-bottom: 2.5rem;
  display: inline-block;
}

.logo-ai {
  font-family: var(--font-mono);
  color: var(--color-accent);
  font-weight: 700;
}

.logo-i {
  color: var(--color-text);
}

/* ===========================
   HERO
   =========================== */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

#hero .container {
  position: relative;
  z-index: 1;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(245, 245, 240, 0.65);
  max-width: 580px;
  margin-bottom: 2.25rem;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 2.75rem;
}

.meta-date {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--color-accent);
  font-weight: 700;
}

.meta-place {
  font-size: 0.95rem;
  color: rgba(245, 245, 240, 0.5);
}

/* ===========================
   BUTTONS
   =========================== */
.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: #0A0A0F;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.9rem 2.25rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  line-height: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(0, 255, 136, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===========================
   KDY & KDE
   =========================== */
#kdy-kde {
  border-top: 1px solid var(--color-muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.info-value {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.map-wrap {
  width: 100%;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  border: 1px solid var(--color-muted);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: invert(90%) hue-rotate(180deg) saturate(0.7) brightness(0.9);
}

/* ===========================
   SPEAKEŘI
   =========================== */
#speakeri {
  border-top: 1px solid var(--color-muted);
}

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.speaker-card {
  background: var(--color-muted);
  padding: 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: transform 0.2s ease;
}

.speaker-card:hover {
  transform: translateY(-3px);
}

.speaker-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #0A0A0F;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.speaker-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.speaker-role {
  font-size: 0.78rem;
  color: rgba(245, 245, 240, 0.4);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.speaker-talk {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}

.badge-tba {
  background: var(--color-beer);
  color: #0A0A0F;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}

.speaker-bio {
  font-size: 0.875rem;
  color: rgba(245, 245, 240, 0.5);
  margin-top: 0.3rem;
  line-height: 1.5;
}

/* ===========================
   HARMONOGRAM
   =========================== */
#harmonogram {
  border-top: 1px solid var(--color-muted);
}

.timeline {
  border-left: 2px solid var(--color-muted);
  margin-left: 0.5rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0 1.25rem 2rem;
  position: relative;
  border-bottom: 1px solid rgba(42, 42, 53, 0.6);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 1.65rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-muted);
  border: 2px solid var(--color-bg);
}

.timeline-item.highlight::before {
  background: var(--color-beer);
}

.tl-time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-accent);
  padding-top: 0.15rem;
  white-space: nowrap;
}

.tl-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tl-content strong {
  font-weight: 700;
  font-size: 1rem;
}

.tl-content span {
  font-size: 0.875rem;
  color: rgba(245, 245, 240, 0.55);
}

.timeline-item.highlight .tl-content strong {
  color: var(--color-beer);
}

/* ===========================
   CENA
   =========================== */
#cena {
  border-top: 1px solid var(--color-muted);
}

.price-wrap {
  max-width: 580px;
}

.price-amount {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.price-amount span {
  font-size: 0.38em;
  font-weight: 700;
  color: rgba(245, 245, 240, 0.4);
  vertical-align: 0.2em;
}

.price-text {
  color: rgba(245, 245, 240, 0.65);
  margin-bottom: 2.25rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ===========================
   REGISTRACE
   =========================== */
#registrace {
  border-top: 1px solid var(--color-muted);
}

.section-sub {
  color: rgba(245, 245, 240, 0.55);
  margin-top: -1.75rem;
  margin-bottom: 2.75rem;
  font-size: 1rem;
}

#reg-form {
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(245, 245, 240, 0.75);
  letter-spacing: 0.01em;
}

.form-group input[type="text"],
.form-group input[type="email"] {
  background: var(--color-muted);
  border: 1px solid rgba(245, 245, 240, 0.08);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.15s ease;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
  border-color: var(--color-accent);
}

.form-group input::placeholder {
  color: rgba(245, 245, 240, 0.2);
}

.form-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
  margin-top: 0.1rem;
  flex-shrink: 0;
  cursor: pointer;
}

.form-check label {
  font-size: 0.85rem;
  cursor: pointer;
}

.form-check label a {
  color: var(--color-accent);
  text-underline-offset: 3px;
}

.btn-submit {
  align-self: flex-start;
  margin-top: 0.5rem;
}

#form-message {
  font-size: 0.95rem;
  min-height: 1.5rem;
}

.msg-success {
  color: var(--color-accent);
}

.msg-error {
  color: #FF6B6B;
}

.msg-error a {
  color: #FF6B6B;
  text-underline-offset: 3px;
}

/* ===========================
   FOOTER
   =========================== */
footer {
  border-top: 1px solid var(--color-muted);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(245, 245, 240, 0.35);
}

.footer-email {
  font-size: 0.82rem;
  color: rgba(245, 245, 240, 0.45);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.footer-email:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ===========================
   FADE-IN
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 600px) {
  section {
    padding: 3.5rem 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .tl-time {
    font-size: 0.72rem;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .map-wrap {
    aspect-ratio: 4 / 3;
  }

  .price-amount {
    font-size: clamp(3.5rem, 18vw, 5rem);
  }
}

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