.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.glass-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 32px rgba(15, 106, 58, 0.08);
}
.hero-gradient {
  background: linear-gradient(135deg, #0F6A3A 0%, #0a5230 40%, #004d6e 100%);
}
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes bar-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@keyframes data-flow {
  0% { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}
.live-dot { animation: blink 1.5s ease-in-out infinite; }
.chart-bar { transform-origin: bottom; animation: bar-grow 1s ease-out forwards; }
.data-line { stroke-dasharray: 100; animation: data-flow 3s linear infinite; }
.sparkline path { stroke-dasharray: 200; stroke-dashoffset: 200; animation: data-flow 2s ease-out forwards; }

.gati-logo-nav { width: 2.5rem; height: 2.5rem; }
@media (min-width: 640px) { .gati-logo-nav { width: 3rem; height: 3rem; } }
@media (min-width: 768px) { .gati-logo-nav { width: 3.75rem; height: 3.75rem; } }
@media (min-width: 1024px) { .gati-logo-nav { width: 4rem; height: 4rem; } }
.gati-logo-footer { width: 2.75rem; height: 2.75rem; }
@media (min-width: 640px) { .gati-logo-footer { width: 3.25rem; height: 3.25rem; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Nav */
#nav-toggle[aria-expanded="true"] .nav-icon-menu { display: none; }
#nav-toggle[aria-expanded="true"] .nav-icon-close { display: block; }
#nav-toggle .nav-icon-close { display: none; }
#nav-mobile-menu a {
  display: block; padding: 0.75rem 0.5rem; font-weight: 500;
  color: #5A6B63; border-radius: 0.5rem;
}
#nav-mobile-menu a:hover, #nav-mobile-menu a:focus { background: #e8f5ee; color: #0F6A3A; }
.nav-pickers { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

/* Mega menu */
.nav-item { position: relative; }
.nav-item > .nav-link {
  display: flex; align-items: center; gap: 0.15rem;
  padding: 0.35rem 0; cursor: pointer;
}
.nav-item > .nav-link .material-symbols-outlined { font-size: 1.1rem; transition: transform 0.2s; }
.nav-item:hover > .nav-link .material-symbols-outlined,
.nav-item.open > .nav-link .material-symbols-outlined { transform: rotate(180deg); }
.mega-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 14rem; padding-top: 0.5rem; z-index: 60;
}
.nav-item:hover .mega-menu, .nav-item.open .mega-menu { display: block; }
.mega-menu-inner {
  background: rgba(255,255,255,0.97); backdrop-filter: blur(16px);
  border: 1px solid #E8ECF0; border-radius: 0.75rem;
  box-shadow: 0 12px 40px rgba(15,106,58,0.12); padding: 0.5rem;
}
.mega-menu-inner a {
  display: block; padding: 0.5rem 0.75rem; border-radius: 0.5rem;
  font-size: 0.875rem; color: #5A6B63; white-space: nowrap;
}
.mega-menu-inner a:hover { background: #e8f5ee; color: #0F6A3A; }

/* Pickers */
.picker-dropdown { position: relative; }
.picker-dropdown-trigger {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.65rem; border-radius: 9999px; font-size: 0.8rem; font-weight: 600;
  border: 1px solid #E8ECF0; background: #fff; color: #5A6B63; cursor: pointer;
}
.picker-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 0.35rem); right: 0;
  min-width: 9rem; background: #fff; border: 1px solid #E8ECF0;
  border-radius: 0.75rem; box-shadow: 0 8px 24px rgba(0,0,0,0.08); z-index: 70; padding: 0.35rem;
}
.picker-dropdown-menu.open { display: block; }
.picker-option {
  display: flex; align-items: center; gap: 0.5rem; width: 100%;
  padding: 0.5rem 0.65rem; border: none; background: none; border-radius: 0.5rem;
  font-size: 0.85rem; cursor: pointer; text-align: left; color: #1A2B23;
}
.picker-option:hover { background: #F4F6F8; }
.picker-option.picker-selected { background: #e8f5ee; color: #0F6A3A; }
.picker-check { margin-left: auto; font-size: 1rem; opacity: 0; }
.picker-option.picker-selected .picker-check { opacity: 1; }
.picker-option-secondary { color: #5A6B63; font-size: 0.75rem; }

/* Sections */
.section-eyebrow { color: #00AEEF; font-weight: 600; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; }
.section-title { font-size: 1.875rem; font-weight: 700; color: #0F6A3A; margin-top: 0.5rem; }
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }

/* Cards */
.card-hover { transition: box-shadow 0.2s, transform 0.2s; }
.card-hover:hover { box-shadow: 0 8px 32px rgba(15,106,58,0.12); transform: translateY(-2px); }

/* Timeline */
.timeline-item { position: relative; padding-left: 2rem; padding-bottom: 2rem; border-left: 2px solid #E8ECF0; }
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -0.45rem; top: 0.25rem;
  width: 0.75rem; height: 0.75rem; border-radius: 50%; background: #8DC63F; border: 2px solid #fff;
}
.timeline-item.active::before { background: #0F6A3A; box-shadow: 0 0 0 4px rgba(15,106,58,0.2); }

/* Barn status */
.barn-cell { border-radius: 0.5rem; padding: 0.5rem; text-align: center; font-size: 0.7rem; font-weight: 600; }
.barn-normal { background: #e8f5ee; color: #0F6A3A; }
.barn-warning { background: #fff3e0; color: #e65100; }
.barn-critical { background: #ffebee; color: #c62828; }

/* Ecosystem diagram */
.ecosystem-diagram { display: grid; place-items: center; gap: 1rem; padding: 2rem; }
.eco-center {
  background: linear-gradient(135deg, #0F6A3A, #004d6e); color: #fff;
  border-radius: 1rem; padding: 1.25rem 2rem; font-weight: 700; text-align: center;
}
.eco-node {
  background: #fff; border: 2px solid #0F6A3A; border-radius: 0.75rem;
  padding: 0.75rem 1.25rem; font-weight: 600; color: #0F6A3A; text-align: center;
}

/* Floating widget */
#floating-dashboard {
  position: fixed; bottom: 1rem; right: 1rem; z-index: 90;
  width: 13rem; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border: 1px solid #E8ECF0; border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(15,106,58,0.15); padding: 0.75rem;
  transition: transform 0.3s, opacity 0.3s;
}
#floating-dashboard.collapsed { transform: translateY(calc(100% - 2.5rem)); }
#floating-dashboard .fd-toggle {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; font-size: 0.75rem; font-weight: 700; color: #0F6A3A;
}
#floating-dashboard .fd-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.5rem; }
#floating-dashboard .fd-metric {
  background: #F4F6F8; border-radius: 0.5rem; padding: 0.4rem 0.5rem; font-size: 0.7rem;
}
#floating-dashboard .fd-metric strong { display: block; font-size: 0.85rem; color: #0F6A3A; }

/* Counter */
.counter-value { font-variant-numeric: tabular-nums; }

/* Forms */
.form-input {
  width: 100%; padding: 0.65rem 1rem; border: 1px solid #E8ECF0;
  border-radius: 0.75rem; font-size: 0.875rem; background: #fff; color: #1A2B23;
}
.form-input:focus { outline: none; border-color: #0F6A3A; box-shadow: 0 0 0 3px rgba(15,106,58,0.1); }
.btn-primary {
  background: #8DC63F; color: #0a4f2b; font-weight: 700;
  padding: 0.65rem 1.5rem; border-radius: 9999px; border: none; cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover { background: #7ab535; }
.btn-outline {
  background: transparent; border: 1px solid #0F6A3A; color: #0F6A3A;
  font-weight: 600; padding: 0.65rem 1.5rem; border-radius: 9999px; cursor: pointer;
}
.btn-outline:hover { background: #e8f5ee; }

/* Consent */
#consent-banner {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem; background: rgba(255,255,255,0.92); backdrop-filter: blur(16px);
  border-top: 1px solid #E8ECF0; box-shadow: 0 -8px 32px rgba(15,106,58,0.12);
}
#consent-banner.visible { display: block; }
.consent-btn { border: none; padding: 0.65rem 1.25rem; border-radius: 9999px; font-weight: 600; font-size: 0.875rem; cursor: pointer; }
.consent-btn-accept { background: #0F6A3A; color: #fff; }
.consent-btn-reject { background: #F4F6F8; color: #5A6B63; }

/* Dark mode */
html.dark body { background: #0d1a14; color: #d4e8dc; }
html.dark .glass-card { background: rgba(20,40,32,0.85); border-color: rgba(141,198,63,0.15); }
html.dark #site-nav { border-color: rgba(141,198,63,0.12) !important; background: rgba(13,26,20,0.92) !important; }
html.dark .mega-menu-inner { background: rgba(20,40,32,0.97); border-color: #1f3d30; }
html.dark .mega-menu-inner a { color: #9cb5a8; }
html.dark .mega-menu-inner a:hover { background: #1a3328; color: #8bd6b6; }
html.dark #nav-mobile-menu { background: rgba(13,26,20,0.97); border-color: #1f3d30; }
html.dark #nav-mobile-menu a { color: #9cb5a8; }
html.dark #nav-mobile-menu a:hover { background: #1a3328; color: #8bd6b6; }
html.dark .picker-dropdown-trigger { background: #142820; border-color: #1f3d30; color: #9cb5a8; }
html.dark .picker-dropdown-menu { background: #142820; border-color: #1f3d30; }
html.dark .picker-option { color: #d4e8dc; }
html.dark .picker-option:hover { background: #1a3328; }
html.dark .form-input { background: #142820; border-color: #1f3d30; color: #d4e8dc; }
html.dark #floating-dashboard { background: rgba(20,40,32,0.95); border-color: #1f3d30; }
html.dark #floating-dashboard .fd-metric { background: #1a2820; }
html.dark .section-title { color: #8bd6b6; }
html.dark .eco-node { background: #142820; color: #8bd6b6; border-color: #8DC63F; }
