/* ---------- Yoney Credit landing ---------- */

:root {
  --frame-w: 1512;
  --frame-h: 902;

  --brand: #2c2661;
  --brand-soft: #2c294a;
  --accent: #aca7dd;

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

[data-theme="dark"] {
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-faint: rgba(255, 255, 255, 0.4);
  --surface-1: rgba(255, 255, 255, 0.1);
  --surface-2: rgba(255, 255, 255, 0.08);
  --cta-bg: #ffffff;
  --cta-fg: #2c294a;
  --talk-bg: #2c2661;
  --talk-fg: #ffffff;
  --badge-fg: rgba(255, 255, 255, 0.8);
  --foot-mail: #aca7dd;
  --toggle-icon-color: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] {
  --text: #111114;
  --text-muted: rgba(0, 0, 0, 0.6);
  --text-faint: rgba(0, 0, 0, 0.4);
  --surface-1: rgba(44, 38, 97, 0.1);
  --surface-2: rgba(44, 38, 97, 0.08);
  --cta-bg: #2c2661;
  --cta-fg: #ffffff;
  --talk-bg: #ffffff;
  --talk-fg: #2c2661;
  --badge-fg: rgba(44, 38, 97, 0.85);
  --foot-mail: #2c2661;
  --toggle-icon-color: #2c2661;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  background-color: #000;
  background-image:
    radial-gradient(
      130% 90% at 0% 100%,
      rgba(107, 128, 183, 0.55) 0%,
      rgba(107, 128, 183, 0) 60%
    ),
    radial-gradient(
      120% 70% at 50% 100%,
      rgba(44, 41, 74, 1) 0%,
      rgba(33, 31, 55, 1) 25%,
      rgba(22, 20, 37, 1) 50%,
      rgba(11, 10, 18, 1) 75%,
      rgba(0, 0, 0, 1) 100%
    );
  background-attachment: fixed;
  background-repeat: no-repeat;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

[data-theme="light"] body {
  background-color: #e8ecee;
  background-image:
    radial-gradient(
      80% 80% at 100% 0%,
      rgba(44, 38, 97, 0.22) 0%,
      rgba(44, 38, 97, 0) 55%
    );
}

/* ---------- Stage = the 1512×902 frame, scaled to viewport ---------- */
.stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  max-width: 1512px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 30px) clamp(20px, 2.4vw, 36px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

/* ---------- Nav ---------- */
.nav {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: clamp(0px, 0.5vw, 8px) 0;
}

.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 90px;
  height: 35px;
}
.logo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 0.4s var(--ease);
}
[data-theme="dark"] .logo__img--dark { opacity: 1; }
[data-theme="dark"] .logo__img--light { opacity: 0; }
[data-theme="light"] .logo__img--dark { opacity: 0; }
[data-theme="light"] .logo__img--light { opacity: 1; }

.nav-center { display: flex; justify-content: center; }
.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 60px;
  background: var(--surface-1);
  color: var(--badge-fg);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

/* Theme toggle (pill with sun/moon) */
.theme-toggle {
  position: relative;
  width: 60px;
  height: 20px;
  border: 0;
  padding: 0;
  border-radius: 60px;
  background: var(--surface-1);
  cursor: pointer;
  color: var(--toggle-icon-color);
  transition: background 0.3s var(--ease);
}

.theme-toggle__icon {
  position: absolute;
  top: 50%;
  display: inline-flex;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.85;
}
.theme-toggle__icon--sun { left: 10px; }

.theme-toggle__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 30px;
  height: 16px;
  border-radius: 30px;
  background: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease);
}

[data-theme="dark"] .theme-toggle__knob {
  transform: translateX(26px); /* knob on the moon side */
}
[data-theme="light"] .theme-toggle__knob {
  background: #ffffff;
  color: var(--brand);
  transform: translateX(0); /* knob on the sun side */
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 60px;
  background: var(--talk-bg);
  color: var(--talk-fg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}
.cta:hover { transform: translateY(-1px); filter: brightness(1.05); }
.cta:active { transform: translateY(0); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  padding-block: clamp(20px, 5vh, 60px);
}

.hero__art {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 20px));
  width: clamp(280px, 36vw, 540px);
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.45));
  z-index: 1;
  animation: float 9s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, calc(-50% - 20px)); }
  50%      { transform: translate(-50%, calc(-50% - 32px)); }
}

.hero__title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-weight: 400;
  font-size: clamp(44px, 6.6vw, 100px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: #ffffff;
  mix-blend-mode: exclusion;
}

.hero__title span { display: block; }

.hero__title--left {
  grid-column: 1;
  justify-self: start;
  align-self: start;
  padding-top: clamp(20px, 6vh, 80px);
}

.hero__title--right {
  grid-column: 2;
  justify-self: end;
  align-self: end;
  text-align: right;
  padding-bottom: clamp(20px, 6vh, 60px);
}

.hero__body {
  position: relative;
  z-index: 2;
  grid-column: 1;
  align-self: end;
  max-width: 270px;
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-muted);
}

.hero__cta {
  position: relative;
  z-index: 2;
  grid-column: 1;
  align-self: start;
  justify-self: start;
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 50px;
  padding: 0 28px;
  border-radius: 60px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}
.hero__cta:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* ---------- Footer ---------- */
.foot {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.foot__copy { color: var(--text-faint); }

.foot__mail {
  font-size: 16px;
  color: var(--foot-mail);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.foot__mail:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stage { padding-block: 20px; }

  .nav { grid-template-columns: auto 1fr auto; }
  .nav-center { justify-content: flex-end; padding-right: 8px; }

  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    padding-block: 40px;
    gap: 24px;
  }

  .hero__art {
    position: relative;
    top: auto; left: auto;
    transform: none;
    margin: 8px auto -10px;
    display: block;
    width: min(80vw, 380px);
    animation: floatSmall 9s ease-in-out infinite;
  }

  @keyframes floatSmall {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
  }

  .hero__title--left,
  .hero__title--right {
    grid-column: 1;
    justify-self: start;
    text-align: left;
    padding: 0;
  }

  .hero__title { font-size: clamp(40px, 11vw, 68px); }
  .hero__body { max-width: 100%; }

  .foot { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .cta { padding: 9px 12px; font-size: 13px; }
  .badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__art { animation: none !important; }
  * { transition: none !important; }
}
