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

/* ============================================================
   ZENKORI V2 — Premium Commercial Systems B2B Design
   ============================================================ */

:root {
  /* ── Core Palette ── */
  --color-bg:        #F9F9F7;  /* Soft Bone / Editorial Off-white */
  --color-surface:   #FFFFFF;
  --color-text:      #111214;  /* Deep Graphite */
  --color-text-muted:#525966;
  --color-accent:    #0F4C5C;  /* Deep Teal / Jade */
  --color-accent-light: rgba(15, 76, 92, 0.08);
  --color-accent-hover: #0b3743;
  --color-border:    rgba(17, 18, 20, 0.08);
  --color-border-hover: rgba(17, 18, 20, 0.15);

  /* ── Typography ── */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ── Spacing & Layout ── */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  2rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --max-width: 1200px;
  --header-height: 80px;

  /* ── Motion & Easing ── */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.3s;
  --duration-slow: 0.8s;

  /* ── Shadows (Depth) ── */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.02), 0 4px 12px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.02), 0 10px 24px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.03), 0 20px 40px rgba(0,0,0,0.06);
  --shadow-accent: 0 8px 24px rgba(15, 76, 92, 0.25);
  --shadow-accent-hover: 0 12px 32px rgba(15, 76, 92, 0.35);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
p { font-size: 1.125rem; color: var(--color-text-muted); }

a { color: inherit; text-decoration: none; transition: all var(--duration-fast) var(--ease-premium); }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

/* ── Infrastructure Pattern (Grid) ── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(17, 18, 20, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 18, 20, 0.03) 1px, transparent 1px);
}

/* ── Layout Utilities ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

/* ── PREMIUM BUTTON SYSTEM ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.1rem 2.2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-premium);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-text);
  background-color: rgba(17, 18, 20, 0.02);
  transform: translateY(-1px);
}

/* Text Link with Arrow Animation */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text);
  font-size: 1rem;
}
.link-arrow svg {
  transition: transform var(--duration-fast) var(--ease-premium);
}
.link-arrow:hover {
  color: var(--color-accent);
}
.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  background: rgba(249, 249, 247, 0.5);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: all var(--duration-fast) var(--ease-premium);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--color-accent);
}

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

.nav-links a.nav-item {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  position: relative;
}

.nav-links a.nav-item:hover {
  color: var(--color-accent);
}
.nav-links a.nav-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--duration-fast) var(--ease-premium);
}
.nav-links a.nav-item:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--color-text); transition: all 0.3s ease; }

@media (max-width: 768px) {
  .nav-links {
    display: none; 
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--color-surface);
    flex-direction: column;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.active { display: flex; }
  .menu-toggle { display: flex; }
}

/* ── Animations & Motion (Staggering) ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-premium), transform var(--duration-slow) var(--ease-premium);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Diagram Keyframes */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(15, 76, 92, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(15, 76, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 76, 92, 0); }
}

@keyframes floatNode {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--color-surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom { border-top: 1px solid var(--color-border); padding-top: var(--space-md); text-align: center; color: var(--color-text-muted); font-size: 0.85rem; }

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

/* ── Utility Classes ── */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.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-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
