:root {
  --ink: #08111f;
  --ink-soft: #101d2f;
  --paper: #f5f2ea;
  --paper-bright: #fbfaf6;
  --muted: #aeb7c3;
  --muted-dark: #536173;
  --line: rgba(255, 255, 255, 0.13);
  --line-dark: rgba(8, 17, 31, 0.15);
  --gold: #d5b06f;
  --gold-deep: #b98c43;
  --teal: #8db9b4;
  --max-width: 1180px;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.19);
}

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

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

body {
  margin: 0;
  color: var(--paper);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--ink);
  background-size: 48px 48px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

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

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 104px 0;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 17, 31, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 7px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0.035em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: #dce2e8;
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.035em;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--gold);
}

.site-nav .nav-cta {
  padding: 10px 15px;
  border: 1px solid rgba(213, 176, 111, 0.7);
  border-radius: 4px;
  color: var(--gold);
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 122px;
  padding-bottom: 58px;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -220px;
  right: -140px;
  width: 650px;
  height: 650px;
  border: 1px solid rgba(213, 176, 111, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(213, 176, 111, 0.03),
    0 0 0 180px rgba(141, 185, 180, 0.018);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 72px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: #755827;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 800px;
  margin-bottom: 28px;
  font-size: clamp(3.4rem, 7vw, 6.8rem);
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 4.4vw, 4.35rem);
}

h3 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.hero-lede {
  max-width: 715px;
  margin-bottom: 34px;
  color: #c5ced8;
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: var(--ink);
  background: var(--gold);
}

.button-primary:hover {
  background: #e0bf82;
}

.button-secondary {
  border-color: var(--line);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.03);
}

.button-secondary:hover {
  border-color: rgba(213, 176, 111, 0.72);
}

.hero-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.signal-panel {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(213, 176, 111, 0.3);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow);
}

.signal-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

.signal-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #dbe2e9;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.status {
  color: var(--teal);
}

.signal-rule {
  height: 1px;
  margin: 22px 0 10px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.signal-list {
  margin: 0;
}

.signal-list > div {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.signal-list > div:last-child {
  border-bottom: 0;
}

.signal-list dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.signal-list dd {
  margin: 0;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 94px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-strip span {
  padding: 18px 28px;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.proof-strip span + span {
  border-left: 1px solid var(--line);
}

.section-light {
  color: var(--ink);
  background: var(--paper);
}

.split-layout,
.engine-panel {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 90px;
  align-items: start;
}

.split-layout h2 {
  max-width: 680px;
}

.prose {
  color: inherit;
  font-size: 1.08rem;
}

.prose p + p {
  margin-top: 18px;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 48px;
}

.section-heading > p:last-child {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading.compact {
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 300px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.card-index {
  display: block;
  margin-bottom: 74px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
}

.feature-card p,
.principles-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-accent {
  color: var(--ink);
  background: var(--gold);
}

.audience-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
  align-items: start;
}

.section-accent .section-heading > p:last-child {
  color: rgba(8, 17, 31, 0.72);
}

.audience-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(8, 17, 31, 0.28);
  list-style: none;
}

.audience-list li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(8, 17, 31, 0.28);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
}

.audience-list span {
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.principles-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 90px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.principles-grid article {
  min-height: 220px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.engine-section {
  padding-top: 0;
}

.engine-panel {
  padding: 60px;
  border: 1px solid rgba(141, 185, 180, 0.4);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(141, 185, 180, 0.11), rgba(255, 255, 255, 0.025));
}

.contact-section {
  color: var(--ink);
  background: var(--paper-bright);
}

.contact-panel {
  max-width: 900px;
  text-align: center;
}

.contact-panel h2 {
  margin-inline: auto;
}

.contact-panel > p:not(.eyebrow) {
  max-width: 680px;
  margin: 0 auto 30px;
  color: var(--muted-dark);
  font-size: 1.08rem;
}

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

.footer-inner {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-inner nav {
  display: flex;
  gap: 24px;
}

.footer-inner a {
  color: #c5ced8;
  font-size: 0.82rem;
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--gold);
}

/* Legal pages */
.legal-main {
  min-height: calc(100vh - 183px);
}

.legal-shell {
  max-width: 860px;
}

.legal-shell h1 {
  max-width: 760px;
  font-size: clamp(3rem, 6vw, 5.6rem);
}

.legal-updated {
  margin-bottom: 54px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-content {
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin-top: 48px;
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
}

.legal-content p,
.legal-content li {
  color: #c5ced8;
}

.legal-content a {
  color: var(--gold);
}

.legal-note {
  margin-top: 52px;
  padding: 20px 22px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.04);
}

/* 404 */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 80px 0;
}

.error-content {
  max-width: 760px;
  text-align: center;
}

.error-content h1 {
  font-size: clamp(3rem, 7vw, 6.4rem);
}

.error-content > p:not(.eyebrow) {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.1rem;
}

@media (max-width: 920px) {
  .section {
    padding: 82px 0;
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding-top: 92px;
  }

  .hero-grid,
  .split-layout,
  .audience-layout,
  .principles-layout,
  .engine-panel {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .signal-panel {
    max-width: 600px;
  }

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

  .feature-card {
    min-height: auto;
  }

  .card-index {
    margin-bottom: 42px;
  }

  .engine-panel {
    padding: 40px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-name {
    font-size: 0.96rem;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav .nav-cta {
    padding: 8px 10px;
    font-size: 0.73rem;
  }

  .section {
    padding: 68px 0;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

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

  .button {
    width: 100%;
  }

  .signal-panel {
    padding: 24px;
  }

  .signal-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .proof-strip {
    grid-template-columns: 1fr;
    margin-top: 68px;
  }

  .proof-strip span + span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .engine-panel {
    padding: 28px;
  }

  .footer-inner {
    min-height: 140px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
  }

  .footer-inner nav {
    flex-wrap: wrap;
  }
}

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

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

@media print {
  .site-header,
  .hero-actions,
  .site-footer {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section {
    padding: 24px 0;
  }
}

/* Light-section readability */
.section-light .section-heading > p:last-child {
  color: #3d4b5c;
}

.section-light .feature-card {
  border-color: var(--line-dark);
  background: rgba(8, 17, 31, 0.025);
}

.section-light .feature-card h3 {
  color: var(--ink);
}

.section-light .feature-card p {
  color: #344255;
}

.section-light .card-index {
  color: #8b642a;
}
