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

:root {
  --black: #0a0a0a;
  --white: #f8f6f2;
  --accent: #c8a96e;
  --accent2: #8b6fae;
  --soft: #1e1e1e;
  --mid: #3a3a3a;
  --muted: #888;
  --text: #e8e4df;
}

html, body {
  width: 100%; height: 100%;
  background: var(--black);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

/* ── SLIDE ENGINE ── */
.deck { width: 100vw; height: 100vh; position: relative; }

.slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 60px 80px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s ease;
}
.slide.active { opacity: 1; pointer-events: all; }

/* ── NAV ── */
.nav {
  position: fixed; bottom: 36px; right: 48px;
  display: flex; align-items: center; gap: 18px;
  z-index: 999;
}
.nav button {
  background: transparent; border: 1px solid var(--mid);
  color: var(--muted); width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; font-size: 18px;
  transition: all 0.2s;
}
.nav button:hover { border-color: var(--accent); color: var(--accent); }
.nav .counter { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; min-width: 48px; text-align: center; }

/* ── PROGRESS ── */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--accent); transition: width 0.4s ease; z-index: 999;
}


/* ── SECTION LABEL ── */
.section-tag {
  display: inline-block; font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}

/* ── TYPOGRAPHY ── */
.serif { font-family: 'DM Serif Display', serif; }
h1 { font-size: clamp(40px, 5.5vw, 72px); font-weight: 300; line-height: 1.1; }
h2 { font-size: clamp(28px, 3.5vw, 48px); font-weight: 300; line-height: 1.15; }
h3 { font-size: clamp(16px, 2vw, 22px); font-weight: 500; line-height: 1.3; }
p  { font-size: clamp(13px, 1.4vw, 16px); line-height: 1.7; color: var(--muted); }

.large-stat {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800; color: var(--accent);
  line-height: 1;
}
.stat-label { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; margin-top: 6px; text-transform: uppercase; }

/* ── LAYOUT HELPERS ── */
.row { display: flex; gap: 32px; }
.col { flex: 1; }
.spacer { flex: 1; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 48px; }
.divider { width: 48px; height: 1px; background: var(--accent); margin: 24px 0; }

/* ── CARDS ── */
.card {
  background: var(--soft); border: 1px solid var(--mid);
  border-radius: 12px; padding: 28px 24px;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--accent); }
.card h3 { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.card p { font-size: 13px; }

/* ── PILL / BADGE ── */
.pill {
  display: inline-block; padding: 4px 14px;
  border-radius: 20px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.pill-gold { background: rgba(200,169,110,0.15); color: var(--accent); border: 1px solid rgba(200,169,110,0.3); }
.pill-purple { background: rgba(139,111,174,0.15); color: var(--accent2); border: 1px solid rgba(139,111,174,0.3); }
.pill-white { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid rgba(255,255,255,0.12); }

/* ── LIST ── */
.check-list { list-style: none; margin-top: 12px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--muted); padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before { content: '—'; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* ── TABLE ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left; padding: 10px 14px;
  background: var(--soft); color: var(--accent);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  border-bottom: 1px solid var(--mid);
}
.data-table td {
  padding: 10px 14px; color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table td strong { color: var(--text); }

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 1px; background: var(--mid);
}
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-item::before {
  content: ''; position: absolute; left: -25px; top: 5px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--black);
}
.timeline-item .phase {
  font-size: 10px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 4px;
}
.timeline-item h3 { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.timeline-item p { font-size: 12px; }

/* ── HIGHLIGHT NUMBER ── */
.highlight-row {
  display: flex; gap: 0; border: 1px solid var(--mid); border-radius: 12px; overflow: hidden;
  margin-top: 24px;
}
.highlight-cell {
  flex: 1; padding: 24px 20px; text-align: center;
  border-right: 1px solid var(--mid);
}
.highlight-cell:last-child { border-right: none; }
.highlight-cell .num { font-size: clamp(24px, 3.5vw, 42px); font-weight: 800; color: var(--accent); line-height: 1; }
.highlight-cell .lbl { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ── QUOTE ── */
.pull-quote {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(20px, 2.8vw, 36px);
  font-style: italic; color: var(--white);
  line-height: 1.4; border-left: 2px solid var(--accent);
  padding-left: 28px; margin: 24px 0;
}

/* ── CHINESE FONT ── */
.zh-font {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ── SLIDE-SPECIFIC OVERRIDES ── */

/* COVER */
#slide-cover {
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(139,111,174,0.18) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 20% 70%, rgba(200,169,110,0.12) 0%, transparent 60%),
              var(--black);
  justify-content: flex-end;
}
#slide-cover .eyebrow {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
#slide-cover h1 { font-weight: 900; font-size: clamp(52px, 7vw, 96px); }
#slide-cover h1 span { color: var(--accent); }
#slide-cover .subtitle { font-size: 14px; color: var(--muted); margin-top: 16px; letter-spacing: 0.05em; }
#slide-cover .date-badge {
  position: absolute; top: 60px; left: 80px;
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--muted); text-transform: uppercase;
}

/* SECTION DIVIDERS */
.slide-section {
  background: var(--soft);
  justify-content: center; align-items: flex-start;
}
.slide-section .section-number {
  font-size: clamp(80px, 14vw, 160px); font-weight: 900;
  color: rgba(255,255,255,0.04); line-height: 1;
  position: absolute; right: 80px; bottom: 40px;
}

/* GRID LAYOUTS */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* SCROLL within slides */
.scroll-inner { overflow-y: auto; flex: 1; padding-right: 8px; }
.scroll-inner::-webkit-scrollbar { width: 3px; }
.scroll-inner::-webkit-scrollbar-thumb { background: var(--mid); border-radius: 2px; }

/* COMPETITIVE TABLE */
.brand-row { display: flex; align-items: center; gap: 12px; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ROADMAP */
.roadmap-phase {
  background: var(--soft); border: 1px solid var(--mid);
  border-radius: 12px; padding: 22px 20px;
}
.roadmap-phase .phase-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.phase-badge {
  padding: 4px 12px; border-radius: 20px; font-size: 10px;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.p1 { background: rgba(200,169,110,0.15); color: var(--accent); }
.p2 { background: rgba(139,111,174,0.15); color: var(--accent2); }
.p3 { background: rgba(100,180,120,0.15); color: #7dba8a; }

/* two-col layout variant */
.layout-60-40 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; height: 100%; }
.layout-40-60 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; height: 100%; }

/* LOGO MARKS */
.moody-logo-corner {
  position: fixed; top: 26px; right: 80px;
  z-index: 999; pointer-events: none; opacity: 0.8;
}

/* ── MOBILE ── */
@media (max-width: 767px) {
  html, body { overflow: auto; height: auto; }
  .deck { height: auto; position: static; }
  .slide {
    position: relative;
    opacity: 1 !important;
    pointer-events: all !important;
    padding: 36px 20px 48px;
    min-height: auto;
  }
  .slide + .slide { border-top: 1px solid rgba(255,255,255,0.06); }
  .progress-bar, .nav { display: none; }
  .moody-logo-corner { top: 14px; right: 20px; }
  #slide-cover .date-badge { position: static; margin-bottom: 14px; }
  #slide-cover h1 { font-size: clamp(34px,9vw,54px) !important; }
  .slide-section .section-number { font-size: clamp(64px,18vw,100px); right: 20px; bottom: 20px; }
  h2 { font-size: clamp(20px,6vw,32px) !important; }
  .row { flex-direction: column !important; }
  .row > * { flex: none !important; width: 100%; }
  .col { flex: none !important; }
  .grid-2 { grid-template-columns: 1fr !important; }
  .grid-3 { grid-template-columns: 1fr !important; }
  .grid-4 { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .layout-60-40, .layout-40-60 { grid-template-columns: 1fr !important; }
  .highlight-row { flex-wrap: wrap; }
  .highlight-cell { flex: 1 1 45%; min-width: 0; }
  .highlight-cell .num { font-size: clamp(18px,5vw,30px) !important; }
  .scroll-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 520px; }
  .pull-quote { font-size: clamp(14px,4vw,20px) !important; }
  #slide-flywheel > div { height: auto !important; }
  #slide-flywheel svg { width: 100% !important; height: auto !important; max-height: 310px; }
  #slide-close > div[style*="position:absolute"] {
    position: static !important;
    bottom: auto !important; right: auto !important;
    margin-top: 24px; text-align: left;
  }
}
