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

:root {
  --color-bg: #0f172a;
  --color-surface: #1e293b;
  --color-surface-light: #334155;
  --color-primary: #f97316;
  --color-primary-dark: #ea580c;
  --color-primary-light: #fdba74;
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-border: rgba(255, 255, 255, 0.1);
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  background-image: url('./assets/blueprint_grid.png');
  background-size: cover;
  background-attachment: fixed;
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography Utilities */
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  color: var(--color-primary);
  font-size: 1.8rem;
}

.nav-logo {
  height: 40px;
  width: auto;
  display: block;
}

.footer-logo {
  height: 45px;
  width: auto;
  display: block;
}

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

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: rgba(249, 115, 22, 0.1);
  color: var(--color-primary);
}

/* Sections */
section {
  padding: 6rem 0;
}

.pt-nav {
  padding-top: 8rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero .container {
  max-width: 1600px; /* Shift text to the left on wide screens to reveal video */
  width: 95%;
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.6;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

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

.card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(249, 115, 22, 0.1);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-link {
  color: var(--color-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.card-link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.card:hover .card-link::after {
  transform: translateX(5px);
}

/* Feature Pages */
.feature-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-image-container {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 1px solid var(--color-border);
}

.feature-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
  border-radius: 1rem;
  pointer-events: none;
}

.feature-image-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.feature-image-container:hover img {
  transform: scale(1.02);
}

.stat-box {
  background: var(--color-surface);
  border-left: 4px solid var(--color-primary);
  padding: 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin-bottom: 1.5rem;
}

.stat-value {
  font-size: 2rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* ROI Calculator */
.calculator-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-control {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 1rem;
  border-radius: 0.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.calc-results {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.result-item.highlight {
  font-size: 2rem;
  color: var(--color-primary);
  font-weight: 800;
  font-family: var(--font-display);
}

/* Footer */
footer {
  background: #000;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--color-border);
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-about p {
  color: var(--color-text-muted);
  margin-top: 1rem;
}

.footer-links h4 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--color-text-muted);
}

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

.footer-bottom {
  text-align: center;
  color: var(--color-text-muted);
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ==========================================================================
   Mobile UI & Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
  .nav-links {
    gap: 1.5rem;
  }
  .feature-hero {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  nav .container {
    flex-direction: row !important;
    justify-content: space-between;
    padding: 1rem;
    gap: 1rem;
  }

  .nav-brand img {
    height: 40px;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
  }

  .nav-links a {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
  }

  .nav-links a:hover {
    background: rgba(249, 115, 22, 0.2);
  }

  /* Typography */
  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
    padding: 0 15px;
  }

  h2 {
    font-size: 2rem;
  }

  /* Layout */
  .feature-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .feature-hero.reverse {
    display: flex;
    flex-direction: column-reverse;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  /* Components */
  .btn {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .feature-image-container img {
    max-height: 300px;
    object-fit: cover;
  }

  /* ROI Calculator */
  .calculator-card {
    padding: 1.5rem;
  }
  
  .result-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-links a {
    width: 100%;
    text-align: center;
  }
}
\n
/* MOBILE NAVIGATION HOTFIX */
@media (min-width: 769px) {
    .nav-toggle { display: none !important; }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block !important;
        font-size: 1.8rem;
        color: var(--accent-blue, var(--color-orange, var(--color-primary, #fff)));
        cursor: pointer;
        z-index: 1001;
    }
    
    .nav-links {
        display: none !important;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(15px);
        padding: 20px 0;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links a {
        padding: 15px !important;
        font-size: 1.2rem !important;
        width: 100%;
        display: block;
    }

    .hero h1, .hero-title, .hero-content h1, .feature-content h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        word-break: break-word;
        hyphens: auto;
    }
}

@media (max-width: 480px) {
    .hero h1, .hero-title, .hero-content h1, .feature-content h1 {
        font-size: 1.8rem !important;
    }
}


@media (max-width: 768px) {
    .btn, a[href^="mailto:"] {
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-break: break-word !important;
        white-space: normal !important;
        font-size: 1rem !important;
        padding: 0.8rem 1rem !important;
        display: inline-flex !important;
        justify-content: center !important;
        text-align: center !important;
    }
}
