@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #f7f3ea;
  --bg-soft: #efe8dc;
  --paper: #fffdf8;
  --paper-muted: #f6f0e6;
  --grass: #e8f0dc;
  --ink: #151a21;
  --ink-soft: #303944;
  --muted: #687381;
  --line: #ded6c8;
  --line-strong: #c9bdad;
  --terminal: #151a21;
  --accent: #1f6f68;
  --accent-dark: #124d49;
  --accent-soft: #d9eee9;
  --blue: #2563eb;
  --shadow: 0 24px 80px rgb(35 29 21 / 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1160px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --dl-btn-bg: #ffffff;
  --dl-btn-text: #151a21;
  --dl-btn-muted: #687381;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 0%, rgb(31 111 104 / 0.14), transparent 30rem),
    radial-gradient(circle at 92% 4rem, rgb(37 99 235 / 0.08), transparent 28rem),
    linear-gradient(180deg, #fbf8f1 0%, var(--bg) 36rem, var(--grass) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.32;
  background-image:
    linear-gradient(rgb(21 26 33 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(21 26 33 / 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black, transparent 72%);
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  font: inherit;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

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

code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  background: var(--paper-muted);
  border: 1px solid var(--line);
}

::selection {
  background: var(--accent-soft);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgb(247 243 234 / 0.78);
  border-bottom: 1px solid rgb(222 214 200 / 0.7);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 28px rgb(21 26 33 / 0.1);
}

.brand span {
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.3rem;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(255 253 248 / 0.74);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 650;
}

.nav-cta:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* Layout */

.hero,
.section,
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 1.25rem;
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(380px, 1.18fr);
  gap: 3rem;
  align-items: center;
  padding-top: 4.5rem;
  padding-bottom: 3.5rem;
}

.hero-copy {
  min-width: 0;
  container-type: inline-size;
}

.eyebrow {
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(2.35rem, 4.2vw, 3.85rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.98;
  color: var(--ink);
}

.hero-h1-line {
  display: block;
}

.hero-h1-line:first-child {
  white-space: nowrap;
}

@container (max-width: 22rem) {
  .hero h1 {
    font-size: clamp(2.1rem, 11cqw, 2.9rem);
  }

  .hero-h1-line:first-child {
    white-space: normal;
  }
}

.hero-lede {
  max-width: 34rem;
  margin: 1.35rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.6;
}

.version-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.6rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
}

.download-block {
  margin-top: 2rem;
}

.download-block h2 {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.download-panel {
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background: var(--terminal);
  box-shadow: 0 18px 54px rgb(21 26 33 / 0.16);
}

.download-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem;
  justify-content: flex-start;
  align-items: stretch;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.65rem;
  padding: 0 1rem;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.2;
  color: var(--dl-btn-text);
  background: var(--dl-btn-bg);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s;
  white-space: nowrap;
}

.dl-btn:hover {
  background: #f5f5f5;
  text-decoration: none;
}

.dl-btn:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.dl-btn.disabled,
.dl-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.dl-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.dl-split {
  display: inline-flex;
  align-items: stretch;
  position: relative;
  border-radius: 999px;
  background: var(--dl-btn-bg);
}

.dl-split .dl-btn-main {
  border-radius: 999px 0 0 999px;
  padding-right: 0.55rem;
}

.dl-split .dl-btn-chevron {
  border-radius: 0 999px 999px 0;
  padding: 0 0.85rem;
  min-width: 2.35rem;
  border-left: 1px solid rgb(21 26 33 / 0.1);
}

.dl-split-picker .dl-btn-picker {
  border-radius: 999px;
  padding-right: 0.9rem;
  gap: 0.4rem;
}

.dl-chevron {
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--dl-btn-muted);
  border-bottom: 2px solid var(--dl-btn-muted);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.15s;
}

.dl-split.is-open .dl-chevron {
  transform: rotate(225deg) translate(1px, 1px);
}

.dl-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 20;
  min-width: 14.5rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.12s, transform 0.12s, visibility 0.12s;
}

.dl-split.is-open .dl-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dl-menu li {
  margin: 0;
}

.dl-menu a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}

.dl-menu a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
  text-decoration: none;
}

.dl-menu .dl-menu-meta {
  display: block;
  padding: 0.35rem 0.85rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.hero-product-shot {
  margin: 0;
  transform: rotate(0.8deg);
}

.hero-product-shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  background: var(--paper);
}

.hero-product-shot figcaption {
  margin-top: 0.75rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Sections */

.section {
  padding-bottom: 4rem;
}

.section-kicker {
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading-wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-heading-wide h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.02;
  color: var(--ink);
  max-width: 14ch;
}

.section-heading-wide p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.pillar-card {
  min-height: 0;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgb(255 253 248 / 0.74);
  box-shadow: 0 16px 50px rgb(35 29 21 / 0.06);
}

.card-index {
  width: fit-content;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 0.26rem 0.55rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.pillar-card h3 {
  margin: 1.1rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.pillar-card p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.contrast-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.contrast-grid article {
  min-height: 140px;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgb(255 253 248 / 0.64);
  box-shadow: 0 16px 50px rgb(35 29 21 / 0.05);
}

.contrast-grid span {
  display: block;
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contrast-grid p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.98rem;
}

.notes-card {
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgb(255 253 248 / 0.8);
  box-shadow: 0 16px 50px rgb(35 29 21 / 0.05);
}

.notes-card h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.notes-card ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.notes-card li {
  margin-bottom: 0.65rem;
  line-height: 1.6;
}

.notes-card li strong {
  color: var(--ink);
}

.final-cta {
  text-align: center;
  padding: 3rem 1.25rem 4rem;
  max-width: var(--max);
  margin: 0 auto;
}

.final-cta h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.05em;
  color: var(--ink);
}

.final-cta p {
  margin: 1rem auto 1.5rem;
  max-width: 28rem;
  color: var(--muted);
}

.final-cta .button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 750;
  background: var(--ink);
  color: #fffdf8;
  box-shadow: 0 18px 46px rgb(21 26 33 / 0.18);
}

.final-cta .button-primary:hover {
  background: var(--accent-dark);
  color: #fffdf8;
  text-decoration: none;
}

.footer {
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 3rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-product-shot {
    order: -1;
    transform: none;
  }

  .section-heading-wide {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

@media (max-width: 640px) {
  .pillar-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .download-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .download-row {
    gap: 0.5rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .dl-btn,
  .dl-split {
    flex-shrink: 0;
  }

  .dl-btn {
    padding: 0 0.85rem;
    font-size: 0.86rem;
  }
}
