/*
 * ECONF 2026 — unified visual system
 * The sales-waves section is the reference for typography, surfaces and rhythm.
 */

:root {
  --ec-orange: #ff5a14;
  --ec-orange-hover: #ff6a24;
  --ec-bg: #050505;
  --ec-surface: #0e0e0e;
  --ec-surface-raised: #151515;
  --ec-surface-soft: rgba(255, 255, 255, 0.045);
  --ec-border: rgba(255, 255, 255, 0.085);
  --ec-border-strong: rgba(255, 255, 255, 0.13);
  --ec-text: #fff;
  --ec-text-soft: rgba(255, 255, 255, 0.88);
  --ec-muted: rgba(255, 255, 255, 0.62);
  --ec-muted-low: rgba(255, 255, 255, 0.42);
  --ec-radius-outer: 26px;
  --ec-radius-card: 16px;
  --ec-radius-control: 16px;
  --ec-container: 1600px;
  --ec-page-gutter: 100px;
  --ec-section-space: clamp(96px, 7vw, 132px);
  --ec-title-size: clamp(50px, 4.55vw, 84px);
  --ec-title-line: 0.92;
  --ec-title-tracking: -0.058em;
  --ec-ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Keep legacy components on the same source of truth. */
  --ec-refresh-orange: var(--ec-orange);
  --ec-refresh-orange-bright: var(--ec-orange-hover);
  --ec-refresh-surface: var(--ec-surface);
  --ec-refresh-border: var(--ec-border);
  --ec-refresh-muted: var(--ec-muted);
}

html {
  color-scheme: dark;
  background: var(--ec-bg);
  scroll-behavior: smooth;
}

body {
  background: var(--ec-bg);
  color: var(--ec-text);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--ec-orange);
  color: #fff;
}

/* Consistent anchor offsets below the floating navigation. */
.ec-hero,
.ec-topics,
.ec-year25,
.ec-benefits,
.ec-connect,
.ec-speakers,
.ec-wave-pricing,
.ec-tickets,
.ec-partners,
.ec-program,
.ec-join,
.ec-location {
  scroll-margin-top: 112px;
}

/* One container width and one section rhythm. */
.ec-topics,
.ec-year25,
.ec-benefits,
.ec-connect,
.ec-speakers,
.ec-wave-pricing,
.ec-tickets,
.ec-partners,
.ec-program,
.ec-join,
.ec-location {
  padding-left: var(--ec-page-gutter);
  padding-right: var(--ec-page-gutter);
}

.ec-topics,
.ec-year25,
.ec-benefits,
.ec-connect,
.ec-speakers,
.ec-partners,
.ec-program,
.ec-join,
.ec-location {
  padding-top: var(--ec-section-space);
  padding-bottom: var(--ec-section-space);
}

.ec-topics__inner,
.ec-year25__inner,
.ec-benefits__inner,
.ec-connect__inner,
.ec-speakers__inner,
.ec-wave-pricing__inner,
.ec-tickets__inner,
.ec-partners__inner,
.ec-program__inner,
.ec-join__inner,
.ec-location__inner {
  width: 100%;
  max-width: var(--ec-container);
  margin-left: auto;
  margin-right: auto;
}

/* Headings follow the sales-waves scale and weight. */
.ec-year25__title,
.ec-benefits__heading h2,
.ec-connect__title,
.ec-speakers__title,
.ec-wave-pricing__title,
.ec-tickets__title,
.ec-partners__title,
.ec-program__title {
  margin-top: 0;
  color: var(--ec-text);
  font-size: var(--ec-title-size);
  font-weight: 760;
  line-height: var(--ec-title-line);
  letter-spacing: var(--ec-title-tracking);
}

.ec-join__card h2,
.ec-location__info h2 {
  color: var(--ec-text);
  font-size: clamp(42px, 3.7vw, 68px);
  font-weight: 760;
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.ec-year25__subtitle,
.ec-benefits__heading p,
.ec-connect__lead,
.ec-connect__description,
.ec-speakers__subtitle,
.ec-wave-pricing__lead,
.ec-tickets__subtitle,
.ec-partners__subtitle,
.ec-program__text,
.ec-join__card p,
.ec-location__info p {
  color: var(--ec-muted);
  font-size: clamp(16px, 1.14vw, 20px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.ec-year25__label,
.ec-connect__app-label,
.ec-speakers__label,
.ec-wave-pricing__eyebrow,
.ec-program__label,
.ec-location__label {
  color: var(--ec-muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ec-year25__label span,
.ec-speakers__label span,
.ec-wave-pricing__eyebrow > span,
.ec-program__label span,
.ec-location__label span {
  background: var(--ec-orange);
  box-shadow: 0 0 18px rgba(255, 90, 20, 0.58);
}

/* All primary actions share one geometry and orange. */
.ec-hero__nav-btn,
.ec-hero__btn,
.ec-mobile-header__ticket,
.ec-connect__cta,
.ec-speakers__btn,
.ec-tickets__btn,
.ec-partners__cta,
.ec-program__btn,
.ec-join__btn,
.ec-location__btn {
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--ec-radius-control);

  color: #fff;
  font-size: 16px;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.015em;
  box-shadow: 0 16px 38px rgba(255, 90, 20, 0.2);
  transition:
    transform 0.35s var(--ec-ease),
    background-color 0.35s var(--ec-ease),
    border-color 0.35s var(--ec-ease),
    box-shadow 0.35s var(--ec-ease);
}

.ec-hero__nav-btn:hover,
.ec-hero__btn--primary:hover,
.ec-mobile-header__ticket:hover,
.ec-connect__cta:hover,
.ec-speakers__btn:hover,
.ec-tickets__btn:hover,
.ec-partners__cta:hover,
.ec-program__btn:hover,
.ec-join__btn:hover,
.ec-location__btn:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--ec-orange-hover);
  color: #fff;
  box-shadow: 0 20px 48px rgba(255, 90, 20, 0.28);
  transform: translateY(-2px);
}

.ec-hero__btn--light {
  border-color: var(--ec-border-strong);
  background: rgba(14, 14, 14, 0.78);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.ec-hero__btn--light:hover {
  border-color: rgba(255, 90, 20, 0.35);
  background: rgba(22, 22, 22, 0.94);
  color: #fff;
}

.ec-tickets__btn--light {
  background: fff !important;
  color: black !important;
}

:where(a, button):focus-visible {
  outline: 2px solid var(--ec-orange);
  outline-offset: 4px;
}

/* Floating navigation uses the same elevated surface as the wave cards. */
.ec-hero__nav,
.ec-mobile-header {
  border: 1px solid var(--ec-border-strong);
  border-radius: 28px;
  background: rgba(8, 8, 8, 0.78);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.ec-mobile-header__desktop-nav a,
.ec-hero__menu a {
  color: var(--ec-muted);
  font-size: 16px;
  font-weight: 600;
}

.ec-mobile-header__desktop-nav a::after,
.ec-hero__menu a::after {
  background: var(--ec-orange);
}

.ec-mobile-header__ticket {
  min-height: 50px;
  border-radius: 14px;
}

/* Hero: keep the cinematic composition, align type and controls. */
.ec-hero__title {
  font-size: clamp(58px, 5.2vw, 92px);
  font-weight: 760;
  line-height: 0.92;
  letter-spacing: -0.058em;
}

.ec-hero__subtitle {
  color: var(--ec-text-soft);
  font-size: clamp(19px, 1.5vw, 26px);
  font-weight: 600;
  line-height: 1.22;
}

.ec-hero__badge {
  border: 1px solid var(--ec-border-strong);
  border-radius: 18px;
  background: rgba(14, 14, 14, 0.72);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* Topic chips become a consistent family rather than isolated badges. */
.ec-topics__chip {
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-card);
  background: var(--ec-surface-raised);
  color: var(--ec-text-soft);
  font-size: 16px;
  font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.ec-topics__chip.is-orange,
.ec-topics__chip.is-random-orange {
  border-color: rgba(255, 90, 20, 0.3);
  background: var(--ec-orange);
  color: #fff;
}

/* Shared card language derived from the wave-pricing outer and inner cards. */
.ec-year25__video-frame,
.ec-benefits__visual,
.ec-connect__card,
.ec-speakers__card,
.ec-wave-pricing__card,
.ec-partners__panel,
.ec-join__image,
.ec-join__card,
.ec-location__info,
.ec-location__photo,
.ec-footer-final__inner {
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-outer);
  background-color: var(--ec-surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 28px 70px rgba(0, 0, 0, 0.18);
}

.ec-benefits__item,
.ec-connect__benefit,
.ec-wave-pricing__row,
.ec-partners__card,
.ec-program__item,
.ec-location__date,
.ec-partners__empty {
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-card);
  background: var(--ec-surface-raised);
  color: var(--ec-text-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.ec-benefits__item {
  padding: 22px;
}

/* One large editorial photo instead of the former overlapping collage. */
.ec-benefits__visual--single {
  min-height: 650px;
  overflow: hidden;
}

.ec-benefits__visual--single picture,
.ec-benefits__visual--single picture:first-child {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: var(--ec-surface);
}

.ec-benefits__visual--single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.ec-benefits__icon,
.ec-connect__benefit-icon {
  color: var(--ec-orange);
}

.ec-connect__headline {
  color: var(--ec-text);
  font-weight: 760;
  letter-spacing: -0.055em;
}

.ec-connect__headline-mark,
.ec-connect__title span,
.ec-year25__title span,
.ec-partners__title span,
.ec-footer-final__content h2 span {
  color: var(--ec-orange) !important;
}

.ec-connect__card {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 90, 20, 0.065), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.032), transparent 44%),
    rgba(14, 14, 14, 0.96);
}

.ec-connect__benefit {
  padding: 12px 14px;
}

.ec-connect__access,
.ec-connect__app-label {
  border-color: rgba(255, 90, 20, 0.3);
  color: var(--ec-text-soft);
}

/* Speaker and partner grids now share the same corners and borders. */
.ec-speakers__card {
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent 44%),
    var(--ec-surface);
}

.ec-speakers__content h3 {
  font-weight: 760;
  letter-spacing: -0.035em;
}

.ec-speakers__content p,
.ec-speakers__company span {
  color: var(--ec-muted);
}

.ec-partners__panel {
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.028), transparent 44%),
    rgba(14, 14, 14, 0.94);
}

.ec-partners__card {
  border-radius: 18px;
  background: #181818;
}

/* The active wave uses the exact global orange, not a separate gradient. */
.ec-wave-pricing__row.is-active {
  border-color: rgba(255, 90, 20, 0.92);
  background: var(--ec-orange);
  box-shadow:
    0 16px 40px rgba(255, 90, 20, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.ec-wave-pricing__card--featured {
  border-color: rgba(255, 90, 20, 0.24);
}

.ec-wave-pricing + .ec-tickets {
  padding-top: 62px;
}

.ec-tickets {
  padding-bottom: var(--ec-section-space);
}

.ec-tickets__head,
.ec-partners__head {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.ec-tickets__btn {
  max-width: none;
  min-height: 56px;
  font-size: 16px;
}

/* Agenda, partner CTA and location use the same 26/16 geometry. */
.ec-program__inner {
  grid-template-columns: minmax(320px, 0.7fr) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 96px);
}

.ec-program__text {
  max-width: 620px;
}

.ec-program__item {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.ec-program__item:hover {
  border-color: rgba(255, 90, 20, 0.28);
}

.ec-program__item.is-open {
  border-color: rgba(255, 90, 20, 0.3);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 90, 20, 0.05), transparent 40%),
    rgba(255, 255, 255, 0.028);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.ec-program__time {
  color: var(--ec-orange);
  font-weight: 720;
}

.ec-program__name {
  font-weight: 680;
}

.ec-program__placeholder-badge {
  background: var(--ec-orange);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(255, 90, 20, 0.24);
}

.ec-join__inner,
.ec-location__inner {
  gap: 16px;
}

.ec-join__card,
.ec-location__info {
  padding: clamp(34px, 3.5vw, 56px);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 90, 20, 0.055), transparent 38%),
    var(--ec-surface);
}

.ec-location__btn {
  background: var(--ec-orange);
  color: #fff;
}

.ec-location__date {
  background: rgba(14, 14, 14, 0.88);
  color: #fff;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.ec-location__date svg {
  stroke: var(--ec-orange);
}

.ec-location__date small,
.ec-location__date em {
  color: var(--ec-muted);
}

.ec-location__date strong {
  color: #fff;
}

/* Footer closes the page with the same outer card as the key sections. */
.ec-footer-final {
  padding: 0 var(--ec-page-gutter) 20px;
}

.ec-footer-final__inner {
  width: 100%;
  max-width: var(--ec-container);
  margin: 0 auto;
  padding: 72px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 90, 20, 0.055), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent 44%),
    var(--ec-surface);
}

.ec-footer-final__content h2 {
  font-weight: 760;
  letter-spacing: -0.065em;
}

.ec-footer-final__stamp-link::before {
  background: rgba(255, 90, 20, 0.1);
}

.ec-footer-final__stamp-link:hover .ec-footer-final__stamp-center {
  filter: drop-shadow(0 0 18px rgba(255, 90, 20, 0.28));
}

.ec-footer-final__bottom {
  border-top: 1px solid var(--ec-border);
  padding-top: 28px;
}

.ec-footer-final__link,
.ec-footer-final__made,
.ec-footer-final__made a {
  color: var(--ec-muted);
  font-size: 14px;
  font-weight: 550;
}

/* Small interaction polish stays quiet and consistent. */
.ec-benefits__item:hover,
.ec-connect__benefit:hover,
.ec-partners__card:hover,
.ec-program__item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 90, 20, 0.24);
}

@media (max-width: 1120px) {
  :root {
    --ec-page-gutter: 40px;
  }

  .ec-program__inner {
    gap: 48px;
  }

  .ec-benefits__visual--single {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .ec-footer-final__inner {
    padding: 56px 48px 36px;
  }
}

@media (max-width: 767px) {
  :root {
    --ec-page-gutter: 20px;
    --ec-section-space: 72px;
    --ec-title-size: clamp(39px, 11.5vw, 52px);
    --ec-radius-outer: 22px;
    --ec-radius-card: 15px;
    --ec-radius-control: 15px;
  }

  .ec-hero,
  .ec-topics,
  .ec-year25,
  .ec-benefits,
  .ec-connect,
  .ec-speakers,
  .ec-wave-pricing,
  .ec-tickets,
  .ec-partners,
  .ec-program,
  .ec-join,
  .ec-location {
    scroll-margin-top: 88px;
  }

  .ec-mobile-header {
    top: 14px;
    left: 16px;
    right: 16px;
    min-height: 60px;
    padding: 7px 8px 7px 16px;
    border-radius: 20px;
  }

  .ec-mobile-header__burger {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .ec-hero__title {
    font-size: clamp(48px, 14vw, 68px);
    letter-spacing: -0.06em;
  }

  .ec-year25__subtitle,
  .ec-benefits__heading p,
  .ec-connect__lead,
  .ec-connect__description,
  .ec-speakers__subtitle,
  .ec-wave-pricing__lead,
  .ec-tickets__subtitle,
  .ec-partners__subtitle,
  .ec-program__text,
  .ec-join__card p,
  .ec-location__info p {
    font-size: 16px;
    line-height: 1.48;
  }

  .ec-hero__nav-btn,
  .ec-hero__btn,
  .ec-mobile-header__ticket,
  .ec-connect__cta,
  .ec-speakers__btn,
  .ec-tickets__btn,
  .ec-partners__cta,
  .ec-program__btn,
  .ec-join__btn,
  .ec-location__btn {
    min-height: 54px;
    padding: 0 20px;
    border-radius: 15px;
    font-size: 15px;
  }

  .ec-benefits__item,
  .ec-connect__benefit {
    padding: 16px;
  }

  .ec-benefits__visual--single {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .ec-partners__panel {
    padding: 12px;
  }

  .ec-program__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .ec-program__left {
    position: relative;
    top: auto;
  }

  .ec-join__inner,
  .ec-location__inner {
    gap: 12px;
  }

  .ec-join__card,
  .ec-location__info {
    padding: 28px 24px;
  }

  .ec-join__card h2,
  .ec-location__info h2 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .ec-footer-final {
    padding-left: 14px;
    padding-right: 14px;
  }

  .ec-footer-final__inner {
    padding: 42px 24px 28px;
  }

  .ec-footer-final__bottom {
    gap: 18px;
    margin-top: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
