/* ==========================================================================
   DIRGEN DESIGN SYSTEM - OBSIDIAN & EMERALD AGTECH THEME
   Inspired by AgentForge & Modern Web Guidelines
   ========================================================================== */

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

:root {
  /* Color Palette */
  --bg-dark: #030712;
  --bg-deep: #060d1d;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(22, 34, 61, 0.85);
  --bg-card-solid: #0d1527;

  /* Emerald Primary */
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-light: #34d399;
  --primary-subtle: rgba(16, 185, 129, 0.12);
  --primary-glow: rgba(16, 185, 129, 0.28);
  --primary-border: rgba(16, 185, 129, 0.35);

  /* Accents */
  --accent-blue: #38bdf8;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #a855f7;

  /* Text Colors */
  --text-white: #ffffff;
  --text-primary: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #64748b;

  /* Borders & Lines */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-main: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-glow: 0 0 35px rgba(16, 185, 129, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

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

html {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-dark);
  line-height: 1.6;
}

/* Background Grid & Ambient Glow Orbs */
.bg-grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: 
    linear-gradient(rgba(16, 185, 129, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.04) 1px, transparent 1px);
  background-size: 55px 55px;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow-orb-1 {
  position: absolute;
  top: -150px;
  left: 20%;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, rgba(16, 185, 129, 0) 70%);
  filter: blur(100px);
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.glow-orb-2 {
  position: absolute;
  top: 35%;
  right: -100px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(56, 189, 248, 0) 70%);
  filter: blur(120px);
  animation: floatOrbReverse 22s ease-in-out infinite alternate;
}

.glow-orb-3 {
  position: absolute;
  bottom: 10%;
  left: 10%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.14) 0%, rgba(16, 185, 129, 0) 70%);
  filter: blur(110px);
  animation: floatOrb 25s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, -20px) scale(0.95); }
}

@keyframes floatOrbReverse {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-35px, -25px) scale(1.05); }
  100% { transform: translate(25px, 35px) scale(0.96); }
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  z-index: 100;
  width: 0%;
  transition: width 0.05s ease-out;
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(3, 7, 18, 0.82);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-white);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: block;
}

.brand-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--primary-subtle);
  color: var(--primary-light);
  border: 1px solid var(--primary-border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 4px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-white);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 8px;
  cursor: pointer;
}

@media (min-width: 900px) {
  .mobile-toggle {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 7, 18, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  padding: 24px;
  flex-direction: column;
  gap: 20px;
  z-index: 49;
}

.mobile-menu.active {
  display: flex;
}

.mobile-nav-link {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--radius-md);
  padding: 11px 22px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-glass);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-border);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 70px 0 90px;
  text-align: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.12);
}

.pulse-dot {
  position: relative;
  display: flex;
  width: 8px;
  height: 8px;
}

.pulse-dot .ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--primary-light);
  opacity: 0.75;
  animation: pingAnimation 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-dot .dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
}

@keyframes pingAnimation {
  75%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-white);
  max-width: 900px;
  margin: 0 auto 20px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 64px;
  }
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 10%, #34d399 65%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero-desc {
    font-size: 20px;
  }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

@media (min-width: 600px) {
  .hero-cta {
    flex-direction: row;
  }
}

/* Live Stats Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 30px 20px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  max-width: 980px;
  margin: 0 auto 60px;
}

@media (min-width: 768px) {
  .stats-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1.1;
  font-feature-settings: "tnum";
}

@media (min-width: 768px) {
  .stat-num {
    font-size: 38px;
  }
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Terminal / Dashboard Mockup */
.mockup-wrapper {
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(16, 185, 129, 0.12);
  backdrop-filter: blur(16px);
  overflow: hidden;
  text-align: left;
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 16, 31, 0.8);
}

.mockup-dots {
  display: flex;
  gap: 8px;
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary-light);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-border);
}

.mockup-content {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  background: rgba(6, 11, 23, 0.7);
}

@media (min-width: 800px) {
  .mockup-content {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.mockup-panel {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.status-badge.ok {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary-light);
  border: 1px solid var(--primary-border);
}

.status-badge.alert {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Farm Telemetry Items */
.telemetry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.telemetry-row:last-child {
  border-bottom: none;
}

.telemetry-label {
  color: var(--text-muted);
}

.telemetry-val {
  font-weight: 700;
  color: var(--text-white);
  font-family: var(--font-mono);
}

.telemetry-val.highlight {
  color: var(--primary-light);
}

/* Terminal Console View */
.terminal-window {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-primary);
  background: #020617;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow-x: auto;
}

.term-line {
  margin-bottom: 4px;
  white-space: nowrap;
}

.term-comment { color: var(--text-dim); }
.term-green { color: var(--primary-light); }
.term-blue { color: var(--accent-blue); }
.term-amber { color: var(--accent-amber); }

/* Section Header Styles */
.section-wrapper {
  padding: 90px 0;
  position: relative;
}

.section-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-light);
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 44px;
  }
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Bento Grid Features */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bento-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--primary-border);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(16, 185, 129, 0.15);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  margin-bottom: 22px;
  transition: all 0.3s ease;
}

.bento-card:hover .bento-icon-wrapper {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 20px var(--primary-glow);
}

.bento-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.bento-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.bento-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.bento-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
  font-family: var(--font-mono);
}

/* Zero-Cloud / Security Guarantee Banner */
.security-banner {
  margin-top: 60px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 13, 29, 0.8) 100%);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.security-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

@media (min-width: 800px) {
  .security-content {
    grid-template-columns: 1.5fr 1fr;
  }
}

.security-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
}

.security-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.security-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bullet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.bullet-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars-row {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: #f59e0b;
}

.testimonial-quote {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
}

.author-role {
  font-size: 13px;
  color: var(--text-muted);
}

/* FAQ Accordion Section */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--primary-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--primary-light);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 22px;
}

/* Bottom CTA Banner */
.cta-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 13, 29, 0.95) 100%);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-lg);
  padding: 60px 30px;
  text-align: center;
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.15);
  backdrop-filter: blur(20px);
  margin: 60px auto 40px;
  max-width: var(--container-max);
}

.cta-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 44px;
  }
}

.cta-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Footer */
.footer {
  background: #02050e;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px;
  margin-top: 60px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.footer-desc {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 14px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-white);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 30px;
  font-size: 13px;
  color: var(--text-dim);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--text-white);
}

/* Sticky Mobile CTA Bar */
.sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(3, 7, 18, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 18px;
  display: flex;
  gap: 12px;
  z-index: 45;
}

@media (min-width: 900px) {
  .sticky-mobile-cta {
    display: none;
  }
}

/* Back to Top */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-glass);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 18px var(--primary-glow);
}

/* Utility for privacy & markdown pages */
.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin: 40px auto;
  max-width: 800px;
  backdrop-filter: blur(16px);
}

.legal-card h1 {
  font-size: 32px;
  color: var(--text-white);
  margin-bottom: 20px;
}

.legal-card p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7;
}

/* ==========================================================================
   TREMOR AGTECH DASHBOARD STYLES (app.dirgen.gen.tr)
   Obsidian & Emerald Palette
   ========================================================================== */

.dash-shell {
  display: flex;
  min-height: calc(100vh - 76px);
  position: relative;
}

.dash-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: rgba(6, 11, 23, 0.85);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-subtle);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  overflow-y: auto;
}

@media (max-width: 900px) {
  .dash-sidebar {
    display: none;
  }
}

.dash-nav-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-nav-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 8px 12px 4px;
}

.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.dash-nav-link:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.04);
}

.dash-nav-link.active {
  color: var(--primary-light);
  background: var(--primary-subtle);
  border-color: var(--primary-border);
  font-weight: 700;
}

.dash-nav-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.dash-main {
  flex-grow: 1;
  padding: 32px 28px 60px;
  max-width: 1400px;
  overflow-x: hidden;
}

@media (max-width: 600px) {
  .dash-main {
    padding: 20px 16px 40px;
  }
}

/* Tremor KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.tremor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 22px;
  backdrop-filter: blur(14px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tremor-card:hover {
  border-color: var(--primary-border);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.08);
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kpi-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.kpi-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum';
  margin-bottom: 6px;
}

.kpi-sub {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Tremor Badges */
.tremor-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-rose {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge-blue {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Layout Columns */
.dash-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1080px) {
  .dash-columns {
    grid-template-columns: 1.8fr 1.2fr;
  }
}

/* Chart Container */
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.chart-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.chart-tab {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: none;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chart-tab.active {
  background: var(--primary);
  color: #ffffff;
}

/* SVG Chart Box */
.svg-chart-wrapper {
  width: 100%;
  height: 220px;
  position: relative;
}

.svg-chart-wrapper svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Progress Bars for Feed */
.progress-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.progress-title {
  font-weight: 600;
  color: var(--text-primary);
}

.progress-meta {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.fill-emerald {
  background: linear-gradient(90deg, #059669, #10b981);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.fill-amber {
  background: linear-gradient(90deg, #d97706, #f59e0b);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.fill-rose {
  background: linear-gradient(90deg, #e11d48, #f43f5e);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
}

/* Tremor Data Table */
.table-card {
  margin-top: 24px;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.table-search-input {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-white);
  font-family: var(--font-main);
  outline: none;
  width: 260px;
}

.table-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.table-wrapper {
  overflow-x: auto;
}

.tremor-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.tremor-table th {
  padding: 10px 14px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-subtle);
}

.tremor-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  vertical-align: middle;
}

.tremor-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.cow-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cow-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.cow-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-white);
}

.cow-name {
  font-size: 12px;
  color: var(--text-muted);
}

