:root {
  --primary:   #234e32;
  --secondary: #4caf50;
  --accent:    #2e7d32;
  --bg-light:  #f0f7f0;
  --text:      #333;
  --text-light:#666;
  --white:     #fff;
  --radius:    12px;
  --shadow:    0 4px 20px rgba(0,0,0,0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

a {
  color: var(--secondary);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Reem Kufi', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* Menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 2px;
}

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

.section-alt {
  background: var(--bg-light);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 60px;
  font-size: 1.1rem;
}

/* Hero */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--bg-light) 0%, #e8f5e9 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  justify-items: center;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: var(--radius);
}

/* Problem section */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.problem-before {
  background: #fff5f5;
  border-radius: var(--radius);
  padding: 40px;
}

.problem-before h3 {
  color: #c62828;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.problem-before ul {
  list-style: none;
}

.problem-before li {
  padding: 8px 0;
  color: var(--text-light);
}

.problem-before li::before {
  content: "✗ ";
  color: #c62828;
  font-weight: 700;
}

.problem-after {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 40px;
}

.problem-after h3 {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.problem-after ul {
  list-style: none;
}

.problem-after li {
  padding: 8px 0;
  color: var(--text-light);
}

.problem-after li::before {
  content: "✓ ";
  color: var(--secondary);
  font-weight: 700;
}

/* Todo card */
.todo-card {
  max-width: 600px;
  margin: 48px auto 0;
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  padding: 28px 32px;
}

.todo-card h3 {
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.todo-card h3::before {
  content: "🚧 ";
}

.todo-card ul {
  list-style: none;
}

.todo-card li {
  padding: 6px 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

.todo-card li::before {
  content: "◦ ";
  color: var(--secondary);
  font-weight: 700;
}

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

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.feature-card img {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
}

.feature-card h3 {
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* How it works */
.tabs {
  max-width: 800px;
  margin: 0 auto;
}

.tab-buttons {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--primary);
}

.tab-btn {
  flex: 1;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: var(--white);
  color: var(--primary);
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--primary);
  color: var(--white);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step h4 {
  color: var(--primary);
  margin-bottom: 8px;
}

.step p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* For whom */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.audience-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.audience-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.audience-card h3 {
  color: var(--primary);
  margin-bottom: 12px;
}

.audience-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
  border-radius: var(--radius);
}

.cta-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-banner .btn {
  border-color: var(--white);
  color: var(--white);
}

.cta-banner .btn:hover {
  background: var(--white);
  color: var(--primary);
}

.cta-banner--quote {
  background: var(--primary);
  color: var(--white);
  text-align: left;
  padding: 72px 80px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  overflow: hidden;
}

.cta-banner--quote::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner--quote::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 20%;
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner--quote div {
  position: relative;
  z-index: 1;
}

.cta-banner--quote h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.cta-banner--quote p {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 0;
}

.cta-banner--quote .btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--white);
  padding: 14px 40px;
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s;
}

.cta-banner--quote .btn:hover {
  background: transparent;
  color: var(--white);
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 32px;
}

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

.footer-brand h3 {
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== Inner pages ===== */
.page-header {
  padding: 120px 0 48px;
  background: linear-gradient(135deg, var(--bg-light) 0%, #e8f5e9 100%);
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
}

.page-header p {
  color: var(--text-light);
  margin-top: 8px;
}

/* Features detail */
.features-detail {
  display: grid;
  gap: 60px;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.feature-block-img {
  perspective: 840px;
}

.feature-block:nth-child(even) .feature-block-img {
  order: -1;
}

.feature-block:nth-child(even) img {
  transform: rotateX(20deg) rotateY(34deg) rotateZ(-9deg);
  transition: .4s;
}
.feature-block:nth-child(even) img:hover {
  transform: rotateX(20deg) rotateY(10deg) rotateZ(-3deg);
}

.feature-block:nth-child(odd) img {
  transform: rotateX(20deg) rotateY(-23deg) rotateZ(5deg);
  transition: .4s;
}
.feature-block:nth-child(odd) img:hover {
  transform: rotateX(20deg) rotateY(10deg) rotateZ(-3deg);
}

.feature-block-text h2 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-block-text p {
  color: var(--text-light);
  line-height: 1.7;
}

.feature-block-text ul {
  list-style: none;
  margin-top: 16px;
}

.feature-block-text li {
  padding: 6px 0;
  color: var(--text-light);
}

.feature-block-text li::before {
  content: "✓ ";
  color: var(--secondary);
  font-weight: 700;
}

.feature-block-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.todo-block {
  background: var(--bg-light);
  border: 1px solid #dbe7db;
  border-radius: var(--radius);
  padding: 40px;
}

.todo-block h3 {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.todo-block h3::before {
  content: "🚧 ";
}

.todo-block > p {
  color: var(--text-light);
  margin-bottom: 24px;
}

.todo-block ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
}

.todo-block li {
  padding: 8px 0;
  border-bottom: 1px dashed #dbe7db;
  color: var(--text-light);
  font-size: 0.95rem;
}

.todo-block li::before {
  content: "◦ ";
  color: var(--secondary);
  font-weight: 700;
}

/* Demo page */
.demo-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  text-align: center;
}

.demo-card h2 {
  color: var(--primary);
  margin-bottom: 20px;
}

.demo-creds {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
  text-align: left;
}

.demo-creds dt {
  font-weight: 600;
  color: var(--primary);
  margin-top: 12px;
}

.demo-creds dd {
  color: var(--text-light);
  font-family: monospace;
  padding: 6px 0;
}

.demo-creds dt:first-child {
  margin-top: 0;
}

.demo-note {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 24px 0;
  padding: 16px;
  background: #fff8e1;
  border-radius: 8px;
}

/* Contact */
.form-error {
  max-width: 560px;
  margin: 0 auto 24px;
  padding: 16px 20px;
  background: #fff0f0;
  border: 1px solid #ffcdd2;
  border-radius: 8px;
  color: #c62828;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
}

.contact-form {
  max-width: 560px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--white);
}

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

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* About page */
.about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about-text {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}

.about-list li {
  padding: 10px 0 10px 32px;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.6;
  position: relative;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 10px;
  height: 10px;
  background: var(--secondary);
  border-radius: 50%;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--secondary);
  margin-bottom: 20px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Animations au scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    margin: 0 auto 32px;
  }

  .hero-actions {
    justify-content: center;
  }

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

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .todo-card {
    max-width: none;
  }

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

  .steps {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .feature-block {
    grid-template-columns: 1fr;
  }

  .feature-block:nth-child(even) .feature-block-img {
    order: 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
}

@media (max-width: 700px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

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

  .audience-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .cta-banner h2 {
    font-size: 1.5rem;
  }

  .cta-banner--quote {
    flex-direction: column;
    text-align: center;
    padding: 48px 32px;
  }

  .cta-banner--quote .btn {
    width: 100%;
  }

  .demo-card {
    padding: 24px;
  }

  .todo-card {
    padding: 20px 24px;
  }

  .todo-block {
    padding: 24px;
  }

  .todo-block ul {
    grid-template-columns: 1fr;
  }
}
