:root {
  --paper: #f8f7f2;
  --surface: #ffffff;
  --ink: #0d0d0d;
  --muted: #696965;
  --line: rgba(13, 13, 13, 0.13);
  --green: #52f23d;
  --green-soft: #dfffd8;
  --danger: #b42318;
  --shadow: 0 20px 55px rgba(24, 24, 19, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(13, 13, 13, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 13, 13, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 247, 242, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav {
  width: min(1120px, calc(100% - 36px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.nav-links a {
  border-radius: 999px;
  padding: 8px 11px;
  color: #4f4f4b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 5px 16px rgba(24, 24, 19, 0.07);
}

.hero,
.document-shell,
.support-shell,
.error-shell {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 76px);
  padding: 88px 0 70px;
  display: grid;
  align-content: center;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(48px, 10vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.42;
}

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

.link-card,
.legal-section,
.support-card,
.notice {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fff 0%, #f5f4ee 100%);
  box-shadow: var(--shadow);
}

.link-card {
  min-height: 164px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.link-card::after {
  content: "↗";
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 25px;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 13, 13, 0.32);
}

.link-card h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.035em;
}

.link-card p {
  max-width: 90%;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.document-shell,
.support-shell {
  padding: 64px 0 92px;
}

.document-header {
  margin-bottom: 42px;
}

.document-header h1 {
  max-width: none;
  margin-bottom: 14px;
  font-size: clamp(42px, 7vw, 72px);
}

.meta {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.company {
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.intro {
  max-width: 760px;
  color: #454542;
  font-size: 18px;
}

.legal-stack,
.support-grid {
  display: grid;
  gap: 15px;
}

.legal-section,
.support-card,
.notice {
  padding: clamp(22px, 4vw, 34px);
}

.legal-section h2,
.support-card h2 {
  margin-bottom: 14px;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.legal-section p,
.legal-section li,
.support-card p {
  color: #4f4f4b;
}

.legal-section p:last-child,
.support-card p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 0;
  padding-left: 21px;
}

.legal-section li + li {
  margin-top: 8px;
}

.all-caps {
  color: var(--ink) !important;
  font-weight: 800;
}

.contact-block {
  white-space: pre-line;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 10px;
  padding: 10px 17px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.notice {
  margin-top: 16px;
  border-color: rgba(180, 35, 24, 0.24);
}

.notice strong {
  color: var(--danger);
}

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

.footer-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 42px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-links a:hover {
  color: var(--ink);
}

.error-shell {
  min-height: calc(100vh - 76px);
  padding: 80px 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.error-shell h1 {
  margin-bottom: 16px;
}

.error-shell .button {
  margin: 18px auto 0;
}

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .nav {
    padding: 17px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 2px;
  }

  .nav-links a {
    padding: 7px 9px;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

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

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .link-card {
    transition: none;
  }
}
