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

/* ── VARIABLES ── */
:root {
  --green:       #059669;
  --green-dark:  #047857;
  --green-dim:   #065f46;
  --green-light: #d1fae5;
  --green-muted: #a7f3d0;
  --bg:          #ffffff;
  --surface:     #f6faf8;
  --dark:        #0a0f0d;
  --dark-2:      #111a15;
  --ink:         #0d1f1a;
  --muted:       #4b7163;
  --rule:        #e0ece7;
  --white:       #f8fdfb;
  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:   cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── CONTAINER ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
}
@media (max-width: 380px) {
  .container { padding: 0 16px; }
}

/* ── TYPOGRAPHY UTILITIES ── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow-dark { color: var(--green-muted); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-title .accent { color: var(--green); }

.section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.7;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
  gap: 32px;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 150ms var(--ease-smooth);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover { background: var(--green-dark); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06); }

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--rule);
}
.btn-outline-dark:hover { border-color: var(--green); color: var(--green); }

.btn-white {
  background: #fff;
  color: var(--green-dark);
}
.btn-white:hover { background: var(--green-light); }

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-s { transition-delay: 0.08s; }
.reveal-m { transition-delay: 0.16s; }
.reveal-l { transition-delay: 0.24s; }
.reveal-xl { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mobile-menu { transition: none; }
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: background 250ms, border-color 250ms;
}
#navId {
  padding-top: 20px;
  padding-bottom: 20px;
}
.nav.scrolled {
  background: rgba(10,15,13,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 8px;
  flex-wrap: nowrap;
}

/* LOGO */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.nav-logo-img {
  height: 150px;
  width: auto;
  max-width: 800px;
  object-fit: contain;
  display: block;
  background: transparent;
  vertical-align: middle;
  mix-blend-mode: normal;
}

/* NAV LINKS LIST */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
}

.nav-links li {
  list-style: none;
  position: relative;
}

/* REGULAR NAV LINKS */
.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  padding: 8px 12px;
  border-radius: 4px;
  transition: color 150ms, background 150ms;
  text-decoration: none;
  display: block;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

/* MEGA MENU TRIGGER WRAP */
.nav-item-mega {
  position: static;
  list-style: none;
}

.nav-mega-trigger-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 4px;
}

.nav-mega-text-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  padding: 8px 2px 8px 12px;
  transition: color 150ms;
  text-decoration: none;
  white-space: nowrap;
  display: block;
  line-height: 1;
}

.nav-mega-text-link:hover {
  color: #fff;
}

.nav-item-mega.open .nav-mega-text-link {
  color: #fff;
}

.nav-mega-arrow {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  padding: 8px 10px 8px 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 150ms;
  border-radius: 4px;
  line-height: 1;
}

.nav-mega-arrow:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.nav-mega-arrow svg {
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.nav-item-mega.open .nav-mega-arrow {
  color: #fff;
}

.nav-item-mega.open .nav-mega-arrow svg {
  transform: rotate(180deg);
}

/* NAV CTA BUTTON */
.nav-cta {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 14px;
  padding: 10px 20px;
  margin-left: 8px;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 250ms;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MEGA MENU PANEL */
.mega-menu {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--dark-2);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 200ms, transform 200ms;
}

.nav-item-mega.open .mega-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mega-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 32px 0;
}

.mega-col {
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.mega-col:last-child {
  border-right: none;
}

.mega-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mega-col a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 150ms;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
}

.mega-col a:last-child {
  border-bottom: none;
}

.mega-col a:hover {
  color: #fff;
}

.mega-icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.mega-col-cta {
  border-right: none;
}

.mega-cta-box {
  background: rgba(5,150,105,0.08);
  border: 1px solid rgba(5,150,105,0.2);
  border-radius: 8px;
  padding: 24px;
}

.mega-cta-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.mega-cta-text {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.mega-all-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  transition: color 150ms;
  text-decoration: none;
  border-bottom: none !important;
}

.mega-all-link:hover {
  color: var(--green-muted);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 998;
  background: var(--dark);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(-100%);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: block;
  transition: color 150ms;
  text-decoration: none;
}

.mobile-menu a:hover {
  color: var(--green);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .nav-links a,
  .nav-mega-text-link { font-size: 13px; padding-left: 8px; padding-right: 2px; }
  .nav-cta { font-size: 13px; padding: 10px 16px; }
  .nav-logo-img { width: 220px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 767px) {
  .nav-logo-img { width: 220px; }
}

@media (max-width: 479px) {
  .nav-logo-img { width: 220px; }
  .footer-logo-img { width: 220px; }
}

/* ── FOOTER ── */
.footer {
  background: var(--dark-2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 280px repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 40px;
}

.footer-logo {
  margin-bottom: 16px;
  background: transparent !important;
}
.footer-logo-img {
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
  background: transparent;
  mix-blend-mode: normal;
}

.nav-logo-img,
.footer-logo-img {
  image-rendering: crisp-edges;
  background: none !important;
  backdrop-filter: none !important;
}

@media (max-width: 767px) {
  .footer-logo-img { width: 150px; }
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  max-width: 220px;
  margin-bottom: 24px;
}

.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: all 150ms;
}
.social-btn:hover { border-color: var(--green); color: var(--green); background: rgba(5,150,105,0.08); }

.footer-col-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  transition: color 150ms;
}
.footer-links a:hover { color: var(--green); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-copy a { color: rgba(255,255,255,0.45); transition: color 150ms; }
.footer-copy a:hover { color: var(--green); }

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