/* ==========================================================================
   DNGWORLD CENTRALIZED DESIGN SYSTEM (V5.0)
   Art Direction: Bright Growth Editorial × Modern Strategic Consultancy
   Colors: 70% White / Soft-Blue, 20% Ink / Dark Text, 7% Primary Blue, 3% Accents
   Font: Be Vietnam Pro (400, 500, 600, 700, 800)
   ========================================================================== */

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

:root {
  /* Color Palette (V5 Spec) */
  --bg: #FFFFFF;
  --bg-soft: #F4F8FD;
  --bg-blue: #EAF3FF;
  --surface: #FFFFFF;
  --surface-hover: #F8FBFE;
  --ink: #15253E;
  --text: #293A51;
  --muted: #52667F;
  --dim: #7B8F9F;
  --border: #DCE6F1;
  --border-subtle: #E8F0F8;

  /* Primary Accent & States */
  --primary: #2357E8;
  --primary-hover: #1946C5;
  --primary-soft: #E9EFFF;

  /* Editorial & Indicator Accents */
  --mint: #33C9A7;          /* Trang trí / mảng màu */
  --mint-ink: #087767;      /* Chữ cần tương phản trên nền sáng */
  --mint-soft: #E5F9F2;
  --warm-accent: #F6B65F;   /* Highlight phụ */
  --warm-soft: #FFF7EC;
  --coral-accent: #F77968;  /* Highlight phụ */
  --coral-soft: #FEEFEF;
  --danger: #B42318;
  --success: #087767;

  /* Layout, Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --container: 1240px;
  --reading-width: 740px;

  --shadow-sm: 0 2px 6px rgba(21, 37, 62, 0.04);
  --shadow-card: 0 6px 20px rgba(21, 37, 62, 0.06);
  --shadow-hover: 0 12px 30px rgba(35, 87, 232, 0.12);

  /* Fonts */
  --font-sans: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Animation */
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.28s ease;
}

/* Full-Screen Cinematic Hero & 3D Growth Architecture (V9 Spec) */
.hero-fullscreen {
  position: relative;
  min-height: calc(100svh - 74px);
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-soft);
}

@media (min-width: 900px) {
  .hero-fullscreen {
    min-height: 720px;
    height: calc(100vh - 74px);
  }
}

.hero-3d-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
}

.hero-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  cursor: grab;
}

.hero-3d-canvas:active {
  cursor: grabbing;
}

.hero-3d-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: url('/assets/images/hero/dng_growth_3d_poster.jpg');
  background-size: cover;
  background-position: center 30%;
  pointer-events: none;
}

.hero-overlay-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.96) 0%, 
    rgba(255, 255, 255, 0.88) 42%, 
    rgba(255, 255, 255, 0.25) 75%, 
    rgba(255, 255, 255, 0.05) 100%
  ),
  linear-gradient(180deg, 
    rgba(255, 255, 255, 0.6) 0%, 
    transparent 15%, 
    transparent 82%, 
    rgba(255, 255, 255, 0.85) 100%
  );
}

@media (max-width: 860px) {
  .hero-overlay-layer {
    background: linear-gradient(180deg, 
      rgba(255, 255, 255, 0.94) 0%, 
      rgba(255, 255, 255, 0.88) 55%, 
      rgba(255, 255, 255, 0.72) 100%
    );
  }
}

.hero-content-layer {
  position: relative;
  z-index: 4;
  width: 100%;
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(48px, 6vw, 72px);
  pointer-events: none;
}

.hero-content-layer a,
.hero-content-layer button {
  pointer-events: auto;
}

.hero-copy-box {
  max-width: 640px;
  animation: heroCopyIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (min-width: 1080px) {
  .hero-copy-box {
    max-width: 580px;
  }
}

@keyframes heroCopyIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.hero-scroll-cue:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateX(-50%) translateY(2px);
}

.scroll-arrow {
  animation: bounceArrow 1.6s ease-in-out infinite;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font: inherit;
}

/* Headings (Be Vietnam Pro - No Serif on VI UI) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(34px, 4.5vw, 56px); line-height: 1.15; font-weight: 800; }
h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.22; }
h3 { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.3; font-weight: 600; }
h4 { font-size: 18px; line-height: 1.4; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(18px, 4vw, 40px);
  padding-right: clamp(18px, 4vw, 40px);
}

.reading-container {
  width: 100%;
  max-width: var(--reading-width);
  margin-left: auto;
  margin-right: auto;
}

/* Section Spacing */
.section {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 96px);
}

.section-sm {
  padding-top: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(32px, 4vw, 56px);
}

.section-soft {
  background: var(--bg-soft);
}

.section-blue {
  background: var(--bg-blue);
}

/* Badges & Status */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--border);
}

.status-badge.live {
  background: var(--mint-soft);
  color: var(--mint-ink);
  border-color: rgba(51, 201, 167, 0.35);
}

.status-badge.self-reported {
  background: var(--warm-soft);
  color: #925805;
  border-color: rgba(246, 182, 95, 0.4);
}

.status-badge.primary {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: rgba(35, 87, 232, 0.25);
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 12px;
  display: inline-block;
}

/* Buttons (V5 Spec) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  background: var(--primary);
  color: #FFFFFF;
}

.btn:hover {
  background: var(--primary-hover);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(35, 87, 232, 0.25);
  transform: translateY(-1px);
}

.btn-outline {
  background: #FFFFFF;
  border-color: var(--border);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
  box-shadow: none;
}

.btn-soft {
  background: var(--primary-soft);
  color: var(--primary);
}

.btn-soft:hover {
  background: #D8E5FF;
  color: var(--primary-hover);
  box-shadow: none;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 16px;
}

/* Cards (Bright Surface) */
.dng-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3.5vw, 32px);
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.dng-card:hover {
  border-color: rgba(35, 87, 232, 0.3);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.dng-card.featured {
  border-color: rgba(35, 87, 232, 0.35);
  background: linear-gradient(180deg, #FFFFFF, var(--bg-soft));
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 3vw, 32px);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 28px);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 960px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Form Controls */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(35, 87, 232, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

/* Header (V5 Standard) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 74px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(18px, 4vw, 40px);
  padding-right: clamp(18px, 4vw, 40px);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand-name {
  color: var(--ink);
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.brand-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg-blue);
  color: var(--primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--primary);
  font-weight: 600;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  color: var(--ink);
  font-size: 16px;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFFFF;
  z-index: 99;
  padding: 24px clamp(18px, 4vw, 40px);
  overflow-y: auto;
  border-top: 1px solid var(--border);
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.mobile-nav-list a {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* Quickbar */
.quickbar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(21, 37, 62, 0.12);
}

.quickbar a {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.quickbar a:hover {
  background: var(--bg-soft);
  color: var(--primary);
}

.quickbar .book {
  background: var(--primary);
  color: #FFFFFF;
}

.quickbar .book:hover {
  background: var(--primary-hover);
  color: #FFFFFF;
}

/* Footer (V5 4-column minimal) */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding-top: 64px;
  padding-bottom: 48px;
  color: var(--muted);
  font-size: 14px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 36px;
  margin-bottom: 48px;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-brand p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  max-width: 300px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 16px;
  font-weight: 700;
}

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

.footer-col a {
  color: var(--muted);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--primary);
}

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

/* Accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
