:root {
  /* Matrix / Police Security Cyber Green Palette */
  --bg-primary: #060e0a;
  --bg-secondary: #0a1711;
  --bg-card: rgba(10, 22, 16, 0.72);
  --bg-card-hover: rgba(16, 36, 26, 0.85);
  --border-glow: rgba(0, 230, 118, 0.35);
  --border-subtle: rgba(0, 230, 118, 0.14);
  
  --primary-color: #00e676;
  --secondary-color: #00a152;
  --accent-green: #00e676;
  --accent-emerald: #10b981;
  --accent-teal: #00b4d8;
  --accent-gold: #f59e0b;
  --accent-amber: #fbbf24;
  
  --text-main: #f0fdf4;
  --text-light: #e8f5e9;
  --text-muted: #a5d6a7;
  --text-dim: #6b9a76;
  
  --gradient-brand: linear-gradient(135deg, #00e676 0%, #00c853 50%, #00796b 100%);
  --gradient-glow: radial-gradient(circle at center, rgba(0, 230, 118, 0.2) 0%, rgba(0, 161, 82, 0.08) 50%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(0, 230, 118, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  
  --font-main: 'Be Vietnam Pro', 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-neon: 0 0 25px rgba(0, 230, 118, 0.4);
  --shadow-green-soft: 0 10px 30px rgba(0, 230, 118, 0.15);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* 3D Canvas Background Container */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
  pointer-events: auto;
}

/* Background Ambient Glows */
.ambient-glow {
  position: fixed;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: pulseGlow 10s ease-in-out infinite alternate;
}

.ambient-glow-1 {
  top: -120px;
  right: -100px;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.35) 0%, transparent 70%);
}

.ambient-glow-2 {
  bottom: 5%;
  left: -150px;
  background: radial-gradient(circle, rgba(0, 161, 82, 0.3) 0%, transparent 70%);
  animation-delay: -5s;
}

@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.25; }
  100% { transform: scale(1.18) translate(30px, 20px); opacity: 0.45; }
}

/* Content wrapper */
.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0.9rem 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(6, 14, 10, 0.82);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.logo-img-wrapper {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 230, 118, 0.6));
  transition: transform 0.3s ease;
}

.logo-group:hover .logo-img-wrapper img {
  transform: scale(1.08) rotate(3deg);
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  background: linear-gradient(90deg, #ffffff 0%, #00e676 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(0, 230, 118, 0.15);
  color: var(--primary-color);
  border: 1px solid rgba(0, 230, 118, 0.35);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

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

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  color: #041009;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 230, 118, 0.55);
  color: #000;
}

.btn-secondary {
  background: rgba(0, 230, 118, 0.06);
  color: var(--text-light);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(0, 230, 118, 0.14);
  border-color: var(--border-glow);
  transform: translateY(-2px);
  color: var(--primary-color);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.02rem;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7.5rem 2rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

.text-nowrap {
  white-space: nowrap;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 680px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.45rem 1.1rem;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
}

.hero-pill .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-color);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  letter-spacing: -0.005em;
}

.hero-title .title-prefix {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.hero-title .title-main {
  font-size: 2.65rem;
  font-weight: 800;
  line-height: 1.22;
  background: linear-gradient(135deg, #00f59b 0%, #00e676 45%, #69f0ae 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(0, 230, 118, 0.4));
}

.hero-title .title-suffix {
  font-size: 2.15rem;
  font-weight: 650;
  line-height: 1.25;
  color: #dcfce7;
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Quick Status HUD */
.status-hud-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 230, 118, 0.1);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.status-hud-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color), var(--accent-gold));
}

.status-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.status-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.hud-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.hud-metric-item {
  background: rgba(0, 230, 118, 0.03);
  border: 1px solid rgba(0, 230, 118, 0.08);
  padding: 0.9rem;
  border-radius: var(--radius-md);
}

.hud-metric-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.hud-metric-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
  font-family: var(--font-mono);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.hud-metric-val small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
}

.channel-tag-group {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.channel-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(0, 230, 118, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.channel-tag.fb {
  border-color: rgba(0, 230, 118, 0.3);
  color: var(--primary-color);
  background: rgba(0, 230, 118, 0.08);
}

.channel-tag.zalo {
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.08);
}

/* Features & Architecture Grid */
.section {
  padding: 6rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* 3D Tilt Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.tilt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 15px 35px -10px rgba(0, 230, 118, 0.25);
}

.tilt-card .card-glow-spot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(0, 230, 118, 0.15), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tilt-card:hover .card-glow-spot {
  opacity: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  background: rgba(0, 230, 118, 0.05);
  border: 1px solid var(--border-subtle);
}

.card-icon.green {
  color: var(--primary-color);
  background: rgba(0, 230, 118, 0.12);
  border-color: rgba(0, 230, 118, 0.35);
}

.card-icon.emerald {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}

.card-icon.gold {
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

.card-icon.teal {
  color: var(--accent-teal);
  background: rgba(0, 180, 216, 0.12);
  border-color: rgba(0, 180, 216, 0.35);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.5rem;
}

.tag-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 230, 118, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(0, 230, 118, 0.1);
}

/* AI Pipeline Flow Section */
.pipeline-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.35);
  margin-bottom: 1.25rem;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Quick Access Hub */
.cta-banner {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.12) 0%, rgba(0, 161, 82, 0.18) 100%);
  border: 1px solid rgba(0, 230, 118, 0.35);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

.cta-banner h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.cta-banner p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.cta-button-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 14, 10, 0.95);
  padding: 3rem 2rem 2rem;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-pill {
    align-self: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .pipeline-steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.5rem;
  }
  
  .hero-title .title-prefix {
    font-size: 1.85rem;
  }
  .hero-title .title-main {
    font-size: 2.15rem;
  }
  .hero-title .title-suffix {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero-title .title-prefix {
    font-size: 1.45rem;
  }
  .hero-title .title-main {
    font-size: 1.65rem;
  }
  .hero-title .title-suffix {
    font-size: 1.35rem;
  }
  
  .pipeline-steps {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}
