/* ========================================
   MONOCHROME DESIGN TOKENS
   ======================================== */
:root {
  --black: #000000;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --gray-950: #0a0a0a;

  /* Accent — cool blue */
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dark: #1e3a5f;
  --accent-glow: rgba(59, 130, 246, 0.25);

  --nav-height: 52px;

  /* Typography scale */
  --text-hero: clamp(64px, 10vw, 140px);
  --text-display: clamp(44px, 6vw, 96px);
  --text-h2: clamp(32px, 4vw, 56px);
  --text-h3: clamp(24px, 3vw, 36px);
  --text-body-lg: clamp(18px, 2vw, 24px);
  --text-body: 17px;
  --text-small: 14px;
  --text-caption: 12px;
}

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

html {
  scroll-behavior: auto; /* Lenis handles smooth scrolling */
  font-size: 16px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--gray-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

/* ========================================
   NAVIGATION — Floating glass pill
   ======================================== */
nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 10px 12px 10px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 100px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: 16px;
}
.nav-logo svg {
  width: 22px;
  height: 22px;
}
.nav-logo svg * {
  stroke: var(--white);
}
.nav-logo span {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 100px;
  transition: color 0.3s, background 0.3s;
}
.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Ancla Agro nav button */
.nav-agro {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 100px;
  background: #22c55e;
  margin-left: 8px;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav-agro:hover {
  background: #16a34a;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.3);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 18px;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  position: absolute;
  left: 0;
  transition: 0.3s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 8px; }
.nav-toggle span:nth-child(3) { top: 16px; }

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1001;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu a {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}
.mobile-menu a:hover {
  color: var(--gray-400);
}
.mobile-menu-agro {
  font-size: 16px !important;
  padding: 12px 32px;
  border-radius: 100px;
  background: #22c55e;
  transition: background 0.3s, color 0.3s;
}
.mobile-menu-agro:hover {
  background: #16a34a;
  color: var(--white) !important;
}

.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  font-size: 32px;
  color: var(--white);
  cursor: pointer;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  background: var(--gray-950);
  padding: 48px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-left svg {
  width: 18px;
  height: 18px;
  opacity: 0.4;
}
.footer-left svg * {
  stroke: var(--white);
}
.footer-left span {
  font-size: 13px;
  color: var(--gray-600);
}

.footer-right {
  display: flex;
  gap: 24px;
}
.footer-right a {
  font-size: 13px;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-right a:hover {
  color: var(--white);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  nav {
    left: 16px;
    right: 16px;
    width: auto;
    transform: none;
    padding: 10px 16px;
    justify-content: space-between;
    box-sizing: border-box;
  }
  .nav-logo { margin-right: 0; }
  .nav-links { display: none; }
  .nav-agro { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu { display: flex; }

  footer { padding: 32px 20px; }
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-right {
    flex-wrap: wrap;
    justify-content: center;
  }
}
