/* ===== BASE & RESET ===== */
html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #0f172a;
  color: #cbd5e1;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #0d9488; color: #fff; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { color: #f1f5f9; font-weight: 700; line-height: 1.2; }
h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
a { color: #5eead4; text-decoration: none; transition: color 0.2s; }
a:hover { color: #99f6e4; }
code { font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.85em; }
p code { background: #1e293b; padding: 2px 6px; border-radius: 4px; color: #f0abfc; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { min-height: 100vh; padding: 6rem 0; position: relative; }
.section-dark { background: #020617; }
.section-mid { background: #0f172a; }

/* ===== NAVIGATION ===== */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(2, 6, 23, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid #1e293b;
}
nav .nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
nav .logo { font-size: 1.25rem; font-weight: 800; color: #fff; }
nav .logo span { color: #14b8a6; }
nav .nav-links { display: flex; gap: 0.25rem; align-items: center; }
nav .nav-links a {
  padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.85rem; font-weight: 500;
  color: #94a3b8; transition: all 0.2s;
}
nav .nav-links a:hover { color: #fff; background: #1e293b; }
nav .nav-links a.active { color: #fff; background: #0d9488; }

/* ===== PROGRESS BAR ===== */
#progress-bar {
  position: fixed; top: 64px; left: 0; height: 3px; z-index: 99;
  background: linear-gradient(90deg, #14b8a6, #0ea5e9, #a78bfa);
  transition: width 0.1s linear; width: 0%;
}

/* ===== HERO ===== */
.hero {
  display: flex; align-items: center; justify-content: center;
  text-align: center; min-height: 100vh; padding-top: 64px;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 1.5rem; }
.hero .gradient-text {
  background: linear-gradient(135deg, #14b8a6, #0ea5e9, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .subtitle {
  font-size: 1.25rem; color: #64748b; max-width: 650px; margin: 0 auto 2rem;
}
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 999px;
  border: 1px solid #334155; background: rgba(30,41,59,0.5);
  color: #94a3b8; font-size: 0.85rem; margin-bottom: 1.5rem;
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #14b8a6; animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ===== TRIAD CARDS ===== */
.triad-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.triad-card {
  padding: 2rem; border-radius: 16px; border: 1px solid #1e293b;
  background: #0f172a; transition: transform 0.3s, box-shadow 0.3s;
}
.triad-card:hover {
  transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.triad-card .icon { font-size: 2rem; margin-bottom: 1rem; }
.triad-card h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.triad-card p { font-size: 0.9rem; color: #94a3b8; }
.border-teal { border-left: 4px solid #14b8a6; }
.border-sky { border-left: 4px solid #0ea5e9; }
.border-violet { border-left: 4px solid #a78bfa; }

/* ===== AGENDA ===== */
.agenda-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem; margin-top: 2rem;
}
.agenda-card {
  padding: 1.5rem; border-radius: 12px; background: #1e293b;
  border: 1px solid #334155; position: relative; overflow: hidden;
}
.agenda-card .time {
  font-size: 0.8rem; color: #14b8a6; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem;
}
.agenda-card h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.agenda-card p { font-size: 0.85rem; color: #64748b; }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .section-label {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem;
  padding: 0.35rem 1rem; border-radius: 6px;
}
.label-building { background: rgba(20,184,166,0.1); color: #5eead4; }
.label-connecting { background: rgba(14,165,233,0.1); color: #7dd3fc; }
.label-strategizing { background: rgba(167,139,250,0.1); color: #c4b5fd; }
.label-story { background: rgba(251,191,36,0.1); color: #fde68a; }
.label-walkthrough { background: rgba(244,114,182,0.1); color: #f9a8d4; }

.section-header .section-subtitle {
  color: #64748b; font-size: 1.1rem; max-width: 700px; margin: 0 auto;
}

/* ===== CONTENT CARDS ===== */
.content-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 2rem 0;
}
.content-card {
  padding: 2rem; border-radius: 16px; border: 1px solid #1e293b;
  background: #0f172a; transition: transform 0.3s;
}
.content-card:hover { transform: translateY(-4px); }
.content-card h4 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.content-card p { font-size: 0.9rem; color: #94a3b8; }
.content-card ul { list-style: none; padding: 0; }
.content-card ul li {
  padding: 0.4rem 0; font-size: 0.9rem; display: flex;
  align-items: flex-start; gap: 0.5rem; color: #94a3b8;
}
.content-card ul li .li-icon {
  color: #4ade80; flex-shrink: 0; margin-top: 2px;
}

/* ===== INSIGHT BOX ===== */
.insight-box {
  background: linear-gradient(135deg, rgba(20,184,166,0.05), rgba(14,165,233,0.05));
  border: 1px solid #115e59; border-radius: 16px; padding: 2rem; margin: 2rem 0;
}
.insight-box h4 { color: #5eead4; margin-bottom: 0.5rem; }
.insight-box p { font-size: 0.95rem; color: #cbd5e1; }

/* ===== STAT GRID ===== */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem; margin: 2rem 0;
}
.stat-card {
  text-align: center; padding: 2rem 1.5rem; border-radius: 16px;
  background: #1e293b; border: 1px solid #334155;
}
.stat-card .stat-number {
  font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem;
  line-height: 1;
}
.stat-card .stat-label {
  font-size: 0.85rem; color: #64748b;
}
.stat-teal { color: #14b8a6; }
.stat-sky { color: #0ea5e9; }
.stat-violet { color: #a78bfa; }
.stat-amber { color: #f59e0b; }
.stat-rose { color: #f43f5e; }

/* ===== TIMELINE ===== */
.timeline { position: relative; margin: 2rem 0; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, #14b8a6, #0ea5e9, #a78bfa);
}
.timeline-item {
  position: relative; margin-bottom: 2rem; padding: 1.5rem;
  background: #0f172a; border: 1px solid #1e293b; border-radius: 12px;
}
.timeline-item::before {
  content: ''; position: absolute; left: -2.35rem; top: 1.75rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: #14b8a6; border: 2px solid #020617;
}
.timeline-item .timeline-date {
  font-size: 0.8rem; color: #14b8a6; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem;
}
.timeline-item h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.timeline-item p { font-size: 0.85rem; color: #94a3b8; }

/* ===== COMPARISON GRID (AI vs Human) ===== */
.comparison-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 2rem 0;
}
.comparison-card {
  border-radius: 16px; padding: 2rem; border: 2px solid;
}
.comparison-ai { border-color: #115e59; background: rgba(20,184,166,0.03); }
.comparison-human { border-color: #1e3a5f; background: rgba(14,165,233,0.03); }
.comparison-card h4 { margin-bottom: 1rem; }
.comparison-card ul { list-style: none; padding: 0; }
.comparison-card ul li {
  padding: 0.4rem 0; font-size: 0.9rem; display: flex;
  align-items: center; gap: 0.5rem;
}

/* ===== MODE TOGGLE ===== */
.mode-toggle {
  display: inline-flex; justify-content: center;
  background: #1e293b; border-radius: 12px; padding: 4px;
}
.mode-toggle-wrapper { display: flex; justify-content: center; margin-bottom: 2rem; }
.mode-btn {
  padding: 0.65rem 1.5rem; border-radius: 10px; border: none; cursor: pointer;
  font-size: 0.9rem; font-weight: 600; transition: all 0.25s;
  background: transparent; color: #64748b; font-family: inherit;
}
.mode-btn.active-chatbot {
  background: #0d9488; color: #fff;
  box-shadow: 0 4px 12px rgba(13,148,136,0.3);
}
.mode-btn.active-cline {
  background: #7c3aed; color: #fff;
  box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}
.mode-btn:hover:not(.active-chatbot):not(.active-cline) { color: #cbd5e1; }

/* ===== CONTENT PANELS ===== */
.panel { display: none; }
.panel.visible { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== INSTRUCTION CARDS ===== */
.instruction-card {
  background: #0f172a; border: 1px solid #1e293b; border-radius: 16px;
  padding: 2rem; margin-bottom: 1.5rem;
}
.instruction-card .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px; font-size: 0.85rem;
  font-weight: 700; margin-right: 0.75rem;
}
.chatbot-step .step-num { background: rgba(13,148,136,0.15); color: #5eead4; }
.cline-step .step-num { background: rgba(124,58,237,0.15); color: #c4b5fd; }

.step-item {
  padding: 1rem 1.25rem; background: #1e293b; border-radius: 10px;
  margin-bottom: 0.75rem; font-size: 0.95rem;
}
.step-item strong { color: #f1f5f9; }

/* ===== CODE BLOCKS ===== */
.code-block-wrapper { position: relative; margin: 1rem 0; }
.code-block-wrapper .copy-btn {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: #334155; border: none; color: #94a3b8;
  padding: 0.35rem 0.75rem; border-radius: 6px; font-size: 0.75rem;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.code-block-wrapper .copy-btn:hover { background: #475569; color: #fff; }
pre {
  background: #020617 !important; border: 1px solid #1e293b;
  border-radius: 12px; padding: 1.5rem; overflow-x: auto;
}
pre code { font-size: 0.85rem; line-height: 1.6; }

/* ===== WORKSHOP LAYOUT ===== */
.workshop-layout {
  display: grid; grid-template-columns: 1fr 360px; gap: 2rem;
}

/* ===== SIDEBAR ===== */
.sidebar { position: sticky; top: 84px; align-self: start; }
.sidebar-card {
  background: #1e293b; border-radius: 16px; padding: 1.5rem;
  border: 1px solid #334155; margin-bottom: 1rem;
}
.sidebar-card h4 { font-size: 1rem; margin-bottom: 1rem; }
.checklist-item {
  display: flex; align-items: flex-start; gap: 0.5rem;
  margin-bottom: 0.75rem; font-size: 0.85rem;
}
.checklist-item .check { color: #4ade80; margin-top: 2px; flex-shrink: 0; }
.checklist-item span strong { color: #f1f5f9; }

/* ===== QUOTE BLOCK ===== */
.quote-block {
  border-left: 4px solid #14b8a6; padding: 1.5rem 2rem;
  background: rgba(20,184,166,0.05); border-radius: 0 12px 12px 0;
  margin: 2rem 0;
}
.quote-block p { font-size: 1.1rem; font-style: italic; color: #e2e8f0; }
.quote-block .quote-attr {
  font-size: 0.85rem; color: #64748b; font-style: normal; margin-top: 0.75rem;
}

/* ===== PARTNERSHIP CARDS ===== */
.partner-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin: 2rem 0;
}
.partner-card {
  padding: 2rem; border-radius: 16px; border: 1px solid #1e293b;
  background: #0f172a; transition: transform 0.3s;
}
.partner-card:hover { transform: translateY(-4px); }
.partner-card .partner-icon { font-size: 2rem; margin-bottom: 1rem; }
.partner-card h4 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.partner-card p { font-size: 0.85rem; color: #94a3b8; }

/* ===== ACTIVITY BOX ===== */
.activity-box {
  background: linear-gradient(135deg, rgba(234,179,8,0.05), rgba(249,115,22,0.05));
  border: 1px solid #854d0e; border-radius: 16px; padding: 2rem; margin: 2rem 0;
}
.activity-box h4 { color: #fbbf24; }
.activity-box .activity-tag {
  display: inline-block; padding: 0.2rem 0.6rem; border-radius: 4px;
  font-size: 0.75rem; font-weight: 600; margin-bottom: 0.5rem;
}
.tag-chatbot { background: rgba(13,148,136,0.15); color: #5eead4; }
.tag-cline { background: rgba(124,58,237,0.15); color: #c4b5fd; }

/* ===== DOWNLOAD CARDS ===== */
.download-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem; margin: 1.5rem 0;
}
.download-card {
  background: #1e293b; padding: 1.25rem; border-radius: 12px;
  border: 1px solid #334155; display: flex; align-items: center;
  gap: 1rem; transition: border-color 0.2s;
}
.download-card:hover { border-color: #14b8a6; }
.download-card .dl-icon { font-size: 1.5rem; color: #14b8a6; flex-shrink: 0; }
.download-card .dl-info h4 { font-size: 0.95rem; margin-bottom: 0.15rem; }
.download-card .dl-info p { font-size: 0.8rem; color: #64748b; }

/* ===== FOOTER ===== */
footer {
  background: #020617; border-top: 1px solid #1e293b;
  padding: 3rem 0; text-align: center;
}
footer p { color: #475569; font-size: 0.9rem; }
footer p + p { margin-top: 0.5rem; font-size: 0.8rem; }
footer a { color: #5eead4; }

/* ===== SCROLL ANIMATIONS ===== */
.scroll-reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }

/* ===== HAMBURGER MENU ===== */
.nav-hamburger {
  display: none; background: none; border: none; color: #f1f5f9;
  font-size: 1.5rem; cursor: pointer; padding: 0.25rem; z-index: 101;
}

/* ===== PRESENTER CARD ===== */
.presenter-card {
  display: flex; align-items: center; gap: 2rem;
  padding: 2rem; border-radius: 16px; background: #1e293b;
  border: 1px solid #334155; margin: 2rem 0;
}
.presenter-card .presenter-info h4 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.presenter-card .presenter-info p { font-size: 0.9rem; color: #94a3b8; }
.presenter-card .presenter-info a { font-size: 0.85rem; }

/* ===== WEALTH DISTRIBUTION BAR ===== */
.wealth-bar-container { margin: 2rem 0; }
.wealth-bar {
  display: flex; border-radius: 12px; overflow: hidden; height: 48px;
  border: 1px solid #334155;
}
.wealth-segment {
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff; transition: flex 0.5s ease;
}
.wealth-labels {
  display: flex; justify-content: space-between; margin-top: 0.75rem;
}
.wealth-label {
  display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: #94a3b8;
}
.wealth-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}

/* ===== RESPONSIVE: TABLET (max-width: 900px) ===== */
@media (max-width: 900px) {
  .workshop-layout { grid-template-columns: 1fr; }

  .sidebar {
    position: static; display: grid;
    grid-template-columns: 1fr 1fr; gap: 1rem;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .container { padding: 0 1.5rem; }
  section { padding: 4rem 0; }

  .content-grid { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }

  .presenter-card {
    flex-direction: column; text-align: center;
  }
}

/* ===== RESPONSIVE: MOBILE (max-width: 768px) ===== */
@media (max-width: 768px) {
  .nav-hamburger { display: block; }

  nav .nav-links {
    display: none; position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(2, 6, 23, 0.98); backdrop-filter: blur(12px);
    flex-direction: column; padding: 1rem;
    border-bottom: 1px solid #1e293b; gap: 0.25rem; z-index: 100;
  }
  nav .nav-links.nav-open { display: flex; }
  nav .nav-links a {
    padding: 0.75rem 1rem; font-size: 1rem;
    text-align: center; border-radius: 8px;
  }

  .hero { min-height: auto; padding: 6rem 0 3rem; }
  .hero h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
  .hero .subtitle { font-size: 1rem; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }

  .container { padding: 0 1rem; }
  section { padding: 3rem 0; }

  .triad-grid { grid-template-columns: 1fr; }
  .agenda-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }

  .sidebar {
    position: static; display: grid;
    grid-template-columns: 1fr; gap: 1rem;
  }

  .triad-card, .instruction-card, .content-card,
  .partner-card, .activity-box { padding: 1.25rem; }

  pre { padding: 1rem; font-size: 0.75rem; }
  pre code { font-size: 0.75rem; line-height: 1.5; }
  .code-block-wrapper .copy-btn { padding: 0.25rem 0.5rem; font-size: 0.7rem; }

  .mode-btn { padding: 0.5rem 1rem; font-size: 0.8rem; }

  .quote-block { padding: 1rem 1.25rem; }
  .quote-block p { font-size: 1rem; }

  .wealth-bar { height: 36px; }
  .wealth-segment { font-size: 0.65rem; }

  footer { padding: 2rem 0; }
  footer p { font-size: 0.8rem; }

  .timeline { padding-left: 1.5rem; }
  .timeline-item::before { left: -1.85rem; }
}

/* ===== RESPONSIVE: SMALL MOBILE (max-width: 480px) ===== */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .badge { font-size: 0.75rem; padding: 0.35rem 0.75rem; }
  .hero .subtitle { font-size: 0.9rem; }

  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }

  .container { padding: 0 0.75rem; }
  section { padding: 2.5rem 0; }

  .section-header { margin-bottom: 2rem; }
  .section-header .section-subtitle { font-size: 0.9rem; }

  .triad-card, .instruction-card { padding: 1rem; }
  .step-item { padding: 0.75rem; font-size: 0.85rem; }

  .mode-toggle { flex-direction: column; width: 100%; }
  .mode-btn { width: 100%; text-align: center; }

  pre { padding: 0.75rem; }
  pre code { font-size: 0.7rem; }

  .stat-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 1.25rem; }
  .stat-card .stat-number { font-size: 2rem; }

  .timeline-item { padding: 1rem; }

  .download-card { padding: 1rem; }
  .download-card .dl-icon { font-size: 1.25rem; }
  .download-card .dl-info h4 { font-size: 0.85rem; }

  .activity-box { padding: 1.25rem; }

  .wealth-labels { flex-direction: column; gap: 0.5rem; }
}
