:root {
  --yellow: #ffe033;
  --yellow-deep: #f5c518;
  --yellow-soft: #fff6b8;
  --ink: #121212;
  --muted: #6b7280;
  --line: rgba(18, 18, 18, 0.08);
  --pink: #ff6b9d;
  --blue: #3db8ff;
  --bg: #fffdf5;
  --surface: #ffffff;
  --radius: 24px;
  --shadow: 0 20px 50px rgba(245, 197, 24, 0.18);
  --font-display: "ZCOOL KuaiLe", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Ambient background */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 224, 51, 0.55), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 5%, rgba(255, 107, 157, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 35% at 70% 80%, rgba(61, 184, 255, 0.12), transparent 55%),
    linear-gradient(180deg, #fff9e6 0%, #fffdf5 35%, #ffffff 100%);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255, 253, 245, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(18, 18, 18, 0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  min-height: 64px;
  gap: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 650;
  font-size: 0.98rem;
  box-shadow: 0 6px 16px rgba(245, 197, 24, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.brand-text {
  background: linear-gradient(120deg, #171717 20%, #8a6d00 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(245, 197, 24, 0.35);
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(245, 197, 24, 0.45);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Hero */
.hero {
  padding: 2.5rem 0 4rem;
  min-height: min(92vh, 880px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  animation: rise 0.8s ease both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 224, 51, 0.35);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow-deep);
  box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.25);
}

.hero-brand {
  font-family: var(--font-body);
  font-size: clamp(2.8rem, 6.5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  background: linear-gradient(115deg, #121212 0%, #2a2a2a 42%, #c9a227 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}

.hero-brand::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.08em;
  width: 42%;
  height: 0.12em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), rgba(255, 194, 214, 0.65));
  opacity: 0.85;
}

.hero-title {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.9rem;
  max-width: 18em;
}

.hero-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 32em;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.55rem;
  min-height: 2.95rem;
  border-radius: 999px;
  font-size: 1.125rem;
  font-weight: 650;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 28px rgba(18, 18, 18, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(18, 18, 18, 0.22);
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--yellow-soft);
  transform: translateY(-2px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-meta strong {
  color: var(--ink);
  font-weight: 700;
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  animation: float-in 1s 0.15s ease both;
}

.phone {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 9 / 19.2;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2a2a, #111);
  box-shadow:
    var(--shadow),
    0 40px 80px rgba(18, 18, 18, 0.2);
  animation: float 5.5s ease-in-out infinite;
}

.phone::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #111;
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-screen .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  will-change: opacity;
}

.hero-screen .hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.glow-ring {
  position: absolute;
  inset: -18% -25%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 51, 0.45) 0%, transparent 65%);
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #9a7b00;
  background: rgba(255, 224, 51, 0.35);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
}

/* Features */
.features {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.7), transparent);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature {
  padding: 1.4rem 1.2rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(245, 197, 24, 0.15);
  border-color: rgba(245, 197, 24, 0.45);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--ink);
}

.feature:nth-child(1) .feature-icon { background: rgba(61, 184, 255, 0.22); }
.feature:nth-child(2) .feature-icon { background: rgba(255, 107, 157, 0.2); }
.feature:nth-child(3) .feature-icon { background: rgba(52, 211, 153, 0.22); }
.feature:nth-child(4) .feature-icon { background: rgba(167, 139, 250, 0.22); }

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.feature p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Hero visual stack */
.hero-phone {
  position: relative;
  z-index: 2;
}

.hero-stack {
  position: absolute;
  inset: 8% auto auto 52%;
  width: min(42%, 150px);
  z-index: 1;
  pointer-events: none;
}

.hero-stack img {
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(18, 18, 18, 0.18);
  border: 3px solid #fff;
  margin-bottom: 0.85rem;
  opacity: 0.92;
  transform: rotate(6deg);
}

.hero-stack img:last-child {
  transform: rotate(-4deg) translateX(-18px);
  opacity: 0.78;
}

/* Gallery */
.gallery {
  padding: 1.5rem;
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 224, 51, 0.22), rgba(255, 255, 255, 0.85) 42%, rgba(255, 194, 214, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.gallery-tab {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.gallery-tab:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.gallery-tab.is-active {
  background: var(--yellow);
  color: var(--ink);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(245, 197, 24, 0.35);
}

.gallery-stage {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.gallery-copy h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  margin-bottom: 0.7rem;
}

.gallery-copy p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.gallery-points {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.gallery-points li {
  position: relative;
  padding-left: 1.2rem;
  color: #374151;
  font-size: 0.95rem;
}

.gallery-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--yellow-deep);
}

.gallery-phone {
  width: min(100%, 280px);
  margin-inline: auto;
  animation: none;
}

/* Scenes */
#scenes {
  padding-top: 2rem;
}

.scene {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.scene:last-child {
  margin-bottom: 0;
}

.scene-reverse .scene-copy {
  order: 2;
}

.scene-copy h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 0.55rem 0 0.75rem;
}

.scene-copy > p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.scene-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.scene-list li {
  padding-left: 1.15rem;
  position: relative;
  color: #374151;
  font-size: 0.95rem;
}

.scene-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--pink);
}

.scene:nth-child(odd) .scene-list li::before {
  background: var(--blue);
}

.scene-shot {
  border-radius: 28px;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 24px 48px rgba(18, 18, 18, 0.12);
  background: #f3f4f6;
  max-width: 360px;
  margin-inline: auto;
}

.scene-shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}

.scene-shot-dark {
  background: #0b1026;
  box-shadow: 0 24px 48px rgba(11, 16, 38, 0.35);
}

/* Safety / Google review friendly */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.safety-item {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.safety-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.safety-item p {
  color: var(--muted);
  font-size: 0.92rem;
}

.safety-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--yellow-deep);
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* CTA band */
.cta {
  padding-top: 2rem;
  padding-bottom: 5rem;
}

.cta-box {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  border-radius: 36px;
  background:
    linear-gradient(145deg, #ffe033 0%, #ffd14a 40%, #ffc2d6 100%);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta-box::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -40px;
  bottom: -60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.cta-box h2 {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.65rem;
  position: relative;
  z-index: 1;
  background: linear-gradient(120deg, #171717 10%, #5c4a00 55%, #8a4a62 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-box p {
  color: rgba(18, 18, 18, 0.72);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.cta-box .hero-actions {
  justify-content: center;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.cta-box .btn-primary,
.cta-box .btn-secondary {
  min-width: 13.5rem;
  min-height: 3.6rem;
  padding: 1.1rem 2.4rem;
  border-radius: 14px;
  font-size: 1.25rem;
  gap: 0.55rem;
}

.cta-box .btn-primary svg,
.cta-box .btn-secondary svg {
  flex-shrink: 0;
}

/* Footer */
.footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h4 {
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.footer p,
.footer a {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

/* Legal pages */
.legal-page {
  padding: 2.5rem 0 4rem;
}

.legal-card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.legal-card h1 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.legal-card h2 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.6rem;
}

.legal-card p,
.legal-card li {
  color: #374151;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.legal-card ul {
  padding-left: 1.2rem;
  margin-bottom: 0.75rem;
}

/* Animations */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(36px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .gallery-stage,
  .scene,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .safety-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 1.5rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-stack {
    display: none;
  }

  .phone {
    width: min(100%, 240px);
  }

  .scene-reverse .scene-copy {
    order: 0;
  }

  .scene-shot {
    max-width: 280px;
  }

  .gallery-phone {
    order: -1;
  }
}

.legal-nav {
  display: flex;
}

@media (max-width: 720px) {
  .legal-nav {
    display: flex;
    gap: 0.5rem;
    position: static;
    inset: auto;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

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

  .legal-nav .nav-cta {
    margin-top: 0;
    width: auto;
  }

  .nav-links {
    position: fixed;
    inset: 64px 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(18, 18, 18, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 1rem;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: var(--yellow-soft);
  }

  .nav-cta {
    margin-left: auto;
    padding: 0.5rem 0.95rem;
    font-size: 0.9rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .hero-brand {
    font-size: 2.6rem;
  }

  .footer-grid {
    gap: 1.5rem;
  }

  .gallery {
    padding: 1rem;
  }

  .gallery-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .gallery-tabs::-webkit-scrollbar {
    display: none;
  }

  .gallery-tab {
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
