:root {
  --bg: #f4f1ea;
  --bg-elevated: #fffdf8;
  --ink: #171714;
  --muted: #5f5c55;
  --line: #ddd8cc;
  --accent: #1f4f46;
  --accent-hover: #163a33;
  --accent-soft: #e7efe9;
  --gold: #b0894a;
  --shadow: 0 24px 60px rgba(23, 23, 20, 0.08);
  --radius: 18px;
  --max: 1120px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 90% -10%, #efe6d4 0%, transparent 55%),
    var(--bg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(244, 241, 234, 0.86);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: #f4f1ea;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.hero {
  padding: 72px 0 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--gold);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(42px, 7vw, 84px);
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
}

h3 {
  font-size: 24px;
}

.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 38rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #f7f4ee;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.device {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 36px;
  box-shadow: var(--shadow);
  padding: 18px;
  min-height: 460px;
}

.device-screen {
  height: 100%;
  min-height: 424px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, #1f4f46 0%, #0f2c28 100%);
  color: #f4f1ea;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.device-screen p {
  margin: 0;
  color: #d7e4de;
}

.device-screen strong {
  font-family: var(--font-display);
  font-size: 34px;
  display: block;
  margin-bottom: 8px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 1px solid rgba(244, 241, 234, 0.22);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 18px;
}

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

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

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

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

.muted {
  color: var(--muted);
}

.founder {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.portrait {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #e8f2f8;
  color: #eef4f1;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
}

.portrait img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 12%;
}

.portrait-copy {
  position: relative;
  z-index: 1;
  padding: 88px 32px 32px;
  background: linear-gradient(180deg, transparent 0%, rgba(23, 37, 34, 0.88) 72%);
}

.portrait span {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.portrait strong {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 560;
}

.portrait p {
  margin: 8px 0 0;
}

.legal-page {
  padding: 56px 0 88px;
}

.legal-page .card {
  padding: 32px;
}

.legal-page h1 {
  font-size: clamp(36px, 5vw, 56px);
}

.legal-page h2 {
  font-size: 28px;
  margin-top: 36px;
}

.legal-page ul,
.legal-page ol {
  padding-left: 20px;
}

.legal-page code {
  font-size: 0.92em;
}

.form {
  display: grid;
  gap: 14px;
}

label {
  font-size: 13px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.tiny {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero,
  .founder,
  .grid-3,
  .grid-2,
  .footer-grid,
  .section-head {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links.is-open {
    display: flex;
  }
}
