/* ================================================================
   Mirror — Product Landing Page
   Aesthetic: "Dawn" — warm morning light, contemplative clarity
   ================================================================ */

/* ── Variables ──────────────────────────────────────────────────── */

:root {
  --bg:             #fffcf8;
  --bg-raised:      #faf3ea;
  --surface:        rgba(200, 165, 130, 0.06);
  --surface-hover:  rgba(200, 165, 130, 0.11);
  --border:         rgba(180, 150, 115, 0.12);
  --border-strong:  rgba(180, 150, 115, 0.22);

  --text:           #2e2118;
  --text-secondary: #8a7560;
  --text-dim:       #c0b0a0;

  --warm:           #e08850;
  --warm-soft:      rgba(224, 136, 80, 0.12);
  --warm-glow:      rgba(224, 136, 80, 0.07);
  --cool:           #52bfa6;
  --cool-soft:      rgba(82, 191, 166, 0.12);
  --mid:            #b28ac6;
  --mid-soft:       rgba(178, 138, 198, 0.12);

  --container:      1080px;
  --radius:         16px;
  --radius-lg:      24px;

  --font-display:   "Georgia", "Noto Serif SC", "Source Han Serif SC", serif;
  --font-body:      -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}


/* ── Reset ─────────────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(224, 136, 80, 0.07), transparent 45%),
    radial-gradient(ellipse at 85% 15%, rgba(82, 191, 166, 0.05), transparent 30%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
button { font: inherit; }


/* ── Layout ────────────────────────────────────────────────────── */

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}


/* ── Navigation ────────────────────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 252, 248, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}

.site-nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 252, 248, 0.92);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 1.1rem;
  background: linear-gradient(145deg, rgba(224, 136, 80, 0.15), rgba(210, 120, 70, 0.15));
  border: 1px solid rgba(224, 136, 80, 0.22);
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

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

.nav-links a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ee9e68, #d8804a);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(220, 128, 74, 0.25);
}


/* ── Buttons ───────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #ee9e68, #d8804a);
  box-shadow: 0 12px 32px rgba(220, 128, 74, 0.20);
}

.btn--primary:hover {
  box-shadow: 0 16px 40px rgba(220, 128, 74, 0.30);
}

.btn--ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-strong);
}

.btn--ghost:hover { border-color: rgba(180, 150, 115, 0.38); }

.btn--lg {
  height: 56px;
  padding: 0 36px;
  font-size: 1rem;
}


/* ── Hero ──────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  min-height: 100dvh;
  padding: 120px 0 80px;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--warm-soft);
  border: 1px solid rgba(224, 136, 80, 0.22);
  color: var(--warm);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warm);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.hero-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

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

.hero-desc {
  margin-top: 24px;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}


/* ── Mirror Orb ────────────────────────────────────────────────── */

.hero-visual {
  position: relative;
  z-index: 1;
}

.orb {
  position: relative;
  width: clamp(260px, 32vw, 420px);
  aspect-ratio: 1;
}

.orb-glow {
  position: absolute;
  inset: -35%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(224, 136, 80, 0.22),
    rgba(178, 138, 198, 0.12),
    rgba(82, 191, 166, 0.22),
    rgba(178, 138, 198, 0.12),
    rgba(224, 136, 80, 0.22)
  );
  filter: blur(70px);
  animation: orb-spin 30s linear infinite;
}

.orb-body {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(224, 136, 80, 0.14);
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.55), transparent 48%),
    conic-gradient(
      from 180deg,
      rgba(224, 136, 80, 0.3),
      rgba(178, 138, 198, 0.16),
      rgba(82, 191, 166, 0.3),
      rgba(178, 138, 198, 0.16),
      rgba(224, 136, 80, 0.3)
    );
  animation: orb-spin 20s linear infinite reverse;
}

.orb-shine {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 38% 32%,
    rgba(255, 255, 255, 0.25),
    transparent 55%
  );
  animation: orb-spin 14s linear infinite;
}

@keyframes orb-spin { to { transform: rotate(360deg); } }


/* ── Section Shared ────────────────────────────────────────────── */

.journey,
.features,
.theory,
.approach,
.faq,
.final-cta {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 48px;
  max-width: 36rem;
}

.section-label {
  display: block;
  margin-bottom: 12px;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-desc {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 1.02rem;
}


/* ── Journey / Phases ──────────────────────────────────────────── */

.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.phase {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s, background 0.3s;
}

.phase:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

/* 色温渐变顶线 */
.phase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 2px;
  border-radius: 0 0 1px 1px;
}

.phase--warm::before { background: linear-gradient(90deg, var(--warm), transparent 80%); }
.phase--mid::before  { background: linear-gradient(90deg, var(--mid), transparent 80%); }
.phase--cool::before { background: linear-gradient(90deg, var(--cool), transparent 80%); }

.phase-num {
  display: block;
  margin-bottom: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.phase--warm .phase-num { color: var(--warm); }
.phase--mid .phase-num  { color: var(--mid); }
.phase--cool .phase-num { color: var(--cool); }

.phase h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.phase p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}


/* ── Features ──────────────────────────────────────────────────── */

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

.feature-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid;
}

.feature-icon--warm {
  background: var(--warm-soft);
  color: var(--warm);
  border-color: rgba(224, 136, 80, 0.22);
}

.feature-icon--mid {
  background: var(--mid-soft);
  color: var(--mid);
  border-color: rgba(178, 138, 198, 0.22);
}

.feature-icon--cool {
  background: var(--cool-soft);
  color: var(--cool);
  border-color: rgba(82, 191, 166, 0.22);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}


/* ── Theory Foundation ─────────────────────────────────────────── */

.theory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.theory-card {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.theory-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.theory-tag {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--warm);
}

.theory-card:nth-child(3n+2) .theory-tag { color: var(--mid); }
.theory-card:nth-child(3n)   .theory-tag { color: var(--cool); }

.theory-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.theory-card p {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.6;
}


/* ── Approach / Engineering ────────────────────────────────────── */

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.approach-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.approach-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.approach-step {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--warm);
}

.approach-card:nth-child(2) .approach-step { color: var(--mid); }
.approach-card:nth-child(3) .approach-step { color: var(--cool); }

.approach-card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.approach-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.7;
}


/* ── FAQ ───────────────────────────────────────────────────────── */

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.faq-item {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover,
.faq-item.is-open {
  border-color: var(--border-strong);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  font-size: 1.02rem;
}

.faq-q::after {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-q::after {
  transform: rotate(-135deg);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a-inner {
  overflow: hidden;
}

.faq-a p {
  padding: 0 24px 22px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.95rem;
}


/* ── Final CTA ─────────────────────────────────────────────────── */

.final-cta { padding-bottom: 60px; }

.cta-card {
  text-align: center;
  padding: 80px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(224, 136, 80, 0.08), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(82, 191, 166, 0.06), transparent 45%),
    var(--surface);
}

.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.cta-card p {
  margin: 16px auto 32px;
  max-width: 26rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
}


/* ── Footer ────────────────────────────────────────────────────── */

.site-footer {
  padding: 48px 0 64px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
}


/* ── Scroll Reveal ─────────────────────────────────────────────── */

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.24s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.36s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.48s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.60s; }


/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 100px 0 60px;
  }

  .hero-visual {
    order: -1;
    justify-self: center;
  }

  .hero-content { text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-badge { margin-left: auto; margin-right: auto; }

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

@media (max-width: 640px) {
  .nav-inner { height: 64px; }
  .nav-links { display: none; }

  .hero-line { font-size: clamp(2.2rem, 9vw, 3.2rem); }

  .hero-layout { padding: 90px 0 48px; }

  .journey,
  .features,
  .theory,
  .approach,
  .faq,
  .final-cta {
    padding: 64px 0;
  }

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

  .phase,
  .feature-card {
    padding: 24px 22px;
  }

  .cta-card {
    padding: 48px 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn { width: 100%; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
