:root {
  color-scheme: dark;
  --bg: #0a0f12;
  --bg-soft: #10161b;
  --bg-panel: #151c22;
  --fg: #f6f4f0;
  --muted: #c9cdd4;
  --accent: #057bc4;
  --accent-2: #f6f4f0;
  --line: rgba(255, 255, 255, 0.12);
  --max-width: 1100px;
}

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

body {
  font-family: "Montserrat", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("img/main_bg.png") center top/cover no-repeat;
  filter: brightness(0.95) saturate(1.1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 15, 18, 0.35), rgba(10, 15, 18, 0.7)),
    radial-gradient(
      circle at 70% 10%,
      rgba(143, 211, 199, 0.22),
      transparent 45%
    );
}

.hero__content {
  position: relative;
  padding: 3.5rem 0 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  z-index: 1;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.top-nav__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 1.1rem;
}

.top-nav__menu a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.top-nav__menu a:hover {
  color: var(--fg);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--fg);
  border-radius: 999px;
}

.hero__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  /* background: rgba(71, 80, 128, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.7); */
  padding: 1.2rem 1.6rem;
  /* border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25); */
}

.hero__logos img {
  height: 72px;
  object-fit: contain;
  filter: brightness(1.05);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.hero__date {
  font-size: 0.95rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  font-weight: 600;
}

h1 {
  font-size: clamp(2.1rem, 3vw + 1.2rem, 3.6rem);
  line-height: 1.15;
}

.hero__lead {
  margin-top: 1.2rem;
  color: var(--muted);
}

.hero__text {
  text-align: center;
}

.hero__title {
  text-transform: uppercase;
  font-size: clamp(3.4rem, 5.2vw + 1.4rem, 5.4rem);
  letter-spacing: 0.08rem;
}

.hero__title-line {
  display: block;
  white-space: nowrap;
}

.hero__subtitle {
  margin-top: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  font-size: clamp(1.45rem, 1.8vw + 0.9rem, 2.2rem);
  color: var(--muted);
}

.hero__meta {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  justify-items: center;
}

.hero__meta--center {
  text-align: center;
}

.hero__meta--center .meta__value {
  display: block;
  font-size: 1.6rem;
}

.meta__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  color: var(--muted);
}

.meta__value {
  font-size: 1rem;
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.2rem 0;
}

.btn {
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn--outline-glow {
  background: radial-gradient(
    circle at 50% 20%,
    rgba(220, 240, 255, 0.25),
    rgba(255, 255, 255, 0.02) 60%
  );
  color: #f7fbff;
  border: 1.5px solid rgba(200, 230, 255, 0.6);
  border-radius: 12px;
  box-shadow:
    0 0 18px rgba(170, 210, 255, 0.45),
    0 0 42px rgba(120, 180, 255, 0.2);
}

.btn--primary {
  background: linear-gradient(120deg, #f2a05b, #ffd2a3);
  color: #131313;
  box-shadow: 0 20px 40px rgba(242, 160, 91, 0.25);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
}

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

.btn--xl {
  padding: 1.5rem 4.2rem;
  font-size: 1.5rem;
}

.hero__divider {
  width: 140px;
  height: 2px;
  margin: 1.4rem auto 0.6rem;
  background: radial-gradient(
    circle,
    rgba(230, 245, 255, 0.9),
    rgba(143, 211, 199, 0.15) 70%,
    transparent 100%
  );
  box-shadow: 0 0 14px rgba(180, 220, 255, 0.4);
}

.section {
  padding: 5rem 0;
  background: var(--bg);
}

.section--about {
  background: linear-gradient(180deg, var(--bg), #0f1218);
}

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

.section--about p + p {
  margin-top: 1rem;
}

.about__spacer {
  height: 0.75rem;
}

.info__list {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.about__lead {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1rem;
}

.info__item {
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--line);
}

.about__panel {
  background:
    radial-gradient(circle at top, rgba(255, 138, 76, 0.22), transparent 60%),
    var(--bg-panel);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--line);
}

.about__panel ul {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.8rem;
  color: var(--muted);
  list-style: disc;
  list-style-position: outside;
  padding-left: 1.2rem;
}

.about__panel li::marker {
  color: var(--accent);
}

.section__head {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.speakers__slider {
  position: relative;
  overflow: visible;
}

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(20, 24, 30, 0.7);
  color: var(--fg);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 3;
}

.slider__btn--prev {
  left: -56px;
}

.slider__btn--next {
  right: -56px;
}

.slider__btn:hover {
  transform: translateY(-50%) translateY(-1px);
}

.speakers__grid {
  display: flex;
  gap: 1.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 0 0.5rem;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.speakers__grid::-webkit-scrollbar {
  display: none;
}

.speaker {
  background: var(--bg-panel);
  border-radius: 1.2rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  align-content: start;
  flex: 0 0 clamp(260px, 30vw, 340px);
  scroll-snap-align: start;
}

.speaker > div {
  align-self: start;
}

.speaker img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1rem;
}

.speaker p {
  color: var(--muted);
}

.section--venue {
  background: #0e1117;
}

.venue__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.venue__details {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.venue__map {
  display: flex;
  justify-content: center;
}

.venue__map iframe {
  width: 100%;
  height: 240px;
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.section--register {
  background: linear-gradient(180deg, #0b0d10, #131824);
}

.section--program {
  background: linear-gradient(180deg, #0b0d10, #111824);
}

.program__panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--bg-panel);
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--line);
}

.program__panel p {
  color: var(--muted);
}

.section--certificate {
  background: var(--bg);
}

.certificate__panel {
  background: var(--bg-panel);
  padding: 2.2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  text-align: center;
}

.register__panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  background: var(--bg-panel);
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--line);
}

.register__content {
  text-align: center;
}

.register__form {
  display: grid;
  gap: 1rem;
}

.register__form input {
  padding: 0.85rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  font-family: inherit;
}

.register__form input::placeholder {
  color: var(--muted);
}

.register__label {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.register__form button {
  width: fit-content;
  margin: 0 auto;
}

.register__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.register__consent {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--muted);
}

.register__consent input {
  margin-top: 0.2rem;
}

.form-status {
  min-height: 1.2rem;
  text-align: center;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999;
}

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

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 28, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal.is-open .modal__backdrop {
  opacity: 1;
}

.modal__content {
  position: relative;
  z-index: 1;
  width: min(640px, 92vw);
  background: var(--bg-panel);
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  padding: 2rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  max-height: 90vh;
  overflow: auto;
}

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

.modal__body h2 {
  margin-bottom: 1rem;
  text-align: center;
}

.modal__link {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
  font-size: 1.2rem;
  cursor: pointer;
}

.no-scroll {
  overflow: hidden;
}

@media (max-width: 720px) {
  .register__actions {
    justify-content: center;
  }
}

.footer {
  background: #0b0d10;
  border-top: 1px solid var(--line);
}

.footer__content {
  padding: 3rem 0 2rem;
  display: grid;
  gap: 2rem;
}

.footer__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.footer__logos img {
  height: 44px;
  object-fit: contain;
}

.footer__bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .top-nav {
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .top-nav__menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: 1rem;
    z-index: 5;
  }

  .top-nav__menu.is-open {
    display: flex;
  }
  .hero {
    min-height: auto;
  }

  .hero__content {
    padding: 2.8rem 0 3.5rem;
  }

  .hero__logos img {
    height: 56px;
  }

  .hero__logos {
    flex-wrap: nowrap;
    gap: 1rem;
  }

  .hero__logos img {
    height: 40px;
    max-width: 30vw;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .program__panel {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .program__panel .btn {
    width: 100%;
  }

  .hero__text {
    padding-inline: 0.5rem;
  }

  .hero__title {
    font-size: clamp(2rem, 4.8vw + 0.9rem, 3.1rem);
    letter-spacing: 0.04rem;
    word-break: break-word;
  }

  .hero__subtitle {
    font-size: clamp(1rem, 2.5vw + 0.6rem, 1.4rem);
    letter-spacing: 0.08rem;
    word-break: break-word;
  }

  .hero__meta--center .meta__value {
    font-size: 1.1rem;
  }

  .btn--xl {
    padding: 1.1rem 2.4rem;
    font-size: 1.1rem;
  }

  .speaker {
    flex: 0 0 100%;
  }

  .speakers__grid {
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    scroll-padding: 0;
  }

  .speaker {
    scroll-snap-align: center;
  }

  .slider__btn--prev {
    left: 4px;
  }

  .slider__btn--next {
    right: 4px;
  }
}
