/* ============================================================
   Personal Brand — Miro Design System
   Roobert PRO via Noto Sans fallback
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,500;0,600&display=swap');

/* ----- Design Tokens ----- */
:root {
  /* Brand & Accent */
  --color-primary: #1c1c1e;
  --color-on-primary: #ffffff;
  --color-brand-yellow: #ffd02f;
  --color-brand-yellow-deep: #fcb900;
  --color-yellow-light: #fff4c4;
  --color-yellow-dark: #746019;
  --color-brand-blue: #4262ff;
  --color-blue-450: #5b76fe;
  --color-blue-pressed: #2a41b6;
  --color-brand-coral: #ff9999;
  --color-coral-light: #ffc6c6;
  --color-coral-dark: #600000;
  --color-brand-rose: #ffd8f4;
  --color-rose-light: #fde0f0;
  --color-brand-pink: #fde0f0;
  --color-brand-teal: #0fbcb0;
  --color-teal-light: #c3faf5;
  --color-moss-dark: #187574;
  --color-brand-orange-light: #ffe6cd;
  --color-brand-red: #fbd4d4;
  --color-brand-red-dark: #e3c5c5;
  --color-success-accent: #00b473;

  /* Surface */
  --color-canvas: #ffffff;
  --color-surface: #f7f8fa;
  --color-surface-soft: #fafbfc;
  --color-surface-yellow: #fff8e0;
  --color-surface-pricing-featured: #f5f3ff;

  /* Hairlines */
  --color-hairline: #e0e2e8;
  --color-hairline-soft: #eef0f3;
  --color-hairline-strong: #c7cad5;

  /* Text */
  --color-ink-deep: #050038;
  --color-ink: #1c1c1e;
  --color-charcoal: #2c2c34;
  --color-slate: #555a6a;
  --color-steel: #6b6f7e;
  --color-stone: #8e91a0;
  --color-muted: #a5a8b5;

  /* On Dark */
  --color-on-dark: #ffffff;
  --color-on-dark-muted: #a5a8b5;
  --color-footer-bg: #1c1c1e;

  /* Font Stacks */
  --font-display: 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Typography Scale */
  --text-hero-display-size: 80px;
  --text-hero-display-weight: 500;
  --text-hero-display-line: 1.05;
  --text-hero-display-spacing: -2px;

  --text-heading-1-size: 48px;
  --text-heading-1-weight: 500;
  --text-heading-1-line: 1.15;
  --text-heading-1-spacing: -1px;

  --text-heading-2-size: 36px;
  --text-heading-2-weight: 500;
  --text-heading-2-line: 1.20;
  --text-heading-2-spacing: -0.5px;

  --text-heading-3-size: 28px;
  --text-heading-3-weight: 500;
  --text-heading-3-line: 1.25;
  --text-heading-3-spacing: 0;

  --text-heading-4-size: 22px;
  --text-heading-4-weight: 500;
  --text-heading-4-line: 1.30;

  --text-heading-5-size: 18px;
  --text-heading-5-weight: 500;
  --text-heading-5-line: 1.40;

  --text-subtitle-size: 18px;
  --text-subtitle-weight: 400;
  --text-subtitle-line: 1.50;

  --text-body-md-size: 16px;
  --text-body-md-weight: 400;
  --text-body-md-line: 1.50;

  --text-body-sm-size: 14px;
  --text-body-sm-weight: 400;
  --text-body-sm-line: 1.50;

  --text-caption-size: 13px;
  --text-caption-weight: 400;
  --text-caption-line: 1.40;

  --text-caption-bold-size: 13px;
  --text-caption-bold-weight: 600;
  --text-caption-bold-line: 1.40;

  --text-micro-size: 12px;
  --text-micro-weight: 500;
  --text-micro-line: 1.40;

  --text-stat-display-size: 64px;
  --text-stat-display-weight: 500;
  --text-stat-display-line: 1.10;
  --text-stat-display-spacing: -1.5px;

  --text-button-size: 14px;
  --text-button-weight: 500;
  --text-button-line: 1.30;

  /* Spacing Scale */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 20px;
  --space-xl: 24px;
  --space-xxl: 32px;
  --space-xxxl: 40px;
  --space-section-sm: 48px;
  --space-section: 64px;
  --space-section-lg: 96px;
  --space-hero: 120px;

  /* Border Radius */
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-xxl: 20px;
  --rounded-xxxl: 28px;
  --rounded-feature: 32px;
  --rounded-full: 9999px;

  /* Shadows */
  --shadow-flat: none;
  --shadow-subtle: 0px 1px 2px 0px rgba(5, 0, 56, 0.04);
  --shadow-card: 0px 4px 12px 0px rgba(5, 0, 56, 0.06);
  --shadow-mockup: 0px 12px 32px -4px rgba(5, 0, 56, 0.08);
  --shadow-modal: 0px 16px 48px -8px rgba(5, 0, 56, 0.12);

  /* Layout */
  --max-width: 1280px;
  --gutter: 32px;
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body-md-size);
  font-weight: var(--text-body-md-weight);
  line-height: var(--text-body-md-line);
  color: var(--color-ink);
  background: var(--color-canvas);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ----- Container ----- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   Components
   ============================================================ */

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--text-button-size);
  font-weight: var(--text-button-weight);
  line-height: var(--text-button-line);
  padding: 12px 24px;
  border: none;
  border-radius: var(--rounded-full);
  cursor: pointer;
  transition: background-color 200ms ease, transform 200ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.btn-primary:hover {
  background: var(--color-charcoal);
}

.btn-secondary {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-hairline-strong);
}
.btn-secondary:hover {
  background: var(--color-surface);
}

.btn-yellow {
  background: var(--color-brand-yellow);
  color: var(--color-ink);
}
.btn-yellow:hover {
  background: var(--color-brand-yellow-deep);
}

.btn-on-dark {
  background: var(--color-on-dark);
  color: var(--color-primary);
}
.btn-on-dark:hover {
  background: var(--color-surface);
}

/* ----- Badges ----- */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-caption-bold-size);
  font-weight: var(--text-caption-bold-weight);
  padding: 4px 10px;
  border-radius: var(--rounded-full);
}

.badge-yellow {
  background: var(--color-surface-yellow);
  color: var(--color-yellow-dark);
}

.badge-coral {
  background: var(--color-coral-light);
  color: var(--color-coral-dark);
}

.badge-teal {
  background: var(--color-teal-light);
  color: var(--color-moss-dark);
}

.badge-purple {
  background: var(--color-surface-pricing-featured);
  color: var(--color-brand-blue);
}

/* ----- Cards ----- */
.card {
  border: 1px solid var(--color-hairline-soft);
  border-radius: var(--rounded-xl);
  padding: var(--space-xl);
  background: var(--color-canvas);
}

.card-feature {
  border-radius: var(--rounded-xxxl);
  padding: var(--space-xxl);
}

.card-feature-yellow {
  background: var(--color-brand-yellow);
  color: var(--color-ink);
}

.card-feature-coral {
  background: var(--color-coral-light);
  color: var(--color-ink);
}

.card-feature-teal {
  background: var(--color-teal-light);
  color: var(--color-ink);
}

.card-feature-rose {
  background: var(--color-rose-light);
  color: var(--color-ink);
}

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-hairline-soft);
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: var(--text-heading-5-size);
  font-weight: var(--text-heading-5-weight);
  color: var(--color-ink);
}

.nav-brand-dot {
  width: 10px;
  height: 10px;
  background: var(--color-brand-yellow);
  border-radius: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xxl);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-body-sm-size);
  color: var(--color-steel);
  transition: color 200ms ease;
}
.nav-links a:hover {
  color: var(--color-ink);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 1px;
  transition: transform 200ms ease, opacity 200ms ease;
}

/* Mobile nav open */
.nav-links.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-canvas);
  padding: var(--space-xl) var(--gutter);
  border-bottom: 1px solid var(--color-hairline-soft);
  box-shadow: var(--shadow-card);
  gap: var(--space-md);
}

.nav-links.is-open a {
  font-size: var(--text-body-md-size);
  color: var(--color-ink);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: calc(var(--nav-height) + var(--space-hero)) 0 var(--space-section-lg);
  text-align: center;
  background: var(--color-canvas);
}

.hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--rounded-full);
  object-fit: cover;
  margin: 0 auto var(--space-xxl);
  box-shadow: var(--shadow-mockup);
}

.hero-tagline {
  display: inline-block;
  font-size: var(--text-caption-bold-size);
  font-weight: var(--text-caption-bold-weight);
  color: var(--color-slate);
  margin-bottom: var(--space-lg);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero-display-size);
  font-weight: var(--text-hero-display-weight);
  line-height: var(--text-hero-display-line);
  letter-spacing: var(--text-hero-display-spacing);
  color: var(--color-ink);
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: var(--text-subtitle-size);
  font-weight: var(--text-subtitle-weight);
  line-height: var(--text-subtitle-line);
  color: var(--color-slate);
  max-width: 560px;
  margin: 0 auto var(--space-xxl);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

/* ============================================================
   Sections
   ============================================================ */

.section {
  padding: var(--space-section-lg) 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-section);
}

.section-label {
  display: inline-block;
  margin-bottom: var(--space-md);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-heading-2-size);
  font-weight: var(--text-heading-2-weight);
  line-height: var(--text-heading-2-line);
  letter-spacing: var(--text-heading-2-spacing);
  color: var(--color-ink);
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: var(--text-subtitle-size);
  line-height: var(--text-subtitle-line);
  color: var(--color-steel);
}

/* ----- Feature Cards Grid ----- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  border-radius: var(--rounded-xxxl);
  padding: var(--space-xxl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feature-card .card-icon {
  font-size: 32px;
  margin-bottom: var(--space-xs);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-heading-4-size);
  font-weight: var(--text-heading-4-weight);
  line-height: var(--text-heading-4-line);
}

.feature-card p {
  font-size: var(--text-body-sm-size);
  line-height: var(--text-body-sm-line);
  opacity: 0.85;
}

.feature-card .card-meta {
  font-size: var(--text-caption-size);
  opacity: 0.65;
}

.feature-card.yellow {
  background: var(--color-brand-yellow);
  color: var(--color-ink);
}

.feature-card.coral {
  background: var(--color-coral-light);
  color: var(--color-ink);
}

.feature-card.teal {
  background: var(--color-teal-light);
  color: var(--color-ink);
}

/* ============================================================
   Quote / Insight Section
   ============================================================ */

.insight-section {
  background: var(--color-surface);
  padding: var(--space-section-lg) 0;
}

.insight-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xxl);
}

.insight-item {
  text-align: left;
}

.insight-marker {
  display: inline-block;
  width: 24px;
  height: 4px;
  background: var(--color-brand-yellow);
  border-radius: var(--rounded-full);
  margin-bottom: var(--space-lg);
}

.insight-item p {
  font-family: var(--font-display);
  font-size: var(--text-heading-5-size);
  font-weight: var(--text-heading-5-weight);
  line-height: var(--text-heading-5-line);
  color: var(--color-ink);
}

/* ============================================================
   About Section (回南天)
   ============================================================ */

.section-about {
  padding: 0 0 var(--space-section);
}

.section-alt {
  background: var(--color-surface-soft);
}

.about-block {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-xxl) 0;
  border-top: 1px solid var(--color-hairline-soft);
  border-bottom: 1px solid var(--color-hairline-soft);
}

.about-text {
  font-size: var(--text-body-md-size);
  line-height: var(--text-body-md-line);
  color: var(--color-slate);
  margin: var(--space-md) 0;
}

.about-wechat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: var(--text-caption-size);
  color: var(--color-stone);
}

.about-wechat-label {
  color: var(--color-muted);
}

.about-wechat-name {
  font-weight: 600;
  color: var(--color-ink);
}

/* ============================================================
   Timeline Cards (Brand Experience)
   ============================================================ */

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.timeline-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-xl);
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline-soft);
  border-radius: var(--rounded-xl);
}

.timeline-year {
  font-size: var(--text-caption-size);
  font-weight: 600;
  color: var(--color-brand-blue);
  letter-spacing: 0.5px;
}

.timeline-body h4 {
  font-family: var(--font-display);
  font-size: var(--text-body-md-size);
  font-weight: 500;
  line-height: var(--text-body-md-line);
  color: var(--color-ink);
  margin-bottom: var(--space-xxs);
}

.timeline-body p {
  font-size: var(--text-body-sm-size);
  line-height: var(--text-body-sm-line);
  color: var(--color-steel);
}

/* ============================================================
   CTA Banner
   ============================================================ */

.cta-banner {
  background: var(--color-primary);
  border-radius: var(--rounded-feature);
  padding: var(--space-section) var(--space-xxl);
  text-align: center;
  margin: 0 var(--gutter);
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: var(--text-heading-2-size);
  font-weight: var(--text-heading-2-weight);
  line-height: var(--text-heading-2-line);
  letter-spacing: var(--text-heading-2-spacing);
  color: var(--color-on-dark);
  margin-bottom: var(--space-md);
}

.cta-banner p {
  font-size: var(--text-subtitle-size);
  line-height: var(--text-subtitle-line);
  color: var(--color-on-dark-muted);
  max-width: 480px;
  margin: 0 auto var(--space-xxl);
}

.contact-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  max-width: 520px;
  margin: 0 auto;
}

.contact-info {
  text-align: center;
}

.contact-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.qr-img {
  width: 120px;
  height: 120px;
  border-radius: var(--rounded-md);
  background: var(--color-canvas);
  object-fit: contain;
}

.qr-label {
  font-size: var(--text-caption-size);
  color: var(--color-on-dark-muted);
}

/* Contact email inside banner */
.cta-banner .contact-email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--rounded-full);
  color: var(--color-on-dark);
  font-size: var(--text-body-sm-size);
  transition: background 200ms ease;
  margin-bottom: var(--space-sm);
}
.cta-banner .contact-email:hover {
  background: rgba(255, 255, 255, 0.14);
}

.cta-banner .contact-note {
  font-size: var(--text-caption-size);
  color: var(--color-on-dark-muted);
  margin: 0;
  max-width: none;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--color-footer-bg);
  padding: var(--space-section) 0;
  color: var(--color-on-dark);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-body-sm-size);
  color: var(--color-on-dark-muted);
}

.footer-brand-dot {
  width: 8px;
  height: 8px;
  background: var(--color-brand-yellow);
  border-radius: 2px;
}

.footer-right {
  font-size: var(--text-caption-size);
  color: var(--color-on-dark-muted);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  :root {
    --text-hero-display-size: 64px;
    --text-hero-display-spacing: -1.5px;
    --text-heading-2-size: 32px;
  }

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

  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {
  :root {
    --text-hero-display-size: 48px;
    --text-hero-display-spacing: -1px;
    --text-heading-2-size: 28px;
    --text-heading-2-spacing: 0;
    --text-subtitle-size: 16px;
  }

  .feature-grid,
  .insight-list,
  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    gap: var(--space-md);
  }

  .hero {
    padding-top: calc(var(--nav-height) + var(--space-section));
    padding-bottom: var(--space-section);
  }

  .hero-avatar {
    width: 96px;
    height: 96px;
  }

  .cta-banner {
    margin: 0 var(--space-md);
    padding: var(--space-xxl) var(--space-xl);
    border-radius: var(--rounded-xxl);
  }

  .cta-banner h2 {
    font-size: var(--text-heading-3-size);
    line-height: var(--text-heading-3-line);
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --text-hero-display-size: 36px;
    --text-hero-display-spacing: -0.5px;
    --space-hero: 64px;
    --space-section-lg: 48px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .feature-card {
    padding: var(--space-xl);
  }

  .insight-item p {
    font-size: var(--text-body-md-size);
    font-weight: var(--text-body-md-weight);
    line-height: var(--text-body-md-line);
  }
}
