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

/* --- DESIGN SYSTEM TOKENS --- */
:root {
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  
  /* Color Palette (Forest & Ag-Tech) */
  --color-bg-dark: #070f0a;
  --color-bg-card: rgba(13, 27, 18, 0.65);
  --color-bg-card-hover: rgba(20, 42, 28, 0.85);
  --color-primary: #10b981;      /* Emerald Green */
  --color-primary-dark: #047857; /* Deep Emerald */
  --color-primary-light: #34d399;/* Mint */
  --color-accent: #f59e0b;       /* Earth Gold / Clay Sand */
  --color-accent-hover: #d97706; /* Darker Clay */
  --color-text-bright: #f3f4f6;  /* Off-White */
  --color-text-muted: #9ca3af;   /* Muted Slate */
  --color-border: rgba(16, 185, 129, 0.15); /* Greenish Glass Border */
  --color-border-hover: rgba(16, 185, 129, 0.35);
  --color-glass-bg: rgba(7, 15, 10, 0.7);
  
  /* Status Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Layout Constants */
  --max-width: 1280px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.7), 0 1px 1px rgba(16, 185, 129, 0.05);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASICS --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-dark);
  color: var(--color-text-bright);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary-dark);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* --- LAYOUT UTILITIES --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .section {
    padding: 60px 0;
  }
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-bright);
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.75rem;
}

p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-text-bright) 30%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-green {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 50px;
  color: var(--color-primary-light);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

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

.section-header h2 {
  margin-bottom: 20px;
}

/* --- HEADER / NAVIGATION --- */
.header {
  height: var(--header-height);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(7, 15, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-normal);
}

.header.scrolled {
  height: 70px;
  background: rgba(7, 15, 10, 0.95);
  box-shadow: var(--shadow-premium);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-text-bright);
  white-space: nowrap;
}

.logo-leaf {
  color: var(--color-primary);
  filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.5));
}

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

.nav-links a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links .active {
  color: var(--color-primary-light);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-bg-dark);
}

.btn-primary:hover {
  background: var(--color-primary-light);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-bright);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: rgba(16, 185, 129, 0.05);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-bg-dark);
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}

.btn-icon {
  width: 20px;
  height: 20px;
  transition: var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-bright);
  cursor: pointer;
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background: currentColor;
  left: 0;
  transition: var(--transition-normal);
}

.mobile-toggle span:nth-child(1) {
  top: 7px;
}

.mobile-toggle span:nth-child(2) {
  top: 14px;
}

.mobile-toggle span:nth-child(3) {
  top: 21px;
}

@media (min-width: 1301px) and (max-width: 1450px) {
  .nav-container {
    gap: 24px;
  }
  .nav-links {
    gap: 16px;
  }
  .nav-links a {
    font-size: 0.88rem;
  }
  .logo {
    font-size: 1.3rem;
  }
  .nav-cta .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 1300px) {
  .mobile-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(7, 15, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--color-border);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 100px 40px 40px 40px;
    gap: 20px;
    overflow-y: auto;
    transition: var(--transition-normal);
    z-index: 999;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }
  .nav-links.active {
    right: 0;
  }
  .nav-cta {
    display: none;
  }
  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* --- GLASS CARDS --- */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition-normal);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-premium), var(--shadow-glow);
  background: var(--color-bg-card-hover);
}

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

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-primary-light);
  margin-bottom: 24px;
}

.card h3 {
  margin-bottom: 12px;
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 40px);
  background: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.07) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54 48c-2 0-3 1-4 2s-1 2-1 2h-6c0-1-1-2-2-3s-2-1-3-1H32c-2 0-3 1-4 2s-1 2-1 2h-6c0-1-1-2-2-3s-2-1-3-1H10c-2 0-3 1-4 2s-1 2-1 2H0v6h60v-6h-6zM30 20c-2 0-3 1-4 2s-1 2-1 2h-6c0-1-1-2-2-3s-2-1-3-1H10c-2 0-3 1-4 2s-1 2-1 2H0v6h60v-6h-6c-2 0-3 1-4 2s-1 2-1 2h-6c0-1-1-2-2-3s-2-1-3-1H30z' fill='%2310b981' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  z-index: 10;
}

.hero h1 {
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-dashboard-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-premium), 0 0 40px rgba(16, 185, 129, 0.1);
  background: #000;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.hero-dashboard-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hero-badge-float {
  position: absolute;
  background: rgba(7, 15, 10, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-premium);
  animation: float 6s ease-in-out infinite;
}

.hero-badge-1 {
  top: 10%;
  left: -5%;
}

.hero-badge-2 {
  bottom: 15%;
  right: -5%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- SPONSORS / TRUST --- */
.partners {
  background: rgba(7, 15, 10, 0.5);
  border-y: 1px solid var(--color-border);
  padding: 40px 0;
  text-align: center;
}

.partners-text {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.partners-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  opacity: 0.6;
}

.partner-logo {
  height: 32px;
  width: auto;
  filter: grayscale(1) brightness(1.5);
  transition: var(--transition-fast);
}

.partner-logo:hover {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

/* --- PROBLEM SECTION & MAP --- */
.problem-card {
  border-left: 4px solid var(--color-accent);
}

.problem-card:hover {
  border-left-color: var(--color-accent);
}

.problem-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

/* --- TECH OR DESIGN FEATURES --- */
.tech-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tech-tab-btn {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tech-tab-btn.active, .tech-tab-btn:hover {
  background: var(--color-primary);
  color: var(--color-bg-dark);
  border-color: var(--color-primary);
}

.tech-tab-content {
  display: none;
}

.tech-tab-content.active {
  display: block;
  animation: fadeIn var(--transition-normal) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- INTERACTIVE WIDGETS --- */
/* NDVI / Crop Health Slider Widget */
.slider-widget {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow-premium);
}

.slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.slider-img-overlay {
  clip-path: inset(0 0 0 50%);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.slider-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-primary);
  left: 50%;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 10;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 4px solid var(--color-bg-dark);
  transform: translate(-50%, -50%);
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg-dark);
  cursor: ew-resize;
  box-shadow: var(--shadow-premium);
}

.slider-label {
  position: absolute;
  top: 20px;
  background: rgba(7, 15, 10, 0.8);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 10;
}

.slider-label-left {
  left: 20px;
}

.slider-label-right {
  right: 20px;
}

/* Farm Telemetry dashboard preview */
.telemetry-dashboard {
  background: rgba(7, 15, 10, 0.95);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-premium);
}

.telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.telemetry-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}

.telemetry-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.telemetry-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.metric-box {
  background: rgba(16, 185, 129, 0.03);
  border: 1px solid rgba(16, 185, 129, 0.08);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-light);
  margin-top: 4px;
}

.telemetry-chart {
  height: 150px;
  position: relative;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  border-left: 1px solid rgba(16, 185, 129, 0.2);
  margin-top: 20px;
}

.chart-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawChart 3s ease-out forwards;
}

@keyframes drawChart {
  to { stroke-dashoffset: 0; }
}

/* --- WEATHER ENGINE WIDGET --- */
.weather-widget {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 30px;
}

.weather-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.weather-alert-badge {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--color-error);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --- FOOTER --- */
.footer {
  background: #040906;
  border-top: 1px solid var(--color-border);
  padding: 80px 0 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

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

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

.footer-brand p {
  margin: 20px 0;
  font-size: 0.95rem;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
  text-decoration: none;
}

.social-icon:hover {
  background: var(--color-primary);
  color: var(--color-bg-dark);
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-bright);
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  text-decoration: none;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-primary-light);
  padding-left: 4px;
}

.footer-newsletter p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex-grow: 1;
  background: rgba(7, 15, 10, 0.8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  color: var(--color-text-bright);
  font-family: var(--font-primary);
  font-size: 0.9rem;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(16, 185, 129, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

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

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

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

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 24px;
  color: var(--color-text-bright);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: var(--transition-normal);
  color: var(--color-primary-light);
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
}

.faq-answer-inner {
  padding-bottom: 24px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.faq-item.active {
  background: var(--color-bg-card-hover);
  border-color: var(--color-primary-light);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  transition: max-height 1s cubic-bezier(1, 0, 1, 0);
}

/* --- CONTACT FORM --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 50px;
}

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

.contact-info-list {
  list-style: none;
  margin-top: 30px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary-light);
  flex-shrink: 0;
}

.contact-form-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px;
}

@media (max-width: 600px) {
  .contact-form-card {
    padding: 24px;
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text-bright);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(7, 15, 10, 0.8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--color-text-bright);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- SVG ARCHITECTURE DIAGRAM --- */
.arch-diagram-wrapper {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px;
  margin-top: 40px;
  box-shadow: var(--shadow-premium);
  display: flex;
  justify-content: center;
  align-items: center;
}

.arch-svg {
  width: 100%;
  max-width: 900px;
  height: auto;
}

.arch-node {
  transition: var(--transition-normal);
  cursor: pointer;
}

.arch-node:hover {
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.8));
}

.arch-connection {
  stroke-dasharray: 8;
  animation: dash 30s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -1000;
  }
}

/* --- CAREERS ROLES LIST --- */
.job-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 16px;
  transition: var(--transition-normal);
}

.job-item:hover {
  border-color: var(--color-primary-light);
  background: var(--color-bg-card-hover);
  transform: translateX(5px);
}

.job-details h4 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.job-meta {
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* --- BLOG GRID --- */
.blog-card {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-img-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.blog-card:hover .blog-img {
  transform: scale(1.05);
}

.blog-meta-row {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 16px 0 8px 0;
}

.blog-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card p {
  font-size: 0.95rem;
  flex-grow: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-primary-light);
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
  font-size: 0.9rem;
}

.blog-read-more:hover svg {
  transform: translateX(4px);
}

.blog-read-more svg {
  width: 16px;
  height: 16px;
  transition: var(--transition-fast);
}

/* --- SUCCESS MODAL --- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--color-bg-card);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-premium), var(--shadow-glow);
  animation: scaleIn var(--transition-normal) forwards;
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-icon {
  width: 64px;
  height: 64px;
  color: var(--color-primary);
  margin: 0 auto 20px auto;
}

/* --- STATS GRID --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.stat-card {
  text-align: center;
  padding: 24px;
  background: rgba(16, 185, 129, 0.02);
  border: 1px solid rgba(16, 185, 129, 0.05);
  border-radius: var(--radius-sm);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary-light);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

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

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

/* --- GLOBAL RESPONSIVENESS FIXES (Typography & Overflow Control) --- */
@media (max-width: 768px) {
  h1 {
    font-size: 2.4rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  h3 {
    font-size: 1.4rem;
  }
  p {
    font-size: 1rem;
  }
  .hero-badge-float {
    display: none; /* Prevent horizontal scrollbars on mobile */
  }
  .job-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .job-item .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .telemetry-metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .partners-grid {
    gap: 20px;
  }
  .partner-logo {
    height: 24px;
  }
  .weather-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* --- GLOBAL SECTION SPACING COMPACTNESS --- */
.section {
  padding: 60px 0; /* Reduced from 100px to make layout tighter */
}

@media (max-width: 768px) {
  .section {
    padding: 40px 0; /* Reduced from 60px */
  }
}

/* --- SUBPAGE HERO SECTION OVERRIDES --- */
/* Target the first section of every subpage to reduce large top/bottom padding */
body > section.section:first-of-type {
  padding-top: calc(var(--header-height) + 20px) !important;
  padding-bottom: 20px !important;
}

/* Adjust section tag margin inside the subpage hero */
body > section.section:first-of-type .section-tag {
  margin-bottom: 10px !important;
}

/* Adjust paragraph margins inside the subpage hero */
body > section.section:first-of-type p {
  margin-top: 10px !important;
  margin-bottom: 0 !important;
}

/* Target the second section of every subpage to bring elements closer */
body > section.section:nth-of-type(2) {
  padding-top: 0 !important;
  padding-bottom: 40px !important;
}

/* --- ANIMATED SUCCESS CHECKMARK OVERLAYS --- */
.modal-checkmark-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}
.modal-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: var(--color-primary);
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px var(--color-primary);
  animation: check-fill .4s ease-in-out .4s forwards, check-scale .3s ease-in-out 0s forwards;
}
.modal-checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--color-primary);
  fill: none;
  animation: check-stroke .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.modal-checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: var(--color-primary);
  animation: check-stroke .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}

@keyframes check-stroke {
  100% { stroke-dashoffset: 0; }
}
@keyframes check-scale {
  0%, 100% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
}
@keyframes check-fill {
  100% { box-shadow: inset 0px 0px 0px 30px rgba(16, 185, 129, 0.15); }
}

