/* ============================================================
   TERUMO × CHI FENG — Strategic Partnership Proposal
   醫材沛方 MedTalk Pei Brand Style
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;600;700;800;900&family=Noto+Sans+TC:wght@400;500;700&display=swap');

:root {
  --deep-navy:     #061B3A;
  --navy-mid:      #0A2550;
  --medical-blue:  #0A5DB8;
  --teal-green:    #18C6C2;
  --cyan-glow:     #5CE1E6;
  --gold:          #D7B46A;
  --white:         #FFFFFF;
  --soft-gray:     #EAF2F6;
  --dark-text:     #102033;
  --glass-bg:      rgba(255,255,255,0.06);
  --glass-border:  rgba(92,225,230,0.18);
  --glass-hover:   rgba(255,255,255,0.10);
}

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

html, body {
  width: 100%; height: 100%;
  background: #020d1a;
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  overflow: hidden;
  color: var(--white);
}

/* ── Slide Deck Container ── */
#deck {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Individual Slide ── */
.slide {
  position: absolute;
  width: min(100vw, calc(100vh * 16/9));
  height: min(100vh, calc(100vw * 9/16));
  background: var(--deep-navy);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.slide.active { display: flex; }

/* ── Global Background Grid ── */
.slide::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(92,225,230,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92,225,230,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── Top Header Bar ── */
.slide-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5%;
  background: linear-gradient(90deg, var(--medical-blue) 0%, rgba(10,93,184,0.4) 60%, transparent 100%);
  display: flex;
  align-items: center;
  padding: 0 3%;
  z-index: 10;
}
.slide-header .logo-chi {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(8px, 1.2vw, 14px);
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
}
.slide-header .logo-terumo {
  margin-left: auto;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(8px, 1.1vw, 13px);
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 2px 10px;
  border-radius: 3px;
}

/* ── Page Number ── */
.slide-footer {
  position: absolute;
  bottom: 1.5%;
  right: 2.5%;
  font-size: clamp(7px, 0.9vw, 11px);
  color: rgba(255,255,255,0.3);
  font-family: 'Inter', sans-serif;
  z-index: 10;
  letter-spacing: 0.05em;
}
.slide-footer .page-num { color: var(--cyan-glow); font-weight: 600; }

/* ── Source Citation ── */
.source-cite {
  position: absolute;
  bottom: 4%;
  left: 3%;
  font-size: clamp(6px, 0.75vw, 9px);
  color: rgba(255,255,255,0.25);
  font-style: italic;
  z-index: 10;
  max-width: 70%;
  line-height: 1.5;
}

/* ── Glassmorphism Card ── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.glass-card-gold {
  background: rgba(215,180,106,0.08);
  border: 1px solid rgba(215,180,106,0.25);
  border-radius: 14px;
}
.glass-card-teal {
  background: rgba(24,198,194,0.08);
  border: 1px solid rgba(24,198,194,0.22);
  border-radius: 14px;
}

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, var(--teal-green), var(--cyan-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gold-text { color: var(--gold); }
.teal-text { color: var(--teal-green); }
.cyan-text { color: var(--cyan-glow); }
.muted-text { color: rgba(255,255,255,0.55); }

/* ── Divider Line ── */
.cyan-line {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--teal-green), var(--cyan-glow));
  border-radius: 2px;
}
.gold-line {
  width: 40px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* ── Glow Orb ── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   SLIDE 1 — COVER
   ============================================================ */
#slide-1 {
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(10,93,184,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 70%, rgba(24,198,194,0.18) 0%, transparent 60%),
    var(--deep-navy);
  justify-content: center;
}
#slide-1 .cover-left {
  position: relative; z-index: 5;
  padding: 0 6% 0 6%;
  width: 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(6px, 1.2vh, 14px);
}
#slide-1 .cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: clamp(3px,0.5vh,6px) clamp(10px,1.5vw,18px);
  background: rgba(24,198,194,0.12);
  border: 1px solid rgba(24,198,194,0.35);
  border-radius: 30px;
  width: fit-content;
  font-size: clamp(7px, 0.85vw, 10px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-green);
  font-weight: 600;
}
#slide-1 .cover-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal-green);
  box-shadow: 0 0 8px var(--teal-green);
}
#slide-1 .cover-company {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 3.8vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
}
#slide-1 .cover-company .x-sign {
  color: var(--gold);
  margin: 0 0.15em;
}
#slide-1 .cover-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(10px, 1.6vw, 20px);
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}
#slide-1 .cover-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(8px, 1.1vw, 14px);
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#slide-1 .cover-note {
  font-size: clamp(7px, 0.85vw, 10px);
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
  padding-top: clamp(4px, 0.8vh, 10px);
  border-top: 1px solid rgba(255,255,255,0.08);
}
#slide-1 .cover-right {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 48%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
#slide-1 .cover-visual {
  width: 80%;
  aspect-ratio: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
#slide-1 .cover-circle-outer {
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(92,225,230,0.12);
  animation: rotate-slow 20s linear infinite;
}
#slide-1 .cover-circle-mid {
  position: absolute;
  width: 72%; height: 72%;
  border-radius: 50%;
  border: 1px solid rgba(24,198,194,0.18);
  animation: rotate-slow 14s linear infinite reverse;
}
#slide-1 .cover-circle-inner {
  position: absolute;
  width: 44%; height: 44%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24,198,194,0.15) 0%, rgba(10,93,184,0.3) 60%, transparent 100%);
  border: 1px solid rgba(24,198,194,0.3);
}
#slide-1 .cover-img-placeholder {
  width: 44%; height: 44%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: absolute;
  font-size: clamp(6px, 0.7vw, 9px);
  color: rgba(92,225,230,0.6);
  gap: 4px;
}
#slide-1 .orbit-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-green);
  box-shadow: 0 0 12px var(--teal-green), 0 0 24px rgba(24,198,194,0.4);
}
#slide-1 .cover-tags {
  display: flex;
  gap: clamp(4px, 0.8vw, 10px);
  flex-wrap: wrap;
}
#slide-1 .tag {
  padding: clamp(2px,0.35vh,5px) clamp(6px,0.9vw,12px);
  font-size: clamp(6px, 0.75vw, 9px);
  font-weight: 500;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
#slide-1 .tag-blue {
  background: rgba(10,93,184,0.25);
  border: 1px solid rgba(10,93,184,0.45);
  color: rgba(92,225,230,0.85);
}
#slide-1 .tag-teal {
  background: rgba(24,198,194,0.1);
  border: 1px solid rgba(24,198,194,0.3);
  color: var(--teal-green);
}
#slide-1 .tag-gold {
  background: rgba(215,180,106,0.1);
  border: 1px solid rgba(215,180,106,0.3);
  color: var(--gold);
}

/* ============================================================
   SLIDE 2 — WHY CHI FENG
   ============================================================ */
#slide-2 {
  background:
    radial-gradient(ellipse 60% 80% at 5% 50%, rgba(10,93,184,0.2) 0%, transparent 60%),
    var(--deep-navy);
}
.s2-inner {
  position: relative; z-index: 5;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 7% 5% 8% 5%;
  gap: clamp(8px, 1.5vh, 18px);
}
.section-label {
  font-size: clamp(7px, 0.8vw, 10px);
  color: var(--teal-green);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.slide-main-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(16px, 3vw, 40px);
  line-height: 1.1;
  color: var(--white);
}
.s2-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 1.5vw, 20px);
  flex: 1;
  min-height: 0;
}
.capability-cards {
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 1vh, 12px);
}
.cap-card {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 16px);
  padding: clamp(8px, 1.2vh, 16px) clamp(10px, 1.5vw, 20px);
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  flex: 1;
  min-height: 0;
  transition: border-color 0.2s;
}
.cap-icon {
  width: clamp(28px, 3.5vw, 46px);
  height: clamp(28px, 3.5vw, 46px);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--medical-blue), rgba(24,198,194,0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: clamp(12px, 1.6vw, 22px);
}
.cap-text h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(8px, 1vw, 13px);
  color: var(--white);
  margin-bottom: 2px;
}
.cap-text p {
  font-size: clamp(6px, 0.75vw, 9px);
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}
.s2-right {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vh, 14px);
}
.factory-placeholder {
  flex: 1;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(10,93,184,0.15) 0%, rgba(24,198,194,0.08) 100%);
  border: 1px dashed rgba(92,225,230,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 0;
}
.factory-video {
  flex: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(92,225,230,0.25);
  background: #000;
  position: relative;
  min-height: 0;
  box-shadow: 0 8px 32px rgba(10,93,184,0.2);
}
.factory-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.factory-placeholder .ph-label {
  font-size: clamp(7px, 0.85vw, 10px);
  color: rgba(92,225,230,0.4);
  letter-spacing: 0.08em;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(6px, 1vw, 12px);
}
.stat-box {
  padding: clamp(8px,1.2vh,14px) clamp(6px,0.9vw,12px);
  border-radius: 10px;
  background: rgba(10,93,184,0.12);
  border: 1px solid rgba(10,93,184,0.3);
  text-align: center;
}
.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(14px, 2vw, 26px);
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: clamp(6px, 0.7vw, 8px);
  color: rgba(255,255,255,0.45);
  margin-top: 3px;
  line-height: 1.3;
}

/* ============================================================
   SLIDE 3 — TOTAL SOLUTION PARTNER
   ============================================================ */
#slide-3 {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(24,198,194,0.08) 0%, transparent 50%),
    var(--deep-navy);
}
.s3-inner {
  position: relative; z-index: 5;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 7% 5% 8% 5%;
  gap: clamp(8px, 1.5vh, 18px);
}
.flow-diagram {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1;
  min-height: 0;
}
.flow-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vh, 12px);
  padding: clamp(10px, 1.5vh, 20px) clamp(8px, 1.2vw, 16px);
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  text-align: center;
  position: relative;
}
.flow-node.active-node {
  background: linear-gradient(135deg, rgba(10,93,184,0.25) 0%, rgba(24,198,194,0.1) 100%);
  border-color: rgba(24,198,194,0.4);
  box-shadow: 0 0 30px rgba(24,198,194,0.08), inset 0 1px 0 rgba(255,255,255,0.05);
}
.flow-arrow {
  display: flex;
  align-items: center;
  padding: 0 clamp(4px, 0.8vw, 12px);
  flex-shrink: 0;
}
.flow-arrow svg { opacity: 0.5; }
.flow-icon {
  width: clamp(32px, 4vw, 52px);
  height: clamp(32px, 4vw, 52px);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--medical-blue), var(--teal-green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(14px, 1.8vw, 24px);
  box-shadow: 0 4px 20px rgba(10,93,184,0.4);
  flex-shrink: 0;
}
.flow-node h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(8px, 1vw, 13px);
  color: var(--white);
}
.flow-node p {
  font-size: clamp(6px, 0.7vw, 9px);
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}
.s3-value-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(6px, 1vw, 12px);
}
.value-pill {
  padding: clamp(6px,1vh,12px) clamp(8px,1.2vw,14px);
  border-radius: 10px;
  background: rgba(24,198,194,0.07);
  border: 1px solid rgba(24,198,194,0.2);
  text-align: center;
  font-size: clamp(7px, 0.8vw, 10px);
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.value-pill strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(8px, 0.9vw, 11px);
  color: var(--teal-green);
  margin-bottom: 2px;
}

/* ============================================================
   SLIDE 4 — OPPORTUNITY MAP
   ============================================================ */
#slide-4 {
  background:
    radial-gradient(ellipse 50% 60% at 90% 30%, rgba(215,180,106,0.06) 0%, transparent 60%),
    var(--deep-navy);
}
.s4-inner {
  position: relative; z-index: 5;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 7% 4% 8% 4%;
  gap: clamp(8px, 1.2vh, 14px);
}
.opportunity-matrix {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(92,225,230,0.12);
}
.matrix-table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  font-size: clamp(6px, 0.75vw, 9px);
}
.matrix-table th {
  padding: clamp(5px,0.9vh,12px) clamp(6px,0.9vw,12px);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(6px, 0.75vw, 9px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(10,93,184,0.3);
  border: 1px solid rgba(92,225,230,0.1);
  color: var(--cyan-glow);
  vertical-align: middle;
  text-align: center;
}
.matrix-table th.row-header {
  background: rgba(10,93,184,0.5);
  color: var(--gold);
  width: 14%;
  text-align: left;
  padding-left: clamp(8px,1.2vw,16px);
}
.matrix-table td {
  padding: clamp(4px,0.8vh,10px) clamp(5px,0.7vw,10px);
  border: 1px solid rgba(92,225,230,0.07);
  vertical-align: middle;
  text-align: center;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}
.matrix-table td.row-label {
  background: rgba(6,27,58,0.8);
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  font-size: clamp(6px, 0.72vw, 9px);
  text-align: left;
  padding-left: clamp(8px,1.2vw,16px);
  border-right: 1px solid rgba(92,225,230,0.15);
}
.matrix-table tr:nth-child(even) td { background: rgba(255,255,255,0.015); }
.check-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(14px,1.8vw,22px);
  height: clamp(14px,1.8vw,22px);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-green), var(--medical-blue));
  font-size: clamp(7px,0.85vw,11px);
  color: white;
  box-shadow: 0 0 10px rgba(24,198,194,0.3);
}
.check-dot.gold-dot {
  background: linear-gradient(135deg, var(--gold), #b8870d);
  box-shadow: 0 0 10px rgba(215,180,106,0.3);
}
.check-dot.dim-dot {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.3);
  box-shadow: none;
}
.s4-footnote {
  font-size: clamp(6px, 0.78vw, 9px);
  color: rgba(92,225,230,0.6);
  font-style: italic;
  padding: clamp(4px,0.6vh,8px) clamp(8px,1.2vw,16px);
  border-left: 2px solid var(--teal-green);
  background: rgba(24,198,194,0.04);
  border-radius: 0 8px 8px 0;
}

/* ============================================================
   SLIDE 5 — THE PROBLEM
   ============================================================ */
#slide-5 {
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(10,93,184,0.2) 0%, transparent 60%),
    var(--deep-navy);
}
.s5-inner {
  position: relative; z-index: 5;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 7% 5% 9% 5%;
  gap: clamp(8px, 1.2vh, 15px);
}
.risk-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(6px, 1vw, 14px);
  flex: 1;
  min-height: 0;
}
.risk-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vh, 12px);
  padding: clamp(10px, 1.5vh, 20px) clamp(8px, 1.2vw, 14px);
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid rgba(10,93,184,0.3);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.risk-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--medical-blue), var(--teal-green));
}
.risk-emoji {
  font-size: clamp(18px, 2.5vw, 34px);
  line-height: 1;
}
.risk-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(8px, 0.95vw, 12px);
  color: var(--white);
  line-height: 1.2;
}
.risk-card p {
  font-size: clamp(6px, 0.7vw, 9px);
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}
.risk-impact {
  font-size: clamp(6px, 0.68vw, 8px);
  color: var(--teal-green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.problem-statement {
  padding: clamp(8px,1.2vh,14px) clamp(12px,1.8vw,22px);
  border-radius: 10px;
  background: rgba(215,180,106,0.08);
  border: 1px solid rgba(215,180,106,0.2);
  font-size: clamp(7px, 0.88vw, 11px);
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}
.problem-statement strong { color: var(--gold); }

/* ============================================================
   SLIDE 6 — REGULATORY & MARKET
   ============================================================ */
#slide-6 {
  background:
    radial-gradient(ellipse 70% 50% at 100% 50%, rgba(24,198,194,0.08) 0%, transparent 60%),
    var(--deep-navy);
}
.s6-inner {
  position: relative; z-index: 5;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 7% 5% 9% 5%;
  gap: clamp(8px, 1.2vh, 14px);
}
.s6-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(10px, 1.5vw, 20px);
  flex: 1;
  min-height: 0;
}
.regulatory-cards {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vh, 10px);
}
.reg-card {
  display: flex;
  align-items: flex-start;
  gap: clamp(8px, 1.2vw, 14px);
  padding: clamp(8px, 1.2vh, 14px) clamp(10px, 1.5vw, 18px);
  border-radius: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  flex: 1;
}
.reg-badge {
  flex-shrink: 0;
  padding: clamp(3px,0.5vh,6px) clamp(6px,0.9vw,10px);
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(6px, 0.75vw, 9px);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.reg-badge.niosh { background: rgba(10,93,184,0.3); color: var(--cyan-glow); border: 1px solid rgba(92,225,230,0.3); }
.reg-badge.usp { background: rgba(24,198,194,0.15); color: var(--teal-green); border: 1px solid rgba(24,198,194,0.3); }
.reg-badge.fda { background: rgba(215,180,106,0.12); color: var(--gold); border: 1px solid rgba(215,180,106,0.3); }
.reg-badge.market { background: rgba(92,225,230,0.08); color: rgba(255,255,255,0.6); border: 1px solid rgba(92,225,230,0.2); }
.reg-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(7px, 0.88vw, 11px);
  color: var(--white);
  margin-bottom: 3px;
}
.reg-card p {
  font-size: clamp(6px, 0.72vw, 9px);
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}
.market-chart-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vh, 14px);
}
.market-stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(6px, 1vw, 10px);
}
.mstat {
  padding: clamp(8px,1.2vh,14px) clamp(8px,1.2vw,14px);
  border-radius: 10px;
  text-align: center;
}
.mstat-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(14px, 2.2vw, 28px);
  color: var(--gold);
  line-height: 1;
}
.mstat-label {
  font-size: clamp(6px, 0.7vw, 8px);
  color: rgba(255,255,255,0.45);
  margin-top: 3px;
  line-height: 1.3;
}
.chart-wrapper {
  flex: 1;
  min-height: 0;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: clamp(8px,1.2vh,16px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chart-title {
  font-size: clamp(6px, 0.75vw, 9px);
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.donut-container {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 20px);
}
.donut-svg-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.donut-legend {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.7vh, 8px);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(6px, 0.72vw, 9px);
  color: rgba(255,255,255,0.6);
}
.legend-dot {
  width: 8px; height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ============================================================
   SLIDE 7 — CSTD WORKFLOW
   ============================================================ */
#slide-7 {
  background:
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(10,93,184,0.15) 0%, transparent 50%),
    var(--deep-navy);
}
.s7-inner {
  position: relative; z-index: 5;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 7% 4% 9% 4%;
  gap: clamp(8px, 1.2vh, 14px);
}
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(5px, 0.8vw, 10px);
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
.wf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(5px, 0.8vh, 10px);
  padding: clamp(8px, 1.2vh, 16px) clamp(6px, 0.9vw, 12px);
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  position: relative;
}
.wf-step::after {
  content: '→';
  position: absolute;
  right: calc(-1 * clamp(3px, 0.5vw, 6px) - 10px);
  top: 50%;
  transform: translateY(-50%);
  color: rgba(92,225,230,0.4);
  font-size: clamp(10px, 1.2vw, 16px);
  z-index: 2;
}
.wf-step:last-child::after { display: none; }
.step-num {
  width: clamp(20px, 2.5vw, 30px);
  height: clamp(20px, 2.5vw, 30px);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--medical-blue), var(--teal-green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(8px, 1vw, 13px);
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(24,198,194,0.25);
}
.wf-icon { font-size: clamp(16px, 2.2vw, 30px); }
.wf-step h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(7px, 0.85vw, 11px);
  color: var(--white);
  line-height: 1.2;
}
.wf-step p {
  font-size: clamp(5px, 0.65vw, 8px);
  color: rgba(255,255,255,0.4);
  line-height: 1.4;
}
.wf-ph {
  flex: 1;
  min-height: 0;
  border-radius: 8px;
  border: 1px dashed rgba(92,225,230,0.15);
  background: rgba(24,198,194,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(5px, 0.65vw, 8px);
  color: rgba(92,225,230,0.25);
  text-align: center;
  padding: 4px;
}
.value-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(5px, 0.8vw, 10px);
}
.vb-item {
  padding: clamp(6px,0.9vh,10px) clamp(8px,1.2vw,14px);
  border-radius: 8px;
  background: rgba(24,198,194,0.08);
  border: 1px solid rgba(24,198,194,0.15);
  font-size: clamp(6px, 0.72vw, 9px);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 6px;
}
.vb-item::before {
  content: '✓';
  color: var(--teal-green);
  font-weight: 700;
  font-size: clamp(8px, 1vw, 12px);
  flex-shrink: 0;
}

/* ============================================================
   SLIDE 8 — PRODUCT PORTFOLIO
   ============================================================ */
#slide-8 {
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(10,93,184,0.15) 0%, transparent 55%),
    var(--deep-navy);
}
.s8-inner {
  position: relative; z-index: 5;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 7% 4% 9% 4%;
  gap: clamp(8px, 1.2vh, 14px);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(6px, 1vw, 12px);
  flex: 1;
  min-height: 0;
}
.prod-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  overflow: hidden;
}
.prod-card-header {
  padding: clamp(8px, 1.2vh, 14px) clamp(8px, 1.2vw, 14px);
  background: linear-gradient(135deg, rgba(10,93,184,0.3), rgba(24,198,194,0.1));
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid rgba(92,225,230,0.1);
}
.prod-icon { font-size: clamp(16px, 2vw, 26px); }
.prod-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(7px, 0.85vw, 11px);
  color: var(--white);
  line-height: 1.2;
}
.prod-card-body {
  padding: clamp(6px, 1vh, 12px) clamp(8px, 1.2vw, 14px);
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.7vh, 8px);
  flex: 1;
}
.prod-ph {
  border-radius: 8px;
  border: 1px dashed rgba(92,225,230,0.15);
  background: rgba(24,198,194,0.03);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(5px, 0.6vw, 7px);
  color: rgba(92,225,230,0.25);
  text-align: center;
}
.prod-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.prod-field-label {
  font-size: clamp(5px, 0.6vw, 7px);
  color: var(--teal-green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.prod-field-val {
  font-size: clamp(6px, 0.68vw, 8.5px);
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}
.oem-tag {
  margin-top: auto;
  font-size: clamp(5px, 0.62vw, 8px);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  padding: clamp(2px,0.4vh,4px) clamp(4px,0.6vw,8px);
  border-radius: 4px;
  background: rgba(215,180,106,0.1);
  border: 1px solid rgba(215,180,106,0.2);
  width: fit-content;
}
.s8-tagline {
  font-size: clamp(7px, 0.85vw, 10px);
  color: rgba(92,225,230,0.6);
  font-style: italic;
  text-align: center;
}

/* ============================================================
   SLIDE 9 — PARTNERSHIP MODEL
   ============================================================ */
#slide-9 {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(10,93,184,0.15) 0%, transparent 65%),
    var(--deep-navy);
}
.s9-inner {
  position: relative; z-index: 5;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 7% 5% 9% 5%;
  gap: clamp(8px, 1.2vh, 14px);
}
.partnership-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.2vw, 18px);
  flex: 1;
  min-height: 0;
}
.partner-node {
  flex: 1;
  max-width: 28%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1vh, 12px);
  padding: clamp(12px, 1.8vh, 24px) clamp(10px, 1.5vw, 20px);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  text-align: center;
  height: 100%;
  justify-content: center;
}
.partner-node.center-node {
  background: linear-gradient(135deg, rgba(10,93,184,0.3), rgba(24,198,194,0.15));
  border-color: rgba(24,198,194,0.35);
  box-shadow: 0 0 40px rgba(24,198,194,0.08), inset 0 1px 0 rgba(255,255,255,0.05);
  max-width: 30%;
}
.partner-logo {
  width: clamp(40px, 5.5vw, 70px);
  height: clamp(40px, 5.5vw, 70px);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(18px, 2.5vw, 32px);
  flex-shrink: 0;
}
.partner-logo.foxconn { background: linear-gradient(135deg, rgba(215,180,106,0.2), rgba(215,180,106,0.05)); border: 1px solid rgba(215,180,106,0.3); }
.partner-logo.chifeng { background: linear-gradient(135deg, var(--medical-blue), var(--teal-green)); box-shadow: 0 4px 20px rgba(10,93,184,0.4); }
.partner-logo.terumo { background: linear-gradient(135deg, rgba(92,225,230,0.15), rgba(10,93,184,0.1)); border: 1px solid rgba(92,225,230,0.25); }
.partner-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(10px, 1.3vw, 17px);
  color: var(--white);
}
.partner-role {
  font-size: clamp(6px, 0.72vw, 9px);
  color: rgba(255,255,255,0.45);
  margin-top: -4px;
}
.partner-items {
  list-style: none;
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(3px, 0.5vh, 6px);
}
.partner-items li {
  font-size: clamp(6px, 0.72vw, 9px);
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: flex-start;
  gap: 5px;
  line-height: 1.4;
}
.partner-items li::before {
  content: '›';
  color: var(--teal-green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.5px;
}
.partner-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 0.8vh, 10px);
  flex-shrink: 0;
}
.connector-line {
  width: clamp(24px, 3.5vw, 50px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-green), transparent);
}
.connector-label {
  font-size: clamp(5px, 0.62vw, 8px);
  color: rgba(255,255,255,0.35);
  text-align: center;
  line-height: 1.4;
  max-width: 70px;
}
.model-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(5px, 0.8vw, 10px);
}
.model-pill {
  padding: clamp(5px,0.8vh,10px) clamp(8px,1.2vw,14px);
  border-radius: 8px;
  text-align: center;
  background: rgba(10,93,184,0.12);
  border: 1px solid rgba(10,93,184,0.3);
  font-size: clamp(6px, 0.72vw, 9px);
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.model-pill strong {
  display: block;
  font-size: clamp(7px, 0.82vw, 10px);
  color: var(--teal-green);
  margin-bottom: 1px;
  font-family: 'Montserrat', sans-serif;
}

/* ============================================================
   SLIDE 10 — NEXT STEPS
   ============================================================ */
#slide-10 {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(10,93,184,0.25) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(24,198,194,0.1) 0%, transparent 50%),
    var(--deep-navy);
}
.s10-inner {
  position: relative; z-index: 5;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 7% 5% 9% 5%;
  gap: clamp(8px, 1.2vh, 14px);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(8px, 1.2vw, 16px);
  flex: 1;
  min-height: 0;
}
.next-step {
  display: flex;
  align-items: flex-start;
  gap: clamp(8px, 1.2vw, 16px);
  padding: clamp(10px, 1.5vh, 18px) clamp(10px, 1.5vw, 18px);
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}
.step-circle {
  width: clamp(28px, 3.5vw, 44px);
  height: clamp(28px, 3.5vw, 44px);
  border-radius: 50%;
  border: 2px solid var(--teal-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(10px, 1.3vw, 16px);
  color: var(--teal-green);
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(24,198,194,0.15);
}
.step-body h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(8px, 1vw, 13px);
  color: var(--white);
  margin-bottom: clamp(2px, 0.4vh, 5px);
  line-height: 1.2;
}
.step-body p {
  font-size: clamp(6px, 0.72vw, 9px);
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}
.closing-statement {
  padding: clamp(10px, 1.5vh, 18px) clamp(16px, 2.5vw, 30px);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(10,93,184,0.25), rgba(24,198,194,0.1));
  border: 1px solid rgba(24,198,194,0.25);
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(8px, 1vw, 13px);
  color: rgba(255,255,255,0.7);
  font-style: italic;
  position: relative;
}
.closing-statement::before {
  content: '"';
  position: absolute;
  top: clamp(-5px, -0.8vh, -10px);
  left: clamp(10px, 1.5vw, 20px);
  font-size: clamp(20px, 3vw, 40px);
  color: var(--teal-green);
  opacity: 0.4;
  font-style: normal;
  line-height: 1;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 100;
  background: rgba(6,27,58,0.85);
  border: 1px solid rgba(92,225,230,0.15);
  border-radius: 40px;
  padding: 8px 20px;
  backdrop-filter: blur(12px);
}
.nav-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(92,225,230,0.3);
  background: rgba(10,93,184,0.2);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}
.nav-btn:hover {
  background: rgba(10,93,184,0.5);
  border-color: var(--teal-green);
  color: white;
  transform: scale(1.05);
}
.nav-btn:disabled {
  opacity: 0.25;
  cursor: default;
  transform: none;
}
#slide-counter {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  min-width: 60px;
  text-align: center;
}
#slide-counter span { color: var(--cyan-glow); font-weight: 700; }

.dot-nav {
  display: flex;
  gap: 5px;
  align-items: center;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.2s;
}
.dot.active {
  background: var(--teal-green);
  box-shadow: 0 0 8px var(--teal-green);
  width: 18px;
  border-radius: 3px;
}
.dot:hover { background: rgba(92,225,230,0.5); }

/* ── Animations ── */
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.slide.active .animate { animation: fade-up 0.5s ease forwards; }
.slide.active .animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.slide.active .animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.slide.active .animate-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* ── Drag-and-Drop Image Zones ── */
.img-drop-zone {
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
  position: relative;
}
.img-drop-zone:hover:not(.has-image) {
  border-color: rgba(92,225,230,0.45) !important;
  box-shadow: 0 0 0 2px rgba(92,225,230,0.12);
}
.img-drop-zone.drag-over {
  border-color: var(--teal-green) !important;
  border-style: solid !important;
  box-shadow: 0 0 0 3px rgba(24,198,194,0.25), inset 0 0 20px rgba(24,198,194,0.1);
}
.img-drop-zone.drag-over::after {
  content: '拖移圖片至此 ↓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(8px, 1vw, 13px);
  font-weight: 700;
  color: var(--teal-green);
  pointer-events: none;
  z-index: 10;
}
.img-drop-zone.has-image {
  border-style: solid !important;
  border-color: rgba(24,198,194,0.2) !important;
}
.img-drop-zone.has-image:hover::before {
  content: '右鍵可移除圖片';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(6,27,58,0.85);
  color: rgba(255,255,255,0.6);
  font-size: clamp(5px, 0.65vw, 8px);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 20;
  pointer-events: none;
}

/* ── Print / Screenshot ── */
@media print {
  body { overflow: visible; background: #061B3A; }
  #deck { height: auto; }
  .slide { position: relative; display: flex !important; break-after: page; margin-bottom: 0; }
  #nav { display: none; }
}
