:root {
  --bg-dark: #071710;
  --bg-forest: #10271C;
  --bg-secondary: #173324;
  --accent: #B5F46C;
  --accent-dark: #75BA43;
  --text-light: #F7F9F3;
  --text-muted: #B6C6BB;
  --card-bg: rgba(16, 39, 28, 0.85);
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
}

body.desktop-full {
  height: 100vh;
  overflow: hidden;
}

@media (max-width: 768px) {
  body.desktop-full { height: auto; overflow: auto; }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 23, 16, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(181, 244, 108, 0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav a:hover, .nav a.active {
  color: var(--accent);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-primary:hover {
  background: #c8ff7a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(181, 244, 108, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

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

/* Hero */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(7, 23, 16, 0.4), rgba(7, 23, 16, 0.7)), url('../images/hero-tractor.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 4rem 4rem;
  position: relative;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -2px;
  background: linear-gradient(to right, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  line-height: 0.9;
}

.hero .subtitle {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero p {
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Cards section on home */
.impact-cards {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(181, 244, 108, 0.15);
  border-radius: 16px;
  padding: 1.5rem;
  transition: var(--transition);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(181, 244, 108, 0.2);
}

.card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: transform 0.5s ease;
}

.card:hover img {
  transform: scale(1.08);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 6rem 2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  background: var(--bg-forest);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(181, 244, 108, 0.1);
  transition: var(--transition);
  cursor: pointer;
}

.service-card:hover {
  transform: scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(181, 244, 108, 0.15);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.service-card-content {
  padding: 1.5rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-forest);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--accent);
  position: relative;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Simulator */
.simulator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 6rem 2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
}

@media (max-width: 968px) {
  .simulator-container { grid-template-columns: 1fr; }
  .impact-cards { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .hamburger { display: block; }
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.8rem;
  background: var(--bg-secondary);
  border: 1px solid rgba(181, 244, 108, 0.2);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 1rem;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.range-value {
  color: var(--accent);
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Footer */
.footer {
  background: var(--bg-forest);
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(181, 244, 108, 0.1);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 1rem;
  }
  .nav.open { display: flex; }
  .hero { padding: 6rem 1.5rem 2rem; height: auto; min-height: 100vh; }
  .impact-cards { position: relative; bottom: auto; margin-top: 2rem; grid-template-columns: 1fr; }
}
