/* ==========================================================================
   NeckUp / 仰止 — Landing Page Styles
   Monument Valley aesthetic · glassmorphism · low-poly mountains
   ========================================================================== */

:root {
  /* Core backgrounds */
  --yz-void: #1A1B2E;
  --yz-dusk: #2D2B55;
  --yz-deep: #14152447;

  /* Accent palette */
  --yz-coral: #FFB5A7;
  --yz-sky: #A9DEF9;
  --yz-lavender: #C9B1FF;
  --yz-mint: #D0F4DE;
  --yz-orange: #FFCB77;

  /* Text */
  --txt-primary: rgba(255, 255, 255, 0.96);
  --txt-secondary: rgba(255, 255, 255, 0.64);
  --txt-tertiary: rgba(255, 255, 255, 0.42);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-bg-strong: rgba(255, 255, 255, 0.085);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-soft: rgba(255, 255, 255, 0.08);

  /* Radius & shadow */
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-glow-coral: 0 10px 40px rgba(255, 181, 167, 0.35);

  --max-w: 1160px;
  --font: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--txt-primary);
  background: var(--yz-void);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* --- Ambient cosmic background --- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 15% -5%, rgba(201, 177, 255, 0.20), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 0%, rgba(169, 222, 249, 0.15), transparent 50%),
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(255, 181, 167, 0.12), transparent 55%),
    linear-gradient(160deg, var(--yz-void) 0%, var(--yz-dusk) 60%, var(--yz-void) 100%);
}
.bg-stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 35% 85%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 90% 55%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 10% 65%, rgba(255,255,255,0.35), transparent);
  background-size: 100% 100%;
  opacity: 0.6;
  pointer-events: none;
}

/* --- Layout helpers --- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yz-lavender);
  margin-bottom: 16px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(26, 27, 46, 0.55);
  border-bottom: 1px solid var(--glass-border-soft);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.brand-name { font-weight: 700; font-size: 1.15rem; color: var(--txt-primary); letter-spacing: 0.01em; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--txt-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--txt-primary); }

.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-right .btn-primary {
  align-self: center;
  height: 34px;
  padding: 0 14px;
}
.nav-right .app-store-badge { gap: 7px; }
.nav-right .app-store-icon { width: 18px; height: 18px; }
.nav-right .app-store-copy { gap: 1px; }
.nav-right .app-store-copy span { font-size: 0.5rem; }
.nav-right .app-store-copy strong { font-size: 0.82rem; }
.lang-switch {
  display: flex;
  align-items: center;
  height: 34px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--glass-bg);
}
.lang-switch a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--txt-secondary);
  transition: all 0.2s ease;
}
.lang-switch a.active { background: var(--yz-lavender); color: #241b3c; }
.lang-switch a:not(.active):hover { color: var(--txt-primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: #000;
  color: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 10px 20px;
}
.btn-appstore { border-radius: 999px; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 42px rgba(0, 0, 0, 0.5); }
.app-store-badge { display: inline-flex; align-items: center; gap: 10px; line-height: 1; color: #fff; }
.btn .app-store-icon { width: 24px; height: 24px; flex-shrink: 0; color: #fff; }
.app-store-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; color: #fff; }
.app-store-copy span { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.01em; }
.app-store-copy strong { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.mobile-download-label { display: none; }
.btn-ghost {
  background: var(--glass-bg);
  color: var(--txt-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { transform: translateY(-3px); background: var(--glass-bg-strong); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn svg { width: 18px; height: 18px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 84px 0 60px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--yz-lavender), var(--yz-sky) 55%, var(--yz-mint));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.16rem;
  color: var(--txt-secondary);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 20px; font-size: 0.84rem; color: var(--txt-tertiary); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 15px; height: 15px; opacity: 0.7; }

/* Hero visual — phone + mountain */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 540px; }
.hero-glow {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,177,255,0.35), transparent 65%);
  filter: blur(20px);
  z-index: 0;
}
.hero-mountain-bg {
  position: absolute;
  bottom: 6%;
  width: 400px;
  z-index: 0;
  opacity: 0.9;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5));
}

/* Phone frame */
.phone {
  position: relative;
  z-index: 2;
  width: 268px;
  aspect-ratio: 1320 / 2868;
  border-radius: 42px;
  padding: 11px;
  background: linear-gradient(160deg, rgba(255,255,255,0.22), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow-soft), inset 0 0 0 1.5px rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  display: block;
}
.phone-notch {
  position: absolute;
  top: 20px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 26px;
  background: #0b0c17;
  border-radius: 999px;
  z-index: 3;
}
.hero-float {
  position: absolute;
  z-index: 4;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: rgba(26,27,46,0.72);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.82rem;
}
.hero-float .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.hero-float .lbl { color: var(--txt-tertiary); font-size: 0.72rem; }
.hero-float .val { font-weight: 700; font-size: 1rem; }
.float-1 { top: 14%; left: -4%; }
.float-2 { bottom: 16%; right: -6%; }

/* ==========================================================================
   Trust / meta strip
   ========================================================================== */
.strip { padding: 30px 0; border-top: 1px solid var(--glass-border-soft); border-bottom: 1px solid var(--glass-border-soft); }
.strip-inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.strip-item { display: flex; flex-direction: column; gap: 3px; min-width: 120px; }
.strip-item .k { font-size: 1.5rem; font-weight: 700; color: var(--txt-primary); }
.strip-item .k .u { font-size: 0.9rem; color: var(--txt-secondary); font-weight: 500; }
.strip-item .v { font-size: 0.84rem; color: var(--txt-tertiary); }

/* ==========================================================================
   Section headers
   ========================================================================== */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 16px;
}
.section-head p { font-size: 1.08rem; color: var(--txt-secondary); }
.pad { padding: 92px 0; }

/* ==========================================================================
   Features grid
   ========================================================================== */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature-card {
  padding: 34px;
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent, var(--yz-lavender)), transparent 70%);
  opacity: 0.14;
  transition: opacity 0.3s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.24); background: var(--glass-bg-strong); }
.feature-card:hover::before { opacity: 0.24; }
.feature-ic {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 22px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
}
.feature-ic svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: 1.32rem; font-weight: 700; margin-bottom: 12px; position: relative; z-index: 1; }
.feature-card p { color: var(--txt-secondary); font-size: 0.98rem; position: relative; z-index: 1; }
.feature-card .tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 12px;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(208, 244, 222, 0.14);
  color: var(--yz-mint);
  position: relative; z-index: 1;
}

/* ==========================================================================
   Showcase / screenshots
   ========================================================================== */
.showcase-scroll {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  overflow-x: visible;
  padding: 12px 24px 30px;
}
.showcase-scroll::-webkit-scrollbar { height: 8px; }
.showcase-scroll::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 999px; }
.shot {
  flex: 0 0 auto;
  width: 244px;
  scroll-snap-align: center;
  text-align: center;
}
.shot-frame {
  width: 244px;
  aspect-ratio: 1320 / 2868;
  border-radius: 36px;
  padding: 9px;
  background: linear-gradient(160deg, rgba(255,255,255,0.20), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}
.shot-frame:hover { transform: translateY(-6px) scale(1.015); }
.shot-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; display: block; }
.shot .cap { font-size: 0.92rem; font-weight: 600; color: var(--txt-primary); }
.shot .sub { font-size: 0.8rem; color: var(--txt-tertiary); margin-top: 2px; }

/* ==========================================================================
   How it works
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  position: relative;
}
.step .num {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(120deg, var(--yz-lavender), var(--yz-sky));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.18rem; margin-bottom: 9px; }
.step p { color: var(--txt-secondary); font-size: 0.95rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--txt-primary);
  font-family: var(--font);
  font-size: 1.04rem;
  font-weight: 600;
  padding: 22px 26px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q .chev { transition: transform 0.3s ease; flex-shrink: 0; color: var(--yz-lavender); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding: 0 26px 22px; color: var(--txt-secondary); font-size: 0.98rem; }
.faq-item.open .faq-a { max-height: 340px; }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.cta-box {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 72px 40px;
  border-radius: 36px;
  background: linear-gradient(150deg, rgba(201,177,255,0.16), rgba(169,222,249,0.10), rgba(255,181,167,0.12));
  border: 1px solid var(--glass-border);
}
.cta-box h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.cta-box p { color: var(--txt-secondary); font-size: 1.1rem; max-width: 520px; margin: 0 auto 30px; }
.cta-app-icon {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 28px;
  box-shadow: 0 8px 32px rgba(201,177,255,0.25);
}
.cta-box > * { position: relative; z-index: 1; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--glass-border-soft); margin-top: 20px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--txt-tertiary); font-size: 0.88rem; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--txt-tertiary); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--txt-secondary); text-decoration: none; font-size: 0.92rem; margin-bottom: 10px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--txt-primary); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--glass-border-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.footer-bottom p, .footer-bottom a { font-size: 0.78rem; color: var(--txt-tertiary); text-decoration: none; }
.footer-bottom a:hover { color: var(--txt-secondary); }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-note { justify-content: center; }
  .hero-visual { min-height: 480px; margin-top: 10px; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .nav-inner { padding: 12px 14px; gap: 10px; }
  .brand { min-width: 0; gap: 9px; }
  .brand-name { font-size: 1rem; }
  .lang-switch { display: none; }
  .nav-right { gap: 0; }
  .nav-right .btn-primary { height: 34px; padding: 0 10px; border-radius: 999px; background: #000; border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.36); }
  .nav-right .btn-primary:hover { transform: none; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.36); }
  .nav-right .app-store-badge { gap: 6px; }
  .nav-right .app-store-icon { width: 17px; height: 17px; }
  .nav-right .app-store-copy { display: flex; }
  .nav-right .app-store-copy span { font-size: 0.46rem; }
  .nav-right .app-store-copy strong { font-size: 0.76rem; }
  .showcase-scroll {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .pad { padding: 64px 0; }
  .hero { padding: 54px 0 40px; }
  .float-1 { left: 0; }
  .float-2 { right: 0; }
  .strip-inner { gap: 18px 30px; }
  .cta-box { padding: 52px 24px; }
}
