/* ═══════════════════════════════════════
   TankHub Landing — HQ Command Center
   Theme: Military-Futuristic / Fire & Steel (Modern Redesign)
   ═══════════════════════════════════════ */

@import url('./tokens.css');

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

:root {
  --bg: #050608;
  --bg-card: rgba(13, 15, 20, 0.45);
  --bg-elevated: #0f121a;
  --border: rgba(255, 255, 255, 0.04);
  --border-glow: rgba(255, 107, 0, 0.12);
  --fire: #ff6b00;
  --fire-rgb: 255, 107, 0;
  --fire-dark: #cc3f00;
  --fire-glow: rgba(255, 107, 0, 0.15);
  --hot: #ff3b30;
  --emerald: #10b981;
  --blue: #3b82f6;
  --text: #f3f4f6;
  --text-dim: #9ca3af;
  --text-muted: #4b5563;
  --font: 'Outfit', sans-serif;
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

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

/* Background Cyber Mesh */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 107, 0, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 0, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -2;
  opacity: 0.8;
}

/* Base styling */
a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ═══════════════════════════
   NAV — Floating Premium Glass
   ═══════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 32px;
  transition: all 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(5, 6, 8, 0.75);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(255, 107, 0, 0.15);
  padding: 12px 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 107, 0, 0.2);
}

.nav__logo span {
  color: var(--fire);
}

.nav__links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav__links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
  position: relative;
  padding: 4px 0;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--fire);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
  transform-origin: center;
}

.nav__links a:hover {
  color: #fff;
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

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

/* ═══════════════════════════
   BUTTONS (Sleek Military Style)
   ═══════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--ease);
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(135deg, var(--fire) 0%, var(--fire-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.25);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 107, 0, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-25deg);
  transition: all 0.75s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 0, 0.45);
}

.btn-primary:hover::before {
  left: 200%;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 107, 0, 0.3);
  color: var(--fire);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 14px;
  border-radius: 14px;
}

.accent {
  color: var(--fire);
}

/* ═══════════════════════════
   HERO (Full Viewport + Particle Overlay)
   ═══════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Dark Vignette Overlay for Video */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at center, rgba(5, 6, 8, 0) 20%, var(--bg) 95%),
    linear-gradient(to bottom, rgba(5, 6, 8, 0.4), var(--bg));
  z-index: 1;
}

/* Ambient Orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.14;
}

.hero__orb1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--fire) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: floatOrb 15s ease-in-out infinite;
}

.hero__orb2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  animation: floatOrb 18s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}

/* Sound controller button */
.sound-toggle {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 100;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 107, 0, 0.2);
  background: rgba(5, 6, 8, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--fire);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.sound-toggle:hover {
  background: rgba(255, 107, 0, 0.1);
  border-color: var(--fire);
  transform: scale(1.1);
}

.sound-toggle.active {
  background: rgba(255, 107, 0, 0.2);
  border-color: var(--fire);
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.3);
}

.sound-toggle .sound-hint {
  position: absolute;
  right: 66px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(5, 6, 8, 0.95);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 107, 0, 0.2);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 0, 0.08);
  border: 1px solid rgba(255, 107, 0, 0.25);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--fire);
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--fire);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--fire);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(54px, 10vw, 110px);
  line-height: 0.95;
  letter-spacing: 2px;
  margin-bottom: 24px;
  font-weight: 900;
  color: #fff;
}

.hero__sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero__stats {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 24px 48px;
  max-width: 700px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero__stat {
  flex: 1;
  text-align: center;
}

.hero__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--fire);
  line-height: 1;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
}

.hero__stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 6px;
  display: block;
}

.hero__stats-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
}

/* ═══════════════════════════
   SECTIONS & HEADERS
   ═══════════════════════════ */
.section {
  padding: 120px 24px;
  position: relative;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--fire);
  margin-bottom: 14px;
  background: rgba(255, 107, 0, 0.06);
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 107, 0, 0.2);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 60px);
  letter-spacing: 1.5px;
  line-height: 1.1;
  margin-bottom: 56px;
  font-weight: 900;
  color: #fff;
}

.section-title span {
  color: transparent;
  background: linear-gradient(135deg, #fff 40%, var(--fire));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════
   CARDS (Glassmorphic Glow Effect)
   ═══════════════════════════ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 36px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.card:hover {
  border-color: rgba(255, 107, 0, 0.25);
  box-shadow: 0 15px 40px rgba(255, 107, 0, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  transform: translateY(-6px);
}

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

.card__icon {
  margin-bottom: 24px;
  color: var(--fire);
  background: rgba(255, 107, 0, 0.06);
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 107, 0, 0.2);
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.1);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
  color: #fff;
  font-weight: 800;
}

.card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

.card__tag {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.3);
  color: var(--fire);
  padding: 4px 12px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
  border-radius: 6px;
  text-transform: uppercase;
}

.card--wide {
  grid-column: span 2;
}

/* ═══════════════════════════
   STEPS (Fast Start)
   ═══════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 36px;
  border-radius: 20px;
  transition: all 0.3s var(--ease);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.step:hover {
  border-color: rgba(255, 107, 0, 0.15);
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-2px);
}

.step__num {
  font-family: var(--font-display);
  font-size: 64px;
  color: rgba(255, 107, 0, 0.12);
  line-height: 0.8;
  flex-shrink: 0;
  font-weight: 900;
  text-shadow: 0 0 20px rgba(255, 107, 0, 0.05);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 800;
}

.step p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ═══════════════════════════
   LIVE / CALL TO ACTION BOARDS
   ═══════════════════════════ */
.live-section {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 15px 40px rgba(0, 0, 0, 0.4);
}

.live-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.06), transparent 60%);
  pointer-events: none;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 900;
  color: #ef4444;
  margin-bottom: 24px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulseLive 1.5s infinite;
  box-shadow: 0 0 8px #ef4444;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.3); }
}

.cta-box {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 20px 50px rgba(0, 0, 0, 0.4);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--fire) 0%, var(--hot) 100%);
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 68px);
  letter-spacing: 2px;
  margin-bottom: 16px;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
}

.cta-box p {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Animations reveals */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════
   RESPONSIVE OVERRIDES
   ═══════════════════════════ */
@media(max-width: 992px) {
  .nav__links {
    display: none;
  }
}

@media(max-width: 768px) {
  .card--wide {
    grid-column: span 1;
  }
  
  .hero__stats {
    flex-direction: column;
    gap: 20px;
    padding: 32px;
  }
  
  .hero__stats-divider {
    width: 60%;
    height: 1px;
  }
}
