:root {
  --bg: #f4eadb;
  --bg-warm: #e8c287;
  --paper: rgba(255, 250, 241, 0.88);
  --paper-solid: #fffaf1;
  --ink: #221712;
  --muted: #76655c;
  --soft: #9a7b63;
  --line: rgba(54, 34, 23, 0.12);
  --button: #7b421f;
  --button-hover: #633319;
  --button-ink: #fff8ee;
  --button-alt: rgba(54, 34, 23, 0.08);
  --green: #2fbc69;
  --red: #f24d4f;
  --shadow: 0 24px 70px rgba(92, 55, 28, 0.16);
  --tight: -0.045em;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.72), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(122, 65, 31, 0.18), transparent 34%),
    linear-gradient(140deg, var(--bg) 0%, #f8efe2 45%, var(--bg-warm) 100%);
}

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

.page-shell {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0 72px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: var(--paper-solid);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(92, 55, 28, 0.1);
}

.nav-links {
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.54);
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--paper-solid);
  color: var(--ink);
}

.hero,
.story,
.cta-panel,
.policy-card,
.feature-card {
  backdrop-filter: blur(14px);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 390px;
  align-items: center;
  gap: 42px;
  padding: clamp(28px, 6vw, 64px);
  border-radius: 40px;
  position: relative;
  overflow: hidden;
}

.hero-copy,
.screenshot-card {
  position: relative;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -120px -160px auto;
  width: 420px;
  height: 420px;
  border-radius: 44%;
  background: radial-gradient(circle, rgba(123, 66, 31, 0.22), rgba(123, 66, 31, 0));
  transform: rotate(-12deg);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 850;
}

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

h1 {
  max-width: 11.5ch;
  font-size: clamp(3.35rem, 7.2vw, 6.4rem);
  line-height: 0.89;
  margin-bottom: 22px;
  letter-spacing: var(--tight);
}

h2 {
  letter-spacing: -0.035em;
  line-height: 1.03;
}

.lede,
.story p,
.cta-panel p,
.feature-card p {
  max-width: 60ch;
  font-size: 1.04rem;
  line-height: 1.68;
  color: var(--muted);
}

.lede {
  font-size: clamp(1.08rem, 2vw, 1.26rem);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.microcopy {
  margin: 16px 0 0;
  color: var(--soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 21px;
  border-radius: 999px;
  font-weight: 850;
  letter-spacing: -0.018em;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button-primary {
  background: var(--button);
  color: var(--button-ink);
  box-shadow: 0 14px 30px rgba(123, 66, 31, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--button-hover);
  transform: translateY(-1px);
}

.button-secondary {
  background: var(--button-alt);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(54, 34, 23, 0.13);
  transform: translateY(-1px);
}

.screenshot-card {
  justify-self: end;
  width: min(100%, 390px);
  margin: 0;
  padding: 12px 12px 16px;
  border-radius: 44px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
    rgba(68, 41, 26, 0.12);
  border: 1px solid rgba(54, 34, 23, 0.12);
  transform: rotate(1.5deg);
  transition: transform 220ms ease;
}

.screenshot-card:hover {
  transform: rotate(0deg) translateY(-2px);
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: cover;
  object-position: top center;
  border: 10px solid #1e1714;
  border-radius: 34px;
  box-shadow: 0 24px 54px rgba(54, 34, 23, 0.2);
}

.screenshot-card figcaption {
  margin: 12px 6px 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-align: center;
}

.grid-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.feature-card {
  padding: 28px;
  border-radius: 30px;
  transform: translateY(18px);
  opacity: 0;
  animation: rise 700ms ease forwards;
}

.feature-card h2 {
  margin-bottom: 12px;
  font-size: 1.7rem;
}

.card-number {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.feature-card:nth-child(2) {
  animation-delay: 120ms;
}

.feature-card:nth-child(3) {
  animation-delay: 240ms;
}

.story {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  margin-top: 24px;
  padding: 40px;
  border-radius: 34px;
}

.story h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 36px 40px;
  border-radius: 34px;
}

.cta-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.cta-panel p:last-child {
  margin-bottom: 0;
}

.policy-card {
  padding: 44px;
  border-radius: 32px;
}

.policy-card h1 {
  max-width: 13ch;
}

.policy-card section {
  max-width: 760px;
  margin-top: 28px;
}

.policy-card a:not(.button) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-modal {
  width: min(520px, calc(100% - 32px));
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--ink);
  background: var(--paper-solid);
  box-shadow: 0 30px 90px rgba(54, 34, 23, 0.28);
}

.contact-modal::backdrop {
  background: rgba(34, 23, 18, 0.34);
  backdrop-filter: blur(6px);
}

.contact-modal h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 7vw, 3rem);
}

.modal-copy,
.form-note {
  color: var(--muted);
  line-height: 1.55;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(54, 34, 23, 0.08);
  font-size: 1.4rem;
  cursor: pointer;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fffdf8;
  font: inherit;
}

.contact-form select {
  appearance: none;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin: 14px 0 0;
  font-size: 0.86rem;
}

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

@media (max-width: 800px) {
  .page-shell {
    width: min(100% - 24px, 680px);
    padding-top: 14px;
  }

  .site-nav {
    align-items: flex-start;
  }

  .nav-links a {
    padding: 8px 10px;
    font-size: 0.84rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    border-radius: 30px;
  }

  .hero,
  .story,
  .cta-panel,
  .policy-card {
    padding: 26px;
  }

  .grid-section,
  .story,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    display: grid;
    align-items: start;
  }

  h1 {
    max-width: none;
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .screenshot-card {
    justify-self: stretch;
    width: min(100%, 360px);
    margin: 0 auto;
    transform: none;
  }

  .screenshot-card img {
    max-height: 520px;
    border-width: 8px;
  }
}

@media (max-width: 430px) {
  .brand span:last-child {
    display: none;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .contact-modal {
    padding: 28px 22px;
  }
}
