/* ============================================================
   Lumia Launcher — Landing Page
   极简 · 大留白 · 单蓝点缀 · 无装饰
   ============================================================ */

:root {
  --bg: #0d1017;
  --ink: #e9edf4;
  --ink-soft: #8b94a3;
  --ink-dim: #565f6d;
  --blue: #0A84FF;
  --blue-deep: #0060DF;
  --hairline: rgba(255, 255, 255, 0.08);
  --r: 12px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI',
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
i { font-style: normal; }

::selection { background: var(--blue); color: #fff; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}

.nav.scrolled {
  padding: 10px 0;
  background: rgba(13, 16, 23, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-logo-img { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; }

.nav-right { display: flex; align-items: center; gap: 22px; }

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}

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

.nav-login:hover { color: var(--blue); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(10, 132, 255, 0.3);
}

.btn-primary:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(10, 132, 255, 0.4);
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 15px 34px; font-size: 1.02rem; }
.btn-xl { padding: 18px 44px; font-size: 1.12rem; }

/* ============================================================
   HERO — 居中 · 大标题 · 大留白
   ============================================================ */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 90px;
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

.hero-accent { color: var(--blue); }

.hero-desc {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 38px;
}

.hero-cta { margin-bottom: 72px; }

/* ---- launcher window ---- */
.hero-window {
  width: min(620px, 100%);
  animation: float 7s ease-in-out infinite;
}

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

.win {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: #10141d;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

/* screenshot already includes its own title bar */
.win-shot {
  display: block;
  width: 100%;
  aspect-ratio: 1800 / 1202;
  object-fit: cover;
  object-position: top center;
}

/* ============================================================
   FEATURES — 细线分隔列表
   ============================================================ */
.features {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 130px;
}

.feature-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  border-top: 1px solid var(--hairline);
}

.feature-row:last-child { border-bottom: 1px solid var(--hairline); }

.feat-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.feat-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: right;
}

/* ============================================================
   DOWNLOAD — 居中
   ============================================================ */
.download {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 24px 130px;
  gap: 20px;
}

.dl-meta {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.dl-langs {
  font-size: 0.74rem;
  color: var(--ink-dim);
  letter-spacing: 0.03em;
}

/* ============================================================
   FAQ — 细线分隔，无卡片
   ============================================================ */
.faq {
  max-width: 780px;
  margin: 0 auto;
  padding: 10px 24px 130px;
}

.faq-item {
  border-top: 1px solid var(--hairline);
}

.faq-item:last-child { border-bottom: 1px solid var(--hairline); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink-dim);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--blue);
}

.faq-item p {
  padding: 0 4px 20px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 56ch;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 44px 24px 40px;
}

.footer-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.footer-logo-img { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; }

.footer-legal {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.footer-legal a { color: var(--ink-soft); border-bottom: 1px solid var(--hairline); transition: color 0.25s var(--ease); }
.footer-legal a:hover { color: var(--blue); }

.footer-disclaimer {
  font-size: 0.7rem;
  color: var(--ink-dim);
}

/* ============================================================
   AURORA BACKGROUND（ReactBits Aurora 灵感，CSS 克制版）
   ============================================================ */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}

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

.aurora-1 {
  width: 62vw;
  height: 62vw;
  top: -24%;
  left: -12%;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.3), transparent 65%);
  animation: auroraDrift1 20s ease-in-out infinite alternate;
}

.aurora-2 {
  width: 52vw;
  height: 52vw;
  top: 28%;
  right: -18%;
  background: radial-gradient(circle, rgba(0, 96, 223, 0.24), transparent 65%);
  animation: auroraDrift2 26s ease-in-out infinite alternate;
}

.aurora-3 {
  width: 42vw;
  height: 42vw;
  bottom: -22%;
  left: 18%;
  background: radial-gradient(circle, rgba(46, 155, 255, 0.16), transparent 65%);
  animation: auroraDrift3 32s ease-in-out infinite alternate;
}

@keyframes auroraDrift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(70px, 50px) scale(1.12); }
}

@keyframes auroraDrift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, -40px) scale(1.08); }
}

@keyframes auroraDrift3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, -60px) scale(1.15); }
}

/* ============================================================
   BLUR TEXT（ReactBits BlurText 灵感：逐词模糊→清晰）
   ============================================================ */
.blur-word {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease), filter 0.9s var(--ease), transform 0.9s var(--ease);
}

.blur-word.in-view {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* ============================================================
   MAGNET（ReactBits Magnet 灵感：磁吸按钮）
   ============================================================ */
.magnet { transition: transform 0.3s var(--ease); will-change: transform; }
.magnet.moving { transition: none; }

/* ============================================================
   TILT + BORDER GLOW（ReactBits TiltedCard + BorderGlow 灵感）
   ============================================================ */
.hero-window { perspective: 1100px; }

.hero-window .win {
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}

.hero-window.tilting .win { transition: none; }

.hero-window .win::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(10, 132, 255, 0.55), transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
  z-index: 2;
}

.hero-window:hover .win::before { opacity: 1; }

/* ============================================================
   SHINY TEXT（ReactBits ShinyText 灵感：光泽扫过）
   ============================================================ */
.shiny {
  background: linear-gradient(100deg, var(--ink-soft) 40%, #ffffff 50%, var(--ink-soft) 60%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 7s ease-in-out infinite;
}

@keyframes shine {
  0%        { background-position: 140% 0; }
  55%, 100% { background-position: -60% 0; }
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-up.in-view { opacity: 1; transform: none; }

.reveal-fade {
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}

.reveal-fade.in-view { opacity: 1; }

/* staggered feature rows */
.feature-row:nth-child(2) { transition-delay: 0.08s; }
.feature-row:nth-child(3) { transition-delay: 0.16s; }
.feature-row:nth-child(4) { transition-delay: 0.24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .hero { padding: 110px 18px 70px; }
  .hero-title { font-size: clamp(2.2rem, 11vw, 3rem); }
  .hero-cta { margin-bottom: 56px; }
  .features { padding: 20px 18px 90px; }
  .download { padding: 20px 18px 90px; }
  .feature-row { flex-direction: column; gap: 6px; }
  .feat-desc { text-align: left; }
  .hero-window { width: 100%; }
}

@media (max-width: 380px) {
  .btn-xl { padding: 16px 34px; font-size: 1rem; }
  .nav-right { gap: 14px; }
}

/* ============================================================
   NAV AUTH STATE
   ============================================================ */
.nav-user {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

/* ============================================================
   AUTH MODAL — 极简表单
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 13, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-box {
  position: relative;
  width: min(400px, 100%);
  background: #141924;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 30px 30px 26px;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.35s var(--ease);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink-dim);
  transition: color 0.25s var(--ease);
}

.auth-close:hover { color: var(--ink); }

.auth-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.auth-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--hairline);
  margin: 14px 0 6px;
}

.auth-tab {
  padding: 10px 2px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.auth-tab:hover { color: var(--ink); }

.auth-tab.active {
  color: var(--ink);
  border-bottom-color: var(--blue);
}

.auth-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 14px 0 6px;
}

.auth-form input {
  width: 100%;
  padding: 11px 14px;
  background: #0d1017;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s var(--ease);
}

.auth-form input::placeholder { color: var(--ink-dim); }

.auth-form input:focus { border-color: var(--blue); }

.code-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.code-row input { flex: 1; }

.code-btn {
  flex-shrink: 0;
  padding: 9px 14px;
  font-size: 0.82rem;
}

.auth-msg {
  min-height: 1.4em;
  font-size: 0.8rem;
  color: #ff5f57;
  margin: 10px 0 4px;
}

.btn-block {
  width: 100%;
  padding: 13px;
  margin-top: 6px;
}

.auth-note {
  margin-top: 16px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--ink-dim);
}

/* ============================================================
   DISABLED DOWNLOAD + BETA APPLICATION
   ============================================================ */
.btn-disabled {
  background: #232936;
  color: var(--ink-dim);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-outline:hover {
  background: rgba(10, 132, 255, 0.12);
  transform: translateY(-1px);
}

.dl-note {
  margin-top: 8px;
  font-size: 0.76rem;
  color: var(--ink-dim);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-up { opacity: 1; transform: none; }
}