/* ===============================
   DESIGN TOKENS
   =============================== */
html,
body {
  margin: 0;
  padding: 0;
}

:root {
  --bg-main: #0b1120;
  --card-border: rgba(255, 255, 255, 0.12);

  --text-primary: #e6eaf0;
  --text-secondary: #b5bcc9;
  --nav-text: #d1d7e0;

  --accent-green: #6ee7a8;
  --accent-blue: #4da3ff;
  --accent-blue-soft: rgba(77, 163, 255, 0.18);
  --accent-blue-glow: rgba(77, 163, 255, 0.35);

  --primary: #0066FF;
  --primary-dark: #0052CC;
  --accent: #00A8E8;
  --success: #00D084;
  --bg-dark: #0A1628;
  --bg-card: #1A2840;
  --bg-card-hover: #243447;
  --text-primary: #FFFFFF;
  --text-secondary: #A0AEC0;
  --text-muted: #708090;
  --border: #2D3E52;
}

/* ===============================
   RESET
   =============================== */

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

body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  /* ✅ Push content below fixed header */
  padding-top: 58px;
}

.text-center {
  text-align: center !important;
}

/* ===============================
   HEADER — FIXED WITH BACKGROUND
   =============================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(8, 12, 22, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Scrolled state — triggered by layout.js */
.site-header.scrolled {
  background: rgba(8, 12, 22, 0.99);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

nav a {
  margin-left: 2rem;
  color: var(--nav-text);
  text-decoration: none;
  font-size: 0.95rem;
}

/* ===============================
   HERO
   =============================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 50% 20%,
      rgba(120, 140, 180, 0.18),
      rgba(11, 15, 20, 0.65) 60%),
    linear-gradient(135deg,
      rgba(40, 55, 85, 0.35) 0%,
      rgba(15, 22, 35, 0.55) 45%,
      rgba(5, 8, 15, 0.75) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ===============================
   HERO CONTENT
   =============================== */

.hero-content {
  position: relative;
  z-index: 2;
  margin: auto;
  padding: 9rem 2.5rem 6rem;
}

@media (min-width: 1400px) {
  .hero-content {
    max-width: 1750px;
  }
}

.hero h1 {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 3.4rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: hero-fade-up 0.9s ease-out forwards;
  animation-delay: 0.1s;
}

.subtitle {
  text-align: center;
  color: var(--accent-green);
  margin: 0 auto 1.5rem;
  font-size: 1.15rem;
  opacity: 0;
  animation: hero-fade-up 0.9s ease-out forwards;
  animation-delay: 0.25s;
}

.section-title {
  text-align: center;
  margin-bottom: 2.0rem;
  opacity: 0;
  animation: hero-fade-up 0.9s ease-out forwards;
  animation-delay: 0.4s;
}

.section::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(110, 231, 168, 0.55), transparent);
  box-shadow: 0 0 8px rgba(110, 231, 168, 0.25);
}

.bg-grid,
.hero-glow {
  pointer-events: none;
}

footer {
  position: relative;
  z-index: 10;
}

/* ===============================
   HERO TEXT ANIMATION
   =============================== */

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   PLATFORM COMPONENTS
   =============================== */

.platform-components {
  text-align: center;
  font-size: 0.95rem;
}

.platform-components strong {
  font-weight: 500;
}

.section-alt {
  position: relative;
  margin: auto;
  max-width: 1400px;
  padding: 1rem;
}

.section-alt::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(110, 231, 168, 0.55), transparent);
  box-shadow: 0 0 8px rgba(110, 231, 168, 0.75);
}

/* ===============================
   LAYOUT UTILITIES
   =============================== */

* {
  box-sizing: border-box;
}

.container {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.hero-content h1 {
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.1;
}

.subtitle {
  font-size: clamp(14px, 1.8vw, 18px);
}

/* ===============================
   RESPONSIVE OVERRIDES
   =============================== */

@media (max-width: 768px) {
  .section-title {
    font-size: 32px;
    margin-bottom: 1.5rem;
  }

  .cards {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 26px;
    margin-bottom: 1.25rem;
  }

  .container {
    width: 100%;
    padding-inline: 16px;
  }
}

@media (max-width: 368px) {
  .section-title {
    font-size: 22px;
    margin-bottom: 1rem;
  }
}
