:root {
  color-scheme: light;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #0a0a0a;
  background: #fafaf9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --gold: #c99a45;
  --gold-ink: #8a682c;
  --ink: #0a0a0a;
  --muted: #525252;
  --line: rgb(10 10 10 / 9%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-width: 320px;
  margin: 0;
  background: #fafaf9;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--gold-ink);
  text-underline-offset: 0.2em;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

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

.shell {
  width: min(1024px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgb(10 10 10 / 8%);
  background: rgb(255 255 255 / 82%);
  backdrop-filter: blur(16px);
}

.header-inner,
.site-nav,
.brand {
  display: flex;
  align-items: center;
}

.header-inner {
  min-height: 72px;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  gap: 12px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

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

.site-nav a {
  color: #525252;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 0.3em;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-nav a[aria-current="page"] {
  color: var(--gold-ink);
}

main {
  min-height: calc(100vh - 150px);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 104px 0 88px;
  background:
    radial-gradient(ellipse at 18% 0%, rgb(201 154 69 / 13%), transparent 42%),
    linear-gradient(135deg, #0a0a0a 0%, #1a1814 54%, #0a0a0a 100%);
  color: white;
}

.hero::after {
  position: absolute;
  top: 50%;
  right: max(24px, calc((100vw - 1024px) / 2 - 72px));
  z-index: -1;
  width: clamp(220px, 30vw, 360px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: url("/assets/foresight-icon.png") center / contain no-repeat;
  content: "";
  opacity: 0.12;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: 64px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--gold-ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 32px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--gold);
  content: "";
}

.hero .eyebrow {
  color: var(--gold);
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

.hero-copy {
  max-width: 630px;
  color: #e5e5e5;
  font-size: 1.125rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  transform: translateY(-1px);
  background: #f5f5f4;
  box-shadow: 0 12px 28px rgb(0 0 0 / 22%);
  color: var(--ink);
}

.page-content .button {
  background: var(--ink);
  color: white;
}

.page-content .button:hover {
  background: #262626;
  color: white;
}

.text-link {
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 0.3em;
}

.text-link:hover {
  color: white;
  text-decoration: underline;
}

.workflow-card {
  padding: 30px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 16px;
  background: rgb(255 255 255 / 5%);
  box-shadow: 0 24px 65px rgb(0 0 0 / 28%);
  backdrop-filter: blur(12px);
}

.workflow-card h2 {
  margin-bottom: 24px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.workflow-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: start;
  gap: 12px;
  color: #e5e5e5;
  font-size: 0.94rem;
  line-height: 1.55;
}

.step-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgb(201 154 69 / 35%);
  border-radius: 50%;
  background: rgb(201 154 69 / 14%);
  color: #e6c98f;
  font-size: 0.8rem;
  font-weight: 700;
}

.section {
  padding: 80px 0;
  background: #fafaf9;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 1px 3px rgb(10 10 10 / 4%);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgb(201 154 69 / 36%);
  box-shadow: 0 8px 24px rgb(10 10 10 / 7%);
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.7;
}

.page-main {
  padding: 72px 0 88px;
  background: #fafaf9;
}

.page-content {
  max-width: 760px;
}

.page-content > .eyebrow {
  margin-bottom: 18px;
}

.page-content h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.page-intro {
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.page-content h2 {
  margin: 38px 0 14px;
  padding-top: 28px;
  border-top: 1px solid rgb(10 10 10 / 9%);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.page-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.page-content p,
.page-content li {
  color: #404040;
  line-height: 1.75;
}

.page-content p + p {
  margin-top: 1rem;
}

.page-content code {
  padding: 0.15em 0.35em;
  border-radius: 4px;
  background: #f0efed;
  color: var(--ink);
  font-size: 0.9em;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid rgb(10 10 10 / 8%);
  background: white;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner p {
  margin: 0;
}

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  text-underline-offset: 0.3em;
}

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

@media (max-width: 760px) {
  .shell {
    width: min(100% - 40px, 1024px);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 14px 0;
  }

  .site-nav {
    gap: 16px;
  }

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

  .hero::after {
    top: 16%;
    right: -52px;
    width: 220px;
    transform: none;
    opacity: 0.1;
  }

  .hero-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 36px;
  }

  .section,
  .page-main {
    padding: 56px 0;
  }
}

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