/* ===================================
   NOVACREST DESIGN SYSTEM
   Agile Execution, Powerful Results
   =================================== */

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

/* ===================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   =================================== */
:root {
  /* Brand Colors */
  --midnight-onyx: #0A0E1A;
  --midnight-onyx-light: #141824;
  --midnight-onyx-lighter: #1E2330;
  --electric-silver: #C0C8D8;
  --electric-silver-dark: #8A92A8;
  --neon-cyan: #00F0FF;
  --neon-cyan-glow: rgba(0, 240, 255, 0.3);
  --neon-cyan-dim: rgba(0, 240, 255, 0.1);

  /* Gradient Variations */
  --gradient-primary: linear-gradient(135deg, var(--neon-cyan) 0%, #0088FF 100%);
  --gradient-dark: linear-gradient(180deg, var(--midnight-onyx) 0%, var(--midnight-onyx-light) 100%);
  --gradient-glow: radial-gradient(circle at center, var(--neon-cyan-glow) 0%, transparent 70%);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  /* Shadows & Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px var(--neon-cyan-glow);
  --shadow-glow-strong: 0 0 50px rgba(0, 240, 255, 0.5);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--midnight-onyx);
  color: var(--electric-silver);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
}

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-cyan {
  color: var(--neon-cyan);
}

.text-glow {
  text-shadow: 0 0 20px var(--neon-cyan-glow);
}

/* ===================================
   LAYOUT COMPONENTS
   =================================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section-dark {
  background-color: var(--midnight-onyx-light);
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(192, 200, 216, 0.1);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  padding: var(--space-sm) 0;
  background: rgba(10, 14, 26, 0.95);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav-container a[aria-label="Novacrest Home"] {
  display: inline-block;
  line-height: 0;
}

.logo {
  height: 50px;
  width: auto;
  transition: transform var(--transition-base);
  display: block;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--electric-silver);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-links a:hover {
  color: var(--neon-cyan);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--neon-cyan);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--midnight-onyx);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
}

.btn-secondary {
  background: transparent;
  color: var(--neon-cyan);
  border: 2px solid var(--neon-cyan);
}

.btn-secondary:hover {
  background: var(--neon-cyan-dim);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ===================================
   CARDS
   =================================== */
.card {
  background: rgba(30, 35, 48, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(192, 200, 216, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: var(--space-md);
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 10px var(--neon-cyan-glow));
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: #FFFFFF;
}

.card-description {
  color: var(--electric-silver);
  line-height: 1.6;
}

/* ===================================
   GRID LAYOUTS
   =================================== */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  background-image: url('hero-panther.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(10, 14, 26, 0.85) 0%,
      rgba(10, 14, 26, 0.75) 50%,
      rgba(10, 14, 26, 0.85) 100%),
    radial-gradient(circle at 30% 50%, var(--neon-cyan-dim) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(0, 136, 255, 0.1) 0%, transparent 50%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 60% 40%, rgba(0, 240, 255, 0.15) 0%, transparent 60%);
  mix-blend-mode: screen;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--neon-cyan);
  border-radius: 50px;
  color: var(--neon-cyan);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.hero h1 {
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--electric-silver);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-features {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--electric-silver);
  font-size: 1rem;
}

.hero-feature svg {
  color: var(--neon-cyan);
  width: 20px;
  height: 20px;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   PRODUCT GRID
   =================================== */
.product-card {
  position: relative;
  height: 100%;
}

.product-card .card-benefit {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all var(--transition-slow);
  margin-top: 0;
}

.product-card:hover .card-benefit {
  max-height: 200px;
  opacity: 1;
  margin-top: var(--space-md);
}

.product-logo-placeholder {
  width: 100%;
  height: 80px;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, rgba(0, 136, 255, 0.1) 100%);
  border: 2px dashed rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.product-logo-placeholder span {
  color: var(--neon-cyan);
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.7;
  text-align: center;
}

.product-logo-placeholder:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15) 0%, rgba(0, 136, 255, 0.15) 100%);
  border-color: rgba(0, 240, 255, 0.5);
}

.product-logo-placeholder img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: var(--space-sm);
}

.product-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--gradient-primary);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

/* ===================================
   STAKEHOLDER SECTION
   =================================== */
.stakeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.stakeholder-card {
  text-align: center;
}

.stakeholder-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.stakeholder-icon svg {
  width: 40px;
  height: 40px;
  color: #FFFFFF;
}

/* ===================================
   FOOTER CTA
   =================================== */
.cta-section {
  background: linear-gradient(135deg, var(--midnight-onyx-light) 0%, var(--midnight-onyx) 100%);
  border-top: 1px solid rgba(0, 240, 255, 0.2);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--neon-cyan-glow) 0%, transparent 70%);
  opacity: 0.3;
  animation: pulse 4s ease-in-out infinite;
}

.cta-content {
  position: relative;
  z-index: 1;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-xl) var(--space-md);
    transition: left var(--transition-base);
  }

  .nav-links.active {
    left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .hero-features {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .section {
    padding: var(--space-xl) 0;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }

  .logo {
    height: 40px;
  }

  .card {
    padding: var(--space-md);
  }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-center {
  text-align: center;
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}