:root {
  --pink: #f06e8c;
  --pink-dark: #e05a78;
  --pink-soft: rgba(240, 110, 140, 0.1);
  --pink-glow: rgba(240, 110, 140, 0.25);
  --blue: #648ceb;
  --blue-soft: rgba(100, 140, 235, 0.1);
  --text: #1a1a1a;
  --text-secondary: #666;
  --text-muted: #999;
  --bg: #fafafa;
  --bg-alt: #f0f0f2;
  --card: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.1);
  --max-width: 1140px;
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: #4a72d4;
}

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.site-nav-brand:hover {
  color: var(--text);
  text-decoration: none;
}

.site-nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.site-nav-links a:hover {
  color: var(--pink);
  text-decoration: none;
}

/* ── Hero ── */
.hero-section {
  background: linear-gradient(135deg, #fff5f7 0%, #fff 40%, #f5f8ff 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 32px 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--pink) 0%, #d45a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-position {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 24px;
}

.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.keyword {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--pink-soft);
  color: var(--pink);
  font-weight: 500;
  border: 1px solid rgba(240, 110, 140, 0.15);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  background: var(--pink);
  color: #fff;
  border: none;
  cursor: default;
  box-shadow: 0 4px 16px var(--pink-glow);
}

.btn-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* Phone mockup */
.hero-preview {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-frame {
  width: 260px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(0, 0, 0, 0.1);
  position: relative;
}

.phone-notch {
  width: 100px;
  height: 24px;
  background: #1a1a1a;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 8px;
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: var(--bg);
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  display: flex;
  flex-direction: column;
}

.phone-status-bar {
  height: 28px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.phone-tab-bar {
  display: flex;
  background: var(--card);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.phone-tab {
  flex: 1;
  text-align: center;
  padding: 8px 4px 10px;
  font-size: 10px;
  color: var(--text-muted);
}

.phone-tab.active {
  color: var(--pink);
  font-weight: 600;
}

.phone-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  margin: 0 auto 4px;
}

.phone-tab.active .phone-tab-dot {
  background: var(--pink);
}

.phone-body {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-card {
  background: var(--card);
  border-radius: 10px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.phone-card-title {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
}

.phone-card-text {
  font-size: 9px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.phone-card-img {
  height: 48px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--pink-soft), var(--blue-soft));
  margin-top: 6px;
}

.phone-record-btn {
  background: var(--pink);
  color: #fff;
  text-align: center;
  padding: 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
}

.hero-deco {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pink-glow) 0%, transparent 70%);
  top: -40px;
  right: -20px;
  pointer-events: none;
}

/* ── Page sections ── */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

.section-header {
  margin-bottom: 40px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--pink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ── Features ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-icon-wrap.pink { background: var(--pink-soft); }
.feature-icon-wrap.blue { background: var(--blue-soft); }
.feature-icon-wrap.green { background: rgba(107, 203, 119, 0.12); }
.feature-icon-wrap.purple { background: rgba(196, 166, 255, 0.15); }

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Tabs showcase ── */
.tab-showcase {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.tab-nav-mock {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tab-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: background 0.15s;
}

.tab-nav-item:last-child {
  border-bottom: none;
}

.tab-nav-item.active {
  background: var(--pink-soft);
  border-left: 3px solid var(--pink);
}

.tab-nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.tab-nav-item.active .tab-nav-icon {
  background: rgba(240, 110, 140, 0.2);
}

.tab-nav-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.tab-nav-text span {
  font-size: 12px;
  color: var(--text-muted);
}

.tab-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tab-detail-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}

.tab-detail-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--pink);
  margin-bottom: 6px;
}

.tab-detail-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Life stages timeline ── */
.stage-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding: 8px 0 16px;
  scrollbar-width: none;
}

.stage-timeline::-webkit-scrollbar {
  display: none;
}

.stage-node {
  flex: 1;
  min-width: 100px;
  text-align: center;
  position: relative;
}

.stage-node::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.stage-node:last-child::before {
  display: none;
}

.stage-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin: 0 auto 10px;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.stage-node span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ── Screenshots ── */
.screenshot-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.screenshot-item {
  text-align: center;
}

.screenshot-phone {
  width: 200px;
  background: #1a1a1a;
  border-radius: 28px;
  padding: 10px;
  box-shadow: var(--shadow-md);
}

.screenshot-phone-inner {
  aspect-ratio: 9 / 19.5;
  border-radius: 20px;
  background: var(--card);
  border: 2px dashed rgba(240, 110, 140, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
}

.screenshot-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── Bottom area ── */
.bottom-area {
  padding: 48px 0 64px;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}

.legal-links a {
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px 48px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-card-text p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.contact-card-text p:first-child {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.back-link {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 28px 32px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 24px 56px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-position {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-keywords {
    justify-content: center;
  }

  .hero-cta {
    align-items: center;
  }

  .hero-preview {
    order: -1;
  }

  .phone-frame {
    width: 220px;
  }

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

  .tab-showcase {
    grid-template-columns: 1fr;
  }

  .tab-detail-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }
}

@media (max-width: 640px) {
  .site-nav-inner {
    padding: 0 16px;
  }

  .site-nav-links {
    display: none;
  }

  .page {
    padding: 0 16px;
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 24px;
  }

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

  .stage-node {
    min-width: 80px;
  }

  .stage-node span {
    font-size: 11px;
  }

  .screenshot-phone {
    width: 160px;
  }

  .legal-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}
