:root {
  --green-900: #2f5233;
  --green-700: #3d6b42;
  --cream: #ebebde;
  --cream-dark: #ddddd0;
  --accent: #c4725d;
  --accent-hover: #a65d4a;
  --text-primary: #1a1a1a;
  --text-secondary: #5c5c5c;
  --text-on-dark: #f5f5f0;
  --white: #ffffff;
  --shadow-soft: 0 1px 2px rgba(26, 26, 26, 0.06);
  --radius: 8px;
  --radius-md: 6px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--cream);
  line-height: 1.6;
}

[id] {
  scroll-margin-top: 64px;
}

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

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

h1,
h2,
h3 {
  font-family: "Libre Baskerville", "Times New Roman", serif;
  margin: 0 0 16px;
  line-height: 1.3;
}

h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  color: var(--text-on-dark);
  font-weight: 400;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--green-900);
}

h3 {
  font-size: 1.15rem;
  color: var(--green-900);
}

p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-title {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 8px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 2px;
  background: var(--green-700);
  opacity: 0.4;
}

.measure {
  max-width: 56ch;
}

/* ── Header ── */

.site-header {
  background: transparent;
  color: var(--text-on-dark);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  background: rgba(47, 82, 51, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Libre Baskerville", "Times New Roman", serif;
  font-size: 1.2rem;
  letter-spacing: 0.3px;
}

.nav-drawer {
  display: flex;
  align-items: center;
  gap: 24px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 10px;
  margin: -10px;
}

.nav-overlay {
  display: none;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.site-nav a {
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  opacity: 1;
}

.site-nav a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-on-dark);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-hover);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-secondary {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(245, 245, 240, 0.4);
}

.btn-secondary:hover,
.btn-secondary:focus {
  border-color: var(--text-on-dark);
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--green-900) url("hero-bg.jpg") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    rgba(47, 82, 51, 0.92) 0%,
    rgba(47, 82, 51, 0.80) 50%,
    rgba(47, 82, 51, 0.62) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 1;
  padding: 80px 0 48px;
}

.hero-content {
  max-width: 680px;
}

.hero-content h1 {
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero-subtitle {
  color: rgba(245, 245, 240, 0.8);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Features ── */

.section-muted {
  background: rgba(255, 255, 255, 0.45);
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
}

.features-section {
  padding-top: 0;
  padding-bottom: 0;
}

.features-section .section-title {
  padding: 80px 48px 40px;
  margin-bottom: 0;
}

.features-section .section-title::after {
  left: 48px;
}

.features-scroller {
  position: relative;
}

.features-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1;
}

.features-sticky-grid {
  display: grid;
  grid-template-columns: 200px 1fr 380px;
  height: 100%;
}

.features-sticky-grid .features-nav {
  align-self: start;
  padding: 48px 0 0 48px;
}

.features-sticky-grid .feature-showcase {
  align-self: stretch;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #c5d4c0 0%, #dde4d6 50%, #e4ded2 100%);
  border-left: 1px solid var(--cream-dark);
  border-right: 1px solid var(--cream-dark);
}

.features-sticky-grid .feature-text {
  align-self: center;
  padding: 48px;
}

.features-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.features-nav-item {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: left;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.features-nav-item:hover {
  color: var(--text-primary);
}

.features-nav-item.active {
  color: var(--green-900);
  font-weight: 600;
}

.feature-waypoint {
  height: 100vh;
  pointer-events: none;
}

.feature-text h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin-bottom: 16px;
  line-height: 1.35;
}

.feature-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.coming-soon-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--green-700);
  background: rgba(61, 107, 66, 0.08);
  border: 1px solid rgba(61, 107, 66, 0.15);
  padding: 4px 12px;
  border-radius: 100px;
}

.showcase-images {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-img {
  position: absolute;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.showcase-main {
  width: 72%;
  top: 50%;
  left: 46%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.showcase-float {
  width: 30%;
  bottom: 10%;
  right: 4%;
  z-index: 2;
}

.observatory-left {
  width: 44%;
  top: 50%;
  left: 28%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.observatory-right {
  width: 48%;
  top: 50%;
  right: 6%;
  transform: translateY(-50%);
  z-index: 2;
}

/* Mobile screenshot placeholder fallback */
.screenshot-placeholder {
  background: var(--cream-dark);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ── Trust Strip ── */

.trust-strip {
  background: var(--green-900);
  padding: 44px 0;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-on-dark);
  font-size: 1rem;
  line-height: 1.7;
}

.trust-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--accent);
}

/* ── Contact ── */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 14px;
}

.contact-form label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--cream-dark);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, outline-color 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

.contact-form .btn {
  width: 100%;
}

.form-status {
  font-size: 0.88rem;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  line-height: 1.5;
}

.form-status-success {
  background: rgba(61, 107, 66, 0.08);
  color: var(--green-700);
  border: 1px solid rgba(61, 107, 66, 0.2);
}

.form-status-error {
  background: rgba(196, 114, 93, 0.08);
  color: var(--accent-hover);
  border: 1px solid rgba(196, 114, 93, 0.2);
}

.contact-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Footer ── */

.site-footer {
  padding: 24px 0 48px;
  border-top: 1px solid var(--cream-dark);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Libre Baskerville", "Times New Roman", serif;
  font-size: 1rem;
  color: var(--text-primary);
}

.footer-right {
  text-align: right;
}

.photo-credit {
  font-size: 0.72rem;
  opacity: 0.6;
}

.photo-credit a {
  text-decoration: underline;
}

/* ── Animations ── */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.7s ease forwards;
}

.reveal-d1 { animation-delay: 0.1s; }
.reveal-d2 { animation-delay: 0.2s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ── Responsive ── */

@media (max-width: 960px) {
  .nav-wrap {
    flex-wrap: wrap;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding: 72px 0 56px;
  }

  .hero .container {
    padding: 0;
  }

  .features-section .section-title {
    padding: 60px 24px 32px;
  }

  .features-section .section-title::after {
    left: 24px;
  }

  .features-sticky {
    position: relative;
    height: auto;
  }

  .features-sticky-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 5%;
  }

  .features-sticky-grid .features-nav {
    flex-direction: row;
    padding: 0;
    gap: 4px;
  }

  .features-sticky-grid .feature-showcase {
    border: none;
    border-radius: var(--radius);
    height: 300px;
    position: relative;
  }

  .features-sticky-grid .feature-text {
    padding: 0;
  }

  .showcase-main {
    width: 65%;
  }

  .showcase-float {
    width: 28%;
  }

  .observatory-left {
    width: 42%;
    left: 26%;
  }

  .observatory-right {
    width: 45%;
  }

  .feature-waypoint {
    display: none;
  }

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

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

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .footer-right {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .menu-toggle {
    display: block;
    position: relative;
    z-index: 25;
  }

  .site-header.hidden {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: rgba(47, 82, 51, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--green-900);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 32px 32px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 20;
  }

  .nav-drawer.open {
    transform: translateX(0);
  }

  .nav-drawer .site-nav {
    flex-direction: column;
    gap: 0;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: normal;
  }

  .nav-drawer .site-nav a {
    display: block;
    padding: 14px 0;
    opacity: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-drawer .btn-primary {
    margin-top: 24px;
    width: 100%;
    text-align: center;
  }

  .nav-overlay.active {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 15;
  }

  .hero .container {
    padding: 56px 0 40px;
  }

  .hero-subtitle {
    margin-bottom: 24px;
  }

  .section {
    padding: 56px 0;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .screenshot-placeholder {
    height: 200px;
  }

  .features-sticky-grid .feature-showcase {
    height: 220px;
  }

  .showcase-img {
    border-radius: 6px;
  }

  .showcase-main {
    width: 70%;
  }

  .showcase-float {
    width: 32%;
    bottom: 5%;
  }

  .observatory-left {
    width: 44%;
    left: 26%;
  }

  .observatory-right {
    width: 46%;
  }

  .features-sticky-grid {
    padding: 16px 4%;
  }

  .features-nav-item {
    font-size: 0.85rem;
  }

  .features-section {
    padding-top: 0;
    padding-bottom: 56px;
  }

  .features-section .section-title {
    padding: 48px 16px 24px;
  }

  .features-section .section-title::after {
    left: 16px;
  }

  .contact-form {
    padding: 20px;
  }

  [id] {
    scroll-margin-top: 56px;
  }
}
