/* ══════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #04071a;
  --accent: #005E89;
  --white: #ffffff;
  --black: #000000;
  --card-radius: 16px;
  --font: 'Inter', sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
}

/* ══════════════════════════════════════════════
   STATES — shared
══════════════════════════════════════════════ */
.state {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background-color: var(--bg);
  overflow: hidden;
}

/* Wave image pinned to the bottom */
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  object-fit: cover;
}

/* ══════════════════════════════════════════════
   STATE 1 — WAITING
══════════════════════════════════════════════ */
.state--waiting {
  display: none;
  align-items: center;
  justify-content: center;
}

.waiting__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  max-width: 480px;
  width: 100%;
}

.logo--waiting {
  width: 245px;
  margin-bottom: 40px;
}

.waiting__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.waiting__body {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.4;
}

.waiting__subtitle {
  font-size: 14px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.5;
  opacity: 0.9;
}

/* ══════════════════════════════════════════════
   STATE 2 — ACTIVE (mobile / tablet)
══════════════════════════════════════════════ */
.state--active {
  display: none;
  align-items: flex-start;
  justify-content: center;
}

/* Mobile dark layout */
.active__card-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 60px 24px 0;
}

.active__card-wrap .logo--white {
  align-self: center;
  width: 262px;
  margin-top: 32px;
  margin-bottom: 32px;
}

.logo--colored {
  width: 177px;
  margin-bottom: 24px;
}

.active__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.25;
}

.active__body {
  font-size: 16px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.6;
}

.active__subtitle {
  font-size: 14px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Store buttons */
.store-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.btn-store img {
  display: block;
  height: 48px;
  width: auto;
  object-fit: contain;
}

.btn-store:hover {
  opacity: 0.8;
}

/* Phone mockup (mobile) */
.phone-mockup-wrap {
  margin-top: 32px;
  width: calc(100% + 48px);
  margin-left: -24px;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 100%;
  height: auto;
}

/* Wave variants */
.wave--mobile {
  position: fixed;
}

.wave--desktop {
  display: none;
}

/* Desktop two-column — hidden on mobile */
.active__desktop {
  display: none;
}

/* ══════════════════════════════════════════════
   DESKTOP  ≥ 768px
══════════════════════════════════════════════ */
@media (min-width: 768px) {

  /* WAITING — wider content */
  .waiting__content {
    max-width: 600px;
  }

  .waiting__title {
    font-size: 40px;
  }

  .waiting__body {
    font-size: 22px;
  }

  .waiting__subtitle {
    font-size: 16px;
  }

  /* ACTIVE — centre content vertically and horizontally */
  .state--active {
    align-items: center;
    justify-content: center;
  }

  .active__card-wrap {
    display: none;
  }

  .wave--mobile {
    display: none;
  }

  .wave--desktop {
    display: block;
  }

  .active__desktop {
    display: flex;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: 64px;
    gap: 64px;
  }

  .active__desktop-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 520px;
  }

  .active__desktop-left .logo--colored {
    width: 356px;
    margin-bottom: 40px;
  }

  .active__desktop-left .active__title {
    font-size: 40px;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.2;
  }

  .active__desktop-left .active__body {
    font-size: 24px;
    color: var(--white);
    margin-bottom: 12px;
    font-weight: 300;
    line-height: 1.5;
  }

  .active__desktop-left .active__subtitle {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 32px;
  }

  .active__desktop-left .store-buttons {
    flex-direction: row;
    gap: 16px;
    align-items: center;
    width: auto;
  }

  .active__desktop-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    max-width: 440px;
  }

  .phone-mockup--desktop {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 40px;
    filter: drop-shadow(0 24px 64px rgba(0, 0, 0, 0.6));
  }
}

/* ══════════════════════════════════════════════
   LARGE DESKTOP  ≥ 1200px
══════════════════════════════════════════════ */
@media (min-width: 1200px) {
  .active__desktop {
    padding: 80px;
    gap: 80px;
  }

  .phone-mockup--desktop {
    max-width: 450px;
  }
}
