/* ==========================================================================
   AIVA landing page
   ========================================================================== */

:root {
  --bg: #08080d;
  --bg-elevated: #101019;
  --bg-card: #14141f;
  --border: rgba(255, 255, 255, 0.08);

  --text: #f5f5f8;
  --text-dim: #a6a6b8;
  --text-dimmer: #74748a;

  --pink: #ff2f78;
  --pink-hot: #ff0a68;
  --orange: #ff9d2e;
  --purple: #a855f7;

  --grad-brand: linear-gradient(135deg, var(--pink-hot) 0%, var(--pink) 55%, var(--orange) 100%);
  --grad-vote: linear-gradient(90deg, var(--pink-hot) 0%, var(--purple) 100%);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --container: 1180px;

  --shadow-glow: 0 20px 60px -15px rgba(255, 47, 120, 0.35);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Poppins', 'Inter', sans-serif;
  margin: 0;
  line-height: 1.15;
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* subtle grain so the flat dark background doesn't look dead */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------- nav ---------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 13, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
}

.nav__logo {
  height: 92px;
  width: auto;
}

/* ---------------------------------- buttons ---------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn .icon { width: 20px; height: 20px; flex-shrink: 0; }

.btn__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.btn__stack small {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.7em;
  opacity: 0.85;
}

.btn--sm { padding: 9px 16px; font-size: 0.85rem; }
.btn--sm .icon { width: 16px; height: 16px; }

.btn--lg { padding: 14px 24px; font-size: 1rem; }

.btn--play {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn--play:hover { transform: translateY(-2px); box-shadow: 0 24px 70px -12px rgba(255, 47, 120, 0.5); }

.soon-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dimmer);
  font-size: 0.9rem;
  font-weight: 500;
}
.soon-note .icon { width: 18px; height: 18px; opacity: 0.7; }

/* ---------------------------------- hero ---------------------------------- */

.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  z-index: -2;
  filter: saturate(1.05) brightness(0.6) blur(2px);
  transform: scale(1.08);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 50% at 78% 12%, rgba(255, 10, 104, 0.4), transparent 62%),
    linear-gradient(180deg, rgba(8, 8, 13, 0.85) 0%, rgba(8, 8, 13, 0.96) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(8,8,13,0.72) 0%, rgba(8,8,13,0.35) 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 47, 120, 0.12);
  border: 1px solid rgba(255, 47, 120, 0.35);
  color: #ff85ae;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}

.hero__title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero__desc {
  margin-top: 18px;
  max-width: 46ch;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
}

.hero__art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

.phone-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  background: var(--grad-brand);
  filter: blur(90px);
  opacity: 0.35;
  border-radius: 50%;
  z-index: 0;
}

.phone-shot {
  position: relative;
  border-radius: 28px;
  z-index: 1;
}

.phone-shot--front {
  width: min(280px, 62vw);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
}

.phone-shot--back {
  position: absolute;
  width: min(220px, 50vw);
  right: -6%;
  bottom: -8%;
  z-index: 0;
  opacity: 0.85;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
  transform: rotate(6deg);
}

/* ---------------------------------- sections ---------------------------------- */

.section { padding: 78px 0; }

.section__title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.01em;
}

.section__title::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: var(--grad-brand);
  margin: 0 auto 18px;
}

.section__title--left::before { margin: 0 0 18px; }

.section__sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 56ch;
  margin: 14px auto 0;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
}

.section__title--left,
.section__sub--left { text-align: left; margin-left: 0; }

/* ------------------------------- how it works ------------------------------- */

.how { background: var(--bg-elevated); }

.how__grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.how__card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 26px;
}

.how__card img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.how__num {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  background: var(--grad-vote);
  padding: 4px 11px;
  border-radius: 999px;
}

.how__card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.how__card p {
  color: var(--text-dim);
  font-size: 0.94rem;
  margin: 0;
}

/* ------------------------------- world gallery ------------------------------- */

.world { padding-bottom: 86px; }

.world__gallery {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.world__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.world__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.world__item:hover img { transform: scale(1.06); }

.world__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 14px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
}

/* ---------------------------------- trailer ---------------------------------- */

.trailer { background: var(--bg-elevated); }

.trailer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 50px;
}

.trailer__copy .btn { margin-top: 28px; }

.trailer__frame {
  position: relative;
  width: min(280px, 70vw);
  justify-self: center;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 90px -20px rgba(255, 47, 120, 0.3), 0 0 0 6px rgba(255,255,255,0.04);
}

.trailer__video {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
}

/* ---------------------------------- final cta ---------------------------------- */

.cta { text-align: center; }

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

.cta__logo { height: 130px; margin-bottom: 26px; }

.cta__title {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 800;
  max-width: 22ch;
}

.cta__ctas { justify-content: center; margin-top: 32px; }

/* ---------------------------------- footer ---------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.footer__logo { height: 88px; opacity: 0.95; margin-bottom: 6px; }

.footer__tag {
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 40ch;
}

.footer__copy {
  color: var(--text-dimmer);
  font-size: 0.8rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__desc { margin-inline: auto; }
  .hero__ctas { justify-content: center; }
  .hero__art { min-height: 340px; margin-top: 20px; }

  .how__grid { grid-template-columns: 1fr; }
  .how__card img { aspect-ratio: 16 / 10; }

  .world__gallery { grid-template-columns: repeat(2, 1fr); }

  .trailer__inner { grid-template-columns: 1fr; text-align: center; }
  .section__title--left,
  .section__sub--left { text-align: center; margin-inline: auto; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero { padding: 90px 0 70px; }

  .nav__inner { height: 96px; }
  .nav__logo { height: 72px; }

  .btn--lg { padding: 13px 18px; font-size: 0.92rem; }

  .hero__ctas, .cta__ctas { flex-direction: column; align-items: center; }
  .hero__ctas .btn, .cta__ctas .btn { justify-content: center; width: 100%; }

  .world__gallery { grid-template-columns: 1fr 1fr; }
  .world__item figcaption { font-size: 0.78rem; }
}

@media (max-width: 380px) {
  .world__gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .world__item img { transition: none; }
}
