/* 
  ============== CSS VARIABLES ==============
*/
:root {
  --green-dark: #1c2b1e;
  --green-olive: #8f9f60;
  --green-olive-dark: #798a4a;
  --green-very-dark: #0f1711;
  --bg-cream: #f8faf9;
  --text-normal: #333333;
  --white: #ffffff;
  
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  --shadow-soft: 0 10px 30px rgba(15, 23, 17, 0.08);
  --shadow-mockup: 0 20px 40px rgba(28, 43, 30, 0.15);
}

/* 
  ============== GLOBAL STYLES ==============
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-normal);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2, h3 {
  color: var(--green-very-dark);
  line-height: 1.2;
}

a {
  text-decoration: none;
}

/* 
  ============== BUTTONS ==============
*/
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--green-olive);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(143, 159, 96, 0.3);
}

.btn-primary:hover {
  background-color: var(--green-olive-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(121, 138, 74, 0.4);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
}

.btn-secondary:hover {
  background-color: rgba(28, 43, 30, 0.05);
  transform: translateY(-2px);
}

/* 
  ============== NAVBAR ==============
*/
.navbar {
  padding: 24px 0;
  background-color: var(--bg-cream);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-img {
  height: 40px;
  width: auto;
  border-radius: 8px;
}

.title-img {
  height: 28px;
  width: auto;
}

/* 
  ============== HERO SECTION ==============
*/
.hero {
  padding: 60px 0 100px;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.hero-content {
  text-align: center;
  max-width: 650px;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 40px;
  color: var(--text-normal);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Mockup App */
.hero-visual {
  width: 100%;
  max-width: 450px;
  display: flex;
  justify-content: center;
}

.app-mockup-img {
  width: 100%;
  height: auto;
  display: block;
}

/* 
  ============== FEATURES SECTION ==============
*/
.features {
  padding: 80px 0;
  background-color: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.feature-card {
  background-color: var(--bg-cream);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--green-dark);
}

.feature-card p {
  color: var(--text-normal);
  font-size: 0.95rem;
}

/* 
  ============== TERMS SECTION ==============
*/
.terms {
  padding: 80px 0;
}

.terms-details {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

summary {
  padding: 24px 30px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--green-dark);
  cursor: pointer;
  list-style: none; /* remove default arrow in some browsers */
  position: relative;
  outline: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  position: absolute;
  right: 30px;
  font-size: 1.5rem;
  color: var(--green-olive);
  transition: transform 0.3s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

.details-content {
  padding: 0 30px 30px;
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: 10px;
}

.details-content h3 {
  font-size: 1rem;
  margin: 20px 0 8px;
  color: var(--green-very-dark);
}

.details-content p {
  font-size: 0.9rem;
  color: var(--text-normal);
  margin-bottom: 16px;
}

/* 
  ============== FOOTER ==============
*/
.footer {
  text-align: center;
  padding: 40px 0;
  background-color: var(--green-very-dark);
  color: var(--white);
  font-size: 0.9rem;
}

/* 
  ============== RESPONSIVE - DESKTOP ==============
*/
@media (min-width: 992px) {
  .hero-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
    gap: 40px;
  }

  .hero-content {
    text-align: left;
    max-width: 55%;
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }

  .hero-content p {
    font-size: 1.25rem;
  }

  .hero-visual {
    max-width: 45%;
    display: flex;
    justify-content: flex-end;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
