:root {
  --bg: #f6f3eb;
  --bg-soft: #fffdf8;
  --ink: #1b2524;
  --muted: #546464;
  --line: #d8d1c5;
  --brand: #006d77;
  --brand-2: #f2a900;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(12, 24, 24, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(circle at 10% 0%, #fff6de 0%, var(--bg) 36%, #f0f2ef 100%);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.35;
}

.ambient-one {
  width: 420px;
  height: 420px;
  background: #ffcf70;
  top: -140px;
  right: -120px;
}

.ambient-two {
  width: 360px;
  height: 360px;
  background: #84c4cb;
  bottom: -130px;
  left: -100px;
}

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

section {
  margin: 2.75rem 0;
}

.hero {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(130deg, #ffffff 0%, #fff8ea 58%, #f0fffd 100%);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0 0 0.7rem;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.15;
}

h1 {
  font-size: clamp(1.85rem, 4vw, 3.35rem);
  max-width: 20ch;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.lead {
  max-width: 64ch;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.btn {
  display: inline-block;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  padding: 0.65rem 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 16px rgba(0, 109, 119, 0.22);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.stat-grid {
  margin-top: 1.3rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-grid article {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem;
}

.stat-grid span {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--brand);
}

.stat-grid p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.features,
.screenshots,
.deployment {
  padding: 1.65rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.feature-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem;
  background: linear-gradient(150deg, #ffffff 0%, #f8f9f6 100%);
}

.feature-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.02rem;
}

.feature-card p,
.section-intro,
.deployment p,
.hint {
  margin: 0;
  color: var(--muted);
}

.shot-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shot-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.shot-card img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.shot-card figcaption {
  padding: 0.65rem 0.8rem 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

pre {
  margin: 0.8rem 0 0.6rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid #204548;
  background: #0f2022;
  color: #c4ffef;
  overflow-x: auto;
}

code {
  font-family: "SF Mono", "Consolas", "Menlo", monospace;
}

.site-footer {
  padding: 1rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a,
.site-footer a:visited {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #005760;
  text-decoration: underline;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 18, 19, 0.88);
  padding: 1.2rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(20, 32, 34, 0.72);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(0, 109, 119, 0.85);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
}

.reveal.is-visible {
  animation: reveal-up 520ms ease forwards;
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 930px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero,
  .features,
  .screenshots,
  .deployment {
    padding: 1.2rem;
  }

  .stat-grid,
  .feature-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }
}
