:root {
  --ink: #f8fbff;
  --midnight: #070b15;
  --panel: rgba(9, 17, 31, 0.82);
  --panel-strong: rgba(14, 25, 45, 0.96);
  --line: rgba(255, 255, 255, 0.13);
  --muted: #aab6c8;
  --blue: #2563eb;
  --cyan: #00a6c8;
  --coral: #f06449;
  --yellow: #f5c542;
  --green: #28a17a;
  --white: #ffffff;
  --shadow: 0 22px 64px rgba(0, 0, 0, 0.34);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.modal-open {
  overflow: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 12% 18%, rgba(255, 223, 0, 0.12), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(19, 88, 216, 0.18), transparent 34%),
    linear-gradient(180deg, #002fa5 0%, #0035ad 42%, #0b4aa2 68%, #6f9d85 86%, #fff000 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  background-attachment: fixed;
  overflow-x: hidden;
}

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

.page {
  position: relative;
  z-index: 1;
  width: min(100% - 36px, 1220px);
  margin: 0 auto;
}

.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 0 42px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100vw;
  min-height: 70px;
  margin-left: calc(50% - 50vw);
  padding: 10px max(18px, calc((100vw - 1220px) / 2 + 18px));
  border-bottom: 3px solid #ffd400;
  background: #002fa5;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.brand,
.nav-link,
.footer a {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-weight: 900;
}

.brand-logo {
  display: block;
  width: 112px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.brand-copy {
  color: var(--yellow);
  letter-spacing: 0;
}

.nav-link {
  padding: 12px 20px;
  border: 1px solid rgba(255, 212, 0, 0.55);
  border-radius: 999px;
  color: #0736aa;
  background: #ffd400;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24), 0 0 0 3px rgba(255, 212, 0, 0.28);
}

.hero-layout {
  display: grid;
  gap: 34px;
  padding: 72px 0 0;
}

.eyebrow,
.day-kicker {
  margin: 0 0 14px;
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
p {
  text-wrap: balance;
}

h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-meta span,
.theme-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  font-weight: 800;
}

.signal-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 26px 0 2px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 240, 0, 0.08), rgba(255, 255, 255, 0));
  box-shadow: none;
  backdrop-filter: none;
}

.stat-card {
  min-height: 110px;
  padding: 16px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(5, 9, 20, 0.62);
  overflow: hidden;
  transform: translateY(18px);
  animation: riseIn 700ms ease forwards;
  backdrop-filter: blur(8px);
}

.stat-card:nth-child(2) {
  animation-delay: 90ms;
}

.stat-card:nth-child(3) {
  animation-delay: 180ms;
}

.stat-card:nth-child(4) {
  animation-delay: 270ms;
}

.stat-card strong {
  display: block;
  color: var(--white);
  font-size: clamp(3.1rem, 7vw, 6.4rem);
  line-height: 0.78;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.stat-card span {
  display: block;
  margin-top: 16px;
  color: var(--white);
  font-size: clamp(0.82rem, 1.45vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.flag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 7px;
  max-width: 230px;
  margin-top: 13px;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.1;
}

.agenda-section {
  padding: 14px 0 60px;
}

.agenda-intro {
  margin: 0 0 24px;
  text-align: center;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 46%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.agenda-intro span {
  background: linear-gradient(135deg, #fff000 0%, #ffd400 42%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.day-nav-wrap {
  position: sticky;
  top: 12px;
  z-index: 5;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(5, 9, 20, 0.76);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(10px);
}

.day-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.day-tab {
  min-height: 72px;
  padding: 13px 16px;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.day-tab:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.day-tab.is-active {
  color: var(--white);
  background: linear-gradient(135deg, #0639b7 0%, #1358d8 54%, #fff000 100%);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.22);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}

.day-tab strong,
.day-tab span {
  display: block;
}

.day-tab strong {
  font-size: 0.95rem;
  font-weight: 900;
}

.day-tab span {
  margin-top: 5px;
  color: inherit;
  opacity: 0.78;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.agenda-stage {
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(6, 57, 183, 0.18), rgba(255, 240, 0, 0.1)),
    rgba(5, 9, 20, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.day-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.theme-pill {
  flex: 0 0 auto;
  color: #07111f;
  background: #fff000;
}

.agenda-grid {
  display: grid;
  grid-template-columns: minmax(210px, 0.36fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.timeline-panel {
  position: sticky;
  top: 126px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 10px;
  padding-left: 16px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--blue), #4f8df7, var(--yellow));
}

.timeline-item {
  position: relative;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 22px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.timeline-item:hover,
.timeline-item.is-active {
  transform: translateX(4px);
  background: rgba(245, 197, 66, 0.13);
  border-color: rgba(245, 197, 66, 0.32);
}

.timeline-time {
  display: block;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
}

.timeline-title {
  display: block;
  margin-top: 5px;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.25;
}

.session-list {
  display: grid;
  gap: 16px;
}

.session-card {
  display: grid;
  grid-template-columns: minmax(120px, 0.18fr) minmax(0, 1fr);
  gap: 22px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(6, 57, 183, 0.13) 52%, rgba(255, 240, 0, 0.09)),
    rgba(8, 14, 27, 0.9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 520ms ease forwards;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.session-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 240, 0, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(6, 57, 183, 0.18) 48%, rgba(255, 240, 0, 0.14)),
    rgba(8, 14, 27, 0.94);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 240, 0, 0.08);
}

.session-time {
  color: var(--yellow);
  font-size: 1rem;
  font-weight: 900;
}

.session-type {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #07111f;
  background: linear-gradient(135deg, #fff000, #ffe88a);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.session-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.session-topic {
  margin: 12px 0 0;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.45;
}

.session-desc {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.speakers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.speakers-label {
  padding-right: 4px;
  color: var(--yellow);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.speaker-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  text-align: left;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.speaker-chip:hover,
.speaker-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 240, 0, 0.42);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(255, 240, 0, 0.14);
  outline: 0;
}

.speaker-chip.is-static {
  cursor: default;
}

.speaker-chip.is-static:hover {
  transform: none;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.speaker-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #07111f;
  background: linear-gradient(135deg, #1358d8, #fff000);
  font-size: 0.68rem;
  font-weight: 900;
  overflow: hidden;
  flex: 0 0 auto;
}

.speaker-avatar img,
.speaker-profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.speaker-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.speaker-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.speaker-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.74);
  backdrop-filter: blur(8px);
}

.speaker-modal-card {
  position: relative;
  width: min(100%, 760px);
  max-height: min(82vh, 760px);
  overflow: auto;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(255, 240, 0, 0.24);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(6, 57, 183, 0.2), rgba(255, 240, 0, 0.08)),
    rgba(7, 11, 21, 0.98);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46);
  transform: translateY(16px) scale(0.98);
  transition: transform 180ms ease;
}

.speaker-modal.is-open .speaker-modal-card {
  transform: translateY(0) scale(1);
}

.speaker-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.speaker-modal-close:hover,
.speaker-modal-close:focus-visible {
  transform: rotate(6deg);
  border-color: rgba(255, 240, 0, 0.42);
  background: rgba(255, 255, 255, 0.14);
  outline: 0;
}

.speaker-modal-photo-wrap {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 240, 0, 0.24);
  border-radius: 20px;
  color: #07111f;
  background: linear-gradient(135deg, #1358d8, #fff000);
  font-size: 2rem;
  font-weight: 900;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.speaker-modal-photo-wrap.has-photo {
  background: rgba(255, 255, 255, 0.08);
}

.speaker-modal-photo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.speaker-modal-kicker {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.speaker-modal-card h2 {
  max-width: 620px;
  margin-right: 42px;
  font-size: clamp(2rem, 5vw, 4.1rem);
}

.speaker-modal-role {
  margin: 14px 0 0;
  color: var(--white);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.45;
}

.speaker-modal-bio {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
}

.speaker-modal-source {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.speaker-modal-source span {
  color: var(--yellow);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.speaker-modal-source a {
  color: var(--white);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.speakers-section {
  padding: 58px 0 20px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2 {
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 4.8rem);
  text-transform: uppercase;
}

.speaker-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.speaker-profile-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 116px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(6, 57, 183, 0.12)),
    rgba(8, 14, 27, 0.82);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.speaker-profile-card:hover,
.speaker-profile-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 240, 0, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(6, 57, 183, 0.17), rgba(255, 240, 0, 0.1)),
    rgba(8, 14, 27, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  outline: 0;
}

.speaker-profile-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #07111f;
  background: linear-gradient(135deg, #1358d8, #fff000);
  font-size: 0.9rem;
  font-weight: 900;
  overflow: hidden;
}

.speaker-profile-card strong,
.speaker-profile-card small {
  display: block;
}

.speaker-profile-card strong {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

.speaker-profile-card small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 0 42px;
  text-align: center;
  color: white;
  font-weight: 800;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-layout,
  .session-card {
    grid-template-columns: 1fr;
  }

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

  .signal-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 16px;
  }

  .speaker-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-panel {
    position: static;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 0;
  }

  .timeline::before,
  .timeline-item::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 22px, 1220px);
  }

  .hero {
    padding-bottom: 22px;
  }

  .hero-layout {
    gap: 22px;
    padding-top: 42px;
  }

  .signal-panel {
    padding-top: 18px;
  }

  .agenda-section {
    padding-top: 0;
  }

  .agenda-intro {
    margin-bottom: 18px;
  }

  h1 {
    font-size: clamp(2.6rem, 14vw, 4.6rem);
  }

  .signal-panel,
  .day-nav,
  .timeline {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: auto;
  }

  .flag-cloud {
    max-width: none;
  }

  .nav-link {
    padding: 10px 12px;
    font-size: 0.78rem;
  }

  .day-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .day-nav-wrap {
    position: static;
  }

  .speaker-modal {
    align-items: end;
    padding: 12px;
  }

  .speaker-modal-card {
    max-height: 88vh;
    border-radius: 18px;
  }
}

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

  #networkCanvas {
    display: none;
  }
}
