:root {
  --bg: #f5ebe7;
  --bg-soft: #fff8f5;
  --text: #2f2743;
  --muted: #736986;
  --primary: #ed1c24;
  --primary-strong: #c9151c;
  --accent: #e2b8a6;
  --accent-soft: #f1ddd4;
  --white: #ffffff;
  --border: rgba(107, 87, 184, 0.14);
  --shadow: 0 24px 60px rgba(91, 74, 154, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(226, 184, 166, 0.34),
      transparent 34%
    ),
    radial-gradient(
      circle at 20% 45%,
      rgba(124, 179, 255, 0.18),
      transparent 28%
    ),
    linear-gradient(180deg, #fbf3ef 0%, #f4eae7 52%, #efe6f4 100%);
}

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

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

.link {
  color: rgb(0, 119, 255);
  text-decoration: underline;
  text-underline-offset: 3px;
}

html,
body {
  overflow-x: hidden;
}

.hero__visual,
.hero__image-card {
  min-width: 0;
}

.hero__image-card img {
  width: 100%;
  height: auto;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: 28px 0 56px;
}

.hero__top {
  z-index: 2;
  position: relative;

  display: flex;
  align-items: center;
  gap: 20px;

  padding-top: 10px;
}

.hero__backdrop {
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  background-image: url("../images/hero-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  border-bottom-left-radius: 56px;
  border-bottom-right-radius: 56px;
}

.hero__backdrop::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: #00000031;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
  padding-top: 18px;
}

.hero__content {
  color: var(--white);
  max-width: 920px;
  padding: 0;
}

.eyebrow,
.section__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before,
.section__tag::before {
  content: "";
  width: 38px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(2.5rem, 3.2vw, 4.1rem);
  text-wrap: balance;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
}

.meta-card,
.hero__signal,
.content-panel,
.registration-form,
.insight-card {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.meta-card {
  padding: 18px 20px;
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(255, 255, 255, 0.1) 100%
    ),
    rgba(122, 108, 188, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 18px 36px rgba(54, 43, 104, 0.18);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.meta-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.98);
}

.meta-card__label {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

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

.button--primary {
  background: var(--primary);
  color: var(--white);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.button--full {
  width: 100%;
}

.hero__visual {
  position: relative;
  padding-top: 0;
}

.hero__image-card img {
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.hero__image-fallback {
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 28px 28px 0px 0px;
  color: var(--white);
}

.hero__image-fallback span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 50px;
  line-height: 1;
  font-weight: 800;
}

.hero__image-fallback small {
  font-size: 30px;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.section {
  padding: 86px 0;
}

.section h2 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
}

.section .section__title {
  margin-bottom: 30px;
}

.registration-copy p,
.content-panel p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.insight-cards {
  gap: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.insight-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
}

.insight-card h3 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
}

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

.audience-layout,
.registration-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.registration-form {
  position: relative;
  z-index: 1;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
}

.feature-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list > li {
  position: relative;
  padding-left: 24px;
  color: var(--text);
  line-height: 1.7;
}

.feature-list li + li {
  margin-top: 14px;
}

.feature-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.section--registration {
  padding-top: 34px;
}

.section--speaker {
  padding-top: 12px;
  padding-bottom: 8px;
}

.speaker-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid rgba(107, 87, 184, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 30px rgba(91, 74, 154, 0.08);
}

.speaker-card__photo-wrap {
  position: relative;
}

.speaker-card__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
}

.speaker-card__content h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.speaker-card__location {
  margin: 8px 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.speaker-card__description {
  margin: 8px 0 0;
  max-width: 34ch;
  color: var(--muted);
  line-height: 1.55;
}

.registration-copy {
  padding: 22px 0;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field span {
  font-size: 0.92rem;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(107, 87, 184, 0.16);
  border-radius: 14px;
  outline: none;
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.field input:focus,
.field select:focus {
  border-color: rgba(107, 87, 184, 0.42);
  box-shadow: 0 0 0 4px rgba(123, 164, 255, 0.14);
  transform: translateY(-1px);
}

.field select {
  cursor: pointer;
}

.registration-form .button {
  margin-top: 22px;
}

.form-message {
  min-height: 24px;
  margin: 14px 2px 0;
  color: var(--primary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-message.is-error {
  color: #bc5b78;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__top img:nth-child(1) {
  height: 70px;
  width: auto;
}

.hero__top img:nth-child(2) {
  height: 70px;
  width: auto;
}

.hero__top img:nth-child(3) {
  height: 70px;
  width: auto;
}

.hero__top img:nth-child(4) {
  height: 60px;
  width: auto;
}

.button__subtitle {
  margin-top: 10px;
  margin-left: 5px;
}

@media (max-width: 1024px) {
  .hero__grid,
  .section__grid,
  .audience-layout,
  .registration-layout,
  .speaker-card {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    padding-top: 0;
  }

  .section {
    padding: 20px 0;
  }
}

@media (max-width: 768px) {
  .insight-cards {
    grid-template-columns: 1fr;
  }

  .hero__top {
    display: grid;
    padding-top: 0;
    grid-template-columns: 1fr 1fr;
  }

  .hero__top img:nth-child(1) {
    height: 80px;
  }

  .hero__top img:nth-child(2) {
    height: 80px;
    margin-left: auto;
  }

  .hero__top img:nth-child(4) {
    height: 50px;
    margin-left: auto;
  }

  .hero__image-fallback span {
    font-size: 32px;
    line-height: 1.2;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    padding-bottom: 56px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__backdrop {
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
  }

  .hero h1 {
    line-height: 1.2;
    font-size: clamp(2rem, 3.2vw, 4.1rem);
  }

  .hero__meta,
  .insight-cards,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .content-panel,
  .registration-form,
  .insight-card,
  .speaker-card {
    padding: 24px;
  }

  .registration-copy {
    padding: 0px;
  }

  .speaker-card__photo {
    max-width: 220px;
    margin: 0 auto;
  }
}

@media (max-width: 575px) {
  .hero__top {
    gap: 10px;
    justify-content: space-between;
  }

  .hero__image-card {
    margin-top: 30px;
  }

  .hero__image-fallback {
    padding: 0;
  }

  .hero__top img:nth-child(1) {
    height: 70px;
  }

  .hero__top img:nth-child(2) {
    height: 70px;
  }

  .hero__top img:nth-child(3) {
    height: 60px;
  }

  .hero__top img:nth-child(4) {
    height: 45px;
  }

  .hero__image-fallback span {
    font-size: 28px;
  }
}
