:root {
  color-scheme: light;
  --ink: #17202b;
  --muted: #667085;
  --paper: #f6f4ee;
  --panel: #ffffff;
  --line: rgba(23, 32, 43, 0.13);
  --slate: #334155;
  --blue: #1d4f72;
  --green: #4f8f67;
  --gold: #8f7b4f;
  --soft-blue: #ecf3f8;
  --soft-gold: #f3efe4;
  --shadow: 0 24px 70px rgba(23, 32, 43, 0.13);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 83% 8%, rgba(143, 123, 79, 0.16), transparent 22rem),
    radial-gradient(circle at 12% 18%, rgba(29, 79, 114, 0.1), transparent 24rem),
    linear-gradient(180deg, #ffffff 0, #fafbfd 38rem, var(--paper) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.04; letter-spacing: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; }

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 5.25vw, 5.6rem);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.05rem, 3.55vw, 3.65rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 14px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: #ffffff;
  background: #111827;
  border-radius: 10px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.site-header,
main,
.site-footer {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 74px;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  isolation: isolate;
}

.site-header::before {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: inherit;
  border-bottom: 1px solid var(--line);
  content: "";
}

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

.brand {
  gap: 11px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ink), var(--slate));
  border-radius: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 26px rgba(23, 32, 43, 0.2);
}

.site-nav {
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 820;
}

.site-nav a,
.footer-links a,
.footer-brand,
.text-link { text-decoration: none; }

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue);
  background: #ffffff;
  border-color: var(--line);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 870;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta {
  padding: 11px 18px;
  color: #ffffff;
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(23, 32, 43, 0.2);
}

.button { padding: 13px 22px; }
.button.primary { color: #ffffff; background: var(--ink); box-shadow: 0 14px 30px rgba(23, 32, 43, 0.22); }
.button.secondary { color: var(--ink); background: #ffffff; border: 1px solid var(--line); }
.button.soft { color: var(--ink); background: var(--soft-gold); border: 1px solid rgba(143, 123, 79, 0.2); }

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--ink);
  font-weight: 900;
}

.text-link::after { margin-left: 8px; content: "->"; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.92fr);
  gap: clamp(34px, 4.5vw, 62px);
  align-items: center;
  min-height: clamp(590px, calc(100vh - 74px), 720px);
  padding: clamp(48px, 6vw, 78px) 0 clamp(50px, 6vw, 74px);
}

.hero-copy { max-width: 820px; }
.hero h1 { font-size: clamp(3rem, 4.85vw, 5.2rem); }
.hero-text { max-width: 720px; color: var(--muted); font-size: clamp(1.08rem, 1.35vw, 1.22rem); }
.hero-actions { flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin-top: 28px;
}

.hero-points div,
.feature-grid article,
.market-card,
.panel-card,
.resource-card,
.risk-card,
.resource-band,
.trust-band {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 44px rgba(23, 32, 43, 0.08);
}

.hero-points div {
  padding: 14px 15px;
  border-radius: 16px;
}

.hero-points strong { display: block; color: var(--ink); font-size: 0.9rem; }
.hero-points span { color: var(--muted); font-size: 0.84rem; }

.hero-art { position: relative; min-width: 0; }
.hero-art::before {
  position: absolute;
  inset: 8% -4% -7% 12%;
  z-index: -1;
  border-radius: 44% 56% 50% 50%;
  background: rgba(143, 123, 79, 0.14);
  content: "";
}

.hero-art img {
  width: 100%;
  max-height: min(58vh, 540px);
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.intro-panel,
.story-band,
.final-cta {
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 22px 58px rgba(23, 32, 43, 0.1);
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: clamp(28px, 4vw, 46px);
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 18%, rgba(143, 123, 79, 0.28), transparent 18rem),
    var(--ink);
}

.intro-panel .eyebrow,
.intro-panel h2,
.intro-panel p { color: #ffffff; }
.intro-panel p { margin-bottom: 0; color: rgba(255, 255, 255, 0.84); }

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-heading { max-width: 900px; margin-bottom: 34px; }

.section-heading p,
.feature-grid p,
.market-card p,
.panel-card p,
.resource-card p,
.resource-card li,
.risk-card p,
.trust-band p,
.final-cta p,
.site-footer p { color: var(--muted); }

.feature-grid,
.market-grid,
.two-column,
.resource-section {
  display: grid;
  gap: 18px;
}

.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.market-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.resource-section { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 0 clamp(64px, 8vw, 96px); }
.resource-section-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.feature-grid article,
.market-card,
.panel-card,
.resource-card,
.risk-card { border-radius: 22px; }

.feature-grid article { min-height: 240px; padding: 26px; }
.feature-grid span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 12px;
  color: #ffffff;
  background: var(--ink);
  font-weight: 900;
}

.story-band {
  padding: clamp(34px, 7vw, 76px);
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 18%, rgba(143, 123, 79, 0.26), transparent 20rem),
    var(--ink);
}

.story-band h2,
.story-band p,
.story-band .eyebrow { color: #ffffff; }
.story-band h2, .story-band p { max-width: 900px; }
.story-band p { color: rgba(255, 255, 255, 0.84); }

.market-card {
  min-height: 220px;
  padding: 24px;
  background: #ffffff;
}

.market-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.sparkline {
  height: 52px;
  margin: 18px 0;
  border-radius: 16px;
  background:
    linear-gradient(135deg, transparent 42%, rgba(79, 143, 103, 0.4) 42% 48%, transparent 48%),
    linear-gradient(160deg, transparent 52%, rgba(29, 79, 114, 0.3) 52% 58%, transparent 58%),
    var(--soft-blue);
}

.panel-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 42px);
}

.panel-card.accent { background: linear-gradient(135deg, #ffffff, #f8f3e7); }

.risk-card {
  padding: clamp(28px, 4vw, 42px);
  color: #ffffff;
  background: var(--ink);
}

.risk-card h2,
.risk-card p,
.risk-card .eyebrow { color: #ffffff; }
.risk-card ul { display: grid; gap: 10px; margin: 18px 0 0; padding-left: 20px; color: rgba(255, 255, 255, 0.84); }

.resource-card { padding: 28px; }
.resource-card ul { display: grid; gap: 10px; margin: 16px 0 0; padding-left: 20px; color: var(--muted); }

.trust-band,
.resource-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 4vw, 42px);
  background: #ffffff;
  border-radius: 22px;
}

.trust-band > div,
.resource-band > div { max-width: 880px; }

.final-cta {
  margin: 24px 0 84px;
  padding: clamp(38px, 7vw, 76px) clamp(22px, 5vw, 54px);
  text-align: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 18%, rgba(143, 123, 79, 0.28), transparent 20rem),
    var(--ink);
}

.final-cta h2,
.final-cta p,
.final-cta .eyebrow { color: #ffffff; }
.final-cta h2, .final-cta p { max-width: 860px; margin-right: auto; margin-left: auto; }
.center-actions { justify-content: center; }

.page-hero {
  max-width: 980px;
  padding: clamp(66px, 8vw, 104px) 0 clamp(42px, 6vw, 66px);
}

.page-hero > p:not(.eyebrow) {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.16rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.resource-band { margin: 0 0 84px; }

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 900;
}

.site-footer p { max-width: 600px; margin-bottom: 0; }
.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 16px;
  color: var(--ink);
  font-weight: 760;
  text-align: right;
}

.footer-links a:hover,
.footer-brand:hover,
.text-link:hover { color: var(--blue); }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: auto auto; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .nav-cta { justify-self: end; }
  .hero, .intro-panel, .trust-band, .resource-band { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .site-header, main, .site-footer { width: min(100% - 24px, 1220px); }
  h1 { font-size: clamp(2.55rem, 11vw, 4rem); }
  .feature-grid, .two-column, .resource-section, .resource-section-wide { grid-template-columns: 1fr; }
  .panel-card, .feature-grid article, .resource-card { min-height: auto; }
  .site-footer { flex-direction: column; }
  .footer-links { justify-content: flex-start; text-align: left; }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr; gap: 12px; }
  .site-header::before { inset: 0; }
  .nav-cta, .hero-actions .button, .trust-band .button, .resource-band .button { width: 100%; }
  .nav-cta { justify-self: stretch; }
  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    gap: 8px;
    overflow-x: visible;
    white-space: normal;
  }
  .site-nav a {
    justify-content: center;
    min-height: 36px;
    width: 100%;
    padding: 6px 8px;
    text-align: center;
    white-space: normal;
  }
  h1, .hero h1 { font-size: clamp(2.12rem, 7.8vw, 2.82rem); line-height: 1.08; }
  .hero-text, .page-hero > p:not(.eyebrow) { font-size: 1rem; }
  .hero { display: block; padding: 44px 0; }
  .hero-art img { margin-top: 34px; border-radius: 20px; }
  .hero-points, .market-grid { grid-template-columns: 1fr; }
}

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