:root {
  --ink: #111820;
  --muted: #5c6875;
  --paper: #f5f3ef;
  --paper-strong: #fffdf8;
  --cyan: #22b9ed;
  --cyan-dark: #087da6;
  --red: #ef3340;
  --green: #49b84a;
  --gold: #f5a51b;
  --line: rgba(17, 24, 32, 0.12);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #070c11;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--ink);
  background: #070c11;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.app {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    linear-gradient(90deg, rgba(5, 12, 18, 0.83), rgba(5, 12, 18, 0.45) 48%, rgba(5, 12, 18, 0.8)),
    url("assets/milan-hero.png");
  background-size: cover;
  background-position: center;
}

.view {
  min-height: 100vh;
  transition: opacity 580ms ease, transform 680ms cubic-bezier(0.19, 1, 0.22, 1), visibility 580ms ease;
}

.cover-view {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(22px, 3vw, 44px);
  color: #fff;
}

.details-view {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  visibility: hidden;
  pointer-events: none;
  overflow: auto;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(245, 243, 239, 0.96), rgba(245, 243, 239, 0.985)),
    url("assets/milan-hero.png") center / cover fixed;
}

.app[data-view="details"] .cover-view {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(-26px) scale(1.02);
  visibility: hidden;
  pointer-events: none;
}

.app[data-view="details"] .details-view {
  position: relative;
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
}

.ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 34%, rgba(34, 185, 237, 0.28), transparent 28%),
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55));
}

.brand-bar,
.details-header {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.spm-logo {
  display: inline-flex;
  align-items: center;
  width: 132px;
  height: 46px;
  padding: 7px 9px;
  border-radius: 3px;
  background: #000;
  text-decoration: none;
}

.spm-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.event-location {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(5, 12, 18, 0.28);
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 650;
  backdrop-filter: blur(18px);
}

.invitation-card {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  display: grid;
  width: min(92vw, 640px);
  min-height: 430px;
  padding: clamp(32px, 5vw, 66px);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  color: #fff;
  text-align: left;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(5, 12, 18, 0.58);
  box-shadow: var(--shadow);
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(22px);
}

.invitation-card::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  pointer-events: none;
}

.invitation-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 44%;
  height: 100%;
  background: linear-gradient(130deg, transparent, rgba(34, 185, 237, 0.18));
  transform: skewX(-12deg) translateX(40%);
  transition: transform 680ms cubic-bezier(0.19, 1, 0.22, 1);
}

.invitation-card:hover::after,
.invitation-card:focus-visible::after {
  transform: skewX(-12deg) translateX(10%);
}

.invitation-card:focus-visible,
.primary-button:focus-visible,
.ghost-button:focus-visible {
  outline: 3px solid rgba(34, 185, 237, 0.68);
  outline-offset: 4px;
}

.card-kicker,
.card-title,
.card-subtitle,
.card-meta,
.card-action {
  position: relative;
  z-index: 1;
}

.card-kicker {
  align-self: start;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card-title {
  align-self: end;
  max-width: 7ch;
  margin-top: 58px;
  font-size: clamp(64px, 11vw, 116px);
  font-weight: 850;
  line-height: 0.87;
  letter-spacing: 0;
}

.card-subtitle {
  margin-top: 20px;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 750;
}

.card-meta {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
}

.card-action {
  justify-self: start;
  margin-top: 32px;
  margin-bottom: 16px;
  padding: 13px 18px;
  border-radius: 999px;
  color: #061017;
  background: #fff;
  font-weight: 800;
}

.cover-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  color: rgba(255, 255, 255, 0.74);
}

.cover-footer p {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 4vw, 54px);
  font-weight: 900;
}

.ahead-footer-logo {
  display: block;
  width: clamp(180px, 22vw, 290px);
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(34, 185, 237, 0.2));
}

.cover-footer span {
  max-width: 360px;
  text-align: right;
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 700;
}

.details-shell {
  width: calc(100vw - 36px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 0 54px;
}

.details-header {
  margin-bottom: 34px;
}

.ghost-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.hero-panel {
  display: grid;
  width: 100%;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 26px;
  align-items: stretch;
  min-height: 520px;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(5, 12, 18, 0.88), rgba(5, 12, 18, 0.48) 58%, rgba(5, 12, 18, 0.2)),
    url("assets/milan-hero.png") center / cover;
  box-shadow: 0 28px 80px rgba(17, 24, 32, 0.22);
}

.hero-copy {
  min-width: 0;
  align-self: end;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.92;
  font-weight: 900;
  overflow-wrap: break-word;
}

.lead {
  max-width: 720px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 999px;
  color: #fff;
  background: var(--cyan);
  box-shadow: 0 14px 34px rgba(34, 185, 237, 0.28);
  font-weight: 850;
  text-decoration: none;
  transform: translateY(0);
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    filter 180ms ease;
}

.primary-button:hover {
  background: #35c7f4;
  box-shadow: 0 18px 42px rgba(34, 185, 237, 0.38);
  filter: saturate(1.08);
  transform: translateY(-1px);
}

.primary-button:active {
  background: #18aede;
  box-shadow: 0 8px 20px rgba(34, 185, 237, 0.24);
  transform: translateY(1px) scale(0.99);
}

.deadline-note {
  max-width: 300px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.45;
}

.event-card {
  min-width: 0;
  align-self: end;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px);
}

.event-card dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.event-card div {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.event-card div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 750;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.content-section {
  grid-column: span 6;
  min-width: 0;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 18px 42px rgba(17, 24, 32, 0.07);
}

.intro-section,
.registration-section {
  grid-column: span 12;
}

.registration-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.content-section h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.content-section p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.timeline {
  display: grid;
  gap: 20px;
}

.timeline-item {
  position: relative;
  padding-left: 24px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 10px;
  height: 10px;
  border: 3px solid var(--cyan);
  border-radius: 50%;
  background: var(--paper-strong);
}

.timeline-item time {
  display: block;
  margin-bottom: 6px;
  font-weight: 850;
}

.image-section {
  display: flex;
  min-height: 330px;
  padding: 0;
  overflow: hidden;
  background: #05080b;
}

.image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(34, 185, 237, 0.12);
}

.compact {
  flex: 0 0 auto;
}

@media (max-width: 840px) {
  .cover-view {
    min-height: 100svh;
    padding: 20px;
  }

  .invitation-card {
    min-height: 390px;
  }

  .cover-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .cover-footer span {
    text-align: left;
  }

  .details-shell {
    width: calc(100vw - 24px);
    max-width: 1180px;
    padding-top: 18px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .content-section,
  .intro-section,
  .registration-section {
    grid-column: span 12;
  }
}

@media (max-width: 560px) {
  .brand-bar,
  .details-header,
  .registration-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .event-location,
  .ghost-button {
    align-self: flex-end;
  }

  .card-title {
    font-size: clamp(58px, 20vw, 92px);
  }

  .hero-panel {
    padding: 28px;
  }

  h1 {
    font-size: 46px;
    line-height: 0.98;
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions,
  .primary-button,
  .compact {
    width: 100%;
  }

  .event-card {
    padding: 20px;
  }

  dd {
    font-size: 18px;
  }
}

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