/* =========================================================================
   NUWA Landing · 沉浸式 AI 陪伴官网
   Structure inspired by modern AI-companion landing patterns
   Brand: Nuwa green (#AEE638) · dark stage · Perfect Fourth scale
   ========================================================================= */

:root {
  /* ---- Brand ---- */
  --nw-green:        #AEE638;
  --nw-green-soft:   #C9F06F;
  --nw-green-dim:    rgba(174, 230, 56, 0.14);
  --nw-green-glow:   rgba(174, 230, 56, 0.35);

  /* ---- Stage palette ---- */
  --nw-ink-0:        #05070A;       /* deepest bg */
  --nw-ink-1:        #0B0F14;       /* section bg */
  --nw-ink-2:        #121820;       /* card */
  --nw-ink-3:        #1C2430;       /* elevated */
  --nw-line:         rgba(255, 255, 255, 0.08);

  /* ---- Text ---- */
  --nw-text-hi:      rgba(255, 255, 255, 0.96);
  --nw-text:         rgba(255, 255, 255, 0.82);
  --nw-text-mid:     rgba(255, 255, 255, 0.62);
  --nw-text-lo:      rgba(255, 255, 255, 0.42);

  /* ---- Type (Perfect Fourth ≈1.333) ---- */
  --fs-cap:   12px;
  --fs-body:  16px;
  --fs-lead:  20px;
  --fs-h3:    28px;
  --fs-h2:    44px;
  --fs-h1:    72px;

  --ls-display: -0.035em;
  --ls-heading: -0.018em;
  --ls-body:    -0.005em;

  --lh-tight:  1.08;
  --lh-snug:   1.28;
  --lh-normal: 1.6;

  /* ---- Grid / motion ---- */
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --d-fast: 160ms;
  --d-normal: 320ms;
  --d-slow: 640ms;

  --max-w: 1440px;
  --pad-x: clamp(20px, 4vw, 64px);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--nw-ink-0); color: var(--nw-text); }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; color: inherit; cursor: pointer; font-family: inherit; }
img { display: block; max-width: 100%; }

::-webkit-scrollbar { width: 0; height: 0; }

/* ====================================================================
   HEADER
   ==================================================================== */
.n-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: 72px;
  z-index: 100;
  transition: background var(--d-normal) var(--ease-out-expo),
              backdrop-filter var(--d-normal) var(--ease-out-expo),
              border-color var(--d-normal) var(--ease-out-expo);
  border-bottom: 1px solid transparent;
}
.n-header.scrolled {
  background: rgba(5, 7, 10, 0.72);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom-color: var(--nw-line);
}
.n-header-inner {
  max-width: var(--max-w); margin: 0 auto;
  height: 100%; padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
}
.n-logo { display: flex; align-items: center; gap: 10px; }
.n-logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--nw-green), var(--nw-green-soft));
  color: var(--nw-ink-0);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
  box-shadow: 0 6px 24px var(--nw-green-glow);
}
.n-logo-text {
  font-weight: 700; letter-spacing: 0.18em; font-size: 15px;
  color: var(--nw-text-hi);
}
.n-nav { display: flex; align-items: center; gap: 32px; }
.n-nav > a {
  color: var(--nw-text-mid); font-size: 14px; font-weight: 500;
  transition: color var(--d-fast);
}
.n-nav > a:hover { color: var(--nw-text-hi); }
.n-nav-cta {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--nw-green); color: var(--nw-ink-0) !important;
  font-weight: 600; font-size: 14px;
  box-shadow: 0 4px 20px var(--nw-green-dim);
  transition: transform var(--d-fast), box-shadow var(--d-fast);
}
.n-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 28px var(--nw-green-glow); }

/* ====================================================================
   PAGE / SECTIONS
   ==================================================================== */
.n-page { position: relative; max-width: var(--max-w); margin: 0 auto; }
.n-screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 120px var(--pad-x) 80px;
  overflow: hidden;
}

.n-section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: var(--ls-heading);
  line-height: var(--lh-tight);
  color: var(--nw-text-hi);
  margin: 0;
}
.n-section-title em {
  font-style: normal;
  background: linear-gradient(110deg, var(--nw-green) 0%, var(--nw-green-soft) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.n-section-desc {
  margin: 20px 0 0;
  font-size: var(--fs-lead);
  color: var(--nw-text-mid);
  line-height: 1.75;
}

/* ====================================================================
   SECTION 1 · HERO
   ==================================================================== */
.n-hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 50% at 50% 38%,
      rgba(174, 230, 56, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 20% 80%,
      rgba(82, 122, 255, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 82% 20%,
      rgba(220, 90, 200, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #0A1018 0%, #070A10 100%);
}

.n-card-field {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px;
  padding: 180px var(--pad-x) 0;
  pointer-events: none; z-index: 1;
  opacity: 0.92;
}
.n-float-card {
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  background: linear-gradient(160deg,
              hsl(var(--hue) 72% 46% / 1) 0%,
              hsl(var(--hue) 80% 22% / 1) 100%);
  border: 1px solid hsl(var(--hue) 80% 60% / .6);
  box-shadow: 0 14px 44px hsl(var(--hue) 70% 20% / .55),
              inset 0 1px 0 hsl(var(--hue) 90% 75% / .45);
  position: relative;
  overflow: hidden;
}
.n-float-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%,
              hsl(var(--hue) 90% 72% / .55) 0%,
              transparent 60%);
}
.n-float-card.f-1 { margin-top: 40px; }
.n-float-card.f-2 { margin-top: 0; }
.n-float-card.f-3 { margin-top: 60px; }
.n-float-card.f-4 { margin-top: 20px; }
.n-float-card.f-5 { margin-top: 0; }
.n-float-card.f-6 { margin-top: 20px; }
.n-float-card.f-7 { margin-top: 60px; }
.n-float-card.f-8 { margin-top: 0; }
.n-float-card.f-9 { margin-top: 40px; }

.n-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.5) 50%, transparent 50%),
    radial-gradient(1px 1px at 70% 18%, rgba(174,230,56,.6) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 40% 70%, rgba(255,255,255,.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 85% 60%, rgba(255,255,255,.5) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 15% 85%, rgba(174,230,56,.5) 50%, transparent 50%),
    radial-gradient(1px 1px at 60% 40%, rgba(255,255,255,.6) 50%, transparent 50%);
  pointer-events: none; z-index: 2;
  opacity: 0.7;
}

.n-hero-role {
  position: relative;
  z-index: 3;
  margin-top: 40px;
  width: 340px; height: 340px;
  display: flex; align-items: center; justify-content: center;
}
.n-role-halo {
  position: absolute; inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle,
              var(--nw-green-glow) 0%,
              rgba(174,230,56,.08) 40%,
              transparent 70%);
  filter: blur(20px);
  animation: halo-pulse 6s ease-in-out infinite;
}
.n-role-figure {
  position: relative;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,
              rgba(174,230,56,.9) 0%,
              rgba(174,230,56,.35) 30%,
              rgba(12,16,22,.98) 65%);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(174,230,56,.4);
  box-shadow: 0 30px 80px rgba(0,0,0,.6),
              inset 0 2px 40px rgba(174,230,56,.2);
}
.n-role-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(174,230,56,.2);
  animation: ring-spin 14s linear infinite;
}
.n-role-ring.r-1 { inset: -20px; border-color: rgba(174,230,56,.28); animation-duration: 18s; }
.n-role-ring.r-2 { inset: -40px; border-color: rgba(174,230,56,.15); animation-duration: 26s; animation-direction: reverse; }
.n-role-ring.r-3 { inset: -60px; border-color: rgba(174,230,56,.08); animation-duration: 40s; }
.n-role-ring::before {
  content: ""; position: absolute; top: -4px; left: 50%;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--nw-green);
  box-shadow: 0 0 16px var(--nw-green);
  transform: translateX(-50%);
}
.n-role-core {
  color: var(--nw-ink-0);
  font-size: 42px; font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 20px rgba(255,255,255,.5);
  transition: opacity var(--d-normal);
}

.n-role-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--nw-line);
  color: var(--nw-text-mid);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
  transition: all var(--d-fast);
}
.n-role-arrow:hover {
  background: rgba(174,230,56,.12);
  border-color: var(--nw-green);
  color: var(--nw-green);
}
.n-role-arrow.prev { left: -60px; }
.n-role-arrow.next { right: -60px; }

.n-hero-content {
  position: relative; z-index: 3;
  margin-top: 56px;
  text-align: center;
  max-width: 680px;
}
.n-hero-title {
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: var(--ls-display);
  line-height: var(--lh-tight);
  color: var(--nw-text-hi);
  margin: 0;
}
.n-title-line-1 { display: block; color: var(--nw-text); }
.n-title-line-2 { display: block; }
.n-title-line-2 em {
  font-style: normal;
  background: linear-gradient(110deg, var(--nw-green) 0%, var(--nw-green-soft) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.n-hero-desc {
  margin: 28px auto 0;
  font-size: var(--fs-lead);
  color: var(--nw-text-mid);
  line-height: 1.72;
  max-width: 560px;
}

.n-download {
  margin-top: 44px;
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.n-dl-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  transition: all var(--d-fast);
}
.n-dl-btn.ios {
  background: var(--nw-green);
  color: var(--nw-ink-0);
  box-shadow: 0 6px 24px var(--nw-green-dim);
}
.n-dl-btn.ios:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--nw-green-glow);
}
.n-dl-btn.android {
  background: rgba(255,255,255,.06);
  color: var(--nw-text-hi);
  border: 1px solid var(--nw-line);
  backdrop-filter: blur(10px);
}
.n-dl-btn.android:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
  transform: translateY(-2px);
}
.n-dl-btn .dl-sub { font-size: 11px; opacity: .65; font-weight: 500; }
.n-dl-btn .dl-main { font-size: 15px; }
.n-dl-btn .dl-sub, .n-dl-btn .dl-main { display: block; line-height: 1.1; text-align: left; }

.n-scroll-hint {
  margin-top: 64px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--nw-text-lo);
  font-size: 12px; letter-spacing: 0.08em;
  animation: bounce-down 2.4s ease-in-out infinite;
}

/* ====================================================================
   SECTION 2 · CREATE
   ==================================================================== */
.n-create {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 55% 55% at 50% 40%, rgba(174,230,56,.14) 0%, transparent 62%),
    radial-gradient(ellipse 40% 45% at 15% 80%, rgba(122, 210, 255, .12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 45% at 85% 20%, rgba(255, 132, 210, .10) 0%, transparent 60%),
    linear-gradient(180deg, #0B1018 0%, #10161E 100%);
}
.n-create-stage {
  position: relative;
  width: 100%; max-width: 960px; height: 440px;
  margin-bottom: 72px;
}
.n-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.n-orb.o-1 { top: 40px; left: 20%; width: 320px; height: 320px; background: rgba(174,230,56,.25); }
.n-orb.o-2 { top: 120px; right: 10%; width: 260px; height: 260px; background: rgba(124, 58, 237, .22); }
.n-orb.o-3 { bottom: 40px; left: 50%; width: 280px; height: 280px; background: rgba(255,107,157,.18); transform: translateX(-50%); }

.n-create-cards {
  position: relative;
  width: 100%; height: 100%;
}
.n-trait-card {
  position: absolute;
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(18, 24, 32, 0.7);
  border: 1px solid var(--nw-line);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 48px rgba(0,0,0,.4);
  min-width: 200px;
  animation: drift 12s ease-in-out infinite;
}
.n-trait-card::before {
  content: "";
  position: absolute; top: -1px; left: 20px; right: 20px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--nw-green) 50%, transparent);
  opacity: 0.6;
}
.n-trait-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  color: var(--nw-green); text-transform: uppercase;
}
.n-trait-value { font-size: 15px; color: var(--nw-text-hi); font-weight: 500; }

.n-trait-card.t-1 { top: 30px; left: 8%; animation-delay: 0s; }
.n-trait-card.t-2 { top: 80px; right: 10%; animation-delay: 1.5s; }
.n-trait-card.t-3 { top: 220px; left: 20%; animation-delay: 3s; }
.n-trait-card.t-4 { top: 180px; right: 22%; animation-delay: 4.5s; }
.n-trait-card.t-5 { top: 320px; left: 40%; animation-delay: 6s; }

.n-create-content {
  text-align: center; max-width: 760px;
  position: relative; z-index: 2;
}

/* ====================================================================
   SECTION 3 · CHAT
   ==================================================================== */
.n-chat {
  background:
    radial-gradient(ellipse 55% 65% at 80% 50%, rgba(174,230,56,.18) 0%, transparent 62%),
    radial-gradient(ellipse 45% 55% at 12% 28%, rgba(255,107,157,.14) 0%, transparent 62%),
    linear-gradient(180deg, #0E1520 0%, #131B28 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}
.n-chat-content {
  padding-right: 40px;
}
.n-chat-stage {
  position: relative;
  height: 560px;
}
.n-bubble {
  position: absolute;
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(28, 36, 48, 0.85);
  border: 1px solid var(--nw-line);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
  font-size: 14px;
  max-width: 260px;
}
.n-bubble-name {
  font-size: 11px; color: var(--nw-green); font-weight: 600; letter-spacing: 0.08em;
}
.n-bubble-text { color: var(--nw-text-hi); line-height: 1.5; }

.n-bubble.b-1 { top: 30px; right: 40px; }
.n-bubble.b-2 { top: 130px; left: 10%; background: linear-gradient(135deg, var(--nw-green) 0%, var(--nw-green-soft) 100%); color: var(--nw-ink-0); border-color: transparent; max-width: 180px; }
.n-bubble.b-2 .n-bubble-text { color: var(--nw-ink-0); font-weight: 600; }
.n-bubble.b-3 { top: 240px; right: 20px; }
.n-bubble.b-4 { top: 360px; left: 12%; background: linear-gradient(135deg, var(--nw-green) 0%, var(--nw-green-soft) 100%); color: var(--nw-ink-0); border-color: transparent; max-width: 180px; }
.n-bubble.b-4 .n-bubble-text { color: var(--nw-ink-0); font-weight: 600; }
.n-bubble.b-5 { top: 450px; right: 40px; }

.n-avatar-pack {
  position: absolute;
  top: 20px; right: 20px;
  display: flex; gap: -12px;
  pointer-events: none;
}
.n-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,
              hsl(var(--hue) 80% 65%) 0%,
              hsl(var(--hue) 70% 30%) 100%);
  border: 3px solid var(--nw-ink-1);
  margin-left: -14px;
  box-shadow: 0 4px 14px rgba(0,0,0,.5);
}
.n-avatar.a-1 { margin-left: 0; }

/* ====================================================================
   SECTION 4 · GALLERY
   ==================================================================== */
.n-gallery {
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(174,230,56,.10) 0%, transparent 55%),
    linear-gradient(180deg, #080C14 0%, #0C1420 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.n-gallery-content { text-align: center; max-width: 720px; margin-bottom: 60px; }
.n-gallery-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1200px;
}
.n-role-card {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 24px;
  border-radius: 22px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  color: var(--nw-text-hi);
  background: linear-gradient(180deg,
              hsl(var(--hue) 65% 55%) 0%,
              hsl(var(--hue) 72% 28%) 100%);
  border: 1px solid hsl(var(--hue) 70% 60% / .5);
  overflow: hidden;
  transition: transform var(--d-normal) var(--ease-out-expo),
              box-shadow var(--d-normal);
  cursor: pointer;
}
.n-role-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; bottom: 30%;
  background: radial-gradient(ellipse at 50% 20%,
              hsl(var(--hue) 85% 70% / .7) 0%,
              transparent 65%);
  pointer-events: none;
}
.n-role-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.6) 100%);
  pointer-events: none;
}
.n-role-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 60px hsl(var(--hue) 70% 40% / .35);
}
.n-role-tag {
  position: relative; z-index: 2;
  align-self: flex-start;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--nw-text-hi);
}
.n-role-name { position: relative; z-index: 2; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.n-role-line { position: relative; z-index: 2; font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.5; }

/* ====================================================================
   SECTION 5 · FOOTER CTA
   ==================================================================== */
.n-footer-cta {
  background:
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(174,230,56,.16) 0%, transparent 60%),
    linear-gradient(180deg, #0C1218 0%, #10161F 100%);
  display: flex; align-items: center; justify-content: center;
  min-height: 80vh;
}
.n-cta-card {
  position: relative;
  max-width: 820px; width: 100%;
  padding: 80px 48px;
  border-radius: 32px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%,
              rgba(174,230,56,.18) 0%, transparent 60%),
    rgba(18, 24, 32, 0.6);
  border: 1px solid var(--nw-line);
  backdrop-filter: blur(16px);
  box-shadow: 0 40px 120px rgba(0,0,0,.5);
  overflow: hidden;
}
.n-cta-card::before {
  content: "";
  position: absolute; top: -1px; left: 60px; right: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--nw-green) 50%, transparent);
}
.n-cta-title {
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: var(--ls-display);
  line-height: var(--lh-tight);
  color: var(--nw-text-hi);
  margin: 0;
}
.n-cta-title em {
  font-style: normal;
  background: linear-gradient(110deg, var(--nw-green) 0%, var(--nw-green-soft) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.n-cta-desc {
  margin: 20px 0 40px;
  font-size: var(--fs-lead);
  color: var(--nw-text-mid);
}

/* ====================================================================
   FOOTER
   ==================================================================== */
.n-footer {
  background: var(--nw-ink-0);
  border-top: 1px solid var(--nw-line);
  padding: 40px var(--pad-x);
}
.n-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.n-footer-left { display: flex; flex-direction: column; gap: 10px; }
.n-footer-tag { color: var(--nw-text-lo); font-size: 13px; margin: 0; }
.n-footer-right {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  font-size: 13px;
}
.n-footer-right a {
  color: var(--nw-text-mid);
  transition: color var(--d-fast);
}
.n-footer-right a:hover { color: var(--nw-green); }
.n-copyright { color: var(--nw-text-lo); }

/* ====================================================================
   ANIMATIONS
   ==================================================================== */
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-8px); }
  75% { transform: translateY(8px); }
}
@keyframes bounce-up {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(8px); }
  75% { transform: translateY(-8px); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.anim-bounce-down { animation: bounce-down 3.2s ease-in-out infinite; }
.anim-bounce-up   { animation: bounce-up 3.2s ease-in-out infinite; }
.anim-bounce      { animation: bounce 3.2s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-4px, 2px); }
  50% { transform: translate(0, 4px); }
  75% { transform: translate(4px, 2px); }
}
@keyframes float-2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-4px, -2px); }
  66% { transform: translate(-2px, -4px); }
}
@keyframes float-3 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(3px, -4px); }
  66% { transform: translate(-3px, -2px); }
}
.anim-float   { animation: float 7s ease-in-out infinite; }
.anim-float-2 { animation: float-2 7s ease-in-out infinite; }
.anim-float-3 { animation: float-3 7s ease-in-out infinite; }

@keyframes halo-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0, -8px); }
}

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (max-width: 900px) {
  :root {
    --fs-h1: 44px;
    --fs-h2: 30px;
    --fs-h3: 22px;
    --fs-lead: 16px;
    --fs-body: 15px;
  }
  .n-nav > a:not(.n-nav-cta) { display: none; }
  .n-header { height: 60px; }

  .n-hero-role { width: 260px; height: 260px; margin-top: 20px; }
  .n-role-figure { width: 220px; height: 220px; }
  .n-role-core { font-size: 34px; }
  .n-role-arrow.prev { left: -10px; }
  .n-role-arrow.next { right: -10px; }

  .n-card-field {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding-top: 100px;
    opacity: 0.35;
  }
  .n-float-card.f-6, .n-float-card.f-7,
  .n-float-card.f-8, .n-float-card.f-9 { display: none; }

  .n-chat {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .n-chat-content { padding-right: 0; text-align: center; }
  .n-chat-stage { height: 480px; }
  .n-bubble.b-1 { right: 10px; max-width: 220px; }
  .n-bubble.b-3 { right: 0; }
  .n-bubble.b-5 { right: 10px; }

  .n-create-stage { height: 380px; }
  .n-trait-card { min-width: 160px; padding: 14px 16px; }
  .n-trait-card.t-1 { left: 0; top: 20px; }
  .n-trait-card.t-2 { right: 0; top: 100px; }
  .n-trait-card.t-3 { left: 10%; top: 200px; }
  .n-trait-card.t-4 { right: 5%; top: 280px; }
  .n-trait-card.t-5 { left: 20%; top: 340px; }

  .n-cta-card { padding: 56px 24px; }

  .n-footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 540px) {
  :root { --pad-x: 20px; --fs-h1: 36px; }
  .n-screen { padding: 100px 20px 60px; min-height: auto; }
  .n-hero { min-height: 100vh; }
  .n-download { flex-direction: column; align-items: stretch; }
  .n-dl-btn { justify-content: center; }
  .n-gallery-rail { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .n-role-card { padding: 16px; }
  .n-role-name { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
