:root {
  --bg: #fafaf6;
  --bg-alt: #f3f1ea;
  --card: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --muted: #6b6b66;
  --line: #e6e2d6;
  --line-soft: #efebe0;
  --brand: #137a4d;
  --brand-soft: #e6f3ec;
  --brand-deep: #0c5234;
  --amber: #f5a623;
  --blue: #2563eb;
  --shadow: 0 30px 80px -28px rgba(15, 60, 38, 0.2), 0 8px 24px -8px rgba(0, 0, 0, 0.08);
  --sans: Inter, Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
}

::selection {
  color: white;
  background: var(--brand);
}

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

.grid-bg {
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 max(20px, calc((100vw - 1400px) / 2 + 32px));
  border-bottom: 1px solid rgba(230, 226, 214, 0.78);
  background: rgba(250, 250, 246, 0.8);
  backdrop-filter: blur(14px) saturate(180%);
}

.logo,
.nav-links,
.nav-button,
.proof-row,
.search-demo,
.window-bar,
.toolbar,
.logo-strip,
.cta-actions,
.footer {
  display: flex;
  align-items: center;
}

.logo {
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.logo-mark {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 6px;
  background: var(--brand);
}

.logo-mark span {
  border-radius: 2px;
  background: white;
}

.logo-mark span:nth-child(2),
.logo-mark span:nth-child(3) {
  opacity: 0.55;
}

.nav-links {
  gap: 32px;
  color: var(--ink-soft);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--brand);
}

.nav-button {
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  color: white;
  background: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease;
}

.nav-button:hover,
.solid:hover,
.outline:hover,
.search-demo a:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 132px 20px 88px;
}

.hero-glow,
.cta-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(800px 500px at 50% 0%, rgba(19, 122, 77, 0.1), transparent 60%);
}

.hero-inner,
.section,
.bento-section,
.steps-section,
.stats,
.cta-inner,
.footer {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.center-stack {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 32px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--card);
  font-size: 12.5px;
  box-shadow: 0 12px 40px -24px rgba(0, 0, 0, 0.2);
}

.pill span {
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  font-size: 10.5px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 16ch;
  margin-bottom: 26px;
  font-size: clamp(2.75rem, 8vw, 6.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

em {
  color: var(--brand-deep);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.hero-copy {
  max-width: 59ch;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.58;
}

.search-demo {
  width: min(560px, 100%);
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 12px 40px -16px rgba(0, 0, 0, 0.1);
}

.search-icon {
  margin-left: 12px;
  color: var(--muted);
  font-size: 22px;
}

.typed-query {
  flex: 1;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.caret {
  width: 2px;
  height: 16px;
  background: var(--brand);
  animation: blink 900ms infinite;
}

.search-demo a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 999px;
  color: white;
  background: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease;
  white-space: nowrap;
}

.proof-row {
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.proof-row span::first-letter {
  color: var(--brand);
}

.sheet-window {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 78px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.window-bar {
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.dots {
  display: flex;
  gap: 6px;
}

.dots span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.dots span:nth-child(1) { background: #ff5f57; }
.dots span:nth-child(2) { background: #febc2e; }
.dots span:nth-child(3) { background: #28c840; }

.file-chip {
  margin-left: auto;
  margin-right: auto;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--card);
  font-size: 12.5px;
}

.file-chip::before {
  content: "▦";
  margin-right: 7px;
  color: var(--brand);
}

.filter-chip {
  color: var(--muted);
  font-size: 11.5px;
}

.toolbar {
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.toolbar span {
  padding: 2px 8px;
  border-radius: 4px;
}

.toolbar .active {
  color: var(--brand-deep);
  background: var(--brand-soft);
  font-weight: 600;
}

.toolbar strong {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--muted);
  background: var(--bg-alt);
  font-size: 11px;
}

.sheet-grid {
  position: relative;
  display: grid;
  grid-template-columns: 40px repeat(7, minmax(92px, 1fr));
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
}

.sheet-grid > div,
.sheet-grid > span,
.sheet-grid > p {
  min-height: 38px;
  margin: 0;
  padding: 10px 12px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

.sheet-grid > div,
.sheet-grid > span {
  color: var(--muted);
  background: var(--bg-alt);
  text-align: center;
  font-weight: 600;
}

.sheet-grid > span {
  border-right-color: var(--line);
}

.pos {
  color: var(--brand-deep);
  font-weight: 600;
}

.sheet-grid b,
.sheet-grid i {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
}

.sheet-grid b {
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.sheet-grid i {
  color: #92580a;
  background: #fff4dd;
}

.pulse {
  animation: pulseCell 2.8s infinite;
}

.result-chip {
  position: absolute;
  right: 44px;
  bottom: 34px;
  padding: 12px 16px;
  border: 1px solid rgba(19, 122, 77, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px -22px rgba(0, 0, 0, 0.32);
  font-weight: 700;
}

.result-chip span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 600;
}

.logo-strip {
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  padding: 22px 20px;
  border-block: 1px solid var(--line);
  color: var(--muted);
  background: rgba(243, 241, 234, 0.8);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.section {
  padding: 112px 0 84px;
}

.section-head {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-head h2,
.bento h2,
.cta h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.4vw, 3.55rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
}

.kicker,
.card-label {
  margin-bottom: 12px;
  color: var(--brand);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.template-card,
.bento,
.steps article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.template-card {
  padding: 16px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.template-card:hover,
.bento:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -36px rgba(0, 0, 0, 0.26);
}

.mini-sheet {
  height: 190px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(to right, rgba(230, 226, 214, 0.9) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(230, 226, 214, 0.9) 1px, transparent 1px),
    var(--bg-alt);
  background-size: 34px 34px;
  position: relative;
  overflow: hidden;
}

.mini-sheet::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 72px;
  border-radius: 10px;
  opacity: 0.9;
}

.mini-sheet.green::after { background: linear-gradient(135deg, var(--brand), #77d4a2); }
.mini-sheet.blue::after { background: linear-gradient(135deg, var(--blue), #8bb0ff); }
.mini-sheet.amber::after { background: linear-gradient(135deg, var(--amber), #ffe2a1); }

.template-card h3,
.bento h3,
.steps h3 {
  margin-bottom: 8px;
  font-size: 1.28rem;
  line-height: 1.15;
}

.template-card p,
.bento p,
.steps p,
.cta p,
.footer p {
  color: var(--muted);
}

.template-card span {
  display: inline-block;
  margin-top: 10px;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 700;
}

.bento-section {
  padding: 24px 0 96px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.bento {
  min-height: 220px;
  padding: 28px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.bento.large {
  grid-column: span 4;
  grid-row: span 2;
  min-height: 460px;
}

.bento:not(.large) {
  grid-column: span 2;
}

.bento.large p {
  max-width: 560px;
  font-size: 1rem;
}

.chat-demo {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin-top: 78px;
}

.chat-demo span,
.chat-demo strong {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 13.5px;
}

.chat-demo span {
  justify-self: end;
  max-width: 78%;
  color: white;
  background: var(--ink);
  border-bottom-right-radius: 6px;
}

.chat-demo strong {
  justify-self: start;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-bottom-left-radius: 6px;
}

.big-number {
  display: block;
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: clamp(3.5rem, 7vw, 5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0;
}

.steps-section {
  padding: 24px 0 104px;
}

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

.steps::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 14%;
  right: 14%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}

.steps article {
  position: relative;
  padding: 28px;
  text-align: center;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand);
  background: var(--card);
  font-family: var(--serif);
  font-size: 1.7rem;
  font-style: italic;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  padding: 74px 0;
  border-block: 1px solid var(--line);
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.stats span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13.5px;
}

.cta {
  position: relative;
  overflow: hidden;
  padding: 118px 20px 126px;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  max-width: 1100px;
  text-align: center;
}

.cta h2 {
  max-width: 780px;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1;
}

.cta h2 em {
  display: inline-block;
}

.cta p {
  max-width: 630px;
  margin: 24px 0 34px;
  font-size: 1.07rem;
}

.cta-actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.solid,
.outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 180ms ease;
}

.solid {
  color: white;
  background: var(--ink);
}

.outline {
  border: 1px solid var(--line);
  background: var(--card);
}

.cta small {
  max-width: 680px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
}

.footer {
  justify-content: space-between;
  gap: 28px;
  padding: 64px 0 42px;
  border-top: 1px solid var(--line);
}

.footer > div {
  max-width: 380px;
}

.footer p {
  margin: 16px 0 0;
  font-size: 14.5px;
}

.footer > a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms cubic-bezier(0.22, 1, 0.36, 1), transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes pulseCell {
  0%, 100% { background: transparent; }
  45% { background: rgba(19, 122, 77, 0.18); }
}

@media (max-width: 920px) {
  .nav {
    height: 64px;
    padding-inline: 20px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 112px;
  }

  .template-grid,
  .steps,
  .stats {
    grid-template-columns: 1fr;
  }

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

  .bento,
  .bento.large,
  .bento:not(.large) {
    grid-column: auto;
  }

  .steps::before {
    display: none;
  }

  .stats {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero-inner,
  .section,
  .bento-section,
  .steps-section,
  .stats,
  .cta-inner,
  .footer {
    width: min(100% - 24px, 1240px);
  }

  .logo span:last-child {
    display: none;
  }

  .nav-button {
    padding-inline: 13px;
  }

  .pill {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 18px;
    text-align: left;
  }

  .search-demo {
    align-items: stretch;
    flex-wrap: wrap;
    border-radius: 22px;
  }

  .typed-query {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .search-demo a {
    width: 100%;
    justify-content: center;
  }

  .proof-row {
    gap: 10px;
  }

  .window-bar,
  .toolbar {
    min-width: 760px;
  }

  .sheet-window {
    overflow-x: auto;
    border-radius: 14px;
  }

  .sheet-grid {
    min-width: 760px;
  }

  .result-chip {
    right: 18px;
    bottom: 18px;
  }

  .chat-demo {
    margin-top: 42px;
  }

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

@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;
  }
}
