/* ==========================================================================
   ERPFlow — Design System & Master Stylesheet
   Theme: ERPFlow App — Deep Navy & Signal Yellow
   "Forging the Future of Indian Manufacturing"
   ========================================================================== */

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

:root {
  /* Surface & Base Colors (Soft Black & Charcoal - Never pure #000) */
  --bg-primary: #0B1426;
  --bg-surface: #112039;
  --bg-elevated: #1A2D4D;
  --bg-card: rgba(17, 32, 57, 0.78);
  --bg-card-hover: rgba(26, 45, 77, 0.92);
  --bg-glass: rgba(11, 20, 38, 0.72);
  --bg-input: #0E1A30;

  /* Luxurious Gold Spectrum */
  --gold-light: #FFE066;
  --gold-primary: #FFD43B;
  --gold-deep: #F2B705;
  --gold-champagne: #FFF1BF;
  --gold-amber: #F59E0B;
  
  /* Gold Gradients */
  --grad-gold: linear-gradient(135deg, #FFE066 0%, #FFD43B 50%, #F2B705 100%);
  --grad-gold-horizontal: linear-gradient(90deg, #FFE066 0%, #FFD43B 55%, #F2B705 100%);
  --grad-gold-soft: linear-gradient(135deg, rgba(255, 224, 102, 0.16) 0%, rgba(255, 212, 59, 0.05) 100%);
  --grad-surface: linear-gradient(180deg, #152643 0%, #0E1A30 100%);
  --grad-dark-overlay: linear-gradient(180deg, rgba(11, 20, 38, 0.5) 0%, rgba(11, 20, 38, 0.92) 80%, #0B1426 100%);

  /* Typography Colors */
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --text-gold: #FFE066;

  /* Borders & Accents */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card: rgba(255, 212, 59, 0.18);
  --border-gold-glow: rgba(255, 224, 102, 0.45);
  
  /* Glow Shadows & Industrial Radiance */
  --glow-gold-sm: 0 0 16px rgba(255, 212, 59, 0.22);
  --glow-gold-md: 0 0 32px rgba(255, 212, 59, 0.35);
  --glow-gold-lg: 0 10px 48px rgba(255, 212, 59, 0.45);
  --glow-molten: 0 0 30px rgba(245, 158, 11, 0.28), 0 0 60px rgba(255, 212, 59, 0.2);

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Layout & Spacing */
  --container-max: 1280px;
  --nav-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
  background-color: var(--bg-primary);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 212, 59, 0.08) 0%, transparent 60%),
    url('../svg/circuit-pattern.svg');
  background-repeat: no-repeat, repeat;
  background-size: 100% 900px, 300px 300px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #233A60;
  border-radius: 6px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 400;
}

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

/* Gradient Text Effect */
.gold-gradient-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.champagne-gradient-text {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF1BF 50%, #FFD43B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6.5rem 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 4.5rem 0;
  }
}

/* Header & Sticky Glass Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(11, 20, 38, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 212, 59, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.brand-symbol {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--glow-gold-sm);
}

.brand-logo span.highlight {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-gold);
  border-radius: 2px;
  box-shadow: var(--glow-gold-sm);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.82rem 1.65rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.btn-gold {
  background: var(--grad-gold);
  color: #0B1426;
  box-shadow: var(--glow-gold-sm);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-gold-md), var(--glow-molten);
  color: #000;
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-outline-gold {
  background: rgba(17, 32, 57, 0.5);
  color: var(--gold-champagne);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(8px);
}

.btn-outline-gold:hover {
  background: rgba(255, 212, 59, 0.12);
  border-color: var(--gold-light);
  color: #FFFFFF;
  box-shadow: var(--glow-gold-sm);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

/* Badge Pills */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(255, 212, 59, 0.08);
  border: 1px solid rgba(255, 212, 59, 0.22);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.badge-pill .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-light);
  animation: pulseGold 2s infinite ease-in-out;
}

@keyframes pulseGold {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 0%, rgba(255, 224, 102, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.glass-card:hover {
  border-color: var(--border-gold-glow);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), var(--glow-gold-sm);
  transform: translateY(-4px);
}

/* Section Header Structure */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.75rem auto;
}

.section-header h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 1.1rem;
}

.section-header p {
  font-size: 1.12rem;
  line-height: 1.7;
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-8 { grid-column: span 8; }
.bento-col-12 { grid-column: span 12; }

@media (max-width: 992px) {
  .bento-col-4,
  .bento-col-6,
  .bento-col-8 {
    grid-column: span 12;
  }
}

/* Mobile Nav Drawer & Hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-light);
  margin: 5px 0;
  transition: all var(--transition-fast);
}

@media (max-width: 992px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    right: -100%;
    width: 82%;
    max-width: 380px;
    height: calc(100vh - var(--nav-height));
    background: rgba(11, 20, 38, 0.98);
    backdrop-filter: blur(24px);
    border-left: 1px solid var(--border-card);
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition-smooth);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu .nav-link {
    font-size: 1.15rem;
    width: 100%;
  }

  .nav-actions .btn {
    display: none;
  }
}

/* Footer */
.site-footer {
  background: #08101F;
  border-top: 1px solid rgba(255, 212, 59, 0.2);
  padding: 5rem 0 2.5rem 0;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-gold-horizontal);
  box-shadow: var(--glow-gold-sm);
}

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

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

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

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

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-col ul li a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-champagne);
  font-weight: 600;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.footer-contact-link:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

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

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
