/* Nexus landing — light aurora glass, brand-first hero */

:root {
  --bg: #eef2f8;
  --ink: #12131a;
  --muted: #5a6070;
  --accent: #1e6fd9;
  --accent-deep: #1557b0;
  --glass: rgba(255, 255, 255, 0.55);
  --line: rgba(18, 19, 26, 0.08);
  --soft-blue: rgba(30, 111, 217, 0.16);
  --soft-cyan: rgba(14, 165, 190, 0.14);
  --soft-coral: rgba(232, 108, 74, 0.12);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: "Sora", "Avenir Next", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

/* ambient field */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(120, 160, 255, 0.22), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(80, 200, 210, 0.14), transparent 55%),
    linear-gradient(180deg, #f4f7fc 0%, #e8eef7 48%, #eef2f8 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.orb-a {
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  background: var(--soft-blue);
  top: -8%;
  left: -6%;
  animation: driftA 18s ease-in-out infinite alternate;
}

.orb-b {
  width: min(40vw, 420px);
  height: min(40vw, 420px);
  background: var(--soft-cyan);
  top: 18%;
  right: -8%;
  animation: driftB 22s ease-in-out infinite alternate;
}

.orb-c {
  width: min(34vw, 360px);
  height: min(34vw, 360px);
  background: var(--soft-coral);
  bottom: 12%;
  left: 18%;
  animation: driftC 16s ease-in-out infinite alternate;
}

.orb-d {
  width: min(28vw, 300px);
  height: min(28vw, 300px);
  background: rgba(90, 120, 220, 0.12);
  bottom: -4%;
  right: 22%;
  animation: driftA 20s ease-in-out infinite alternate-reverse;
}

@keyframes driftA {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(4%, 6%) scale(1.06); }
}
@keyframes driftB {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-5%, 4%) scale(1.05); }
}
@keyframes driftC {
  from { transform: translate(0, 0) scale(0.96); }
  to { transform: translate(6%, -5%) scale(1.08); }
}

.top,
main,
.foot {
  position: relative;
  z-index: 1;
}

/* top bar */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 4vw, 48px);
  max-width: 1200px;
  margin: 0 auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Avenir Next", "Avenir", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand-mark img {
  width: 36px;
  height: 36px;
  border-radius: 22%;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px clamp(12px, 2vw, 22px);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

.top-nav a:hover {
  color: var(--ink);
}

.top-cta {
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff !important;
  transition: transform 0.15s ease, background 0.15s ease;
}

.top-cta:hover {
  background: #000;
  transform: translateY(-1px);
}

/* hero — one composition */
.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(24px, 5vh, 48px) clamp(20px, 4vw, 48px) clamp(48px, 8vh, 80px);
  max-width: 1200px;
  margin: 0 auto;
}

.hero-brand {
  font-family: "Syne", "Sora", sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 16px;
  color: var(--ink);
  animation: riseIn 0.85s var(--ease) both;
}

.hero-title {
  font-family: "Avenir Next", "Avenir", sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0 0 14px;
  color: var(--ink);
  animation: riseIn 0.85s 0.08s var(--ease) both;
}

.hero-caption {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--muted);
  font-weight: 500;
  max-width: 28ch;
  animation: riseIn 0.85s 0.16s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  animation: riseIn 0.85s 0.24s var(--ease) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(30, 111, 217, 0.28);
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  background: var(--glass);
  border-color: var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  border-color: rgba(18, 19, 26, 0.18);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(58vh, 520px);
  animation: fadeScale 1s 0.12s var(--ease) both;
}

.hero-stage {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.hero-logo {
  width: 58%;
  height: auto;
  border-radius: 24%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 24px 48px rgba(30, 80, 180, 0.22));
  animation: floatY 5.5s ease-in-out infinite;
}

.hero-ring {
  position: absolute;
  inset: 8%;
  border-radius: 32%;
  border: 1.5px solid rgba(30, 111, 217, 0.22);
  animation: pulseRing 3.2s ease-out infinite;
}

.hero-ring.delay {
  inset: 0;
  animation-delay: 1.5s;
  border-color: rgba(14, 165, 190, 0.18);
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}

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

@keyframes pulseRing {
  0% { transform: scale(0.92); opacity: 0.55; }
  70% { transform: scale(1.08); opacity: 0; }
  100% { opacity: 0; }
}

/* sections */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(56px, 10vh, 110px) clamp(20px, 4vw, 48px);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  font-family: "Syne", "Sora", sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 14px;
  max-width: 18ch;
}

.section-lead {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.65;
}

.what {
  text-align: left;
  border-top: 1px solid var(--line);
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  border-top: 1px solid var(--line);
}

.feature-block.reverse {
  direction: rtl;
}

.feature-block.reverse > * {
  direction: ltr;
}

.feature-art {
  min-height: 280px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 16px 40px rgba(20, 40, 90, 0.06);
  position: relative;
  overflow: hidden;
}

/* games / home screenshots */
.games-art,
.home-art {
  min-height: 0;
  padding: 0;
  display: block;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
  border-radius: var(--radius);
}

.games-art img,
.home-art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(20, 40, 90, 0.1);
}

.chat-art {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 28px 24px;
}

.chat-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
}

.chat-bubble.b1 { align-self: flex-start; }
.chat-bubble.b2 {
  align-self: flex-end;
  background: rgba(30, 111, 217, 0.12);
  border-color: rgba(30, 111, 217, 0.18);
}
.chat-bubble.b3 { align-self: flex-start; }

.closer {
  text-align: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: clamp(72px, 12vh, 120px);
}

.closer .hero-brand {
  font-family: "Avenir Next", "Avenir", sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: 8px;
}

.closer-title {
  font-family: "Syne", "Sora", sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}

.closer .section-lead {
  margin-bottom: 18px;
  text-align: center;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px clamp(20px, 4vw, 48px) 36px;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

.foot a:hover {
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 28px;
  }

  .hero-visual {
    order: -1;
    min-height: 260px;
  }

  .hero-stage {
    width: min(72vw, 320px);
  }

  .hero-brand {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }

  .hero-title {
    font-size: clamp(2.4rem, 12vw, 3.8rem);
  }

  .feature-block,
  .feature-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .top-nav a:not(.top-cta) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .hero-logo,
  .hero-ring,
  .hero-brand,
  .hero-title,
  .hero-caption,
  .hero-actions,
  .hero-visual {
    animation: none !important;
  }

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