:root {
  --bg: #0a0a0f;
  --panel: rgba(16, 14, 22, 0.72);
  --panel-border: rgba(255, 255, 255, 0.06);
  --text: #f5f1f0;
  --muted: rgba(245, 241, 240, 0.6);
  --accent: rgb(245, 48, 3);
  --accent-deep: rgb(140, 28, 2);
  --accent-soft: rgba(245, 48, 3, 0.15);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Animated background glows ── */

.bg-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  z-index: 0;
  will-change: transform;
}

.bg-glow--1 {
  top: -18%;
  left: -8%;
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(245, 48, 3, 0.22), transparent 70%);
  animation: float-1 18s ease-in-out infinite;
}

.bg-glow--2 {
  bottom: -12%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  max-width: 620px;
  max-height: 620px;
  background: radial-gradient(circle, rgba(120, 20, 60, 0.2), transparent 70%);
  animation: float-2 22s ease-in-out infinite;
}

.bg-glow--3 {
  top: 40%;
  left: 50%;
  width: 30vw;
  height: 30vw;
  max-width: 420px;
  max-height: 420px;
  background: radial-gradient(circle, rgba(245, 48, 3, 0.08), transparent 70%);
  animation: float-3 15s ease-in-out infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, 20px) scale(1.05); }
  66% { transform: translate(-20px, -15px) scale(0.97); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, -20px) scale(1.03); }
  66% { transform: translate(15px, 25px) scale(0.98); }
}

@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}

/* ── Page shell ── */

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 24px;
}

/* ── Layout ── */

.layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

/* ── Shared panel styles ── */

.hero-card,
.panel,
.details-strip {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%),
    var(--panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ── Hero ── */

.hero-card {
  padding: clamp(28px, 4vw, 48px) clamp(32px, 6vw, 72px);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 45vh;
  position: relative;
}

.hero-pattern {
  position: absolute;
  inset: -20%;
  background-image: url("/pattern.svg");
  background-size: 340px 340px;
  pointer-events: none;
  z-index: 0;
}

.hero-torch {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 48, 3, 0.4), transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 400ms ease;
  mix-blend-mode: screen;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 48, 3, 0.3);
  background: rgba(245, 48, 3, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
}

h1 {
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.intro {
  margin-top: 24px;
  max-width: 540px;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.75;
  color: var(--muted);
  font-weight: 300;
}

/* ── Hero actions ── */

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: none;
  color: #fff;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  box-shadow:
    0 8px 32px rgba(245, 48, 3, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 200ms ease, box-shadow 200ms ease;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 12px 40px rgba(245, 48, 3, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.button:active {
  transform: translateY(0) scale(0.99);
}

.button svg {
  transition: transform 200ms ease;
}

.button:hover svg {
  transform: translateX(3px);
}

.next-event {
  display: grid;
  gap: 2px;
}

.next-event__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.next-event__date {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.next-event__time {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ── Details strip ── */

.details-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-radius: var(--radius-md);
  padding: 0;
}

.detail-chip {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  font-size: 0.9rem;
  color: var(--muted);
  border-right: 1px solid var(--panel-border);
}

.detail-chip:last-child {
  border-right: none;
}

.detail-chip svg {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.8;
}

.detail-chip__currency {
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.8;
}

.detail-chip__link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: border-color 200ms ease;
}

.detail-chip__link:hover {
  border-color: var(--accent);
  color: #fff;
}

/* ── Info grid ── */

.info-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}

.panel {
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-md);
}

.panel--wide {
  border-radius: var(--radius-md);
}

.panel__header {
  margin-bottom: 20px;
}

.panel__label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}

/* ── Speaker list ── */

.speaker-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.speaker-list li {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.speaker-list li:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.speaker-list .speaker-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
}

.speaker-list .speaker-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent-soft);
  color: var(--accent);
}

.speaker-list .speaker-detail {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.5;
}

.speaker-list--muted li {
  background: rgba(255, 255, 255, 0.015);
}

.speaker-list--grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ── Format content ── */

.format-content {
  display: grid;
  gap: 16px;
}

.format-content p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
  font-weight: 300;
}

/* ── Previous grid (speakers + CTA) ── */

.previous-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 10px;
}

.previous-grid .speaker-item {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.015);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.previous-grid .speaker-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.previous-grid .speaker-item .speaker-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
}

.previous-grid .speaker-item .speaker-detail {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.5;
}

.cta-card {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 48, 3, 0.15);
  background:
    linear-gradient(135deg, rgba(245, 48, 3, 0.06) 0%, transparent 60%),
    rgba(255, 255, 255, 0.015);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.cta-card .button--outline {
  margin-top: 10px;
}

.button--outline {
  background: transparent;
  border: 1px solid rgba(245, 48, 3, 0.4);
  color: var(--accent);
  box-shadow: none;
}

.button--outline:hover,
.button--outline:focus-visible {
  background: rgba(245, 48, 3, 0.1);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(245, 48, 3, 0.15);
}

@media (max-width: 800px) {
  .previous-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .previous-grid .cta-card {
    grid-column: span 1 !important;
  }
}

/* ── Previous section ── */

.previous-section {
  margin-top: 0;
}

/* ── Photo grid ── */

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.photo-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--panel-border);
}

.photo-grid img:first-child {
  grid-column: 1 / -1;
  height: 360px;
}

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

  .photo-grid img {
    height: 220px;
  }

  .photo-grid img:first-child {
    grid-column: auto;
    height: 220px;
  }
}

/* ── Organisers ── */

.organiser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.organiser-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}

.organiser-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.organiser-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: border-color 200ms ease;
}

.organiser-name:hover {
  border-color: var(--accent);
}

.organiser-from {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.organiser-logo {
  height: 36px;
  width: auto;
  opacity: 0.7;
  transition: opacity 200ms ease;
}

.organiser-card:hover .organiser-logo {
  opacity: 1;
}

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

/* ── Footer ── */

.site-footer {
  width: min(1120px, 100%);
  margin: 48px auto 0;
  padding: 32px 0;
  border-top: 1px solid var(--panel-border);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer p {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 300;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: color 200ms ease, border-color 200ms ease;
}

.footer-link:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* ── Fade-in animation ── */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

/* ── Responsive ── */

@media (max-width: 800px) {
  .page-shell {
    padding: 16px;
  }

  .hero-card {
    min-height: auto;
    padding: clamp(28px, 5vw, 48px);
    border-radius: var(--radius-md);
  }

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

  .details-strip {
    flex-direction: column;
  }

  .detail-chip {
    border-right: none;
    border-bottom: 1px solid var(--panel-border);
    padding: 14px 20px;
  }

  .detail-chip:last-child {
    border-bottom: none;
  }

  .speaker-list--grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  .bg-glow {
    animation: none;
  }
}
