/* ============================================================
   Balance Life — Shared Stylesheet
   life.by-wave.cn
   ============================================================ */

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

:root {
  --black: #0a0a0a;
  --white: #f8f8f6;
  --gray-100: #e8e8e4;
  --gray-200: #c4c4be;
  --gray-500: #6b6b66;
  --gray-700: #2e2e2c;
  --gray-800: #222220;
  --gray-850: #1a1a18;
  --cyan: #00e5cc;
  --cyan-dim: #00b8a4;
  --cyan-glow: rgba(0, 229, 204, 0.12);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 10, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: -0.02em; color: var(--white); text-decoration: none;
}

.logo-icon {
  width: 32px; height: 32px; background: var(--black);
  border-radius: 8px; border: 1.5px solid var(--cyan-dim);
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 20px; height: 20px; }

.nav-links {
  display: flex; gap: 36px; list-style: none;
}
.nav-links a {
  font-size: 14px; color: var(--gray-200); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: transparent; border: 1px solid rgba(0, 229, 204, 0.5);
  color: var(--cyan); padding: 8px 20px; border-radius: 100px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.25s; text-decoration: none;
}
.nav-cta:hover { background: var(--cyan-glow); border-color: var(--cyan); }

.nav-back {
  font-size: 13px; color: var(--gray-500); text-decoration: none;
  display: flex; align-items: center; gap: 6px; transition: color 0.2s;
}
.nav-back:hover { color: var(--white); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  position: relative; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(0, 229, 204, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0, 229, 204, 0.08); border: 1px solid rgba(0, 229, 204, 0.25);
  border-radius: 100px; padding: 6px 16px; font-size: 13px; color: var(--cyan);
  letter-spacing: 0.04em; margin-bottom: 32px; position: relative; z-index: 1;
}
.hero-badge span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
  display: inline-block; animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }

.hero h1 {
  font-family: var(--font-display); font-size: clamp(48px, 8vw, 96px);
  font-weight: 800; line-height: 0.95; letter-spacing: -0.04em;
  color: var(--white); margin-bottom: 24px; position: relative; z-index: 1;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #00e5cc 0%, #0099ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-sub {
  max-width: 520px; font-size: 18px; color: var(--gray-200); line-height: 1.7;
  margin-bottom: 48px; position: relative; z-index: 1;
}

.hero-actions {
  display: flex; gap: 16px; align-items: center;
  position: relative; z-index: 1; flex-wrap: wrap; justify-content: center;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--black); padding: 14px 28px;
  border-radius: 100px; font-family: var(--font-body); font-size: 15px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer; transition: all 0.25s;
}
.btn-primary:hover { background: var(--gray-100); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--gray-200); padding: 14px 28px;
  border-radius: 100px; font-family: var(--font-body); font-size: 15px; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.12); text-decoration: none; cursor: pointer; transition: all 0.25s;
}
.btn-secondary:hover { color: var(--white); border-color: rgba(255,255,255,0.3); }

/* ── HERO MOCKUP ─────────────────────────────────────────── */
.hero-mockup {
  margin-top: 72px; position: relative; z-index: 1; width: 100%; max-width: 900px;
}
.mockup-frame {
  background: var(--gray-800); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 20px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}
.mockup-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-screen {
  background: var(--black); border-radius: 12px; padding: 28px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px;
}
.stat-card {
  background: var(--gray-800); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 18px;
}
.stat-label { font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.stat-value { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--white); }
.stat-change { font-size: 12px; color: var(--cyan); margin-top: 4px; }
.ring-card {
  background: var(--gray-800); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring-card svg { width: 80px; height: 80px; }

/* ── SECTIONS ────────────────────────────────────────────── */
section { padding: 100px 24px; }

.section-label {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.03em;
  color: var(--white); margin-bottom: 16px;
}
.section-sub { font-size: 17px; color: var(--gray-200); max-width: 480px; line-height: 1.7; }
.container { max-width: 1100px; margin: 0 auto; }

/* ── FEATURES ────────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  margin-top: 64px; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.feature-item {
  background: var(--gray-800); padding: 36px 32px; transition: background 0.2s;
}
.feature-item:hover { background: #1e1e1c; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--cyan-glow); border: 1px solid rgba(0,229,204,0.2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.feature-desc { font-size: 14px; color: var(--gray-500); line-height: 1.7; }

/* ── BALANCE SECTION ─────────────────────────────────────── */
.balance-section {
  background: var(--gray-800);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.balance-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.balance-visual {
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.balance-visual svg { width: 100%; max-width: 320px; }

/* ── DOWNLOAD ────────────────────────────────────────────── */
.download-section { text-align: center; }
.download-section .section-sub { margin: 0 auto 48px; }
.store-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--gray-800); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 14px 24px; text-decoration: none; color: var(--white); transition: all 0.25s;
}
.store-btn:hover { border-color: rgba(0,229,204,0.4); background: rgba(0,229,204,0.04); }
.store-btn svg { width: 28px; height: 28px; }
.store-btn-text { text-align: left; }
.store-btn-sub { font-size: 11px; color: var(--gray-500); display: block; }
.store-btn-name { font-family: var(--font-display); font-size: 16px; font-weight: 600; }

/* ── PAGE HERO (inner pages) ─────────────────────────────── */
.page-hero {
  padding: 140px 24px 72px; text-align: center; position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 0%, rgba(0,229,204,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .tag {
  display: inline-block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 20px; position: relative; z-index: 1;
}
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(36px, 6vw, 64px);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.04em;
  color: var(--white); margin-bottom: 16px; position: relative; z-index: 1;
}
.page-hero p { font-size: 15px; color: var(--gray-500); position: relative; z-index: 1; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.foot-logo { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--gray-200); }
.foot-center { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--gray-500); }
.foot-center a { color: var(--gray-500); text-decoration: none; transition: color 0.2s; }
.foot-center a:hover { color: var(--white); }
.foot-right { font-size: 13px; color: var(--gray-500); }

/* ── SCROLL ANIMATIONS ───────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .balance-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .mockup-screen { grid-template-columns: 1fr 1fr; }
  footer { flex-direction: column; gap: 12px; text-align: center; padding: 32px 20px; }
  section { padding: 72px 20px; }
  .page-hero { padding: 120px 20px 48px; }
  .balance-visual { padding: 20px; }
}
