:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --bg-elevated: #15181d;
  --bg-soft: #1c2026;
  --ink: #f4f0e8;
  --muted: #b8b2a6;
  --subtle: #8f887d;
  --line: rgba(244, 240, 232, 0.14);
  --line-strong: rgba(214, 176, 92, 0.34);
  --gold: #d6b05c;
  --gold-soft: rgba(214, 176, 92, 0.14);
  --steel: #9fb0bd;
  --sage: #9aa98d;
  --copper: #c8926d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(214, 176, 92, 0.12), transparent 34rem),
    radial-gradient(circle at 82% 20%, rgba(154, 169, 141, 0.1), transparent 32rem),
    linear-gradient(180deg, #101216 0%, var(--bg) 34rem, #0b0d10 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(244, 240, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 232, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000, transparent 72%);
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(246, 226, 174, 0.9);
  outline-offset: 4px;
}

p,
h1,
h2,
h3,
dd,
span {
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 5rem;
  background: rgba(13, 15, 18, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.site-footer,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.75rem;
  min-width: 0;
  font-weight: 850;
}

.brand span:last-child {
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  flex: 0 0 auto;
  color: #171205;
  background: linear-gradient(135deg, #f5e4b1, var(--gold));
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 950;
}

.site-nav,
.footer-links {
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a,
.footer-links a {
  padding: 0.62rem 0.78rem;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.9rem;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"],
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
  background: rgba(244, 240, 232, 0.06);
  border-color: var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 3rem;
  align-items: end;
  width: min(1180px, calc(100% - 3rem));
  min-height: 72svh;
  margin: 0 auto;
  padding: 7rem 0 4rem;
}

.hero-compact {
  min-height: 58svh;
}

.hero-content {
  max-width: 800px;
}

.eyebrow,
.panel-label,
.card-topline span:first-child {
  margin: 0;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 18ch;
  margin: 1rem 0 0;
  font-size: clamp(2.2rem, 5vw, 4.45rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 49rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.72;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.82rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 850;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #141007;
  background: linear-gradient(135deg, #f7e6b8, var(--gold));
  border: 1px solid rgba(245, 228, 177, 0.72);
  box-shadow: 0 18px 44px rgba(214, 176, 92, 0.16);
}

.button-secondary {
  color: var(--ink);
  background: rgba(244, 240, 232, 0.055);
  border: 1px solid var(--line);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--line-strong);
  background: var(--gold-soft);
}

.hero-panel,
.identity-band,
.app-card,
.principle-card,
.legal-section {
  background:
    linear-gradient(180deg, rgba(244, 240, 232, 0.06), rgba(244, 240, 232, 0.025));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-panel {
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.snapshot-list {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 0;
}

.snapshot-list div {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.snapshot-list dt {
  color: var(--subtle);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.snapshot-list dd {
  margin: 0.35rem 0 0;
  color: var(--ink);
  line-height: 1.45;
}

.snapshot-list a,
.legal-section a {
  color: #f3d88f;
  text-decoration: underline;
  text-decoration-color: rgba(243, 216, 143, 0.45);
  text-underline-offset: 0.2em;
}

.identity-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto 4.8rem;
  overflow: hidden;
  background: var(--line);
}

.identity-card {
  min-height: 9.5rem;
  padding: 1.2rem;
  background: rgba(21, 24, 29, 0.94);
}

.identity-card strong {
  display: block;
  color: var(--gold);
  font-size: 0.86rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.identity-card span {
  display: block;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.section,
.support-section,
.legal-layout {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 5rem 0;
}

.section-alt {
  position: relative;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 1.6rem;
}

.section-heading h2,
.support-section h2,
.legal-hero h1 {
  margin: 0.7rem 0 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.support-section p,
.legal-hero p,
.legal-section p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.app-grid,
.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

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

.app-card,
.principle-card {
  display: flex;
  flex-direction: column;
  min-height: 15rem;
  padding: 1.15rem;
}

.card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.card-topline span:last-child {
  flex: 0 0 auto;
  padding: 0.22rem 0.48rem;
  color: var(--steel);
  border: 1px solid rgba(159, 176, 189, 0.24);
  border-radius: 999px;
  background: rgba(159, 176, 189, 0.07);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.app-card h3,
.principle-card h3,
.legal-section h2 {
  margin: 1rem 0 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.principle-card h3,
.legal-section h2 {
  margin-top: 0;
}

.app-card p,
.principle-card p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.principle-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.principle-card {
  min-height: 13rem;
}

.support-section {
  display: grid;
  justify-items: start;
  padding-bottom: 6rem;
}

.support-section p {
  max-width: 720px;
}

.support-section .button {
  margin-top: 1.5rem;
}

.legal-layout {
  display: grid;
  gap: 1rem;
  max-width: 900px;
  padding-top: 5.5rem;
}

.legal-hero {
  padding-bottom: 1rem;
}

.legal-hero h1 {
  max-width: 15ch;
}

.legal-section {
  padding: 1.2rem;
}

.site-footer {
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 5rem;
  color: var(--subtle);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  font-weight: 850;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .identity-band,
  .principle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
  }

  .brand span:last-child {
    white-space: normal;
  }

  .site-nav {
    flex: 1 1 auto;
    gap: 0.12rem;
    min-width: 0;
  }

  .site-nav a {
    padding: 0.46rem 0.38rem;
    font-size: 0.76rem;
  }

  .hero,
  .section,
  .support-section,
  .identity-band,
  .legal-layout {
    width: min(100% - 2rem, 1180px);
  }

  .hero {
    gap: 2rem;
    min-height: auto;
    padding: 4rem 0 3rem;
  }

  .hero-content,
  .hero-copy,
  .hero-panel {
    max-width: calc(100vw - 2rem);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 2.6rem);
    line-height: 1.07;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.62;
  }

  .identity-band,
  .app-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .identity-card,
  .app-card,
  .principle-card {
    min-height: auto;
  }

  .identity-band {
    margin-bottom: 3rem;
  }

  .section,
  .support-section,
  .legal-layout {
    padding: 3.4rem 0;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .footer-links a {
    padding-left: 0;
  }

  .site-footer {
    padding: 1.2rem 1rem;
  }
}

@media (max-width: 520px) {
  .site-header {
    flex-direction: column;
  }

  .brand-mark {
    width: 2.2rem;
    height: 2.2rem;
  }

  .card-topline {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
