/* ===== KAI PASTEL - BUSINESS PLAN PRESENTATION ===== */
/* Design System: Dark Premium + KAI Orange Accent */

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

/* --- CSS Variables --- */
:root {
  --kai-orange: #FF6B00;
  --kai-orange-light: #FF9A3C;
  --kai-gold: #FFB800;
  --kai-gold-dim: #FFD76030;
  --kai-dark: #0A0A12;
  --kai-dark-card: #12121E;
  --kai-dark-card2: #1A1A2E;
  --kai-dark-surface: #16162480;
  --kai-white: #F8F8FF;
  --kai-grey: #8888AA;
  --kai-red: #FF3B5C;
  --kai-green: #00E676;
  --kai-blue: #448AFF;
  --kai-gradient: linear-gradient(135deg, #FF6B00 0%, #FFB800 100%);
  --kai-gradient-dark: linear-gradient(135deg, #FF6B0030 0%, #FFB80010 100%);
  --kai-gradient-bg: linear-gradient(180deg, #0A0A12 0%, #0F0F1E 50%, #0A0A12 100%);
  --font-heading: 'Outfit', 'Noto Sans SC', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', sans-serif;
  --slide-max: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(255,107,0,0.15);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--kai-orange) var(--kai-dark);
}

body {
  font-family: var(--font-body);
  background: var(--kai-dark);
  color: var(--kai-white);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--kai-dark); }
::-webkit-scrollbar-thumb { background: var(--kai-orange); border-radius: 3px; }

/* --- Navigation Bar --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,18,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,107,0,0.15);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.navbar.scrolled { background: rgba(10,10,18,0.95); box-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand .seal { font-size: 1.3rem; color: var(--kai-orange); font-weight: 900; font-family: var(--font-heading); }
.nav-brand span { font-size: 1.1rem; font-weight: 700; color: var(--kai-white); font-family: var(--font-heading); letter-spacing: 2px; }
.nav-toc-btn { background: none; border: 1px solid rgba(255,107,0,0.4); color: var(--kai-orange); padding: 6px 16px; border-radius: 20px; cursor: pointer; font-size: 0.85rem; transition: var(--transition); font-family: var(--font-body); }
.nav-toc-btn:hover { background: var(--kai-orange); color: var(--kai-dark); }
.nav-progress { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--kai-gradient); transition: width 0.3s ease; }

/* --- TOC Sidebar --- */
.toc-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.toc-overlay.open { opacity: 1; pointer-events: auto; }
.toc-panel { position: fixed; top: 0; right: -380px; width: 380px; height: 100vh; background: var(--kai-dark-card); z-index: 2001; padding: 2rem 1.5rem; overflow-y: auto; transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); border-left: 1px solid rgba(255,107,0,0.15); }
.toc-panel.open { right: 0; }
.toc-panel h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 1.5rem; color: var(--kai-orange); }
.toc-panel .toc-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--kai-grey); font-size: 1.5rem; cursor: pointer; }
.toc-panel a { display: block; padding: 10px 14px; color: var(--kai-grey); text-decoration: none; font-size: 0.9rem; border-radius: var(--radius-sm); transition: var(--transition); margin-bottom: 2px; border-left: 2px solid transparent; }
.toc-panel a:hover, .toc-panel a.active { color: var(--kai-white); background: rgba(255,107,0,0.08); border-left-color: var(--kai-orange); }

/* --- Section Base --- */
.section {
  min-height: 100vh;
  padding: 100px 2rem 60px;
  position: relative;
  overflow: hidden;
}

.section-inner {
  max-width: var(--slide-max);
  margin: 0 auto;
}

/* --- Cover Slide --- */
.cover {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: var(--kai-dark);
  overflow: hidden;
}
.cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('cover.jpg') center/cover no-repeat;
  opacity: 0.35;
}
.cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, var(--kai-dark) 80%);
}
.cover-content { position: relative; z-index: 2; }
.cover .brand-seal {
  font-size: 4.5rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--kai-orange);
  text-shadow: 0 0 60px rgba(255,107,0,0.5);
  margin-bottom: 0.5rem;
  animation: pulseGlow 3s ease-in-out infinite;
}
.cover .brand-name {
  font-size: 5rem;
  font-weight: 900;
  font-family: var(--font-heading);
  letter-spacing: 12px;
  background: var(--kai-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cover .brand-sub {
  font-size: 1.4rem;
  color: var(--kai-grey);
  letter-spacing: 6px;
  margin-top: 0.5rem;
  font-weight: 300;
}
.cover .brand-slogan {
  font-size: 1.1rem;
  color: var(--kai-orange-light);
  margin-top: 2rem;
  font-style: italic;
  letter-spacing: 2px;
}
.cover .brand-meta {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--kai-grey);
}
.cover .scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
  color: var(--kai-grey);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.scroll-hint .arrow { font-size: 1.2rem; }

/* --- Section Headers --- */
.section-header {
  margin-bottom: 3rem;
  position: relative;
}
.section-number {
  font-size: 5rem;
  font-weight: 900;
  font-family: var(--font-heading);
  background: var(--kai-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.15;
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  line-height: 1;
}
.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--kai-white);
  position: relative;
  padding-left: 1.2rem;
  border-left: 4px solid var(--kai-orange);
}
.section-subtitle {
  font-size: 1rem;
  color: var(--kai-grey);
  margin-top: 0.5rem;
  padding-left: 1.2rem;
  font-weight: 300;
}

/* --- Sub-section Headers --- */
h3.sub-title {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--kai-orange);
  margin: 2.5rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
h3.sub-title::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--kai-orange);
  border-radius: 50%;
  flex-shrink: 0;
}
h4.sub-sub-title {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--kai-gold);
  margin: 2rem 0 0.8rem;
}

/* --- Content Cards --- */
.card {
  background: var(--kai-dark-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--kai-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: rgba(255,107,0,0.15); }
.card:hover::before { opacity: 1; }

.card-grid { display: grid; gap: 1.5rem; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card .card-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.card .card-label { font-size: 0.8rem; color: var(--kai-grey); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.3rem; }
.card .card-value { font-size: 1.8rem; font-weight: 800; font-family: var(--font-heading); color: var(--kai-orange); }
.card .card-desc { font-size: 0.9rem; color: var(--kai-grey); line-height: 1.6; margin-top: 0.5rem; }

/* Highlight cards */
.card.highlight { border-color: rgba(255,107,0,0.25); background: linear-gradient(135deg, rgba(255,107,0,0.06), rgba(255,184,0,0.03)); }

/* --- Tables --- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--kai-dark-card);
  border-radius: var(--radius);
  overflow: hidden;
}
thead { background: rgba(255,107,0,0.12); }
th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--kai-orange);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
td {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.04);
  color: var(--kai-white);
  vertical-align: top;
}
tr:hover td { background: rgba(255,107,0,0.04); }
td strong { color: var(--kai-orange-light); }

/* --- Blockquotes --- */
blockquote {
  border-left: 3px solid var(--kai-orange);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(255,107,0,0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--kai-white);
  line-height: 1.9;
}
blockquote strong { color: var(--kai-orange); font-style: normal; }

/* --- Code blocks --- */
.code-block {
  background: var(--kai-dark-card2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin: 1.5rem 0;
  font-family: 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  overflow-x: auto;
  color: var(--kai-grey);
  white-space: pre-wrap;
}
.code-block .hl { color: var(--kai-orange); font-weight: 600; }
.code-block .dim { opacity: 0.5; }

/* --- Paragraph --- */
.content-text {
  color: rgba(248,248,255,0.85);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 1rem;
}
.content-text strong { color: var(--kai-orange-light); font-weight: 600; }

/* --- Lists --- */
.content-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}
.content-list li {
  padding: 8px 0 8px 1.5rem;
  position: relative;
  color: rgba(248,248,255,0.85);
  font-size: 0.95rem;
  line-height: 1.7;
}
.content-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--kai-orange);
  font-weight: bold;
}

/* --- Image containers --- */
.img-showcase {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 2rem 0;
  position: relative;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255,107,0,0.15);
}
.img-showcase img { width: 100%; display: block; }
.img-showcase .img-caption {
  background: rgba(10,10,18,0.9);
  padding: 0.8rem 1.2rem;
  font-size: 0.85rem;
  color: var(--kai-grey);
  text-align: center;
}

/* --- SWOT grid --- */
.swot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.swot-card { border-radius: var(--radius); padding: 1.5rem; }
.swot-card.strengths { background: rgba(0,230,118,0.08); border: 1px solid rgba(0,230,118,0.2); }
.swot-card.weaknesses { background: rgba(255,59,92,0.08); border: 1px solid rgba(255,59,92,0.2); }
.swot-card.opportunities { background: rgba(68,138,255,0.08); border: 1px solid rgba(68,138,255,0.2); }
.swot-card.threats { background: rgba(255,184,0,0.08); border: 1px solid rgba(255,184,0,0.2); }
.swot-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.8rem; font-family: var(--font-heading); }
.swot-card.strengths h4 { color: var(--kai-green); }
.swot-card.weaknesses h4 { color: var(--kai-red); }
.swot-card.opportunities h4 { color: var(--kai-blue); }
.swot-card.threats h4 { color: var(--kai-gold); }

/* --- Star ratings --- */
.stars { color: var(--kai-gold); letter-spacing: 2px; }

/* --- Timeline --- */
.timeline { position: relative; padding-left: 2rem; margin: 2rem 0; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--kai-gradient); }
.timeline-item { position: relative; margin-bottom: 2rem; padding-left: 1.5rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.55rem; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--kai-orange);
  box-shadow: 0 0 12px rgba(255,107,0,0.4);
}
.timeline-item .tl-date { font-size: 0.85rem; color: var(--kai-orange); font-weight: 600; margin-bottom: 0.3rem; }
.timeline-item .tl-title { font-size: 1rem; font-weight: 600; color: var(--kai-white); margin-bottom: 0.3rem; }
.timeline-item .tl-desc { font-size: 0.88rem; color: var(--kai-grey); }

/* --- divider --- */
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,107,0,0.2), transparent); margin: 3rem 0; }

/* -- Org chart -- */
.org-chart { background: var(--kai-dark-card2); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-sm); padding: 1.5rem; margin: 1.5rem 0; font-family: 'Cascadia Code', 'Fira Code', monospace; font-size: 0.82rem; line-height: 1.8; overflow-x: auto; color: var(--kai-grey); white-space: pre; }

/* --- Animations --- */
@keyframes pulseGlow {
  0%, 100% { text-shadow: 0 0 40px rgba(255,107,0,0.4); }
  50% { text-shadow: 0 0 80px rgba(255,107,0,0.7); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid rgba(255,107,0,0.1);
  background: rgba(10,10,18,0.9);
}
.footer .brand-seal { font-size: 2.5rem; color: var(--kai-orange); font-weight: 900; font-family: var(--font-heading); }
.footer .slogan { color: var(--kai-grey); margin-top: 0.5rem; font-style: italic; }
.footer .disclaimer { max-width: 700px; margin: 2rem auto 0; font-size: 0.78rem; color: rgba(136,136,170,0.6); line-height: 1.7; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .swot-grid { grid-template-columns: 1fr; }
  .cover .brand-name { font-size: 3rem; letter-spacing: 6px; }
  .cover .brand-seal { font-size: 3rem; }
  .section-title { font-size: 1.8rem; }
  .section { padding: 80px 1.2rem 40px; }
  .toc-panel { width: 300px; right: -300px; }
}

@media (max-width: 600px) {
  .cover .brand-name { font-size: 2.2rem; letter-spacing: 4px; }
  .section-title { font-size: 1.4rem; }
  th, td { padding: 8px 10px; font-size: 0.8rem; }
}

/* --- Print --- */
@media print {
  .navbar, .toc-overlay, .toc-panel, .scroll-hint, .nav-toc-btn { display: none !important; }
  .section { min-height: auto; padding: 2rem 0; page-break-inside: avoid; }
  .cover { min-height: 60vh; }
  body { background: white; color: #1a1a1a; }
  .card { border: 1px solid #ddd; box-shadow: none; }
  table { border: 1px solid #ddd; }
  th { background: #f5f5f5; color: #333; }
  td { border-color: #eee; color: #333; }
}
