:root {
  --primary: #cc785c;
  --primary-active: #a9583e;
  --primary-disabled: #e6dfd8;
  --ink: #141413;
  --body: #3d3d3a;
  --body-strong: #252523;
  --muted: #6c6a64;
  --muted-soft: #8e8b82;
  --hairline: #e6dfd8;
  --hairline-soft: #ebe6df;
  --canvas: #faf9f5;
  --surface-soft: #f5f0e8;
  --surface-card: #efe9de;
  --surface-cream-strong: #e8e0d2;
  --surface-dark: #181715;
  --surface-dark-elevated: #252320;
  --surface-dark-soft: #1f1e1b;
  --on-primary: #ffffff;
  --on-dark: #faf9f5;
  --on-dark-soft: #a09d96;
  --accent-teal: #5db8a6;
  --accent-amber: #e8a55a;
  --success: #5db872;
  --display: "Cormorant Garamond", "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

body,
h1,
h2,
h3,
p,
a,
button {
  overflow-wrap: anywhere;
}

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

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

button {
  font: inherit;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: 64px;
  padding: 0 max(24px, calc((100vw - var(--container)) / 2));
  background: rgb(250 249 245 / 0.94);
  border-bottom: 1px solid var(--hairline-soft);
  backdrop-filter: blur(12px);
}

.brand,
.footer-brand strong {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.brand-mark {
  position: relative;
  width: 18px;
  height: 18px;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand-mark::before,
.brand-mark::after,
.footer-mark::before,
.footer-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 3px;
  background: currentColor;
  border-radius: 9999px;
  transform: translate(-50%, -50%);
}

.brand-mark::after,
.footer-mark::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.nav-menu a,
.site-footer a {
  width: fit-content;
}

.nav-menu a:focus-visible,
.nav-menu a:hover,
.site-footer a:focus-visible,
.site-footer a:hover {
  color: var(--primary);
}

.link-landing {
  min-height: 100svh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  width: min(calc(100% - 48px), 560px);
  margin: 0 auto;
  padding: 64px 0;
  text-align: center;
}

.link-landing img {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgb(20 20 19 / 0.16);
}

.link-landing h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 500;
  line-height: 0.95;
}

.link-landing p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

.nav-cta,
.button-primary,
.button-secondary,
.button-secondary-on-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.nav-cta,
.button-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.nav-cta:active,
.button-primary:active {
  background: var(--primary-active);
}

.button-secondary {
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--hairline);
}

.button-secondary-on-dark {
  background: var(--surface-dark-elevated);
  color: var(--on-dark);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  background: var(--canvas);
}

.nav-toggle span {
  display: block;
  width: auto;
  height: auto;
  margin: 4px auto;
  background: transparent;
  color: currentColor;
  border-radius: 9999px;
}

.nav-toggle::before {
  content: none;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none !important;
  }
}

.hero-band {
  position: relative;
  isolation: isolate;
  min-height: min(720px, calc(100svh - 96px));
  overflow: hidden;
  padding: 96px 0 112px;
  background: var(--canvas);
}

.hero-band::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48%;
  background: rgb(204 120 92 / 0.16);
  z-index: -3;
}

.hero-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  background: var(--surface-soft);
  z-index: -4;
}

.hero-art {
  position: absolute;
  right: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 40px;
  z-index: -2;
  width: clamp(320px, 44vw, 610px);
  border-radius: 16px;
  object-fit: cover;
}

.hero-content {
  position: relative;
  max-width: 640px;
  margin-left: max(24px, calc((100vw - var(--container)) / 2));
}

.badge-coral,
.badge-pill,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.badge-coral {
  margin: 0 0 24px;
  padding: 4px 12px;
  background: var(--primary);
  color: var(--on-primary);
}

.badge-pill {
  margin: 0;
  padding: 4px 12px;
  background: var(--surface-card);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.badge-pill.dark {
  background: var(--surface-dark-elevated);
  color: var(--on-dark);
}

.section-kicker {
  margin: 0 0 16px;
  color: var(--muted);
}

.section-kicker.on-dark,
.section-kicker.on-coral {
  color: var(--on-dark-soft);
}

.section-kicker.on-coral {
  color: rgb(255 255 255 / 0.82);
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
}

h1 {
  max-width: 10ch;
  font-size: clamp(42px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.023em;
}

h2 {
  font-size: clamp(34px, 4.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.021em;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}

p {
  margin: 0;
  word-break: break-all;
  line-break: anywhere;
}

.hero-copy {
  max-width: 560px;
  margin-top: 28px;
  color: var(--body-strong);
  font-size: 18px;
  line-height: 1.55;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.intro-section,
.feature-section,
.download-section,
.privacy-section {
  padding: 96px 0;
}

.intro-section {
  background: var(--surface-soft);
}

.intro-grid,
.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: start;
}

.intro-copy {
  color: var(--body);
  font-size: 18px;
  line-height: 1.6;
}

.feature-section {
  background: var(--canvas);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.feature-grid,
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card,
.status-card {
  min-height: 260px;
  padding: 32px;
  border-radius: 12px;
  background: var(--surface-card);
}

.feature-icon {
  display: inline-flex;
  margin-bottom: 40px;
  color: var(--primary);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
}

.feature-card p,
.status-card p,
.privacy-list p {
  margin-top: 12px;
  color: var(--body);
}

.product-section {
  padding: 96px 0;
  background: var(--surface-dark);
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 48px;
  align-items: center;
}

.product-copy h2 {
  color: var(--on-dark);
}

.product-copy p:not(.section-kicker) {
  margin: 24px 0 32px;
  color: var(--on-dark-soft);
  font-size: 16px;
  line-height: 1.6;
}

.code-window-card {
  overflow: hidden;
  padding: 24px;
  border-radius: 12px;
  background: var(--surface-dark-elevated);
  color: var(--on-dark);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--on-dark-soft);
  font-family: var(--mono);
  font-size: 13px;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: var(--primary);
}

.window-bar span:nth-child(2) {
  background: var(--accent-amber);
}

.window-bar span:nth-child(3) {
  background: var(--accent-teal);
}

.window-bar strong {
  margin-left: 8px;
  font-weight: 400;
}

.code-window-card pre {
  overflow-x: auto;
  margin: 0 0 20px;
  padding: 20px;
  border-radius: 12px;
  background: var(--surface-dark-soft);
}

.code-window-card code {
  color: var(--on-dark);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  white-space: pre;
}

.code-window-card img {
  max-height: 360px;
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  object-position: top;
}

.mockup-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mockup-stack article {
  min-height: 150px;
  padding: 20px;
  border: 1px solid rgb(250 249 245 / 0.08);
  border-radius: 12px;
  background: var(--surface-dark-soft);
}

.mockup-stack span {
  display: block;
  margin-bottom: 24px;
  color: var(--accent-amber);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.mockup-stack strong {
  display: block;
  color: var(--on-dark);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}

.mockup-stack p {
  margin-top: 10px;
  color: var(--on-dark-soft);
  font-size: 14px;
  line-height: 1.55;
}

.download-section {
  background: var(--canvas);
}

.status-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--hairline);
  background: var(--canvas);
}

.status-card.featured {
  background: var(--surface-dark);
}

.status-card.featured h3 {
  color: var(--on-dark);
}

.status-card.featured p {
  color: var(--on-dark-soft);
}

.privacy-section {
  background: var(--surface-soft);
}

.privacy-list {
  display: grid;
  gap: 16px;
}

.privacy-list article {
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--canvas);
}

.cta-band {
  padding: 96px 0;
  background: var(--canvas);
}

.cta-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  padding: 64px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--on-primary);
}

.cta-content h2 {
  color: var(--on-primary);
  font-size: clamp(30px, 4vw, 48px);
}

.cta-content p:not(.section-kicker) {
  color: rgb(255 255 255 / 0.86);
  font-size: 18px;
  line-height: 1.6;
}

.site-footer {
  padding: 64px 0;
  background: var(--surface-dark);
  color: var(--on-dark-soft);
  font-size: 14px;
  line-height: 1.55;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  display: grid;
  gap: 12px;
}

.footer-brand strong {
  color: var(--on-dark);
}

.footer-mark {
  color: var(--primary);
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}

.site-footer div:not(.footer-brand) {
  display: grid;
  gap: 10px;
}

.copyright {
  align-self: end;
  color: var(--muted-soft);
}

@media (max-width: 1024px) {
  .top-nav {
    gap: 20px;
  }

  .nav-menu {
    gap: 18px;
  }

  .hero-art {
    opacity: 0.78;
  }

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

  .intro-grid,
  .product-grid,
  .privacy-grid,
  .cta-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .top-nav {
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 0 16px;
  }

  .nav-toggle {
    position: absolute;
    top: 12px;
    left: 138px;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
    justify-content: center;
    justify-self: end;
    flex-direction: column;
    border-color: var(--primary);
    background: var(--primary);
    color: var(--on-primary);
  }

  .nav-toggle span {
    display: block;
  }

  .nav-toggle::before {
    content: none;
  }

  .menu-glyph {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
  }

  .nav-menu,
  .nav-cta {
    display: none;
  }

  .top-nav.is-open .nav-menu {
    position: fixed;
    inset: 64px 0 0;
    display: grid;
    align-content: start;
    gap: 0;
    padding: 24px 16px;
    background: var(--canvas);
  }

  .top-nav.is-open .nav-menu a {
    padding: 18px 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 22px;
  }

  .hero-band {
    min-height: calc(100svh - 150px);
    padding: 64px 0 84px;
  }

  .hero-band::before {
    top: auto;
    left: 0;
    width: 100%;
    height: 44%;
    background: rgb(204 120 92 / 0.14);
  }

  .hero-art {
    right: 16px;
    bottom: 24px;
    width: min(64vw, 310px);
    opacity: 0.46;
  }

  .hero-content {
    max-width: calc(100% - 32px);
    margin-left: 16px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .intro-section,
  .feature-section,
  .download-section,
  .privacy-section,
  .product-section,
  .cta-band {
    padding: 72px 0;
  }

  .feature-grid,
  .status-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .status-card {
    min-height: auto;
    padding: 24px;
  }

  .feature-icon {
    margin-bottom: 28px;
  }

  .code-window-card {
    padding: 16px;
  }

  .code-window-card pre {
    padding: 16px;
  }

  .mockup-stack {
    grid-template-columns: 1fr;
  }

  .cta-content {
    padding: 40px 24px;
  }
}
