/* ── Local Fonts ──────────────────────────────────────────────────── */
/* Self-hosted (no requests to Google). Both families are variable fonts,
   so one file per subset covers every weight used on the page. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ───────────────────────────────────────────────────────── */
/* Colours mirror the Figma styles (GGA/Greys/*, GGA/Yellows/*).
   Fluid sizes hit the exact Figma values at the 1440px design width. */
:root {
  --color-bg: #000;
  --color-surface: #151520;
  --color-surface-deep: #0a0a0f;
  --color-yellow: #f2e423;
  --color-yellow-strong: #f2c823;
  --color-yellow-light: #ebf227;
  --color-amber: #e2a600;
  --color-text: #dcddee;
  --color-text-muted: #9c9db5;
  --color-white: #fff;
  --color-border: rgba(220, 221, 238, 0.1);
  --color-card-border: rgba(156, 157, 181, 0.5);
  --color-glass: rgba(42, 45, 74, 0.4);

  --gradient-glass: linear-gradient(176.19deg, rgba(0, 3, 38, 0.9) 1.74%, rgba(73, 75, 96, 0.4) 99.24%);
  --gradient-sun: linear-gradient(249.84deg, #f5fe00 0.36%, #e2a600 100%);
  --gradient-sun-square: linear-gradient(260.03deg, #f5fe00 0.36%, #e2a600 100%);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-grotesk: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  --text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 8px 32px rgba(0, 3, 38, 0.37);

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-full: 9999px;

  --container: 1296px;
  --panel-max: 1376px;
  --gutter: clamp(16px, 5vw, 72px);
  --inset: clamp(12px, 2.2223vw, 32px);

  --space-section: clamp(72px, 8.8889vw, 128px);
  --space-block: clamp(40px, 4.4445vw, 64px);
  --card-gap: clamp(16px, 1.5278vw, 22px);

  --fs-display: clamp(2.75rem, 8.8889vw, 8rem);
  --fs-section: clamp(2.25rem, 6.6667vw, 6rem);
  --fs-eyebrow: clamp(1rem, 1.6667vw, 1.5rem);
  --fs-lead: clamp(1.125rem, 1.6667vw, 1.5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Base ─────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 128px;
  -webkit-text-size-adjust: 100%;
}

html:has(dialog[open]) {
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.21;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul,
ol {
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-yellow-strong);
  color: var(--color-surface);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

/* Line breaks that only make sense at the full design width */
.br-xl {
  display: none;
}

@media (min-width: 1360px) {
  .br-xl {
    display: inline;
  }
}

/* ── Typography ───────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-grotesk);
  font-weight: 400;
  font-size: var(--fs-eyebrow);
  line-height: 1.28;
  text-transform: uppercase;
  color: var(--color-amber);
}

.display {
  font-weight: 900;
  font-size: var(--fs-display);
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--color-yellow);
  text-shadow: var(--text-shadow);
}

.lead {
  font-weight: 500;
  font-size: var(--fs-lead);
  line-height: 1.21;
  color: var(--color-text);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--color-amber);
}

.section-head--compact {
  gap: 18px;
}

.eyebrow--medium {
  font-weight: 500;
}

.section-title {
  font-weight: 900;
  font-size: var(--fs-section);
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-yellow);
  text-shadow: var(--text-shadow);
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.21;
  color: var(--color-surface);
  white-space: nowrap;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--color-yellow-strong);
}

.btn--primary:hover {
  background: var(--color-yellow);
  box-shadow: 0 0 24px rgba(242, 228, 35, 0.35);
}

.btn--secondary {
  background: var(--color-text-muted);
}

.btn--secondary:hover {
  background: var(--color-text);
}

/* ── Header / Navigation ──────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
  transition: transform 0.4s var(--ease-out);
}

.site-header.is-scrolled {
  transform: translateY(-16px);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 2 * (var(--inset) + 16px), 1120px);
  margin-inline: auto;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--gradient-glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  pointer-events: auto;
  transition: box-shadow 0.3s;
}

.site-header.is-scrolled .nav {
  box-shadow: var(--shadow-card);
}

.nav__logo {
  flex-shrink: 0;
  border-radius: var(--radius-xs);
}

.nav__logo img {
  width: 88px;
  height: 42px;
}

.nav__menu {
  display: flex;
  align-items: center;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: block;
  padding: 11px 16px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.21;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.2s, background-color 0.2s;
}

.nav__link:hover {
  color: var(--color-text);
  background: rgba(156, 157, 181, 0.12);
}

.nav__link[aria-current='true'] {
  color: var(--color-yellow);
}

.nav__menu-login {
  display: none;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav__toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
}

.nav__toggle:hover {
  background: rgba(156, 157, 181, 0.12);
}

.nav__toggle span {
  position: absolute;
  top: calc(50% - 1px);
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-text);
  transition: transform 0.3s var(--ease-out);
}

.nav__toggle span:first-child {
  transform: translateY(-4px);
}

.nav__toggle span:last-child {
  transform: translateY(4px);
}

.nav__toggle[aria-expanded='true'] span:first-child {
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded='true'] span:last-child {
  transform: rotate(-45deg);
}

/* ── Panels (full-bleed rounded image blocks) ─────────────────────── */
.panel {
  position: relative;
  width: min(100% - 2 * var(--inset), var(--panel-max));
  margin-inline: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  isolation: isolate;
}

.panel__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(600px, 66.6667vw, 960px);
  margin-top: 16px;
  /* 106px top clears the floating nav; the 58px top/bottom difference
     reproduces the design's slightly-below-centre content block */
  padding: 106px var(--gutter) 48px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__content .eyebrow {
  max-width: 632px;
}

.hero__content .display {
  max-width: 1296px;
  margin-top: 14px;
}

.hero__lead {
  max-width: 632px;
  margin-top: 16px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: clamp(40px, 3.9584vw, 57px);
}

/* ── Powered by ───────────────────────────────────────────────────── */
.partners {
  padding: var(--space-section) var(--gutter) 0;
  text-align: center;
}

.partners__label {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.21;
  color: var(--color-yellow);
}

.partners__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: clamp(40px, 11.8056vw, 170px);
  row-gap: 32px;
  margin-top: 16px;
}

.partners__logo--mpi {
  width: 152px;
}

.partners__logo--mpiea {
  width: 310.5px;
}

.partners__logo--maximize {
  width: 152px;
}

/* ── Sections ─────────────────────────────────────────────────────── */
.section {
  padding-top: var(--space-section);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
}

/* ── Stage companion modules ──────────────────────────────────────── */
.modules__grid {
  margin-top: var(--space-block);
}

.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
  padding: 24px;
}

.module-card__media {
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.module-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.module-card:hover .module-card__media img {
  transform: scale(1.04);
}

.module-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--color-white);
  text-shadow: var(--text-shadow);
}

.module-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.21;
}

.module-card__title img {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.module-card__text {
  min-height: calc(3 * 1.21em);
  font-size: 16px;
  line-height: 1.21;
}

/* "Soon" sticker: the frosted ball is a Figma shader render, the label stays live text */
.soon-badge {
  position: absolute;
  top: -26.24px;
  right: 47.4px;
  width: 129.22px;
  height: 129.22px;
  pointer-events: none;
}

.soon-badge img {
  width: 100%;
  height: 100%;
  transform: rotate(-17.14deg);
}

.soon-badge__label {
  position: absolute;
  top: 65.85px;
  left: 72.44px;
  width: 118.64px;
  height: 50.07px;
  font-weight: 900;
  font-size: 43.306px;
  line-height: 43.306px;
  letter-spacing: -0.15em;
  text-transform: uppercase;
  color: #000;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-17.14deg);
}

/* ── Showcase (iMac on yellow panel + workflow steps) ─────────────── */
.showcase {
  position: relative;
  /* The iMac is pushed down (see .showcase__device); this keeps the visible
     gap above it equal to the regular section spacing */
  margin-top: calc(var(--space-section) - var(--space-block) - 72px);
}

.showcase__stage {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Yellow panel: starts 40% down the iMac, ends 140px into the step cards */
.showcase__stage::before {
  content: '';
  position: absolute;
  top: 40.05%;
  bottom: calc(-1 * (var(--space-block) + 140px));
  left: var(--inset);
  right: var(--inset);
  max-width: var(--panel-max);
  margin-inline: auto;
  border-radius: var(--radius-md);
  background: var(--gradient-sun);
}

.showcase__device {
  position: relative;
  /* Tucks the stand under the step cards; the yellow panel stays put */
  top: calc(var(--space-block) + 72px);
  width: min(933px, 100% - 2 * var(--gutter));
  /* Levitation: animates `translate`, so it composes with the reveal `transform` */
  animation: levitate 6s ease-in-out infinite;
}

@keyframes levitate {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -28px;
  }
}

.steps {
  position: relative;
  margin-top: var(--space-block);
}

.step-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-white);
  text-shadow: var(--text-shadow);
}

.step-card__number {
  font-weight: 700;
  font-size: clamp(4rem, 6.6667vw, 6rem);
  line-height: 1.21;
  color: var(--color-yellow-light);
}

.step-card__title {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.21;
}

.step-card__text {
  font-size: 16px;
  line-height: 1.21;
}

/* ── The workflow ─────────────────────────────────────────────────── */
.workflow__grid {
  display: grid;
  grid-template-columns: minmax(0, 831fr) minmax(0, 417fr);
  align-items: center;
  column-gap: 48px;
  margin-top: var(--space-block);
}

/* Laptop + zoomed waveform overlap the yellow square; positions are
   percentages of the 831×584 Figma group so it scales as one piece */
.workflow__visual {
  position: relative;
  aspect-ratio: 831 / 584;
}

.workflow__square {
  position: absolute;
  top: 0;
  left: 0;
  width: 70.2768%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: var(--gradient-sun-square);
}

.workflow__laptop {
  position: absolute;
  top: 4.9658%;
  left: 1.9254%;
  width: 98.0746%;
}

.workflow__tracks {
  position: absolute;
  top: 38.3562%;
  left: 6.1372%;
  width: 92.1781%;
  border-radius: var(--radius-sm);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 75px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-shadow: var(--text-shadow);
}

.feature__title {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.21;
  color: var(--color-yellow-light);
}

.feature__text {
  font-size: 16px;
  line-height: 1.21;
  color: var(--color-white);
}

/* ── Who is the app for? ──────────────────────────────────────────── */
.audience__cards {
  position: relative;
  z-index: 1;
  margin-top: var(--space-block);
}

.audience-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding: 24px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-white);
  text-shadow: var(--text-shadow);
}

.audience-card__title {
  font-weight: 700;
  font-size: clamp(2.5rem, 4.4445vw, 4rem);
  line-height: 1.21;
  color: var(--color-yellow-light);
}

.audience-card__text {
  font-size: 16px;
  line-height: 1.21;
}

.audience__photo {
  margin-top: -130px;
  aspect-ratio: 1376 / 696;
}

/* ── Team ─────────────────────────────────────────────────────────── */
.team__carousel {
  position: relative;
  margin-top: 53px;
}

/* Prev/next arrows on the container edges, as in the about-the-feeling.de lineup */
.team__arrow {
  position: absolute;
  top: 50%;
  left: calc(max(var(--gutter), (100% - var(--container)) / 2) + 4px);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(242, 228, 35, 0.6);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: opacity 0.3s, border-color 0.2s, background-color 0.2s;
}

.team__arrow--next {
  left: auto;
  right: calc(max(var(--gutter), (100% - var(--container)) / 2) + 4px);
}

.team__arrow::after {
  content: '';
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--color-yellow);
  border-right: 1.5px solid var(--color-yellow);
  transform: rotate(45deg) translate(-1px, 1px);
}

.team__arrow--prev::after {
  transform: rotate(-135deg) translate(-1px, 1px);
}

.team__arrow:hover {
  border-color: var(--color-yellow);
  background: rgba(242, 228, 35, 0.12);
}

.team__arrow:active {
  transform: translateY(calc(-50% + 1px));
}

/* At either end the arrow fades out, like the lineup scroll hints */
.team__arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

.team__scroller {
  padding-inline: max(var(--gutter), (100% - var(--container)) / 2);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), (100% - var(--container)) / 2);
  scrollbar-width: none;
  cursor: grab;
}

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

.team__scroller.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.team__track {
  display: flex;
  gap: 23px;
  width: max-content;
}

.team-card {
  position: relative;
  flex: 0 0 auto;
  width: min(417px, 78vw);
  aspect-ratio: 417 / 521;
  border-radius: var(--radius-sm);
  overflow: hidden;
  scroll-snap-align: start;
  container-type: inline-size;
}

.team-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}

/* Name plate; all metrics in cqi so it scales with the card (Figma: 417px wide) */
.team-card__plate {
  position: absolute;
  top: 75.7794cqi;
  left: 5.7554cqi;
  right: 0;
  padding: 2.8705cqi 3.0552cqi 0.72cqi;
  background: rgba(21, 21, 32, 0.9);
}

.team-card__name {
  font-weight: 800;
  font-size: 9.5923cqi;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(242, 228, 35, 0.9);
}

.team-card__role {
  margin-top: -1.0791cqi;
  font-family: var(--font-grotesk);
  font-weight: 500;
  font-size: 4.4444cqi;
  line-height: 2.1925;
  color: var(--color-text);
}

.team__intro {
  max-width: 857px;
  margin-top: 70px;
  font-family: var(--font-grotesk);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.28;
  color: var(--color-white);
}

/* ── Call to action ───────────────────────────────────────────────── */
.cta {
  margin-top: var(--space-section);
}

.cta__panel {
  padding: clamp(64px, 7.2223vw, 104px) clamp(16px, 1.6667vw, 24px) clamp(56px, 4.6528vw, 67px);
}

.cta__bg {
  object-position: center bottom;
}

.cta__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta__content .display {
  margin-top: clamp(24px, 2.7084vw, 39px);
}

.cta__lead {
  max-width: 632px;
  margin-top: clamp(24px, 2.7084vw, 39px);
}

.cta__btn {
  margin-top: clamp(40px, 3.9584vw, 57px);
}

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 40px;
  row-gap: 16px;
  padding: 57px 32px 36px 40px;
  font-family: var(--font-grotesk);
  font-size: 16px;
  line-height: 1.28;
  text-transform: uppercase;
  color: var(--color-text);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  column-gap: 40px;
  row-gap: 8px;
}

.site-footer__link {
  font-family: inherit;
  text-transform: inherit;
  line-height: inherit;
  border-radius: 2px;
  transition: color 0.2s;
}

.site-footer__link:hover {
  color: var(--color-yellow);
}

.site-footer__logo {
  width: 89px;
  height: 34px;
  margin-left: auto;
}

/* ── Dialogs (modal styles adapted from ggg-atf-landing) ──────────── */
.modal {
  width: min(100% - 48px, 672px);
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 48px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-deep);
  color: var(--color-text);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition:
    opacity 0.3s,
    transform 0.3s var(--ease-out),
    overlay 0.3s allow-discrete,
    display 0.3s allow-discrete;
}

.modal[open] {
  opacity: 1;
  transform: none;
}

@starting-style {
  .modal[open] {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
}

.modal::backdrop {
  background: rgba(0, 3, 38, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition:
    opacity 0.3s,
    overlay 0.3s allow-discrete,
    display 0.3s allow-discrete;
}

.modal[open]::backdrop {
  opacity: 1;
}

@starting-style {
  .modal[open]::backdrop {
    opacity: 0;
  }
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  font-size: 28px;
  line-height: 1;
  color: var(--color-text-muted);
  transition: color 0.2s, background-color 0.2s;
}

.modal__close:hover {
  color: var(--color-text);
  background: var(--color-glass);
}

.modal__header {
  margin-bottom: 32px;
  text-align: center;
}

.modal__title {
  margin-bottom: 8px;
  font-weight: 900;
  font-size: 48px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-yellow);
}

.modal__subtitle {
  font-family: var(--font-grotesk);
  font-size: 18px;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.modal__body p,
.modal__address {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(220, 221, 238, 0.75);
}

.modal__body p + p {
  margin-top: 12px;
}

.modal__label {
  margin: 28px 0 8px;
  font-family: var(--font-grotesk);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-yellow-strong);
}

.modal__body > .modal__label:first-child {
  margin-top: 0;
}

.modal__address {
  margin-bottom: 8px;
  font-style: normal;
}

.modal__link {
  font-weight: 600;
  color: var(--color-yellow-strong);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.modal__link:hover {
  border-bottom-color: var(--color-yellow-strong);
}

.modal__nowrap {
  white-space: nowrap;
}

/* ── Privacy banner (as on ggg-atf-landing) ───────────────────────── */
.privacy-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  width: calc(100% - 48px);
  max-width: 600px;
  padding: 12px 16px 12px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transform: translateX(-50%);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}

.privacy-banner[hidden] {
  display: none;
}

.privacy-banner.is-hiding {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(16px);
}

.privacy-banner__text {
  flex: 1;
  font-family: var(--font-grotesk);
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.privacy-banner__more {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: var(--color-yellow-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-banner__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  line-height: 1;
  color: var(--color-text-muted);
  transition: color 0.2s, border-color 0.2s;
}

.privacy-banner__close:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

/* ── Scroll reveal (JS adds .reveal only to elements below the fold) ─ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-revealed {
  opacity: 1;
  transform: none;
}

/* ── Responsive ───────────────────────────────────────────────────── */
/* Narrower 3-column cards: keep the "Soon" ball clear of the card titles */
@media (min-width: 1000px) and (max-width: 1359px) {
  .module-card {
    min-height: 248px;
  }

  .module-card .soon-badge {
    transform: scale(0.85);
    transform-origin: top right;
  }
}

@media (max-width: 999px) {
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-block);
  }

  .feature-list {
    gap: 40px;
  }
}

@media (max-width: 899px) {
  .site-header {
    top: 16px;
  }

  .site-header.is-scrolled {
    transform: translateY(-8px);
  }

  .nav {
    padding: 12px;
  }

  .nav__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-md);
    /* Opaque: a backdrop-filter can't blur inside the already blurred
       nav, so the glass gradient alone would let the hero shine through */
    background: linear-gradient(176.19deg, #000326 1.74%, var(--color-surface) 99.24%);
    box-shadow: var(--shadow-card);
  }

  .nav__menu.is-open {
    display: flex;
  }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav__link {
    padding: 14px 12px;
  }

  .nav__menu-login {
    display: inline-flex;
  }

  .nav__login {
    display: none;
  }

  .nav__actions {
    gap: 8px;
  }

  .nav__toggle {
    display: block;
  }

  .hero__panel {
    padding-top: 112px;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 96px;
  }

  .partners__logo--mpi,
  .partners__logo--maximize {
    width: 120px;
  }

  .partners__logo--mpiea {
    width: 240px;
  }

  .module-card .soon-badge {
    right: 16px;
    transform: scale(0.8);
    transform-origin: top right;
  }

  .audience__photo {
    margin-top: -48px;
    aspect-ratio: 4 / 3;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 48px var(--gutter) 32px;
  }

  .site-footer__legal {
    column-gap: 24px;
  }

  .site-footer__logo {
    margin-left: 0;
  }

  .modal {
    width: 100%;
    max-height: 100dvh;
    padding: 32px 20px;
    border-radius: 0;
  }

  .modal__title {
    font-size: 32px;
  }

  .modal__header {
    padding-inline: 32px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .showcase__device {
    animation: none;
  }
}
