/* ================================================================
   PBL-Wiki Public Website — styles.css
   Design System: Comfortaa (logo font)
   Colors: Gold (#f4b326) / Blue (#0fa7c5) / Teal (#0d9488)
   ================================================================ */

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

:root {
  /* Brand colors from logo */
  --pbl-gold: #f4b326;
  --pbl-gold-dark: #c99a0e;
  --pbl-gold-light: #fff8eb;
  --pbl-blue: #0fa7c5;
  --pbl-blue-dark: #0b8da6;
  --pbl-blue-light: #e8f6fa;

  /* Neutral palette */
  --pbl-dark: #2C2C2C;
  --pbl-ink: #3D3D3D;
  --pbl-mid: #5A5A5A;
  --pbl-muted: #7A7A7A;
  --pbl-light: #F7F8FA;
  --pbl-border: rgba(60, 60, 60, 0.1);

  /* Module accents (preserving semantic meaning) */
  --wiki-blue: #0fa7c5;
  --wiki-blue-light: #e8f6fa;
  --wiki-violet: #f4b326;
  --wiki-violet-light: #fff8eb;
  --wiki-teal: #0d9488;
  --wiki-teal-light: #f0fdfa;

  /* Typography */
  --heading: 'Comfortaa', 'Nunito', system-ui, sans-serif;
  --body: 'Comfortaa', 'Nunito', system-ui, sans-serif;

  /* Layout tokens */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--body);
  background: #ffffff;
  color: var(--pbl-ink);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.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; }

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  background: transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 16px rgba(0,0,0,0.06);
  padding: 10px 40px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo {
  height: 40px;
  width: auto;
}
.nav-brand-text {
  font-family: var(--heading);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  transition: color var(--transition);
}
.nav.scrolled .nav-brand-text { color: var(--pbl-dark); }
.nav-brand-text .brand-pbl { color: var(--pbl-gold); }
.nav-brand-text .brand-wiki { color: var(--pbl-blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pbl-blue);
  transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav.scrolled .nav-links a { color: var(--pbl-mid); }
.nav.scrolled .nav-links a:hover { color: var(--pbl-dark); }
.nav-links a:hover { color: #ffffff; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: background var(--transition), border-color var(--transition);
}
.nav.scrolled .lang-switcher {
  background: var(--pbl-light);
  border-color: var(--pbl-border);
}
.lang-btn {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition);
  letter-spacing: 0.04em;
}
.nav.scrolled .lang-btn { color: var(--pbl-muted); }
.lang-btn.active {
  background: var(--pbl-blue);
  color: #ffffff;
}

/* CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--pbl-blue);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(15,167,197,0.3);
}
.btn-primary:hover {
  background: var(--pbl-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,167,197,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--pbl-blue);
  border: 2px solid rgba(15,167,197,0.3);
}
.btn-outline:hover {
  background: var(--pbl-blue-light);
  border-color: var(--pbl-blue);
}
.btn-white {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-white:hover {
  background: rgba(255,255,255,0.2);
  color: #ffffff;
}
.btn-gold {
  background: var(--pbl-gold);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(244,179,38,0.3);
}
.btn-gold:hover {
  background: var(--pbl-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244,179,38,0.4);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all var(--transition);
}
.nav.scrolled .nav-toggle span { background: var(--pbl-dark); }

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--pbl-dark);
  padding: 120px 52px 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 80px solid rgba(244,179,38,0.08);
  animation: float-circle 20s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 60px solid rgba(15,167,197,0.07);
  animation: float-circle 25s ease-in-out infinite reverse;
}

@keyframes float-circle {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -15px) rotate(5deg); }
  50% { transform: translate(-10px, 20px) rotate(-3deg); }
  75% { transform: translate(15px, 10px) rotate(3deg); }
}

/* Additional decorative orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  animation: pulse-orb 6s ease-in-out infinite;
}
.hero-orb-1 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--pbl-gold), transparent 70%);
  top: 20%; right: 15%;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 140px; height: 140px;
  background: radial-gradient(circle, var(--pbl-blue), transparent 70%);
  bottom: 25%; right: 35%;
  animation-delay: 2s;
}
.hero-orb-3 {
  width: 100px; height: 100px;
  background: radial-gradient(circle, var(--wiki-teal), transparent 70%);
  top: 40%; left: 60%;
  animation-delay: 4s;
}

@keyframes pulse-orb {
  0%, 100% { transform: scale(1); opacity: 0.12; }
  50% { transform: scale(1.3); opacity: 0.2; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15,167,197,0.15);
  border: 1px solid rgba(15,167,197,0.35);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6cc8de;
  margin-bottom: 28px;
  animation: badge-in 1s ease-out;
}

@keyframes badge-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pbl-blue);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--heading);
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 14px;
  animation: hero-title-in 1.2s ease-out 0.2s both;
}
.hero h1 .title-pbl { color: var(--pbl-gold); }
.hero h1 .title-wiki { color: var(--pbl-blue); }

@keyframes hero-title-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.6;
  animation: hero-sub-in 1.2s ease-out 0.4s both;
}

@keyframes hero-sub-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  animation: hero-btns-in 1.2s ease-out 0.6s both;
}

@keyframes hero-btns-in {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  animation: hero-chips-in 1.2s ease-out 0.8s both;
}
.hero-chip {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 14px;
  border-radius: 100px;
  transition: all var(--transition);
}
.hero-chip:hover {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
}

@keyframes hero-chips-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- SECTIONS --- */
.section {
  padding: 80px 52px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pbl-blue);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--heading);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  color: var(--pbl-dark);
  margin-bottom: 20px;
  line-height: 1.15;
}
.section-title em { color: var(--pbl-blue); font-style: normal; }
.section-desc {
  font-size: 16px;
  color: var(--pbl-muted);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.divider {
  max-width: 1100px;
  margin: 0 auto;
  border: none;
  border-top: 1px solid var(--pbl-border);
}

/* --- INTRO --- */
.intro {
  padding: 80px 52px 0;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.intro-lead {
  font-family: var(--heading);
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--pbl-dark);
  border-left: 3px solid var(--pbl-gold);
  padding-left: 24px;
}
.intro-body {
  font-size: 15px;
  color: var(--pbl-muted);
  line-height: 1.8;
}
.intro-body strong { color: var(--pbl-ink); font-weight: 700; }

/* --- MODULES --- */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.module-card {
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: all var(--transition);
  cursor: default;
}
.module-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.module-card.wiki { background: var(--pbl-blue-light); border: 1px solid rgba(15,167,197,0.15); }
.module-card.cps  { background: var(--pbl-gold-light); border: 1px solid rgba(244,179,38,0.15); }
.module-card.rs   { background: var(--wiki-teal-light); border: 1px solid rgba(13,148,136,0.15); }
.module-card:hover.wiki { box-shadow: 0 12px 40px rgba(15,167,197,0.15); }
.module-card:hover.cps  { box-shadow: 0 12px 40px rgba(244,179,38,0.15); }
.module-card:hover.rs   { box-shadow: 0 12px 40px rgba(13,148,136,0.15); }

.module-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  transition: transform var(--transition);
}
.module-card:hover .module-icon { transform: scale(1.1) rotate(-3deg); }
.wiki .module-icon { background: rgba(15,167,197,0.15); }
.cps  .module-icon { background: rgba(244,179,38,0.15); }
.rs   .module-icon { background: rgba(13,148,136,0.15); }

.module-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.wiki .module-tag { color: var(--pbl-blue); }
.cps  .module-tag { color: var(--pbl-gold-dark); }
.rs   .module-tag { color: var(--wiki-teal); }

.module-name {
  font-family: var(--heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.wiki .module-name { color: var(--pbl-blue-dark); }
.cps  .module-name { color: #9a6800; }
.rs   .module-name { color: #134e4a; }

.module-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--pbl-muted);
  margin-bottom: 16px;
}

.module-access {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
}
.wiki .module-access { background: rgba(15,167,197,0.1); color: var(--pbl-blue-dark); }
.cps  .module-access { background: rgba(244,179,38,0.1); color: var(--pbl-gold-dark); }
.rs   .module-access { background: rgba(13,148,136,0.1); color: var(--wiki-teal); }

/* --- SCREENSHOTS / PLATFORM PREVIEW --- */
.preview-section {
  background: var(--pbl-light);
  padding: 80px 52px;
}
.preview-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}
.preview-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}
.preview-tab {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 100px;
  border: 1px solid var(--pbl-border);
  background: #ffffff;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--pbl-mid);
}
.preview-tab:hover { border-color: var(--pbl-blue); color: var(--pbl-blue); }
.preview-tab.active {
  background: var(--pbl-blue);
  color: #ffffff;
  border-color: var(--pbl-blue);
}
.preview-tab.active.tab-wiki { background: var(--pbl-blue); border-color: var(--pbl-blue); }
.preview-tab.active.tab-cps  { background: var(--pbl-gold); border-color: var(--pbl-gold); }
.preview-tab.active.tab-rs   { background: var(--wiki-teal); border-color: var(--wiki-teal); }

.preview-frame {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  overflow: hidden;
  border: 1px solid var(--pbl-border);
}
.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #f8f9fb;
  border-bottom: 1px solid var(--pbl-border);
}
.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.preview-dot:nth-child(1) { background: #ff5f57; }
.preview-dot:nth-child(2) { background: #febc2e; }
.preview-dot:nth-child(3) { background: #28c840; }
.preview-bar {
  margin-left: 16px;
  flex: 1;
  max-width: 300px;
  height: 24px;
  border-radius: 6px;
  background: #eef0f4;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 10px;
  color: var(--pbl-muted);
}

.preview-img-container {
  position: relative;
}
.preview-img {
  width: 100%;
  display: none;
  animation: preview-fade-in 0.5s ease;
}
.preview-img.active { display: block; }

@keyframes preview-fade-in {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* --- KONECTOMA / AI --- */
.kone-card {
  background: linear-gradient(135deg, #2C2C2C 0%, #1a3040 100%);
  border-radius: var(--radius-lg);
  padding: 40px 42px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.kone-left h4 {
  font-family: var(--heading);
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}
.kone-left p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
}
.kone-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}
.kone-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.kone-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(15,167,197,0.3);
  transform: translateX(4px);
}
.kone-btn-icon { font-size: 16px; }
.kone-btn-text { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.85); }
.kone-btn-sub { font-size: 11px; color: rgba(255,255,255,0.38); margin-top: 2px; }

/* Chat mockup */
.kone-chat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.6;
  max-width: 88%;
  animation: chat-in 0.6s ease-out both;
}
.chat-bubble:nth-child(1) { animation-delay: 0.2s; }
.chat-bubble:nth-child(2) { animation-delay: 0.6s; }
.chat-bubble:nth-child(3) { animation-delay: 1s; }

@keyframes chat-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-u { background: rgba(15,167,197,0.3); color: #6cc8de; align-self: flex-end; }
.chat-a { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.72); align-self: flex-start; }
.chat-ins {
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
  background: rgba(74,222,128,0.1);
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid rgba(74,222,128,0.2);
  align-self: flex-end;
  cursor: pointer;
  transition: all var(--transition);
}
.chat-ins:hover { background: rgba(74,222,128,0.2); }

/* --- MARKS --- */
.marks { display: flex; flex-direction: column; gap: 12px; }
.mark-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  transition: transform var(--transition);
}
.mark-row:hover { transform: translateX(6px); }
.mark-corr { background: #fef2f2; border-left: 4px solid #fca5a5; }
.mark-rev  { background: #fefce8; border-left: 4px solid #fcd34d; }
.mark-rel  { background: #f0fdf4; border-left: 4px solid #86efac; }
.mark-label { font-size: 12px; font-weight: 800; min-width: 110px; }
.mark-corr .mark-label { color: #b91c1c; }
.mark-rev  .mark-label { color: #92400e; }
.mark-rel  .mark-label { color: #15803d; }
.mark-desc { font-size: 13px; line-height: 1.6; }
.mark-corr .mark-desc { color: #dc2626; }
.mark-rev  .mark-desc { color: #b45309; }
.mark-rel  .mark-desc { color: #16a34a; }

.marks-note {
  font-size: 13px;
  color: var(--pbl-muted);
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--pbl-light);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--pbl-gold);
  line-height: 1.7;
}

/* --- ABC BLOOM --- */
.abc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.abc-item {
  padding: 20px;
  border-radius: var(--radius-md);
  border-left: 3px solid transparent;
  transition: all var(--transition);
}
.abc-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.abc-item h5 { font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.abc-item p  { font-size: 12px; line-height: 1.6; }
.abc-adq { background: var(--pbl-blue-light); border-color: var(--pbl-blue); }
.abc-adq h5 { color: var(--pbl-blue-dark); } .abc-adq p { color: #3ebdd6; }
.abc-exp { background: var(--pbl-gold-light); border-color: var(--pbl-gold); }
.abc-exp h5 { color: var(--pbl-gold-dark); } .abc-exp p { color: #d4a01c; }
.abc-col { background: #f0fdfa; border-color: #0d9488; }
.abc-col h5 { color: #0f766e; } .abc-col p { color: #14b8a6; }
.abc-dis { background: #fffbeb; border-color: #d97706; }
.abc-dis h5 { color: #92400e; } .abc-dis p { color: #f59e0b; }
.abc-pra { background: #fdf4ff; border-color: #a855f7; }
.abc-pra h5 { color: #7e22ce; } .abc-pra p { color: #c084fc; }
.abc-pro { background: #f0fdf4; border-color: #16a34a; }
.abc-pro h5 { color: #15803d; } .abc-pro p { color: #4ade80; }
.abc-note {
  font-size: 12px;
  color: var(--pbl-muted);
  margin-top: 16px;
  text-align: center;
}

/* --- RESEARCH MOMENTS --- */
.moments {
  display: flex;
  gap: 0;
}
.moment {
  flex: 1;
  padding: 28px 24px;
  position: relative;
  transition: all var(--transition);
}
.moment:hover { transform: translateY(-4px); }
.moment:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--pbl-muted);
  z-index: 1;
}
.moment:nth-child(1) { background: var(--pbl-blue-light); border-radius: var(--radius-md) 0 0 var(--radius-md); border: 1px solid rgba(15,167,197,0.15); border-right: none; }
.moment:nth-child(2) { background: var(--pbl-gold-light); border: 1px solid rgba(244,179,38,0.15); border-left: none; border-right: none; }
.moment:nth-child(3) { background: #f0fdf8; border-radius: 0 var(--radius-md) var(--radius-md) 0; border: 1px solid rgba(13,148,136,0.15); border-left: none; }
.moment-num {
  font-family: var(--heading);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
  opacity: 0.18;
}
.moment:nth-child(1) .moment-num { color: var(--pbl-blue); }
.moment:nth-child(2) .moment-num { color: var(--pbl-gold); }
.moment:nth-child(3) .moment-num { color: var(--wiki-teal); }
.moment h4 { font-size: 14px; font-weight: 800; color: var(--pbl-dark); margin-bottom: 10px; }
.moment-items { list-style: none; padding: 0; }
.moment-items li {
  font-size: 12px;
  color: var(--pbl-muted);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.moment-items li::before { content: '·'; font-weight: 700; font-size: 16px; }

/* --- MICROLEARNING TRACKS --- */
.tracks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.track-card {
  padding: 24px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--pbl-border);
  background: var(--pbl-light);
  transition: all var(--transition);
}
.track-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  background: #ffffff;
}
.track-letter {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}
.track-a .track-letter { background: rgba(15,167,197,0.15); color: var(--pbl-blue-dark); }
.track-b .track-letter { background: rgba(244,179,38,0.15); color: var(--pbl-gold-dark); }
.track-c .track-letter { background: #fce7f3; color: #9d174d; }
.track-t .track-letter { background: #d1fae5; color: #065f46; }
.track-card h5 { font-size: 12px; font-weight: 800; color: var(--pbl-dark); margin-bottom: 6px; }
.track-card p  { font-size: 11px; color: var(--pbl-muted); line-height: 1.6; margin-bottom: 12px; }
.track-levels { display: flex; gap: 5px; flex-wrap: wrap; }
.track-lv {
  font-size: 9px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(0,0,0,0.06);
  color: var(--pbl-muted);
}

/* --- INTEGRITY --- */
.integrity {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.integ-item {
  padding: 28px;
  background: var(--pbl-light);
  border: 1px solid var(--pbl-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.integ-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.integ-dot { width: 12px; height: 12px; border-radius: 50%; margin-bottom: 16px; }
.integ-item:nth-child(1) .integ-dot { background: var(--pbl-blue); }
.integ-item:nth-child(2) .integ-dot { background: var(--pbl-gold); }
.integ-item:nth-child(3) .integ-dot { background: var(--wiki-teal); }
.integ-item h5 { font-size: 14px; font-weight: 800; color: var(--pbl-dark); margin-bottom: 8px; }
.integ-item p  { font-size: 13px; color: var(--pbl-muted); line-height: 1.7; }

/* --- CTA BAND --- */
.cta-band {
  background: linear-gradient(135deg, #2C2C2C 0%, #1a3040 100%);
  padding: 72px 52px;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--heading);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}
.cta-band h2 em { color: var(--pbl-blue); font-style: normal; }
.cta-band p {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-band .btn-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- FOOTER --- */
.footer {
  background: var(--pbl-dark);
  padding: 48px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  font-family: var(--heading);
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
}
.footer-brand .brand-pbl { color: var(--pbl-gold); }
.footer-brand .brand-wiki { color: var(--pbl-blue); }
.footer-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-top: 6px;
  line-height: 1.7;
}
.footer-right { text-align: right; }
.footer-url {
  font-size: 15px;
  font-weight: 700;
  color: var(--pbl-blue);
  margin-bottom: 10px;
}
.footer-langs {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.footer-lang {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.45);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .modules-grid { grid-template-columns: 1fr 1fr; }
  .abc-grid     { grid-template-columns: 1fr 1fr; }
  .tracks       { grid-template-columns: 1fr 1fr; }
  .integrity    { grid-template-columns: 1fr 1fr; }
  .kone-card    { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { padding: 14px 20px; }
  .nav.scrolled { padding: 10px 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  /* Mobile menu */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    padding: 24px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .nav-links.open a { color: var(--pbl-dark); font-size: 15px; }

  .hero { padding: 100px 24px 60px; min-height: auto; }
  .hero-content { max-width: 100%; }

  .section { padding: 48px 24px; }
  .intro { padding: 48px 24px 0; grid-template-columns: 1fr; gap: 24px; }
  .modules-grid { grid-template-columns: 1fr; }
  .abc-grid { grid-template-columns: 1fr 1fr; }
  .moments { flex-direction: column; gap: 12px; }
  .moment { border-radius: var(--radius-md) !important; border: 1px solid var(--pbl-border) !important; }
  .moment:not(:last-child)::after { display: none; }
  .tracks { grid-template-columns: 1fr; }
  .integrity { grid-template-columns: 1fr; }
  .kone-card { grid-template-columns: 1fr; padding: 28px 22px; }

  .preview-section { padding: 48px 16px; }
  .preview-tabs { flex-wrap: wrap; justify-content: center; }

  .footer { flex-direction: column; gap: 24px; text-align: center; padding: 36px 24px; }
  .footer-right { text-align: center; }
  .footer-langs { justify-content: center; }

  .cta-band { padding: 48px 24px; }

  .mark-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .abc-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .hero-btns { flex-direction: column; }
  .btn-cta { width: 100%; justify-content: center; }
}

/* --- PRINT --- */
@media print {
  .nav, .cta-band, .preview-section { display: none !important; }
  .hero { min-height: auto; padding: 40px; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: white; }
}
