/* =================================================================================================
   CSS Reset & Base Styles
   ================================================================================================= */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
    'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
}

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

a {
  color: #2d5f3f;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1e3f2a;
}

/* =================================================================================================
   Layout & Container
   ================================================================================================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
  scroll-margin-top: 80px; /* Offset for sticky header when navigating to anchors */
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.section-intro {
  font-size: 1.125rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #4a4a4a;
}

/* =================================================================================================
   Header & Navigation
   ================================================================================================= */

.header {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

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

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

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d5f3f;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: #4a4a4a;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #2d5f3f;
}

.nav-link-login {
  padding: 8px 20px;
  background: #2d5f3f;
  color: #ffffff;
  border-radius: 5px;
}

.nav-link-login:hover {
  background: #1e3f2a;
  color: #ffffff;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #2d5f3f;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* =================================================================================================
   Hero Section
   ================================================================================================= */

.hero {
  background: linear-gradient(135deg, #f8fdf9 0%, #e8f5eb 100%);
  padding: 80px 0 60px;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #4a4a4a;
  margin-bottom: 35px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

/* =================================================================================================
   Buttons
   ================================================================================================= */

.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: #2d5f3f;
  color: #ffffff;
  border-color: #2d5f3f;
}

.btn-primary:hover {
  background: #1e3f2a;
  border-color: #1e3f2a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 95, 63, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #2d5f3f;
  border-color: #2d5f3f;
}

.btn-secondary:hover {
  background: #2d5f3f;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 95, 63, 0.2);
}

.btn-large {
  padding: 15px 40px;
  font-size: 1.1rem;
}

/* =================================================================================================
   Problem Section
   ================================================================================================= */

.section-problem {
  background: #ffffff;
}

.why-callout {
  max-width: 900px;
  margin: 50px auto 0;
  padding: 30px 35px;
  background: #fff9e6;
  border-left: 5px solid #f4b942;
  border-radius: 6px;
}

.why-callout h3 {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.why-callout p {
  color: #4a4a4a;
  line-height: 1.7;
  margin-bottom: 12px;
}

.why-callout p:last-child {
  margin-bottom: 0;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.problem-item {
  padding: 30px;
  background: #f8fdf9;
  border-radius: 8px;
  border-left: 4px solid #2d5f3f;
}

.problem-item h3 {
  font-size: 1.4rem;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.problem-item p {
  color: #4a4a4a;
  line-height: 1.7;
}

/* =================================================================================================
   Solution Section
   ================================================================================================= */

.section-solution {
  background: #f9f9f9;
}

.solution-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.tier {
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tier h3 {
  font-size: 1.75rem;
  color: #2d5f3f;
  margin-bottom: 15px;
}

.tier p {
  color: #4a4a4a;
  margin-bottom: 20px;
}

.tier ul {
  list-style: none;
  padding: 0;
}

.tier ul li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: #4a4a4a;
}

.tier ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2d5f3f;
  font-weight: bold;
  font-size: 1.2rem;
}

.tier-enterprise {
  border: 2px solid #2d5f3f;
}

.coming-soon-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2d5f3f;
  background: #e8f5eb;
  padding: 3px 10px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =================================================================================================
   Features Section
   ================================================================================================= */

.section-features {
  background: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  margin-top: 40px;
}

.feature {
  padding: 25px;
}

.feature h3 {
  font-size: 1.4rem;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.feature p {
  color: #4a4a4a;
  line-height: 1.7;
}

/* =================================================================================================
   Demo Section
   ================================================================================================= */

.section-demo {
  background: linear-gradient(135deg, #2d5f3f 0%, #1e3f2a 100%);
  color: #ffffff;
}

.section-demo .section-title {
  color: #ffffff;
}

.demo-content {
  max-width: 900px;
  margin: 0 auto;
}

/* Match container margins on smaller screens */
@media (max-width: 1000px) {
  .demo-content {
    max-width: none;
    padding: 0 25px;
  }
}

.demo-text h3 {
  font-size: 1.75rem;
  margin-bottom: 20px;
  color: #ffffff;
}

.demo-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.95);
}

.demo-text ul {
  list-style: none;
  padding: 20px 0;
  margin-bottom: 25px;
}

.demo-text ul li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: rgba(255, 255, 255, 0.95);
}

.demo-text ul li:before {
  content: "→";
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2rem;
}

.demo-text .btn-primary {
  background: #ffffff;
  color: #2d5f3f;
  border-color: #ffffff;
}

.demo-text .btn-primary:hover {
  background: #f0f0f0;
  border-color: #f0f0f0;
  color: #1e3f2a;
}

.demo-note {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

/* =================================================================================================
   Signup Section
   ================================================================================================= */

.section-signup {
  background: #f8fdf9;
}

.signup-form {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1a1a1a;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  border: 2px solid #e5e5e5;
  border-radius: 6px;
  transition: border-color 0.2s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #2d5f3f;
}

.form-group select {
  cursor: pointer;
  background-color: #ffffff;
}

.signup-form .btn-large {
  width: 100%;
  margin-top: 10px;
}

.form-note {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #666;
}

.form-status {
  text-align: center;
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.95rem;
  display: none;
}

.form-status:not(:empty) {
  display: block;
}

.form-status-error {
  background: #fee;
  color: #c33;
  border: 1px solid #fcc;
}

.form-status-success {
  background: #efe;
  color: #3c3;
  border: 1px solid #cfc;
}

.signup-success {
  max-width: 600px;
  margin: 0 auto;
  background: #e8f5eb;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  border: 2px solid #2d5f3f;
}

.signup-success h3 {
  font-size: 2rem;
  color: #2d5f3f;
  margin-bottom: 15px;
}

.signup-success p {
  font-size: 1.1rem;
  color: #4a4a4a;
  line-height: 1.7;
}

/* =================================================================================================
   Footer
   ================================================================================================= */

.footer {
  background: #1a1a1a;
  color: #ffffff;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

/* Footer logo removed - needs treatment for dark background */
/* .footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
} */

.footer-brand p {
  color: #d0d0d0;
  line-height: 1.7;
}

.footer-brand a {
  color: #ffffff;
  text-decoration: underline;
}

.footer-brand a:hover {
  color: #e8e8e8;
}

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

.footer-section h3 {
  margin-bottom: 15px;
  color: #ffffff;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #b0b0b0;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #333;
  color: #c0c0c0;
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: #e8e8e8;
}

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

/* Desktop: Ensure hamburger is hidden and nav is visible */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }

  .nav-links {
    display: flex !important;
    position: static;
    width: auto;
    height: auto;
    flex-direction: row;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav-link {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Mobile Navigation */
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 70px);
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 20px;
    gap: 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 99;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-link {
    width: 100%;
    padding: 15px 10px;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-link-login {
    margin-top: 10px;
    text-align: center;
    border-bottom: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .signup-form {
    padding: 30px 20px;
  }

  .solution-tiers,
  .features-grid,
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 0 50px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 50px 0;
  }
}

/* =================================================================================================
   Login Page
   ================================================================================================= */

.section-login {
  background: linear-gradient(135deg, #f8fdf9 0%, #e8f5eb 100%);
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.login-container {
  max-width: 460px;
  margin: 0 auto;
  background: #ffffff;
  padding: 50px 45px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.login-header {
  text-align: center;
  margin-bottom: 35px;
}

.login-header h1 {
  font-size: 2rem;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.login-header p {
  color: #666;
  font-size: 1rem;
}

.login-form {
  margin-bottom: 25px;
}

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

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.9rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #4a4a4a;
}

.checkbox-label input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.forgot-link {
  color: #2d5f3f;
  text-decoration: none;
  font-size: 0.9rem;
}

.forgot-link:hover {
  text-decoration: underline;
}

.login-form .btn-large {
  width: 100%;
}

.login-footer {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid #e5e5e5;
}

.login-footer p {
  color: #666;
  font-size: 0.95rem;
}

.login-footer a {
  color: #2d5f3f;
  font-weight: 600;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* =================================================================================================
   About & Legal Pages
   ================================================================================================= */

.section-about,
.section-legal {
  background: #ffffff;
  padding: 60px 0 50px;
}

.about-content,
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p,
.legal-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #4a4a4a;
}

.legal-content h3 {
  font-size: 1.5rem;
  color: #2d5f3f;
  margin-top: 40px;
  margin-bottom: 15px;
}

.legal-content h3:first-child {
  margin-top: 0;
}

.legal-content ul {
  margin-bottom: 20px;
  margin-left: 20px;
}

.legal-content ul li {
  margin-bottom: 10px;
  line-height: 1.7;
  color: #4a4a4a;
}

.legal-content a {
  color: #2d5f3f;
  text-decoration: underline;
}

.legal-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #e5e5e5;
  font-weight: 600;
  color: #1a1a1a;
}

.nav-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* =================================================================================================
   Utility Classes
   ================================================================================================= */

.anchor {
  display: block;
  position: relative;
  visibility: hidden;
  scroll-margin-top: 80px; /* Offset for sticky header */
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
