/* ===== HARMONIOUS ORANGE & BLUE THEME SYSTEM (TN VÒNG BI TUẤN NHUNG) ===== */
:root {
  /* Dark Navy Base (High contrast & eye-comfort matching TN logo) */
  --bg-primary: #070d1a;
  --bg-secondary: #0b1528;
  --bg-surface: #13223f;
  --bg-card: rgba(11, 21, 40, 0.88);
  --bg-card-hover: rgba(19, 34, 63, 0.95);
  
  /* Brand Orange Palette (Logo Match: #f25900 / #ff5500) */
  --brand-orange: #f25900;
  --brand-orange-hover: #d94e00;
  --brand-orange-light: #ffedd5;
  --brand-orange-glow: rgba(242, 89, 0, 0.38);

  /* Brand Blue Palette (Logo Match: #002b49 / #0284c7) */
  --brand-blue: #0284c7;
  --brand-blue-hover: #0369a1;
  --brand-blue-navy: #002b49;
  --brand-blue-light: #e0f2fe;
  --brand-blue-glow: rgba(56, 189, 248, 0.35);
  --accent-cyan: #38bdf8;

  /* Social Channels */
  --color-zalo: #0068ff;
  --color-fb: #1877f2;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-focus: rgba(56, 189, 248, 0.45);
  --border-orange: rgba(242, 89, 0, 0.45);

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #070d1a;

  --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family-display: 'Space Grotesk', 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography Gradient (Orange to Blue Balance) */
.brand-gradient-text {
  background: linear-gradient(135deg, #ff7a29 0%, #f25900 40%, #38bdf8 80%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blue-gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.orange-gradient-text {
  background: linear-gradient(135deg, #fdba74 0%, #f25900 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== UNIFIED BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-orange {
  background: rgba(242, 89, 0, 0.15);
  border: 1px solid var(--border-orange);
  color: #ff7a29;
}

.badge-blue {
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid var(--border-focus);
  color: var(--accent-cyan);
}

.badge-dual {
  background: linear-gradient(135deg, rgba(242, 89, 0, 0.18), rgba(2, 132, 199, 0.18));
  border: 1px solid rgba(242, 89, 0, 0.4);
  color: #ffedd5;
}

/* ===== UNIFIED BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font-family-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

/* Button Zalo */
.btn-zalo {
  background: linear-gradient(135deg, #0068ff 0%, #0050c7 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 104, 255, 0.35);
}

.btn-zalo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 104, 255, 0.55);
}

/* Button Facebook */
.btn-fb {
  background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.35);
}

.btn-fb:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(24, 119, 242, 0.55);
}

/* Button Orange (Hero Action) */
.btn-orange {
  background: linear-gradient(135deg, #f25900 0%, #d94e00 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--brand-orange-glow);
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(242, 89, 0, 0.55);
}

/* Button Blue */
.btn-blue {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--brand-blue-glow);
}

.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(2, 132, 199, 0.55);
}

/* Button Outline */
.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 28px;
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: var(--border-focus);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* ===== NAVBAR (CLEAN & RESPONSIVE) ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 13, 26, 0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 0 14px rgba(242, 89, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s;
}

.nav-brand:hover .nav-logo-img {
  transform: rotate(15deg) scale(1.05);
}

.nav-brand-text {
  display: flex;
  align-items: center;
}

.nav-brand-title {
  font-family: var(--font-family-display);
  font-size: 1.22rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

.nav-ctas {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ===== HERO SECTION (CENTERED LAYOUT) ===== */
.hero-section {
  padding-top: 110px;
  padding-bottom: 60px;
  position: relative;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(2, 132, 199, 0.18) 0%, rgba(242, 89, 0, 0.12) 40%, transparent 70%);
}

.hero-centered-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-logo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.hero-logo-img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 0 24px var(--brand-orange-glow);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-family: var(--font-family-display);
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 10px;
  margin-bottom: 12px;
}

.hero-slogan {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ff7a29;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 auto 26px;
  max-width: 800px;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

/* ===== 3D CANVAS VIEWER (PERFECTLY CENTERED) ===== */
.hero-3d-box {
  max-width: 880px;
  width: 100%;
  margin: 0 auto 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.canvas-frame {
  width: 100%;
  height: 480px;
  position: relative;
  border-radius: 24px;
  background: radial-gradient(circle, rgba(11, 21, 40, 0.95) 0%, rgba(7, 13, 26, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 50px rgba(2, 132, 199, 0.18), inset 0 0 30px rgba(242, 89, 0, 0.08);
  cursor: grab;
  overflow: hidden;
}

.canvas-frame canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border-radius: 24px;
}

.canvas-frame:active {
  cursor: grabbing;
}

.canvas-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 10;
  pointer-events: none;
}

.canvas-tooltip {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.75);
  padding: 6px 16px;
  border-radius: 20px;
  pointer-events: none;
  white-space: nowrap;
}

/* 3D Action Controls */
.controls-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  justify-content: center;
  width: 100%;
}

.ctrl-btn {
  background: rgba(19, 34, 63, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.ctrl-btn:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--accent-cyan);
}

.ctrl-btn.active {
  background: var(--brand-orange);
  color: #ffffff;
  border-color: var(--brand-orange);
  box-shadow: 0 0 14px var(--brand-orange-glow);
}

.brand-switch-bar {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.brand-btn {
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(11, 21, 40, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.brand-btn.active {
  background: linear-gradient(135deg, rgba(242, 89, 0, 0.25), rgba(2, 132, 199, 0.25));
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.hero-trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.trust-item h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-orange);
}

.trust-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ===== SECTION HEADER ===== */
.section {
  padding: 80px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-head h2 {
  font-family: var(--font-family-display);
  font-size: 2.2rem;
  font-weight: 800;
  margin-top: 12px;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ===== 3 MAIN PRODUCT SHOWCASE CARDS ===== */
.product-detailed-cards {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.product-focus-card {
  border-radius: 24px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(11, 21, 40, 0.9) 0%, rgba(7, 13, 26, 0.96) 100%);
}

.product-focus-card.nf-card {
  border-left: 5px solid var(--brand-orange);
  box-shadow: 0 10px 30px rgba(242, 89, 0, 0.08);
}

.product-focus-card.nachi-card {
  border-left: 5px solid var(--brand-blue);
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.08);
}

.product-focus-card.koyo-card {
  border-left: 5px solid #38bdf8;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.08);
}

/* Split layout: Image Left, Content Right */
.card-main-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: start;
}

/* Product Image Box */
.product-image-box {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #040811;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.product-image-box img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.product-focus-card:hover .product-image-box img {
  transform: scale(1.05);
}

.img-seal-tag {
  padding: 10px 14px;
  background: rgba(11, 21, 40, 0.95);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.focus-card-title {
  font-family: var(--font-family-display);
  font-size: 1.95rem;
  font-weight: 800;
  color: #ffffff;
}

.focus-card-tagline {
  color: #ff7a29;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 4px;
}

.focus-card-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Ranges Grid inside Product Card */
.ranges-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.range-box {
  background: rgba(19, 34, 63, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
}

.range-series-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.range-codes {
  font-family: monospace;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ff7a29;
  background: rgba(0, 0, 0, 0.4);
  padding: 5px 9px;
  border-radius: 6px;
  margin-bottom: 8px;
  display: inline-block;
  line-height: 1.4;
}

.range-app {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.range-seal {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Product Highlights & Action Footer */
.card-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.highlights-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-item {
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 20px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== QUICK SPEC SEARCH & FILTER ===== */
.filter-search-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-input-wrap {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.filter-input-wrap input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
}

.filter-input-wrap input:focus {
  border-color: var(--accent-cyan);
}

.filter-input-wrap i {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* ===== COMMITMENTS & TRUST SECTION ===== */
.commitments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.commit-card {
  padding: 24px;
  border-radius: 16px;
  text-align: center;
}

.commit-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(242, 89, 0, 0.2), rgba(2, 132, 199, 0.2));
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--brand-orange);
}

.commit-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
}

.commit-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ===== DIRECT CONTACT BAR (ZALO & FACEBOOK) ===== */
.contact-cta-section {
  background: linear-gradient(135deg, rgba(242, 89, 0, 0.16) 0%, rgba(2, 132, 199, 0.18) 100%);
  border: 1px solid var(--border-focus);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-channel-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ===== FLOATING STICKY ACTION BUTTONS ===== */
.floating-social-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dock-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 50px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s, box-shadow 0.25s;
}

.dock-btn.zalo {
  background: linear-gradient(135deg, #0068ff 0%, #004ecc 100%);
  box-shadow: 0 6px 20px rgba(0, 104, 255, 0.4);
}

.dock-btn.fb {
  background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%);
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

.dock-btn.phone {
  background: linear-gradient(135deg, #f25900 0%, #d94e00 100%);
  box-shadow: 0 6px 20px var(--brand-orange-glow);
  animation: pulse-orange 2s infinite;
}

.dock-btn:hover {
  transform: scale(1.06);
}

@keyframes pulse-orange {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 89, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(242, 89, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(242, 89, 0, 0);
  }
}

/* ===== FOOTER ===== */
.footer {
  background: #040811;
  border-top: 1px solid var(--border-subtle);
  padding: 50px 0 25px;
  color: var(--text-secondary);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: contain;
}

.footer-copy {
  text-align: center;
  padding-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== RESPONSIVE OPTIMIZATION ===== */
@media (max-width: 992px) {
  .card-main-grid {
    grid-template-columns: 1fr;
  }
  .product-image-box img {
    height: 260px;
  }
  .commitments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .nav-brand-title {
    font-size: 1.05rem;
  }
  .nav-logo-img {
    width: 36px;
    height: 36px;
  }
  .nav-ctas .btn {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
  .hero-title {
    font-size: 1.95rem;
  }
  .hero-slogan {
    font-size: 0.95rem;
  }
  .hero-logo-img {
    width: 60px;
    height: 60px;
  }
  .canvas-frame {
    height: 360px;
  }
  .commitments-grid,
  .hero-trust-bar {
    grid-template-columns: 1fr;
  }
}
