/* ========================================
   VerdX — Style
   ======================================== */

:root {
  --green-dark: #00491f;
  --green-mid: #005c28;
  --green-lime: #cbdb14;
  --green-accent: #7ab317;
  --black: #0a0f0b;
  --dark-bg: #0c1a10;
  --light-bg: #f7f9f7;
  --white: #ffffff;
  --gray-100: #f0f2f0;
  --gray-200: #dde1dd;
  --gray-400: #8a9a8e;
  --gray-600: #4a5a4e;
  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --nav-height: 72px;
  --max-width: 1120px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-600);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

.container--narrow {
  max-width: 640px;
}

/* ---- Button ---- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

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

.btn--primary:hover {
  background: #d8e83a;
  transform: translateY(-1px);
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav--scrolled {
  background: var(--white);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.nav__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  height: 36px;
}

.nav__logo-img {
  height: 36px;
  width: auto;
}

.nav__logo-img--dark {
  display: none;
}

.nav__logo-img--light {
  display: block;
}

.nav--scrolled .nav__logo-img--dark {
  display: block;
}

.nav--scrolled .nav__logo-img--light {
  display: none;
}

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

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}

.nav__links a:hover {
  color: var(--green-lime);
}

.nav--scrolled .nav__links a {
  color: var(--gray-600);
}

.nav--scrolled .nav__links a:hover {
  color: var(--green-dark);
}

.nav__cta {
  background: var(--green-lime);
  color: var(--green-dark) !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: background var(--transition);
}

.nav__cta:hover {
  background: #d8e83a;
  color: var(--green-dark) !important;
}

.nav--scrolled .nav__cta {
  color: var(--green-dark) !important;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

.nav--scrolled .nav__toggle span {
  background: var(--green-dark);
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-bg);
  overflow: hidden;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  background: url('../images/pattern.png') repeat;
  background-size: 300px;
  opacity: 0.06;
}

.hero__content {
  position: relative;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 800px;
}

.hero__logo {
  height: 60px;
  margin: 0 auto 48px;
}

.hero__tagline {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--gray-400);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Sections ---- */
.section {
  padding: 100px 0;
}

.section--light {
  background: var(--light-bg);
  color: var(--gray-600);
}

.section--dark {
  background: var(--dark-bg);
  color: var(--gray-400);
}

.section--prototype {
  position: relative;
  background: var(--dark-bg);
  color: var(--gray-400);
  overflow: hidden;
}

.section--prototype .prototype-bg {
  position: absolute;
  inset: 0;
  background: url('../images/prototype-teaser.jpg') center center / cover no-repeat;
  opacity: 0.45;
}

.section--prototype .container {
  position: relative;
  z-index: 1;
}

.section--accent {
  background: var(--green-dark);
  color: var(--white);
}

.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-align: center;
}

.section--light .section__title {
  color: var(--green-dark);
}

.section--dark .section__title {
  color: var(--white);
}

.section--accent .section__title {
  color: var(--white);
}

.section__intro {
  font-size: 18px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

.section--accent .section__intro {
  color: rgba(255, 255, 255, 0.75);
}

/* ---- Problem Cards ---- */
.cards--three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 73, 31, 0.08);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--green-mid);
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-600);
}

/* ---- Solution ---- */
.solution__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.solution__lead {
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.4;
}

.solution__text p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.solution__highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlight {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--green-lime);
  border-radius: 0 6px 6px 0;
}

.highlight__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-lime);
  min-width: 80px;
}

.highlight__value {
  font-size: 16px;
  color: var(--white);
  font-weight: 500;
}

/* ---- Features ---- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.feature {
  text-align: center;
  padding: 24px 16px;
}

.feature__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: var(--green-mid);
}

.feature h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.feature p {
  font-size: 15px;
  line-height: 1.65;
}

/* ---- Team ---- */
.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  max-width: 800px;
  margin: 0 auto;
}

.team__member {
  text-align: center;
}

.team__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 24px;
  background: var(--green-dark);
}

.team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team__member h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.team__role {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--green-lime);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.team__member p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-400);
  max-width: 340px;
  margin: 0 auto;
}

/* ---- Signup ---- */
.signup {
  max-width: 480px;
  margin: 0 auto;
}

.signup__field {
  display: flex;
  gap: 8px;
}

.signup__input {
  flex: 1;
  padding: 14px 18px;
  font-size: 15px;
  font-family: var(--font-stack);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  outline: none;
  transition: border-color var(--transition);
}

.signup__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.signup__input:focus {
  border-color: var(--green-lime);
}

.signup__btn {
  white-space: nowrap;
}

.signup__note {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 16px;
  letter-spacing: 0.04em;
}

/* ---- Footer ---- */
.footer {
  background: var(--black);
  padding: 48px 0;
}

.footer__content {
  text-align: center;
}

.footer__logo {
  height: 28px;
  margin: 0 auto 16px;
}

.footer__text {
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.footer__copy {
  font-size: 13px;
  color: var(--gray-400);
  opacity: 0.6;
}

/* ---- Fade-in animation ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 900px) {
  .cards--three {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .solution__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 20px;
    background: var(--dark-bg);
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
  }

  .nav__links.open {
    transform: translateX(0);
  }

  .nav__links a {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85) !important;
  }

  .nav__links a:hover {
    color: var(--green-lime) !important;
  }

  .nav__cta {
    margin-top: 8px;
  }

  .section {
    padding: 72px 0;
  }

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

  .team {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__logo {
    height: 44px;
    margin-bottom: 36px;
  }

  .signup__field {
    flex-direction: column;
  }

  .signup__btn {
    width: 100%;
  }
}
