:root {
  --bg: #f4f4f2;
  --bg-soft: #ebebe8;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #111111;
  --muted: #575757;
  --border: rgba(17, 17, 17, 0.1);
  --border-strong: rgba(17, 17, 17, 0.18);
  --brand: #111111;
  --brand-soft: rgba(17, 17, 17, 0.05);
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #fafaf8 0%, var(--bg) 45%, var(--bg-soft) 100%);
}

a {
  color: inherit;
}

code,
pre {
  font-family: "Cascadia Code", Consolas, monospace;
}

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

.site-shell {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  padding: 1rem 0 0;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand::before {
  content: "F";
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  color: var(--brand);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand span {
  display: block;
}

.brand-mark {
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-name {
  font-size: clamp(1.02rem, 1.7vw, 1.28rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav-link,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.nav-link:hover,
.button-link:hover {
  transform: translateY(-1px);
}

.nav-link {
  color: var(--muted);
}

.nav-link:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(17, 17, 17, 0.03);
}

.button-link {
  background: var(--brand);
  color: var(--white);
  font-weight: 600;
}

.button-link.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.button-link.secondary:hover {
  background: rgba(17, 17, 17, 0.03);
}

.hero,
.document-hero {
  position: relative;
  overflow: hidden;
  margin-top: 1.35rem;
  padding: clamp(2rem, 4vw, 4rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 248, 246, 0.96));
  box-shadow: var(--shadow);
}

.hero::after,
.document-hero::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -4rem;
  width: 12rem;
  height: 12rem;
  border-radius: 24px;
  border: 1px solid rgba(17, 17, 17, 0.04);
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.03), rgba(255, 255, 255, 0.04));
  transform: rotate(16deg);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(17, 17, 17, 0.03);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.card h3,
.document-hero h1,
.article-card h2,
.list-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
}

.hero h1,
.document-hero h1 {
  margin: 1rem 0 0.85rem;
  font-size: clamp(2.45rem, 5vw, 4.5rem);
  line-height: 0.98;
  max-width: 12ch;
}

.hero p,
.document-hero p {
  max-width: 46rem;
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.hero-note {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.section {
  padding: 2.35rem 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.section-heading p,
.meta-text,
.card p,
.list-card p,
.article-card p,
.footer-copy,
.doc-meta,
.legal-list li,
.metric span,
.feature-list li {
  color: var(--muted);
  line-height: 1.72;
}

.grid {
  display: grid;
  gap: 1.1rem;
}

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

.grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.list-card,
.article-card {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h3,
.list-card h3,
.article-card h2 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.3rem;
  color: var(--text);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(17, 17, 17, 0.03);
  color: var(--muted);
  font-size: 0.9rem;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.metric {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(17, 17, 17, 0.02);
}

.metric strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.15rem;
  color: var(--text);
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.93rem;
}

.doc-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(17, 17, 17, 0.03);
}

.article-card {
  padding: clamp(1.4rem, 3vw, 2rem);
  margin-top: 1.45rem;
}

.article-card section + section {
  margin-top: 1.8rem;
}

.article-card h2 {
  font-size: 1.68rem;
}

.article-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  color: var(--text);
}

.article-card pre {
  margin: 0;
  padding: 1.2rem;
  overflow-x: auto;
  border-radius: 16px;
  background: #f5f5f3;
  color: #222222;
  border: 1px solid var(--border);
}

.legal-list,
.feature-list {
  padding-left: 1.2rem;
  margin: 0.6rem 0 0;
}

.legal-list li + li,
.feature-list li + li {
  margin-top: 0.55rem;
}

.footer {
  padding: 1rem 0 3rem;
}

.footer-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .grid.two-up,
  .grid.three-up,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .nav-bar,
  .footer-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1,
  .document-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.3rem);
  }
}

@media (max-width: 580px) {
  .site-shell {
    width: min(var(--max-width), calc(100% - 1rem));
  }

  .hero,
  .document-hero,
  .card,
  .list-card,
  .article-card,
  .footer-panel {
    border-radius: 20px;
  }

  .nav-bar {
    border-radius: 24px;
  }

  .brand {
    align-items: flex-start;
  }
}
