/* --- Foundations --------------------------------------------------------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Public landing page ------------------------------------------------- */
.landing-body {
  display: block;
  overflow-x: hidden;
  background: #657048;
  color: #fff;
}

.landing-page {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 22px clamp(20px, 3vw, 48px) 24px;
  overflow: hidden;
}

.silk-canvas {
  position: fixed;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #657048;
}

.landing-wash {
  position: fixed;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background:
    /* Contrast floor, listed first so it sits over the decorative layers.
     * The silk animates under the text, and its bright folds peak near
     * luminance 0.23 — where even pure white tops out at 3.76:1. Text opacity
     * alone can't reach AA, so the lower two-thirds (everything the hero and
     * footer occupy) is darkened until it can. The top stays clear, since no
     * text sits there. */
    linear-gradient(
      to bottom,
      rgba(13, 24, 9, 0) 0%,
      rgba(13, 24, 9, 0.14) 18%,
      rgba(13, 24, 9, 0.34) 36%,
      rgba(13, 24, 9, 0.42) 100%
    ),
    radial-gradient(circle at 76% 22%, rgba(235, 255, 184, 0.16), transparent 32%),
    radial-gradient(circle at 18% 74%, rgba(8, 21, 9, 0.13), transparent 38%),
    linear-gradient(115deg, rgba(13, 24, 9, 0.15), rgba(13, 24, 9, 0.02) 48%, rgba(13, 24, 9, 0.16));
}

.landing-nav {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 11px 12px 11px 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  background: rgba(34, 45, 24, 0.2);
  box-shadow:
    0 12px 40px rgba(22, 31, 16, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  backdrop-filter: blur(22px) saturate(135%);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  text-decoration: none;
}

.landing-brand img {
  display: block;
  width: 116px;
  height: auto;
}

.landing-brand-divider {
  width: 1px;
  height: 23px;
  background: rgba(255, 255, 255, 0.42);
}

.landing-product {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.3vw, 18px);
  margin-left: auto;
}

.landing-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.landing-actions a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.landing-actions a:focus-visible,
.landing-brand:focus-visible,
.landing-link-demo:focus-visible,
.landing-footer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.landing-actions svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-actions .landing-add-link {
  min-width: 104px;
  padding: 0 15px;
  background: #fff;
  color: #34401f;
}

.landing-actions .landing-add-link:hover {
  color: #253315;
  background: #f3ffd6;
  transform: translateY(-1px);
}

.landing-content {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  padding: clamp(92px, 14vh, 170px) clamp(4px, 3.5vw, 56px) clamp(72px, 10vh, 118px);
}

.landing-hero {
  max-width: 810px;
}

.landing-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.landing-kicker::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e5ff9c;
  box-shadow: 0 0 0 5px rgba(229, 255, 156, 0.13);
}

.landing-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(58px, 7.7vw, 116px);
  font-weight: 640;
  letter-spacing: -0.042em;
  line-height: 0.86;
}

.landing-hero h1 span {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 450;
}

.landing-lead {
  max-width: 620px;
  margin: 35px 0 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
}

.landing-lead strong {
  color: #fff;
  font-weight: 650;
}

.landing-link-demo {
  width: min(100%, 485px);
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 12px 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(24, 36, 17, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.landing-link-demo:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(24, 36, 17, 0.3);
  transform: translateY(-1px);
}

.landing-link-demo:hover .landing-link-arrow {
  background: #f3ffd6;
}

.landing-link-icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.11);
}

.landing-link-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-link-address {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-link-address span {
  color: rgba(255, 255, 255, 0.72);
}

.landing-link-arrow {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e5ff9c;
  color: #34401f;
}

.landing-link-arrow svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.landing-footer p {
  margin: 0;
}

.landing-footer a {
  color: #fff;
  text-decoration: none;
}

.landing-footer a:hover {
  text-decoration: underline;
}

.landing-copyright {
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .landing-page {
    min-height: 100svh;
    padding: 16px 16px 20px;
  }

  .landing-nav {
    min-height: 62px;
    padding: 9px 9px 9px 16px;
    border-radius: 16px;
  }

  .landing-brand img {
    width: 99px;
  }

  .landing-brand-divider {
    height: 20px;
  }

  .landing-content {
    padding: 110px 4px 68px;
  }

  .landing-hero {
    max-width: 680px;
  }
}

@media (max-width: 560px) {
  .landing-brand {
    gap: 11px;
  }

  .landing-product {
    font-size: 13px;
  }

  /* Scoped rather than !important: '.landing-actions a' sets display and would
     otherwise win on specificity. */
  .landing-actions .landing-site-link {
    display: none;
  }

  .landing-actions {
    gap: 2px;
  }

  .landing-actions a {
    min-height: 40px;
    padding: 0 8px;
  }

  .landing-actions .landing-add-link {
    min-width: auto;
    padding: 0 12px;
  }

  .landing-hero h1 {
    font-size: clamp(53px, 17.5vw, 76px);
  }

  .landing-lead {
    margin-top: 28px;
  }

  .landing-link-demo {
    min-height: 58px;
    border-radius: 16px;
  }

  .landing-link-icon {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 420px) {
  .landing-hero h1 {
    font-size: clamp(50px, 16vw, 64px);
  }
}

@media (max-width: 390px) {
  .landing-brand-divider,
  .landing-product {
    display: none;
  }

  .landing-brand img {
    width: 94px;
  }
}

/* The silk canvas already opts out of animating (silk.js); the hover lifts
   should opt out too. */
@media (prefers-reduced-motion: reduce) {
  .landing-actions a,
  .landing-link-demo {
    transition: none;
  }

  .landing-actions .landing-add-link:hover,
  .landing-link-demo:hover {
    transform: none;
  }
}
