:root {
  --bg: #07111f;
  --bg-soft: #0f1c33;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --text: #162033;
  --muted: #5d697e;
  --line: rgba(19, 35, 60, 0.12);
  --gold: #e7b75f;
  --teal: #1c7c7a;
  --blue: #2b6cb0;
  --coral: #b36a2e;
  --shadow: 0 24px 60px rgba(4, 11, 26, 0.16);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1180px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Georgia", serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(231, 183, 95, 0.12), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(43, 108, 176, 0.16), transparent 28%),
    linear-gradient(180deg, #f7f3ec 0%, #f4f7fb 100%);
}

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

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

.site-shell {
  min-height: 100vh;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 31, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner,
.page,
.section,
.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  min-width: 0;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(231, 183, 95, 0.24);
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.2px;
}

.brand-copy span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a,
.button,
.chip {
  border-radius: 999px;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  padding: 11px 16px;
  border: 1px solid transparent;
}

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

.nav-links a.is-active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #07111f 0%, #0f1c33 52%, #182a4d 100%);
  color: white;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.85;
  pointer-events: none;
}

.hero::before {
  width: 360px;
  height: 360px;
  right: -110px;
  top: -140px;
  background: radial-gradient(circle, rgba(231, 183, 95, 0.34), transparent 68%);
}

.hero::after {
  width: 320px;
  height: 320px;
  left: -120px;
  bottom: -150px;
  background: radial-gradient(circle, rgba(43, 108, 176, 0.28), transparent 68%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  padding: 60px 0 46px;
}

.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.eyebrow {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  margin: 0;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.3rem);
  line-height: 0.98;
  margin-top: 18px;
}

.hero p,
.section-copy p,
.card p,
.article p,
.footer-copy {
  line-height: 1.7;
}

.hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  font-weight: 800;
  border: 1px solid transparent;
  box-shadow: none;
}

.button.primary {
  background: var(--gold);
  color: #07111f;
  box-shadow: 0 14px 30px rgba(231, 183, 95, 0.22);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
  color: white;
}

.hero-meta {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.meta-card,
.surface-card,
.article-card,
.related-card,
.stat-card,
.quote-card,
.trust-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.meta-card {
  border-radius: 22px;
  padding: 16px;
}

.meta-card strong {
  display: block;
  font-size: 1.5rem;
  color: var(--text);
}

.meta-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-panel {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.preview-card {
  border-radius: 24px;
  padding: 18px;
  background: var(--panel-strong);
}

.preview-card h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.06;
  margin: 14px 0 10px;
  color: var(--text);
}

.preview-card p {
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
  border-radius: 20px;
  padding: 16px;
}

.stat-card strong {
  display: block;
  font-size: 1.6rem;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 58px 0;
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 820px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.02;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 72ch;
}

.grid-3,
.blog-grid {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

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

.surface-card,
.trust-card,
.article-card,
.related-card {
  border-radius: var(--radius-lg);
  padding: 20px;
}

.surface-card h3,
.trust-card h3,
.article-card h3,
.related-card h3 {
  font-family: var(--sans);
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.surface-card p,
.trust-card p,
.article-card p,
.related-card p {
  color: var(--muted);
}

.surface-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #172033, #264c8e);
}

.content-band {
  margin-top: 18px;
  display: grid;
  gap: 16px;
  grid-template-columns: 0.8fr 1.2fr;
}

.quote-card {
  border-radius: var(--radius-xl);
  padding: 22px;
  background: white;
}

.quote-card ul,
.article ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.quote-card li,
.article li {
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.6;
}

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chip {
  border: 1px solid rgba(20, 35, 60, 0.12);
  background: white;
  padding: 10px 14px;
  font-weight: 700;
  color: var(--muted);
}

.chip.active {
  background: var(--bg);
  color: white;
  border-color: transparent;
}

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

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.card-top {
  min-height: 148px;
  padding: 18px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(145deg, var(--blue), var(--bg), var(--teal));
  color: white;
}

.card-body {
  padding: 18px;
}

.card .meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.95rem;
}

.pill {
  background: rgba(43, 108, 176, 0.1);
  color: var(--bg);
  font-size: 0.86rem;
}

.article-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 34px 34px;
  background: linear-gradient(145deg, var(--bg), var(--bg-soft), #182a4d);
  color: white;
}

.article-hero .page {
  padding: 42px 0 34px;
}

.article-hero h1 {
  margin-top: 16px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
  max-width: 14ch;
}

.article-hero p {
  color: rgba(255, 255, 255, 0.84);
  max-width: 72ch;
  font-size: 1.07rem;
}

.article-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.article {
  padding: 26px 0 10px;
}

.article-card {
  margin-top: 18px;
  padding: 24px;
  background: white;
}

.article h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  margin-top: 22px;
  margin-bottom: 12px;
}

.article p {
  margin: 0 0 16px;
}

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

.footer {
  padding: 18px 0 48px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(20, 35, 60, 0.12);
  padding-top: 18px;
}

.footer-copy {
  color: var(--muted);
  max-width: 70ch;
}

.small-link {
  color: var(--bg);
  font-weight: 800;
}

.loading {
  padding: 20px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid,
  .content-band,
  .grid-3,
  .blog-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 42px;
  }

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    flex: 1 1 auto;
    text-align: center;
  }

  .section,
  .hero .page {
    width: min(var(--max), calc(100% - 24px));
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.7rem);
  }

  .article-hero h1 {
    max-width: none;
  }
}
