:root {
  --ink: #17211b;
  --paper: #f7f1e6;
  --cream: #fffaf1;
  --moss: #496b4a;
  --trail: #f26b3a;
  --sky: #79afc6;
  --lichen: #c9d6a3;
  --stone: #d8d0c2;
  --night: #24343a;
  --plum: #6f4f69;
  --line: rgba(23, 33, 27, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Avenir Next, Segoe UI, Verdana, sans-serif;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: rgba(247, 241, 230, 0.86);
  border-bottom: 1px solid rgba(23, 33, 27, 0.1);
  backdrop-filter: blur(16px);
}

.brand,
.site-header nav,
.nav-cta,
.button {
  font-weight: 800;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--cream);
  background: var(--night);
  border-radius: 6px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(23, 33, 27, 0.68);
  font-size: 0.9rem;
}

.site-header nav a:hover,
.nav-cta:hover {
  color: var(--trail);
}

.nav-cta {
  justify-self: end;
  padding: 11px 16px;
  color: var(--cream);
  background: var(--ink);
  border-radius: 6px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  padding: 118px clamp(18px, 5vw, 72px) 48px;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}

.hero-copy {
  align-self: center;
  max-width: 760px;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--moss);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, Times New Roman, serif;
  font-size: 9rem;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(23, 33, 27, 0.82);
  font-size: 1.24rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(23, 33, 27, 0.13);
}

.button.primary {
  color: var(--cream);
  background: var(--trail);
  border-color: rgba(242, 107, 58, 0.42);
}

.button.secondary {
  background: rgba(255, 250, 241, 0.74);
}

.hero-scene {
  position: absolute;
  right: clamp(18px, 5vw, 74px);
  bottom: 38px;
  width: min(430px, 38vw);
  z-index: 1;
}

.app-preview {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(23, 33, 27, 0.16);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(36, 52, 58, 0.24);
}

.preview-topbar,
.quest-meta,
.preview-grid,
.log-card {
  display: flex;
  align-items: center;
}

.preview-topbar {
  justify-content: space-between;
  color: rgba(23, 33, 27, 0.7);
  font-size: 0.88rem;
}

.preview-topbar strong {
  color: var(--trail);
}

.quest-card,
.small-panel,
.log-card,
.feature-list article,
.use-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.quest-card {
  padding: 18px;
  border-left: 6px solid var(--trail);
}

.card-kicker,
.small-panel p,
.log-card p {
  margin: 0 0 6px;
  color: var(--moss);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quest-card h2 {
  margin: 0 0 14px;
  font-family: Georgia, Times New Roman, serif;
  font-size: 1.58rem;
  line-height: 1.08;
}

.quest-meta {
  flex-wrap: wrap;
  gap: 8px;
}

.quest-meta span {
  padding: 7px 9px;
  color: var(--night);
  background: #e8f0d8;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
}

.progress-track {
  height: 10px;
  margin-top: 16px;
  background: var(--stone);
  border-radius: 999px;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--moss), var(--sky));
}

.preview-grid {
  gap: 12px;
}

.small-panel {
  flex: 1;
  min-height: 106px;
  padding: 14px;
}

.small-panel strong {
  display: block;
  font-size: 1.2rem;
}

.small-panel span,
.log-card strong {
  color: rgba(23, 33, 27, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
}

.log-card {
  gap: 12px;
  padding: 12px;
}

.photo-tile {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(121, 175, 198, 0.82), rgba(111, 79, 105, 0.78)),
    linear-gradient(45deg, transparent 46%, rgba(255, 250, 241, 0.76) 47%, rgba(255, 250, 241, 0.76) 55%, transparent 56%);
}

.summary-band {
  padding: 34px clamp(18px, 5vw, 72px);
  color: var(--cream);
  background: var(--night);
}

.summary-band p {
  max-width: 1040px;
  margin: 0 auto;
  font-family: Georgia, Times New Roman, serif;
  font-size: 2.2rem;
  line-height: 1.24;
}

.section,
.use-cases {
  padding: 82px clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 0.65fr);
  gap: 32px;
  align-items: start;
  max-width: 1160px;
  margin: 0 auto 36px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, Times New Roman, serif;
  font-size: 3.5rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.feature-list,
.use-grid {
  display: grid;
  gap: 14px;
  max-width: 1160px;
  margin: 0 auto;
}

.feature-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-list article,
.use-grid article {
  padding: 22px;
}

.feature-number {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--trail);
  font-weight: 900;
}

.feature-list h3,
.use-grid h3 {
  margin: 0 0 12px;
  font-size: 1.17rem;
  line-height: 1.24;
}

.feature-list p,
.use-grid p {
  margin: 0;
  color: rgba(23, 33, 27, 0.78);
  font-size: 0.98rem;
  line-height: 1.68;
}

.use-cases {
  background: linear-gradient(180deg, #edf3de, #f7f1e6);
}

.use-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-bottom: 30px;
  }

  .hero-scene {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 520px);
    margin-top: 42px;
  }

  .feature-list,
  .use-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 6.4rem;
  }

  .hero-lede {
    font-size: 1.1rem;
  }

  .summary-band p {
    font-size: 1.7rem;
  }

  .section-heading h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
    padding: 12px 14px;
  }

  .brand {
    font-size: 0.96rem;
  }

  .nav-cta {
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .hero {
    padding: 96px 14px 28px;
  }

  .hero h1 {
    font-size: 4.4rem;
  }

  .hero-lede {
    font-size: 1.02rem;
  }

  .summary-band p {
    font-size: 1.42rem;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .preview-grid {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .summary-band,
  .section,
  .use-cases {
    padding-left: 14px;
    padding-right: 14px;
  }
}
