:root {
  --bg-dark: #050505;
  --panel-dark: #0b0b0b;
  --panel-medium: #151515;
  --text-light: #f5f5f5;
  --muted: #c4c4c4;
  --accent: #eb0028;
  --accent-soft: #f14668;
  --card-gray: #2d2d2d;
  --radius-large: 32px;
  --radius-medium: 24px;
}

* {
  box-sizing: border-box;
}

body.event2026-page {
  margin: 0;
  font-family: "Montserrat", "Poppins", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

a {
  text-decoration: none;
  color: inherit;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 8vw;
  background-color: #010101;
  position: sticky;
  top: 0;
  z-index: 20;
  gap: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-block {
  min-width: 320px;
}

.brand-title {
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.brand-title .ted {
  color: var(--accent);
}

.brand-title .x {
  color: var(--accent);
  font-size: 1.6rem;
}

.brand-title .youth {
  font-weight: 600;
}

.brand-subline {
  margin: 6px 0 0;
  font-size: 1rem;
  color: var(--muted);
}

.x-red {
  color: var(--accent);
  font-weight: 600;
}

.primary-nav {
  display: flex;
  gap: 38px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.primary-nav a {
  padding: 16px 0 10px;
  position: relative;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
  width: 100%;
}

.hero-panel {
  min-height: 86vh;
  padding: 140px 8vw 110px;
  background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.18), transparent 55%),
    url("../images/darkness.png") center/cover no-repeat;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(235, 0, 40, 0.08) 0%, rgba(235, 0, 40, 0) 55%),
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.04) 0px,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 26px);
  mix-blend-mode: screen;
  opacity: 0.5;
  animation: panLines 16s linear infinite;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.35));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
  text-align: right;
}

.hero-copy p {
  line-height: 1.7;
  color: var(--muted);
}

.event-tagline {
  margin: 0;
  font-size: 4rem;
  line-height: 0.95;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, #eb0028, #ff6b6b, #eb0028);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hueLoop 12s linear infinite;
}

.hero-copy h1 {
  font-size: 3rem;
  margin: 18px 0 26px;
  letter-spacing: 0.25em;
}

.theme-pill {
  position: absolute;
  top: 80px;
  right: 8vw;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 1.1rem;
  letter-spacing: 0.45em;
  color: rgba(255, 255, 255, 0.65);
}

.theme-pill::after {
  content: "";
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 0, 40, 0.35), transparent 65%);
  position: absolute;
  inset: auto;
  right: -18px;
  top: -12px;
  filter: blur(12px);
  z-index: -1;
  animation: pulseSoft 5s ease-in-out infinite;
}

section {
  padding: 90px 8vw 60px;
}

section h2 {
  text-align: center;
  font-size: 2.4rem;
  letter-spacing: 0.18em;
  margin-bottom: 50px;
  color: var(--accent);
  position: relative;
  display: inline-block;
}

section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 110%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-50%);
  animation: underlineDrift 4s ease-in-out infinite;
}

.mission-section {
  background: linear-gradient(180deg, #000 0%, #070707 100%);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.mission-grid article {
  background-color: var(--panel-medium);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mission-grid article:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  border-color: rgba(235, 0, 40, 0.35);
}

.mission-image {
  height: 220px;
  overflow: hidden;
}

.mission-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.mission-grid article:hover .mission-image img {
  filter: grayscale(30%);
  transform: scale(1.04);
}

.mission-grid h3 {
  margin: 16px 20px 8px;
  color: var(--accent);
  font-weight: 600;
}

.mission-grid p {
  margin: 0 20px 24px;
  color: var(--muted);
  line-height: 1.6;
}

.vision-section {
  background-color: var(--panel-dark);
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.vision-card {
  background-color: var(--panel-medium);
  border-radius: var(--radius-medium);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  min-height: 260px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.vision-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.3);
  border-color: rgba(235, 0, 40, 0.35);
}

.vision-card.emphasis {
  background-color: #d4d4d4;
  color: #111;
}

.vision-card.emphasis h3 {
  margin-top: 0;
  color: #c32030;
}

.vision-card p {
  margin: 12px 0 0;
  line-height: 1.7;
}

.vision-card.with-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  color: #8c94a4;
}

.vision-icon {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 2.4rem;
}

.sponsors-section {
  padding-top: 40px;
  background-color: #0f0f0f;
}

.sponsor-row {
  background-color: #1b1b1b;
  border-radius: 50px;
  padding: 26px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 18px;
}

.sponsor-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: #fff;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.9rem;
  margin: 0 auto;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.sponsor-icon:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  background-color: #eb0028;
  color: #fff;
}

.speakers-section {
  background-color: var(--panel-dark);
}

.speaker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.speaker-card {
  background-color: var(--panel-medium);
  border-radius: 28px;
  padding: 24px 20px 32px;
  text-align: center;
}

.speaker-card .avatar {
  width: 100%;
  height: 140px;
  border-radius: 24px 24px 16px 16px;
  background: linear-gradient(180deg, #555 0%, #2a2a2a 100%);
  margin-bottom: 18px;
}

.speaker-card h3 {
  margin: 0 0 10px;
}

.speaker-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.tickets-section {
  text-align: center;
}

.ticket-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.ticket-card {
  width: 220px;
  height: 220px;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.ticket-card button {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.ticket-card button:hover {
  background: #fff;
  color: #000;
}

.location-section {
  background-color: var(--panel-dark);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.location-card {
  background: linear-gradient(135deg, #fdfdfd, #d7d7d7);
  border-radius: var(--radius-large);
  padding: 40px;
  color: #111;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
}

.location-card h2 {
  color: var(--accent);
  margin-bottom: 16px;
  text-align: left;
  letter-spacing: 0.15em;
}

.location-card p {
  margin: 0;
  line-height: 1.7;
}

.map-card {
  background-color: #fff;
  border-radius: var(--radius-large);
  padding: 20px;
  min-height: 260px;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 24px;
  min-height: 220px;
}

/* Animation helpers */
@keyframes hueLoop {
  0% {
    filter: hue-rotate(0deg);
  }

  50% {
    filter: hue-rotate(35deg);
  }

  100% {
    filter: hue-rotate(0deg);
  }
}

@keyframes underlineDrift {

  0%,
  100% {
    transform: translate(-50%, 0) scaleX(0.8);
    opacity: 0.6;
  }

  50% {
    transform: translate(-50%, 0) scaleX(1);
    opacity: 1;
  }
}

@keyframes panLines {
  0% {
    background-position: 0 0, 0 0;
  }

  100% {
    background-position: 0 0, 180px 0;
  }
}

@keyframes pulseSoft {
  0% {
    transform: scale(0.96);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.04);
    opacity: 0.9;
  }

  100% {
    transform: scale(0.98);
    opacity: 0.7;
  }
}

.event-footer {
  padding: 60px 8vw 40px;
  background-color: #000;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}

.footer-social {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  font-weight: 600;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.license {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 1100px) {
  .event-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .primary-nav {
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.95rem;
  }

  .theme-pill {
    right: 24px;
    top: 40px;
  }

  .hero-copy {
    text-align: left;
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  .event-header {
    padding: 28px 24px;
  }

  .event-tagline {
    font-size: 2.6rem;
  }

  .hero-panel {
    padding: 120px 24px 80px;
    background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.18), transparent 55%),
      url("../images/darkness.png") left center/cover no-repeat;
  }

  section {
    padding: 70px 24px 50px;
  }

  .primary-nav a {
    letter-spacing: 0.1em;
  }
}