@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@500;600;700;800&display=swap");

:root {
  --home-blue: #1688de;
  --home-blue-dark: #0866b2;
  --home-blue-light: #46b6ed;

  --home-navy: #06152d;
  --home-navy-dark: #031023;

  --home-white: #ffffff;
  --home-muted: rgba(255, 255, 255, 0.78);
  --home-border: rgba(255, 255, 255, 0.27);

  --home-transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  color: #ffffff;
  background: var(--home-navy-dark);
  font-family: "Inter", sans-serif;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 10px 16px;
  border-radius: 6px;
  color: #ffffff;
  background: #000000;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* =========================================================
   Hero
   ========================================================= */

.conference-hero {
  position: relative;
  min-height: 100vh;
  padding: 125px 24px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
}

.conference-hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 43%,
    transparent 38%,
    rgba(1, 9, 20, 0.18) 75%,
    rgba(1, 8, 18, 0.42) 100%
  );
}

.conference-hero__background {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: var(--home-navy);
}

.conference-hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.82) contrast(0.96) brightness(0.88);
  transform: scale(1.01);
}

.conference-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(3, 13, 27, 0.58) 0%,
      rgba(3, 18, 35, 0.48) 42%,
      rgba(2, 13, 28, 0.76) 100%
    ),
    linear-gradient(
      90deg,
      rgba(3, 16, 31, 0.34) 0%,
      rgba(3, 18, 34, 0.07) 50%,
      rgba(3, 16, 31, 0.34) 100%
    );
}

.conference-hero__container {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.conference-hero__content {
  width: min(100%, 1000px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Location */

.conference-hero__location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: rgba(255, 255, 255, 0.84);
}

.conference-hero__location p {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.conference-hero__location > span {
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(73, 182, 237, 0.95));
}

.conference-hero__location > span:last-child {
  background: linear-gradient(90deg, rgba(73, 182, 237, 0.95), transparent);
}

/* Date */

.conference-hero__date {
  margin: 14px 0 0;
  color: #50baf0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Main title */

.conference-hero__title {
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
}

.conference-hero__organization {
  color: #ffffff;
  font-size: clamp(38px, 5.2vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-align: center;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.conference-hero__year {
  margin-top: 15px;
  color: transparent;
  background: linear-gradient(90deg, #d9eaff 0%, #7ebdf0 48%, #28aee5 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(38px, 4.8vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.2em;
  transform: translateX(0.1em);
}

.conference-hero__themes {
  margin-top: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
}

.conference-hero__themes span {
  position: relative;
}

.conference-hero__themes span:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -16px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #42a9da;
  content: "";
  transform: translateY(-50%);
}

/* Description */

.conference-hero__description {
  max-width: 760px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.75;
}

/* Submit button */

.conference-hero__submit {
  min-width: 540px;
  min-height: 82px;
  margin-top: 28px;
  padding: 0 33px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  color: #ffffff;
  background: linear-gradient(90deg, #117cc9, #168ee0);
  box-shadow:
    0 18px 42px rgba(0, 52, 99, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform var(--home-transition),
    background var(--home-transition),
    box-shadow var(--home-transition);
}

.conference-hero__submit:hover {
  background: linear-gradient(90deg, #178bd8, #1b9be9);
  box-shadow:
    0 22px 48px rgba(0, 52, 99, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.conference-hero__submit:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 5px;
}

.conference-hero__submit-icon {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
}

.conference-hero__submit-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.conference-hero__submit-arrow {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  transition: transform var(--home-transition);
}

.conference-hero__submit:hover .conference-hero__submit-arrow {
  transform: translateX(5px);
}

/* Deadline */

.conference-hero__deadline {
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.6;
}

.conference-hero__deadline svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #4ab6ec;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.conference-hero__deadline strong {
  display: block;
  margin-top: 3px;
  color: #ffffff;
  font-size: 15px;
}

/* =========================================================
   Countdown
   ========================================================= */

.countdown-panel {
  width: min(100%, 760px);
  margin-top: 22px;
  padding: 18px 30px 20px;
  border: 1px solid rgba(255, 255, 255, 0.37);
  border-radius: 12px;
  background: rgba(4, 21, 43, 0.72);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.countdown-panel__title {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.countdown__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.countdown__item + .countdown__item::before {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.19);
  content: "";
}

.countdown__item strong {
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown__item span {
  margin-top: 10px;
  color: #48b8ef;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.countdown-panel__expired {
  margin: 0;
  color: #ffffff;
  font-weight: 700;
  text-align: center;
}

.javascript-warning {
  padding: 18px;
  color: #ffffff;
  background: #8c2424;
  text-align: center;
}

.javascript-warning a {
  font-weight: 700;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 800px) {
  .conference-hero {
    min-height: 900px;
    padding: 125px 20px 45px;
  }

  .conference-hero__name {
    font-size: clamp(50px, 12vw, 76px);
  }

  .conference-hero__description {
    font-size: 14px;
  }

  .conference-hero__submit {
    width: min(100%, 480px);
    min-width: 0;
    min-height: 76px;
    font-size: 19px;
  }
}

@media (max-width: 560px) {
  .conference-hero {
    min-height: 850px;
    padding: 110px 15px 35px;
  }

  .conference-hero__location {
    gap: 9px;
  }

  .conference-hero__location > span {
    width: 25px;
  }

  .conference-hero__location p {
    font-size: 9px;
    letter-spacing: 0.18em;
  }

  .conference-hero__date {
    font-size: 11px;
  }

  .conference-hero__organization {
    font-size: 20px;
    letter-spacing: 0.12em;
  }

  .conference-hero__name {
    font-size: clamp(43px, 13.5vw, 62px);
    line-height: 0.91;
  }

  .conference-hero__year {
    margin-top: 16px;
    font-size: 42px;
  }

  .conference-hero__themes {
    margin-top: 23px;
    gap: 7px;
    font-size: 9px;
    letter-spacing: 0.06em;
  }

  .conference-hero__description {
    margin-top: 17px;
    font-size: 13px;
  }

  .conference-hero__submit {
    min-height: 68px;
    margin-top: 25px;
    padding: 0 20px;
    gap: 13px;
    font-size: 15px;
  }

  .conference-hero__submit-icon {
    width: 39px;
    height: 39px;
  }

  .conference-hero__submit-arrow {
    width: 25px;
    height: 25px;
  }

  .conference-hero__deadline {
    align-items: flex-start;
    font-size: 11px;
  }

  .conference-hero__deadline strong {
    font-size: 12px;
  }

  .countdown-panel {
    padding: 19px 7px 21px;
  }

  .countdown-panel__title {
    margin-bottom: 17px;
    font-size: 9px;
  }

  .countdown__item strong {
    font-size: 27px;
  }

  .countdown__item span {
    font-size: 8px;
    letter-spacing: 0.06em;
  }
}

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