/**
 * UNIO ECOSYSTEM (sgk.unio.vn) - MASTER STYLESHEET
 * Tone màu thừa hưởng chuẩn từ Source Font (Light Theme sang trọng, Slate/Navy/Emerald/Amber/Purple)
 */

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Color Palette */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-hover: #e2e8f0;
  
  --border-color: rgba(15, 23, 42, 0.08);
  --border-color-hover: rgba(15, 23, 42, 0.18);
  --border-subtle: rgba(226, 232, 240, 0.8);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Branch Accents */
  --brand-primary: #0284c7;        /* Blue Sky */
  --brand-primary-hover: #0369a1;
  --brand-glow: rgba(2, 132, 199, 0.15);

  --hoc-amber: #f59e0b;            /* Học tập & Bài thi */
  --hoc-amber-hover: #d97706;
  --hoc-amber-bg: rgba(245, 158, 11, 0.08);
  --hoc-amber-border: rgba(245, 158, 11, 0.25);

  --interactive-purple: #8b5cf6;   /* Tương tác 3D / Wordform */
  --interactive-purple-hover: #7c3aed;
  --interactive-purple-bg: rgba(139, 92, 246, 0.08);
  --interactive-purple-border: rgba(139, 92, 246, 0.25);

  --download-green: #059669;       /* Download & Tài nguyên Font */
  --download-green-hover: #047857;
  --download-green-bg: rgba(5, 150, 105, 0.08);
  --download-green-border: rgba(5, 150, 105, 0.25);
  --download-green-glow: rgba(5, 150, 105, 0.2);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.02);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 24px 50px rgba(15, 23, 42, 0.12);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --tr-fast: 0.15s ease;
  --tr-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --tr-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body.unio-body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.unio-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= 1. HEADER & TOP NAV ================= */
.unio-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--tr-normal);
}

.unio-header.scrolled {
  box-shadow: var(--shadow-sm);
  background-color: #ffffff;
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand Logo */
.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
  transition: transform var(--tr-normal);
}

.brand-group:hover .brand-icon-badge {
  transform: scale(1.05);
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.brand-name span.domain {
  font-weight: 600;
  color: var(--brand-primary);
  font-size: 0.92rem;
}

/* Nav Menu */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.nav-link-item {
  position: relative;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all var(--tr-fast);
}

.nav-link-item:hover, .nav-link-item.active {
  color: var(--brand-primary);
  background-color: var(--bg-surface-elevated);
}

.nav-link-item .nav-caret {
  font-size: 0.65rem;
  opacity: 0.6;
  margin-left: -2px;
}

/* Dropdown */
.nav-dropdown-wrap {
  position: relative;
}

.dropdown-menu-box {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--tr-normal);
  z-index: 100;
}

.nav-dropdown-wrap:hover .dropdown-menu-box {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--tr-fast);
}

.dropdown-item:hover {
  background: var(--bg-surface-elevated);
}

.dropdown-item-icon {
  font-size: 1.15rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-elevated);
  border-radius: 6px;
  flex-shrink: 0;
}

.dropdown-item-info {
  display: flex;
  flex-direction: column;
}

.dropdown-item-title {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--text-primary);
}

.dropdown-item-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  max-width: 200px;
  transition: all var(--tr-fast);
}

.btn-search-bar:hover {
  border-color: var(--brand-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.btn-search-bar kbd {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.btn-header-cta {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.25);
  transition: all var(--tr-normal);
}

.btn-header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

/* Mobile Toggle */
.btn-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

/* ================= 2. HERO MASTER SECTION ================= */
.hero-master {
  padding: 56px 0 36px;
  position: relative;
  background: radial-gradient(circle at 50% 10%, rgba(2, 132, 199, 0.05), rgba(248, 250, 252, 0) 65%);
}

.hero-content-wrap {
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}

.hero-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
  margin-bottom: 22px;
}

.hero-pill-tag .sparkle {
  color: var(--hoc-amber);
}

.hero-title-main {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero-title-main span.gradient-blue {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title-main span.gradient-green {
  background: linear-gradient(135deg, #059669, #0d9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title-main span.gradient-amber {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc-main {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 840px;
  margin: 0 auto 32px;
  line-height: 1.65;
  text-wrap: pretty;
}

/* Big Dual Search Container */
.hero-search-container {
  max-width: 740px;
  margin: 0 auto 28px;
  background: #ffffff;
  border: 2px solid rgba(2, 132, 199, 0.2);
  border-radius: var(--radius-full);
  padding: 6px 8px 6px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  transition: all var(--tr-normal);
}

.hero-search-container:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--brand-glow), var(--shadow-lg);
}

.hero-search-icon {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
}

.hero-search-input::placeholder {
  color: var(--text-muted);
}

.hero-search-btn {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: none;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.hero-search-btn:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  transform: translateY(-1px);
}

/* Quick Hub Filter Chips */
.hero-quick-chips {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.chip-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.hero-chip-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-xs);
  transition: all var(--tr-fast);
}

.hero-chip-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-1px);
}

.hero-chip-btn.hoc:hover {
  border-color: var(--hoc-amber);
  color: var(--hoc-amber);
}

.hero-chip-btn.download:hover {
  border-color: var(--download-green);
  color: var(--download-green);
}

/* Hero Stats Bento 5-Pillar */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.stat-card-bento {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: all var(--tr-normal);
}

.stat-card-bento:hover {
  transform: translateY(-3px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 4px;
}

.stat-card-bento.c-blue .stat-number { color: var(--brand-primary); }
.stat-card-bento.c-amber .stat-number { color: var(--hoc-amber); }
.stat-card-bento.c-purple .stat-number { color: var(--interactive-purple); }
.stat-card-bento.c-green .stat-number { color: var(--download-green); }
.stat-card-bento.c-cyan .stat-number { color: #0891b2; }

.stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ================= 3. SECTION ANCHOR JUMP BAR ================= */
.section-anchor-bar {
  margin: 40px 0 20px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.anchor-btn {
  padding: 14px 28px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--tr-normal);
  box-shadow: var(--shadow-sm);
}

.anchor-btn.btn-hoc-jump {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

.anchor-btn.btn-hoc-jump:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.5);
}

.anchor-btn.btn-download-jump {
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
}

.anchor-btn.btn-download-jump:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.5);
}

/* ================= 4. SECTION MAIN ARCHITECTURE ================= */
.ecosystem-section {
  padding: 64px 0 40px;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.section-head-wrap {
  margin-bottom: 32px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.section-badge.badge-hoc {
  background: var(--hoc-amber-bg);
  color: var(--hoc-amber);
  border: 1px solid var(--hoc-amber-border);
}

.section-badge.badge-download {
  background: var(--download-green-bg);
  color: var(--download-green);
  border: 1px solid var(--download-green-border);
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.section-h2 {
  font-size: 2.15rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.25;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 780px;
  margin-top: 8px;
  line-height: 1.6;
}

.btn-view-all {
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
  transition: all var(--tr-fast);
}

.btn-view-all.hoc-color { color: var(--hoc-amber-hover); border-color: var(--hoc-amber-border); }
.btn-view-all.hoc-color:hover { background: var(--hoc-amber-bg); }

.btn-view-all.download-color { color: var(--download-green); border-color: var(--download-green-border); }
.btn-view-all.download-color:hover { background: var(--download-green-bg); }

/* Bento Grid Architecture */
.portal-cards-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* Card Base */
.portal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--tr-smooth);
  position: relative;
  overflow: hidden;
}

.portal-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg);
}

/* Col Spans */
.col-span-8 { grid-column: span 8; }
.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }
.col-span-12 { grid-column: span 12; }

/* Card Elements */
.card-header-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: var(--shadow-xs);
}

.card-icon-box.amber { background: #fef3c7; color: #b45309; }
.card-icon-box.purple { background: #f3e8ff; color: #7e22ce; }
.card-icon-box.green { background: #d1fae5; color: #047857; }
.card-icon-box.blue { background: #e0f2fe; color: #0369a1; }

.card-badge-status {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-live { background: rgba(5, 150, 105, 0.1); color: var(--download-green); border: 1px solid rgba(5, 150, 105, 0.2); }
.status-hot { background: rgba(245, 158, 11, 0.1); color: var(--hoc-amber); border: 1px solid rgba(245, 158, 11, 0.2); }
.status-new { background: rgba(139, 92, 246, 0.1); color: var(--interactive-purple); border: 1px solid rgba(139, 92, 246, 0.2); }

.card-title-lg {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 10px;
}

.card-desc-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Grade Selector Micro-Grid (Tieng Anh Portal) */
.grade-micro-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.grade-btn-chip {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  text-align: center;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--tr-fast);
}

.grade-btn-chip:hover {
  background: #ffffff;
  border-color: var(--hoc-amber);
  color: var(--hoc-amber);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xs);
}

/* Feature List Pills */
.feature-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.f-pill {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Action CTA Buttons in Cards */
.card-cta-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--tr-normal);
  border: none;
  cursor: pointer;
}

.cta-hoc {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.cta-hoc:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.45);
}

.cta-interactive {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.cta-interactive:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.45);
}

.cta-download {
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.cta-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.45);
}

.cta-secondary {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.cta-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-color-hover);
}

/* ================= 5. FONT SPOTLIGHT & LIVE TESTER COMPONENT ================= */
.font-showcase-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}

.font-preview-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.font-preview-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.font-info-col {
  flex: 1;
}

.font-name-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.font-sample-render {
  font-size: 1.45rem;
  margin-top: 4px;
  color: var(--brand-primary);
  letter-spacing: -0.02em;
}

.font-quick-dl-btn {
  background: var(--download-green-bg);
  border: 1px solid var(--download-green-border);
  color: var(--download-green);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--tr-fast);
}

.font-quick-dl-btn:hover {
  background: var(--download-green);
  color: #ffffff;
}

/* ================= 6. INTERACTIVE MINI DEMO WIDGETS ================= */
.interactive-quiz-widget {
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 16px 0;
}

.quiz-q-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.quiz-options-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.quiz-opt-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-align: left;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--tr-fast);
  font-family: inherit;
}

.quiz-opt-btn:hover {
  border-color: var(--hoc-amber);
  background: #fffdf5;
}

.quiz-opt-btn.correct {
  border-color: var(--download-green) !important;
  background: rgba(5, 150, 105, 0.1) !important;
  color: var(--download-green) !important;
  font-weight: 800;
}

.quiz-opt-btn.wrong {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
}

.quiz-feedback-box {
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  display: none;
}

/* ================= 7. UNIO TRUST & BANNER ================= */
.unio-ecosystem-banner {
  margin: 60px 0 30px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: var(--radius-xl);
  padding: 40px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-xl);
}

.banner-left-info {
  flex: 1;
}

.banner-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 900;
  background: rgba(2, 132, 199, 0.25);
  border: 1px solid rgba(2, 132, 199, 0.5);
  color: #38bdf8;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.banner-title {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.banner-desc {
  font-size: 0.98rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 680px;
}

.banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-banner-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
  transition: all var(--tr-normal);
}

.btn-banner-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.6);
}

/* ================= 8. FOOTER ================= */
.unio-footer {
  margin-top: auto;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-col p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.6;
  max-width: 360px;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  transition: color var(--tr-fast);
  display: block;
}

.footer-links-list a:hover {
  color: var(--brand-primary);
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ================= 9. COMPREHENSIVE RESPONSIVE DESIGN ================= */
@media (max-width: 1024px) {
  .hero-title-main { font-size: 2.5rem; }
  .col-span-8, .col-span-4, .col-span-6 { grid-column: span 12; }
  .hero-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .unio-ecosystem-banner { flex-direction: column; text-align: center; }
  .banner-actions { justify-content: center; }
}

@media (max-width: 768px) {
  .header-inner { height: 64px; }
  
  /* Mobile Navigation Drawer (Opaque White & High Elevation) */
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #ffffff !important;
    border-bottom: 2px solid var(--brand-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    padding: 20px;
    flex-direction: column;
    gap: 8px;
    z-index: 9999;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .main-nav.mobile-active {
    display: flex !important;
    animation: mobileNavSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

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

  .nav-link-item {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.98rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    justify-content: space-between;
  }

  .nav-dropdown-wrap {
    width: 100%;
  }

  .dropdown-menu-box {
    position: static;
    transform: none !important;
    width: 100% !important;
    box-shadow: none;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    margin-top: 6px;
    padding: 8px;
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .nav-dropdown-wrap.open .dropdown-menu-box {
    display: block;
  }

  .header-actions { display: none; }
  .btn-mobile-toggle { 
    display: flex; 
    align-items: center; 
    justify-content: center;
    width: 40px; 
    height: 40px; 
    background: var(--bg-surface-elevated); 
    border-radius: 10px;
    border: 1px solid var(--border-color);
  }

  /* Hero Section Mobile */
  .hero-master { padding: 36px 0 24px; }
  .hero-title-main { font-size: 1.85rem; line-height: 1.25; }
  .hero-desc-main { font-size: 0.95rem; margin-bottom: 24px; }

  .hero-search-container {
    padding: 5px 6px 5px 14px;
    gap: 8px;
  }
  .hero-search-input { font-size: 0.9rem; }
  .hero-search-btn { padding: 10px 18px; font-size: 0.88rem; }

  /* Hero Stats 2-Column Balanced */
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-card-bento:last-child {
    grid-column: span 2;
  }
  .stat-number { font-size: 1.5rem; }

  /* Section Jump Anchors */
  .section-anchor-bar {
    flex-direction: column;
    gap: 10px;
  }
  .anchor-btn {
    width: 100%;
    justify-content: center;
    padding: 13px;
    font-size: 0.92rem;
  }

  /* Section Titles */
  .section-h2 { font-size: 1.55rem; }
  .section-desc { font-size: 0.92rem; }

  /* 12 Grade Cards Grid on Mobile (Neat 2 Columns) */
  .ecosystem-section div[style*="grid-template-columns: repeat(auto-fill"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .portal-card { padding: 18px 14px; }

  /* Footer on Mobile (100% Single Stack Column) */
  .footer-top-grid { 
    grid-template-columns: 1fr !important; 
    gap: 28px !important; 
  }
  .footer-brand-col { max-width: 100%; }

  .quiz-options-list { grid-template-columns: 1fr; }
  .quiz-opt-btn { padding: 12px 14px; min-height: 48px; }
}

@media (max-width: 480px) {
  .hero-title-main { font-size: 1.65rem; }
  .hero-pill-tag { font-size: 0.75rem; padding: 5px 12px; }
  .hero-chip-btn { font-size: 0.78rem; padding: 5px 12px; }
}
