:root {
  color-scheme: light;

  /* Shared with dashboard/app/styles/dashboard-tokens.css. */
  --brand-default: 217deg 91% 58%;
  --brand-600: 220deg 78% 43%;
  --brand-200: 203deg 100% 94%;
  --success-default: 158deg 64% 38%;
  --destructive-default: 6deg 78% 57%;
  --border-strong: 216deg 18% 76%;
  --border-default: 214deg 27% 82%;
  --border-muted: 215deg 24% 84%;
  --border-control: 215deg 22% 79%;
  --background-dialog-default: 0deg 0% 100%;
  --background-muted: 214deg 35% 94.4%;
  --background-surface-200: 214deg 39% 96%;
  --background-surface-100: 210deg 30% 98.7%;
  --background-surface-75: 0deg 0% 100%;
  --background-dash-canvas: 212deg 42% 96.5%;
  --background-dash-sidebar: 216deg 41% 94.7%;
  --background-control: 214deg 34% 96%;
  --background-selection: 210deg 100% 92%;
  --background-200: 212deg 38% 97%;
  --foreground-muted: 217deg 14% 61%;
  --foreground-lighter: 220deg 13% 44%;
  --foreground-light: 221deg 18% 31%;
  --foreground-default: 223deg 37% 13%;

  --content-width: 1128px;
  --radius-control: 6px;
  --radius-card: 12px;
  --radius-dialog: 16px;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  color: hsl(var(--foreground-default));
  background: hsl(var(--background-200));
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
}

::selection {
  background: hsl(var(--background-selection));
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.site-header {
  width: 100%;
  min-height: 56px;
  padding: 0 max(24px, calc((100vw - var(--content-width)) / 2));
  border-bottom: 1px solid hsl(var(--border-muted) / 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: hsl(var(--background-surface-100) / 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: hsl(var(--foreground-default));
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 22px;
  height: 22px;
}

.login-link {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid hsl(var(--border-strong));
  border-radius: var(--radius-control);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--foreground-default));
  background: transparent;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.login-link:hover {
  border-color: hsl(var(--foreground-muted));
  background: hsl(var(--background-surface-75));
}

main:not(.legal-card) {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(80px, 11vw, 132px) 0 clamp(68px, 9vw, 104px);
  text-align: center;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 28px;
  left: 50%;
  width: min(900px, 92vw);
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--brand-200) / 0.72) 0, hsl(var(--brand-200) / 0.2) 44%, transparent 72%);
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}

.eyebrow {
  width: fit-content;
  margin: 0 auto 18px;
  padding: 4px 8px;
  border: 1px solid hsl(var(--brand-default) / 0.3);
  border-radius: 4px;
  color: hsl(var(--brand-600));
  background: hsl(var(--brand-default) / 0.08);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 840px;
  margin: 0 auto;
  color: hsl(var(--foreground-default));
  font-size: clamp(2.85rem, 6.2vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.01;
  text-wrap: balance;
}

.hero-copy {
  max-width: 720px;
  margin: 28px auto 0;
  color: hsl(var(--foreground-light));
  font-size: clamp(0.95rem, 1.7vw, 1.08rem);
  line-height: 1.7;
}

.primary-button {
  min-height: 40px;
  margin-top: 30px;
  padding: 0 18px;
  border: 1px solid hsl(var(--brand-default) / 0.4);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: hsl(var(--brand-default));
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.primary-button:hover {
  background: hsl(var(--brand-default) / 0.9);
  transform: translateY(-1px);
}

.primary-button:focus-visible,
.close-button:focus-visible,
.text-button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 4px solid hsl(var(--border-strong));
  outline-offset: 1px;
}

.features {
  padding-bottom: clamp(64px, 8vw, 96px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 194px;
  padding: 24px;
  border: 1px solid hsl(var(--border-muted));
  border-radius: var(--radius-card);
  background: hsl(var(--background-surface-100));
}

.feature-card svg {
  width: 20px;
  height: 20px;
  padding: 10px;
  border-radius: 50%;
  box-sizing: content-box;
  fill: hsl(var(--brand-default));
  background: hsl(var(--brand-default) / 0.1);
}

.feature-card h2 {
  margin: 22px 0 7px;
  color: hsl(var(--foreground-default));
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  color: hsl(var(--foreground-light));
  font-size: 0.79rem;
  line-height: 1.6;
}

.site-footer {
  width: min(var(--content-width), calc(100% - 48px));
  margin: auto auto 0;
  padding: 24px 0 32px;
  border-top: 1px solid hsl(var(--border-muted) / 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: hsl(var(--foreground-lighter));
  font-size: 0.75rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a,
.text-button {
  text-decoration: none;
  transition: color 160ms ease;
}

.site-footer a:hover,
.text-button:hover {
  color: hsl(var(--foreground-default));
}

.text-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.modal {
  width: min(512px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 1px solid hsl(var(--border-muted));
  border-radius: var(--radius-dialog);
  color: hsl(var(--foreground-default));
  background: hsl(var(--background-dialog-default));
  box-shadow: 0 24px 70px hsl(var(--foreground-default) / 0.2);
}

.modal::backdrop {
  background: rgb(0 0 0 / 0.4);
  backdrop-filter: blur(2px);
}

.modal-card {
  position: relative;
  overflow-y: auto;
  max-height: calc(100svh - 34px);
  padding: 24px;
  border-radius: var(--radius-dialog);
  background: hsl(var(--background-dialog-default));
}

.modal-card .eyebrow,
.legal-card .eyebrow {
  margin: 0 0 14px;
}

.modal-card h2 {
  margin: 0;
  padding-right: 36px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.modal-card > p:not(.eyebrow) {
  margin: 8px 0 0;
  color: hsl(var(--foreground-light));
  font-size: 0.84rem;
  line-height: 1.55;
}

.modal-card a,
.legal-card a {
  color: hsl(var(--brand-600));
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  padding: 0 0 2px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  color: hsl(var(--foreground-light));
  background: transparent;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: background-color 160ms ease, color 160ms ease;
}

.close-button:hover {
  color: hsl(var(--foreground-default));
  background: hsl(var(--background-surface-200));
}

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

.contact-form label {
  display: grid;
  gap: 7px;
  color: hsl(var(--foreground-light));
  font-size: 0.75rem;
  font-weight: 500;
}

.contact-form label span {
  color: hsl(var(--foreground-lighter));
  font-weight: 400;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid hsl(var(--border-control));
  border-radius: 8px;
  color: hsl(var(--foreground-default));
  background: hsl(var(--background-surface-75));
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  font-size: 0.875rem;
  font-weight: 400;
}

.contact-form input {
  height: 36px;
  padding: 0 12px;
}

.contact-form textarea {
  min-height: 92px;
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  border-color: hsl(var(--brand-default));
}

.contact-form .primary-button {
  width: 100%;
  min-height: 36px;
  margin-top: 2px;
}

.contact-form .primary-button:disabled {
  cursor: wait;
  opacity: 0.5;
  transform: none;
}

.form-status {
  min-height: 1.35em;
  margin: 0;
  color: hsl(var(--foreground-lighter));
  font-size: 0.75rem;
  line-height: 1.5;
}

.form-status[data-state="error"] {
  color: hsl(var(--destructive-default));
}

.form-status[data-state="success"] {
  color: hsl(var(--success-default));
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.turnstile {
  min-height: 65px;
}

.legal-body {
  min-height: 100svh;
  padding: clamp(24px, 5vw, 64px) 20px;
  color: hsl(var(--foreground-default));
  background: hsl(var(--background-200));
}

.legal-card {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid hsl(var(--border-muted));
  border-radius: var(--radius-card);
  background: hsl(var(--background-surface-100));
}

.dark-brand {
  gap: 10px;
  margin-bottom: 48px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.dark-brand img {
  width: 22px;
  height: 22px;
}

.legal-card h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.legal-card h2 {
  margin: 38px 0 10px;
  color: hsl(var(--foreground-default));
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.legal-card h3 {
  margin: 24px 0 8px;
  font-size: 0.875rem;
  font-weight: 600;
}

.legal-card p,
.legal-card li {
  color: hsl(var(--foreground-light));
  font-size: 0.875rem;
  line-height: 1.7;
}

.legal-card ul {
  padding-left: 20px;
}

.legal-card .effective-date {
  margin: 0 0 36px;
  color: hsl(var(--foreground-lighter));
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.not-found {
  margin-top: clamp(20px, 8vh, 100px);
}

.link-button {
  color: #fff !important;
}

@media (max-width: 760px) {
  .site-header {
    padding: 0 16px;
  }

  main:not(.legal-card),
  .site-footer {
    width: min(100% - 32px, 620px);
  }

  .hero {
    padding: 68px 0 64px;
  }

  .hero::before {
    top: 8px;
    height: 400px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 12vw, 3.6rem);
  }

  .hero-copy {
    font-size: 0.94rem;
  }

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

  .feature-card {
    min-height: 0;
    padding: 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-card {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
