/* ===========================================================
   MooFon Redesign · 2026 Q4 · Light Editorial Paper Style
   =========================================================== */

:root {
  /* Base palette — paper / off-white */
  --color-bg:        #FAFAF7;
  --color-bg-soft:   #F4F2EC;
  --color-bg-card:   #FFFFFF;

  /* Text — deep navy (high contrast, not black) */
  --color-text:      #0A1F3D;
  --color-text-soft: #4B5870;
  --color-text-mute: #8A91A0;

  /* Accent — desaturated moofon blue-green */
  --color-accent:    #5BA3A8;
  --color-accent-2:  #E8A87C;   /* warm sand */
  --color-accent-3:  #C8553D;   /* brick red — sparingly */
  --color-border:    #E5E1D6;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

body {
  font-family: 'Noto Sans TC', 'Inter', -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===========================================================
   Header
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--color-text);
}

.logo-mark {
  font-size: 26px;
  color: var(--color-accent);
  font-weight: 900;
}

.primary-nav {
  display: flex;
  gap: 20px;
  flex: 1;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-soft);
}

.primary-nav a {
  padding: 6px 4px;
  transition: color 0.15s ease;
}

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

.header-actions {
  display: flex;
  gap: 8px;
}

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-primary {
  background: var(--color-text);
  color: #fff;
}

.btn-primary:hover {
  background: #000;
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  border-color: var(--color-text);
}

/* ===========================================================
   Hero (60/40)
   =========================================================== */
.hero {
  padding: 80px 0 0;
  background: var(--color-bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 48px;
  align-items: center;
  min-height: 560px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--color-accent-3);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Noto Serif TC', serif;
  font-weight: 900;
  font-size: clamp(72px, 11vw, 168px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 32px;
  color: var(--color-text);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-soft);
  margin: 0 0 40px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
}

/* Hero right — Cover card */
.cover-card {
  background: var(--color-bg-card);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(10, 31, 61, 0.08);
}

.cover-badge {
  position: absolute;
  margin: 16px 0 0 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--color-text-soft);
  z-index: 1;
}

.cover-art {
  height: 280px;
  background: linear-gradient(135deg, #E8F3F4 0%, #F4E5D4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Light robot (CSS-only, no 3D) */
.moofon-robot {
  width: 140px;
  height: 160px;
  position: relative;
}

.robot-head {
  width: 100px;
  height: 100px;
  background: #fff;
  border: 3px solid var(--color-text);
  border-radius: 24px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 4px 0 var(--color-text);
}

.robot-eye {
  width: 14px;
  height: 14px;
  background: var(--color-text);
  border-radius: 50%;
  position: absolute;
  top: 32px;
}

.robot-eye.left  { left: 22px; }
.robot-eye.right { right: 22px; }

.robot-mouth {
  width: 28px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 3px;
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
}

.robot-body {
  width: 80px;
  height: 50px;
  background: var(--color-accent);
  border: 3px solid var(--color-text);
  border-radius: 12px;
  margin: -10px auto 0;
  position: relative;
  box-shadow: 0 4px 0 var(--color-text);
}

.cover-meta {
  padding: 24px;
}

.cover-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--color-accent-3);
  font-weight: 700;
  margin-bottom: 8px;
}

.cover-title {
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 20px;
}

.cover-stats {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: 'Inter', monospace;
  font-weight: 600;
  font-size: 14px;
}

.stat-num.up {
  color: var(--color-accent);
}

.stat-label {
  font-size: 11px;
  color: var(--color-text-mute);
  letter-spacing: 0.5px;
}

/* Trust bar */
.trust-bar {
  margin-top: 64px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-soft);
}

.trust-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 20px 32px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-soft);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-mark {
  color: var(--color-accent);
  font-weight: 700;
}

.trust-scroll a {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--color-text-mute);
  text-transform: uppercase;
}

/* ===========================================================
   Sections
   =========================================================== */
.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--color-accent-3);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.section-sub {
  font-size: 14px;
  color: var(--color-text-mute);
  margin: 0;
}

/* Departments / Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 40px 32px;
  transition: all 0.2s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-text);
  box-shadow: 0 12px 32px rgba(10, 31, 61, 0.08);
}

.pillar-icon {
  font-size: 36px;
  margin-bottom: 20px;
}

.pillar-title {
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 12px;
}

.pillar-desc {
  font-size: 14px;
  color: var(--color-text-soft);
  margin: 0 0 24px;
  line-height: 1.7;
}

.pillar-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent-3);
  letter-spacing: 0.5px;
}

.pillar-link:hover {
  color: var(--color-text);
}

/* Numbers */
.section-numbers {
  background: var(--color-bg-soft);
}

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

.number-card {
  text-align: center;
  padding: 32px 16px;
}

.number-value {
  font-family: 'Noto Serif TC', serif;
  font-weight: 900;
  font-size: 64px;
  line-height: 1;
  color: var(--color-text);
  margin-bottom: 8px;
}

.number-value span {
  font-size: 32px;
  color: var(--color-accent);
  margin-left: 4px;
}

.number-label {
  font-size: 13px;
  color: var(--color-text-soft);
  letter-spacing: 1px;
}

/* Latest */
.latest-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 480px;
}

.latest-feature {
  grid-row: span 2;
}

.latest-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.latest-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  color: var(--color-text);
  z-index: 0;
}

.latest-cover.cover-coverstory {
  background: linear-gradient(135deg, #E8F3F4 0%, #F4E5D4 100%);
}

.latest-cover.cover-m-series {
  background: linear-gradient(135deg, #F4E5D4 0%, #FAFAF7 100%);
}

.latest-cover.cover-ai {
  background: linear-gradient(135deg, #FAFAF7 0%, #E8F3F4 100%);
}

.latest-cover.cover-crypto {
  background: linear-gradient(135deg, #F4F2EC 0%, #F4E5D4 100%);
}

.latest-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(255,255,255,0.85) 100%);
  z-index: 0;
}

.latest-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--color-accent-3);
  z-index: 2;
}

.latest-card h3, .latest-card h4 {
  position: relative;
  z-index: 1;
  font-family: 'Noto Serif TC', serif;
  margin: 0 0 8px;
}

.latest-card h3 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.latest-card h4 {
  font-size: 18px;
  font-weight: 600;
}

.latest-card p {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: var(--color-text-soft);
  margin: 0;
}

/* CTA Strip */
.section-cta {
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 64px 32px;
}

.cta-strip h2 {
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  font-size: 36px;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.cta-strip p {
  font-size: 16px;
  color: var(--color-text-soft);
  margin: 0;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
  background: var(--color-bg-soft);
  padding: 64px 0 24px;
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--color-text-soft);
  margin-top: 16px;
  max-width: 360px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--color-text);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--color-text-soft);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-text-mute);
  letter-spacing: 0.5px;
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .primary-nav { display: none; }
  .pillars-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .latest-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .latest-feature { grid-column: span 2; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-strip { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .container, .header-inner { padding: 0 16px; }
  .hero { padding: 48px 0 0; }
  .section { padding: 64px 0; }
  .header-actions .btn-ghost { display: none; }
  .numbers-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .number-value { font-size: 44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
