/* =============================================
   PATHTRAFFIC - SHARED STYLESHEET
   Used by all pages via relative path
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
  --bg-dark: #070B14;
  --bg-card: #0D1526;
  --bg-card2: #111C33;
  --accent: #FF5500;
  --accent2: #FF7A33;
  --cyan: #00C8FF;
  --purple: #8B5CF6;
  --white: #FFFFFF;
  --gray-100: #F0F4FF;
  --gray-300: #A8B5CC;
  --gray-500: #5A6A85;
  --border: rgba(255, 255, 255, 0.08);
  --font-main: 'Inter', sans-serif;
  --font-head: 'Space Grotesk', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

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

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

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-300);
  max-width: 600px;
  line-height: 1.7;
  margin-top: 16px;
}

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--accent), var(--accent2));
  border-radius: 2px;
  margin: 20px 0;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(255, 85, 0, 0.35);
}

.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 85, 0, 0.5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 27px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

/* Glass card */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.25s, transform 0.25s;
}

.glass-card:hover {
  border-color: rgba(255, 85, 0, 0.3);
  transform: translateY(-4px);
}

/* Fade animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   NAVBAR
============================================= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background 0.3s, backdrop-filter 0.3s;
}

#navbar.scrolled {
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
}

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

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-300);
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.nav-cta {
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: 9px 20px;
  border-radius: 7px;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--accent2);
  transform: translateY(-1px);
}

/* Burger button */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s, background 0.2s;
  z-index: 1100;
  flex-shrink: 0;
}

.nav-burger:hover {
  border-color: rgba(255, 85, 0, 0.4);
  background: rgba(255, 85, 0, 0.06);
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Burger open state */
.nav-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(7, 11, 20, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer a {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-300);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.nav-drawer a:hover,
.nav-drawer a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}

.nav-drawer .drawer-cta {
  margin-top: 8px;
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: 8px;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(255, 85, 0, 0.35);
  transition: background 0.2s;
}

.nav-drawer .drawer-cta:hover {
  background: var(--accent2);
}

/* Backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-backdrop.open {
  opacity: 1;
}

/* =============================================
   INNER PAGE HERO (shared banner)
============================================= */
.page-hero {
  padding: 140px 24px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(255, 85, 0, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero .section-label {
  justify-content: center;
  text-align: center;
}

.page-hero .section-title {
  margin: 0 auto;
}

.page-hero .section-subtitle {
  margin: 16px auto 0;
  text-align: center;
}

/* =============================================
   FOOTER
============================================= */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 52px 24px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Top row: brand on left, nav links on right */
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand .nav-logo {
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.6;
  max-width: 340px;
}

/* Horizontal link rows */
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.footer-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  justify-content: flex-end;
}

.footer-nav-row a {
  font-size: 0.85rem;
  color: var(--gray-300);
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.footer-nav-row a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}

.footer-nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-500);
  text-align: right;
  padding-right: 4px;
}

/* Bottom row */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.83rem;
  color: var(--gray-500);
}

.footer-bottom a {
  color: var(--gray-300);
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--white);
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-btn {
  width: 38px;
  height: 38px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.social-btn:hover {
  border-color: rgba(255, 85, 0, 0.4);
  background: rgba(255, 85, 0, 0.08);
  transform: translateY(-2px);
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .footer-top {
    flex-direction: column;
    gap: 36px;
  }

  .footer-nav {
    align-items: flex-start;
    width: 100%;
  }

  .footer-nav-row {
    justify-content: flex-start;
  }

  .footer-nav-label {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .nav-drawer {
    display: flex;
  }

  .nav-backdrop {
    display: block;
  }
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* =============================================
   SHARED NAVBAR SCROLL JS helper
============================================= */
/* (JS included inline per page) */