:root {
  --primary: #1b3022;
  --secondary: #1a2e35;
  --tertiary: #e2e8e4;
  --neutral: #f9faf8;
  --white: #ffffff;
  --border-light: #e5e7eb;
  --text-main: #1a2e35;
  --text-muted: #6b7280;
}

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

body {
  font-family: "Inter", sans-serif;
  background-color: var(--neutral);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--secondary);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Global Buttons */
.btn-primary {
  background-color: var(--primary);
  color: var(--neutral);
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid var(--primary);
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: background-color 0.2s ease;
}
.btn-primary:hover {
  background-color: #122117;
}

.btn-secondary {
  background-color: var(--white);
  color: var(--secondary);
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid var(--border-light);
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: background-color 0.2s ease;
}
.btn-secondary:hover {
  background-color: var(--neutral);
}

.btn-outline {
  background-color: transparent;
  color: var(--secondary);
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn-outline:hover {
  background-color: rgba(26, 46, 53, 0.04);
}

.btn-text {
  font-weight: 500;
  color: var(--secondary);
}
.btn-text:hover {
  color: var(--primary);
}

.full-width {
  width: 100%;
}
.text-center {
  text-align: center;
}
.font-medium {
  font-weight: 500;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background-color: var(--neutral);
  border-bottom: 1px solid rgba(26, 46, 53, 0.08);
  position: relative;
  z-index: 100;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 30px;
}
.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

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

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile nav drawer */
.nav-mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
}
.nav-mobile-drawer.open {
  max-height: 400px;
  padding: 16px 24px;
}
.nav-mobile-drawer a,
.nav-mobile-drawer button {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-light);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.nav-mobile-drawer a:last-child,
.nav-mobile-drawer button:last-child {
  border-bottom: none;
}

/* Landing Hero */
.landing-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 40px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero-content p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.hero-cta-group {
  display: flex;
  gap: 16px;
}
.hero-cta-group .btn-primary,
.hero-cta-group .btn-secondary {
  min-width: 180px;
}

.hero-image-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-placeholder-img {
  width: 100%;
  height: 450px;
  background-color: var(--tertiary);
  background-image: url("../assets/robot.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 12px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 40px;
}
.feature-card {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  padding: 32px;
  border-radius: 8px;
}
.icon-wrapper {
  color: var(--primary);
  background-color: var(--tertiary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.landing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 60px auto 40px auto;
  padding: 40px 40px 0 40px;
  border-top: 1px solid var(--border-light);
  font-size: 0.875rem;
  color: var(--text-muted);
}
.footer-left {
  display: flex;
  gap: 24px;
  align-items: center;
}
.footer-logo {
  font-weight: 700;
  color: var(--secondary);
  margin-right: 12px;
}

/* ============================================================
   RESPONSIVE — Tablet (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .navbar {
    padding: 16px 24px;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    margin: 40px auto;
    padding: 0 24px;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    padding: 0 24px;
  }

  .landing-footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 24px 24px 0 24px;
  }
  .footer-left {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Hide desktop nav items, show hamburger */
  .nav-links {
    display: none;
  }
  .nav-actions {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .nav-mobile-drawer {
    display: flex;
  }

  .navbar {
    padding: 14px 20px;
  }

  .landing-hero {
    padding: 0 20px;
    margin: 32px auto;
    gap: 28px;
  }
  .hero-content h1 {
    font-size: 1.75rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .hero-cta-group {
    flex-direction: column;
    gap: 12px;
  }
  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    min-width: unset;
    width: 100%;
  }
  .hero-placeholder-img {
    height: 260px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
    margin: 40px auto;
    gap: 16px;
  }
  .feature-card {
    padding: 24px;
  }

  .landing-footer {
    padding: 20px 20px 0 20px;
    margin: 40px auto 24px auto;
  }
}
