/* ==========================================================================
   KELVIX ENERGY - CLEAN CORPORATE DESIGN SYSTEM (BLUE & WHITE)
   Professional, Trustworthy Clean Energy & Power Technology
   ========================================================================== */

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

:root {
  /* Color Palette - Clean Corporate White & Blue */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-input: #ffffff;
  --bg-navy-dark: #0a192f;
  --bg-navy: #0f2744;
  
  /* Brand Blues & Accents */
  --primary-blue: #0252cc;
  --primary-blue-dark: #003b99;
  --primary-blue-light: #e8f1ff;
  --primary-blue-glow: rgba(2, 82, 204, 0.15);
  
  --accent-cyan: #0284c7;
  --accent-cyan-light: #e0f2fe;
  --accent-green: #16a34a;
  --accent-green-light: #dcfce7;
  --accent-amber: #d97706;
  --accent-amber-light: #fef3c7;

  /* Typography & Neutrals */
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #3b82f6;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Radii & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 9999px;
  
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.3s ease;
}

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

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

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

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

h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
h4 { font-size: 1.15rem; }

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

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

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container-wide {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Text Highlights & Badges */
.gradient-text {
  color: var(--primary-blue);
  background: linear-gradient(135deg, #003b99 0%, #0252cc 60%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-cyan {
  color: #0284c7;
  background: linear-gradient(135deg, #0284c7 0%, #0252cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  color: #d97706;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-pill);
  background: var(--primary-blue-light);
  color: var(--primary-blue-dark);
  border: 1px solid #bfdbfe;
}

.badge-cyan {
  background: var(--accent-cyan-light);
  color: #0369a1;
  border-color: #bae6fd;
}

.badge-emerald {
  background: var(--accent-green-light);
  color: #15803d;
  border-color: #bbf7d0;
}

.badge-gold {
  background: var(--accent-amber-light);
  color: #b45309;
  border-color: #fde68a;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary-blue);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.5rem;
  max-width: 1360px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--bg-navy);
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

.brand-logo svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.brand-logo span.highlight {
  color: var(--primary-blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--primary-blue);
  border-radius: var(--radius-pill);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Mobile Navigation Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-main);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-blue);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 82, 204, 0.25);
}

.btn-primary:hover {
  background: var(--primary-blue-dark);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 82, 204, 0.35);
  transform: translateY(-1px);
}

.btn-cyan {
  background: var(--accent-cyan);
  color: #ffffff;
}

.btn-cyan:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.btn-outline {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: var(--primary-blue-light);
  transform: translateY(-1px);
}

.btn-outline-emerald,
.btn-outline-blue {
  background: #ffffff;
  border: 1px solid var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline-emerald:hover,
.btn-outline-blue:hover {
  background: var(--primary-blue);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

/* Section Common Styles */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-header .badge {
  margin-bottom: 1rem;
}

.section-header h2 {
  margin-bottom: 0.85rem;
}

.section-header p {
  font-size: 1.1rem;
}

/* Corporate Card */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
}

.glass-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Hero Section */
.hero {
  padding: 5rem 0 4.5rem 0;
  background: linear-gradient(180deg, #f0f6ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-text h1 {
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.hero-text p {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-medium);
}

.metric-item .metric-number {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary-blue-dark);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.metric-item .metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Hero Visual Element */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.energy-visual-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.energy-flow-visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.flow-node {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-fast);
}

.flow-node.active {
  border-color: #93c5fd;
  background: #f8fbff;
}

.flow-node-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.flow-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.flow-icon.cyan {
  background: var(--accent-cyan-light);
  color: var(--accent-cyan);
}

.flow-icon.gold {
  background: var(--accent-amber-light);
  color: var(--accent-amber);
}

.flow-node-title {
  font-weight: 700;
  font-size: 0.975rem;
  color: var(--text-main);
}

.flow-node-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-green);
  background: var(--accent-green-light);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
}

/* Page Header (Internal Pages) */
.page-hero {
  padding: 4.5rem 0 3.5rem 0;
  background: linear-gradient(180deg, #f0f6ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.page-hero h1 {
  margin-top: 0.85rem;
  margin-bottom: 0.85rem;
}

.page-hero p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* Footer (Clean Corporate Navy) */
.site-footer {
  background: var(--bg-navy);
  color: #f1f5f9;
  padding: 4.5rem 0 2rem 0;
  border-top: 1px solid #1e3a5f;
}

.site-footer p {
  color: #94a3b8;
}

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

.footer-brand .brand-logo {
  color: #ffffff;
}

.footer-brand p {
  margin: 1.25rem 0 1.5rem 0;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.35rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.925rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 3px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .nav-links {
    gap: 0.95rem;
  }
  .nav-link {
    font-size: 0.875rem;
  }
  .header-inner {
    gap: 1rem;
  }
  .nav-actions .btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.825rem;
  }
}

@media (max-width: 1024px) {
  .nav-links, .nav-actions {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Mobile Navigation Drawer */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 1001;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.open {
  transform: translateY(0);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.mobile-nav-links a {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.mobile-nav-links a.active {
  color: var(--primary-blue);
}
