/* ==========================================================================
   HZTVS Global Stylesheet
   ========================================================================== */

:root {
  /* Colors */
  --bg-base: #0B0E14;
  --bg-surface: #141820;
  --bg-surface-hover: #1A1F29;
  
  --primary: #36CFC9;
  --primary-glow: rgba(54, 207, 201, 0.15);
  --secondary: #7B61FF;
  --accent: #22C55E;
  
  --text-100: #F8FAFC;
  --text-200: #E2E8F0;
  --text-muted: #94A3B8;
  
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(54, 207, 201, 0.25);

  /* Typography */
  --font-heading: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  --font-body: 'DM Sans', 'Noto Sans SC', sans-serif;
  --font-mono: 'Space Mono', 'Consolas', monospace;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  background-color: var(--bg-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-200);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* --------------------------------------------------------------------------
   Backgrounds
   -------------------------------------------------------------------------- */
.bg-grid {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1; pointer-events: none;
  background-size: 50px 50px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
  animation: grid-move 20s linear infinite;
}
@keyframes grid-move {
  0% { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}

.bg-lights {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -2; pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 0%, rgba(54, 207, 201, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 100%, rgba(123, 97, 255, 0.15) 0%, transparent 40%);
  animation: ambient-shift 12s ease-in-out infinite alternate;
}
@keyframes ambient-shift {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(2%, 2%); }
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-100);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.muted {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Layout Containers
   -------------------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  text-align: center;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 64px;
  max-width: 600px;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Bento Grid System
   -------------------------------------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  auto-rows: minmax(min-content, max-content);
}

.col-span-1 { grid-column: span 1; }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.row-span-2 { grid-row: span 2; }

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.02), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-2px) scale(1.005);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow);
}

.bento-card:hover::before {
  opacity: 1;
}

.icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(54, 207, 201, 0.1);
  color: var(--primary);
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   Navigation Glass
   -------------------------------------------------------------------------- */
.nav-glass {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1152px;
  z-index: 100;
  background: rgba(11, 14, 20, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  transition: var(--transition-smooth);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-100);
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-name span { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-links a:hover {
  color: var(--text-100);
}

.nav-cta {
  background: var(--text-100);
  color: var(--bg-base) !important;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600 !important;
  transition: var(--transition-smooth);
}
.nav-cta:hover {
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   Buttons & UI Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 20px;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn:hover::after {
  animation: anime-slash 0.6s ease-out forwards;
}

.btn-primary {
  background: linear-gradient(90deg, #36CFC9, #7B61FF);
  color: white;
  border: none;
  box-shadow: 0 10px 25px rgba(54, 207, 201, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(54, 207, 201, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-100);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--text-200);
  transition: var(--transition-smooth);
}
.pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(54, 207, 201, 0.05);
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: var(--radius-full);
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600;
}

.data-stat {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1;
}
.data-stat span {
  font-size: 1.5rem;
  color: var(--text-muted);
  font-weight: 400;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-100);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Hero & Logo Styling
   -------------------------------------------------------------------------- */
.hero {
  padding-top: 140px;
  padding-bottom: 60px;
  position: relative;
}

.logo-container {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
}
.logo-container:hover .logo-glow-bg {
  opacity: 1;
  transform: scale(1.15);
}

.logo-glow-bg {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
  filter: blur(25px);
  opacity: 0.6;
  transition: all 0.6s ease;
  z-index: -1;
  pointer-events: none;
}

.hero-logo {
  max-width: 180px;
  height: auto;
  opacity: 1;
  filter: drop-shadow(0 4px 20px rgba(54, 207, 201, 0.3));
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-container:hover .hero-logo {
  filter: drop-shadow(0 0 25px var(--primary)) brightness(1.15);
  transform: scale(1.05) rotate(-1deg);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
.reveal-target {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal-target.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.anime-float {
  animation: float-anime 4s ease-in-out infinite;
}
@keyframes float-anime {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes anime-slash {
  0% { left: -50%; }
  100% { left: 150%; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: inline-block;
}
.footer-brand-logo {
  max-height: 72px;
  filter: grayscale(1) invert(1) opacity(0.6);
  transition: all 0.4s;
}
.footer-brand-logo:hover {
  filter: grayscale(0) opacity(1);
  transform: scale(1.1);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .col-span-3, .col-span-4 { grid-column: span 2; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .bento-grid { grid-template-columns: 1fr; }
  .col-span-2, .col-span-3, .col-span-4 { grid-column: span 1; }
  .row-span-2 { grid-row: span 1; }
}
