:root {
  --bg: #e7efe1;
  --bg-soft: #d4e2ca;
  --panel: rgba(250, 252, 246, 0.82);
  --panel-solid: #fbfcf8;
  --text: #1d3023;
  --muted: #5e7160;
  --line: rgba(29, 48, 35, 0.16);
  --green: #6f8f62;
  --green-dark: #31553a;
  --green-soft: #b9ceb0;
  --accent: #b9683f;
  --accent-dark: #88452f;
  --wheat: #c4a55b;
  --shadow: 0 18px 45px rgba(39, 70, 43, 0.12);
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  color: var(--text);
  background: linear-gradient(
    180deg,
    #e7efe1 0%,
    #edf3e7 58%,
    #dce9d4 100%
  );
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

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

button {
  border: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */

.scroll-progress {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(29, 48, 35, 0.1);
  background: rgba(231, 239, 225, 0.78);
  backdrop-filter: blur(18px);
}

.site-header.scrolled {
  background: rgba(231, 239, 225, 0.95);
}

.container-nav {
  position: relative;
  display: flex;
  width: min(1120px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 4px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.desktop-cta {
  flex: 0 0 auto;
  white-space: nowrap;
}

.menu-button {
  display: none;
  margin-left: auto;
  padding: 8px;
  background: transparent;
  color: var(--text);
  font-size: 1.35rem;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 19px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fffaf0;
  background: var(--accent);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(251, 252, 248, 0.6);
}

.button-secondary:hover {
  border-color: var(--green-dark);
  background: var(--panel-solid);
}

/* Typography */

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.08;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 2px;
  border-radius: 4px;
  background: currentColor;
  content: "";
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 64px;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 42px;
  text-align: center;
}

.hero-content {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
}

.hero-content h1 {
  max-width: 850px;
  margin: 0 auto;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  letter-spacing: -0.08em;
  line-height: 0.98;
}

.hero-content h1 span {
  color: var(--green-dark);
}

.hero-copy {
  max-width: 570px;
  margin: 28px auto 30px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-note {
  margin-top: 22px;
  color: var(--green);
  font-size: 0.82rem;
}

/* Board preview */

.preview-wrap {
  width: min(100%, 920px);
  margin: 0 auto;
}

.preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.preview-heading span:first-child {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

.board-preview {
  position: relative;
  width: 100%;
  margin: 0 auto;
  border: 1px solid rgba(29, 48, 35, 0.16);
  border-radius: 18px;
  padding: 12px;
  background: rgba(251, 252, 248, 0.72);
  box-shadow: var(--shadow);
  text-align: left;
}

.board-preview::before {
  position: absolute;
  z-index: -1;
  inset: 10% -8% -12% 8%;
  border-radius: 50%;
  background: rgba(111, 143, 98, 0.2);
  filter: blur(60px);
  content: "";
}

.window-bar {
  display: flex;
  gap: 7px;
  padding: 5px 5px 16px;
}

.window-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.window-bar span:nth-child(2) {
  background: var(--wheat);
}

.window-bar span:nth-child(3) {
  background: var(--green);
}

.board-shell {
  border: 1px solid rgba(29, 48, 35, 0.12);
  border-radius: 12px;
  padding: 20px;
  background: rgba(251, 252, 248, 0.9);
}

.board-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 21px;
}

.small-label {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.board-topbar h3 {
  margin-top: 4px;
  color: var(--text);
  font-size: 1.25rem;
}

.theme-pill {
  border: 1px solid rgba(49, 85, 58, 0.25);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--green-dark);
  background: rgba(111, 143, 98, 0.12);
  font-size: 0.72rem;
  white-space: nowrap;
}

.kanban-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.kanban-column {
  min-height: 230px;
  border: 1px solid rgba(29, 48, 35, 0.1);
  border-radius: 13px;
  padding: 10px;
  background: rgba(212, 226, 202, 0.38);
}

.column-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 700;
}

.column-title span:last-child,
.card-meta {
  color: var(--muted);
}

.task-card {
  margin-bottom: 9px;
  border: 1px solid rgba(29, 48, 35, 0.1);
  border-radius: 11px;
  padding: 11px;
  background: var(--panel-solid);
  box-shadow: 0 5px 15px rgba(39, 70, 43, 0.07);
}

.task-card h4 {
  margin: 7px 0 13px;
  color: var(--text);
  font-size: 0.77rem;
}

.task-tag {
  display: inline-block;
  border-radius: 5px;
  padding: 3px 6px;
  color: var(--accent-dark);
  background: rgba(185, 104, 63, 0.13);
  font-size: 0.6rem;
  font-weight: 700;
}

.accent-teal .task-tag {
  color: var(--green-dark);
  background: rgba(111, 143, 98, 0.13);
}

.accent-green .task-tag {
  color: #8b6e2d;
  background: rgba(196, 165, 91, 0.18);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.63rem;
}

/* Sections */

.section {
  padding: 104px 0;
}

.section-heading {
  max-width: 610px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  letter-spacing: -0.05em;
}

.section-heading p:last-child {
  margin-top: 15px;
  color: var(--muted);
  font-size: 1.05rem;
}

.features,
.steps,
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 280px));
  justify-content: center;
  gap: 16px;
}

.feature-card,
.step-card {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 8px;
  background: transparent;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.feature-card:hover,
.step-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.feature-number,
.step-card > span {
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
}

.feature-card h3,
.step-card h3 {
  margin-bottom: 9px;
  font-size: 1.12rem;
}

.feature-card p,
.step-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Themes */

.theme-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 248, 0.25);
}

.theme-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.theme-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.theme-card h3 {
  font-size: 1.55rem;
}

.theme-card p {
  max-width: 230px;
  margin-top: 8px;
  color: rgba(29, 48, 35, 0.76);
  font-size: 0.9rem;
}

.theme-card button {
  align-self: flex-start;
  border: 1px solid rgba(29, 48, 35, 0.25);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(251, 252, 248, 0.38);
  color: var(--text);
  font-size: 0.8rem;
}

.theme-card button:hover {
  border-color: var(--text);
}

.theme-harvest {
  background: #c4d7bc;
}

.theme-cold {
  background: #c4d8dc;
}

.theme-hot {
  background: #edc4a0;
}

.theme-swatch {
  width: 55px;
  height: 55px;
  margin-bottom: 28px;
  border: 8px solid rgba(251, 252, 248, 0.45);
  border-radius: 50%;
  box-shadow: 12px 8px 0 rgba(29, 48, 35, 0.1);
}

/* CTA and footer */

.cta-section {
  padding: 104px 0;
}

.cta-box {
  border: 1px solid rgba(49, 85, 58, 0.24);
  border-radius: 18px;
  padding: 62px 40px;
  text-align: center;
  background: rgba(212, 226, 202, 0.5);
}

.cta-box h2 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  letter-spacing: -0.06em;
}

.cta-box p:not(.eyebrow) {
  max-width: 540px;
  margin: 16px auto 26px;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--text);
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Responsive */

@media (max-width: 900px) {
  .features,
  .steps,
  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 280px));
  }
}

@media (max-width: 650px) {
  .container,
  .container-nav {
    width: min(100% - 28px, 1120px);
  }

  .container-nav {
    min-height: 68px;
  }

  .nav-links,
  .desktop-cta {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .container-nav.open .nav-links {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px 18px;
    background: #e7efe1;
    box-shadow: var(--shadow);
  }

  .container-nav.open .nav-links a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .container-nav.open .nav-links a:last-child {
    border-bottom: 0;
  }

  .hero {
    padding: 76px 0 48px;
  }

  .hero-content h1 {
    font-size: clamp(2.9rem, 15vw, 4.5rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .preview-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .kanban-preview {
    grid-template-columns: 1fr;
  }

  .board-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .features,
  .steps,
  .theme-grid {
    grid-template-columns: minmax(0, 360px);
  }

  .section,
  .cta-section {
    padding: 76px 0;
  }

  .cta-box {
    padding: 46px 22px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}