:root {
  --bg: #06111f;
  --bg-strong: #08172b;
  --surface: rgba(9, 23, 42, 0.82);
  --surface-strong: #10213b;
  --surface-soft: rgba(16, 33, 59, 0.64);
  --line: rgba(131, 157, 189, 0.18);
  --text: #e8eef8;
  --muted: #92a6bf;
  --accent: #18c58f;
  --accent-strong: #13a97b;
  --accent-soft: rgba(24, 197, 143, 0.16);
  --gold: #e6be63;
  --warning: #f39d6b;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 28px 90px rgba(1, 8, 17, 0.42);
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(24, 197, 143, 0.16), transparent 38%),
    radial-gradient(circle at top right, rgba(230, 190, 99, 0.12), transparent 30%),
    linear-gradient(180deg, #06101d 0%, #09182b 46%, #06111f 100%);
  color: var(--text);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 78%);
}

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

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

p,
li {
  color: var(--muted);
  line-height: 1.72;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Iowan Old Style", Georgia, serif;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #f7fbff;
}

ul,
ol {
  margin: 0;
  padding-left: 1.2rem;
}

.site-shell {
  position: relative;
  overflow: hidden;
}

.wrap {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(24, 197, 143, 0.2);
  border-radius: 999px;
  color: #b9eddc;
  background: rgba(12, 30, 44, 0.58);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold), #b7831b);
  box-shadow: 0 0 18px rgba(230, 190, 99, 0.4);
}

.section {
  position: relative;
  padding: 80px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-header h2 {
  font-size: clamp(34px, 5vw, 54px);
}

.section-header p {
  max-width: 420px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(131, 157, 189, 0.08);
  backdrop-filter: blur(24px);
  background: rgba(6, 17, 31, 0.76);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(24, 197, 143, 0.22), rgba(230, 190, 99, 0.16));
  border: 1px solid rgba(131, 157, 189, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.brand-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-subtitle {
  display: block;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.site-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #cfe0f1;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(24, 197, 143, 0.12);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #062013;
  background: linear-gradient(135deg, #29dba3, #14ba86);
  box-shadow: 0 18px 42px rgba(24, 197, 143, 0.24);
}

.btn-secondary {
  border-color: rgba(131, 157, 189, 0.18);
  color: #dce8f5;
  background: rgba(12, 30, 44, 0.58);
}

.hero {
  padding: 86px 0 62px;
}

.hero-grid,
.page-hero-grid,
.content-layout,
.list-layout,
.footer-cta,
.feature-card {
  display: grid;
  gap: 28px;
}

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

.hero-copy h1,
.page-hero-copy h1 {
  margin-top: 22px;
  font-size: clamp(48px, 6vw, 82px);
  max-width: 760px;
}

.hero-copy p,
.page-hero-copy p {
  margin: 18px 0 0;
  max-width: 660px;
  font-size: 18px;
}

.hero-actions,
.chip-row,
.detail-meta,
.breadcrumb,
.hero-points,
.article-nav,
.topic-list,
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 28px;
}

.hero-points {
  margin-top: 30px;
}

.hero-points li,
.chip,
.meta-chip {
  list-style: none;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(131, 157, 189, 0.16);
  background: rgba(11, 26, 40, 0.74);
  color: #d7e4f1;
  font-size: 14px;
}

.hero-card,
.panel,
.post-card,
.sidebar-card,
.faq-card,
.detail-main,
.content-sidebar,
.metric-card,
.ticker-card,
.footer-panel {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 24, 42, 0.94), rgba(7, 19, 35, 0.86));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card,
.detail-main,
.content-sidebar,
.footer-panel,
.feature-card {
  padding: 28px;
}

.panel,
.post-card,
.sidebar-card,
.faq-card,
.metric-card,
.ticker-card {
  padding: 24px;
}

.hero-card::before,
.detail-main::before,
.footer-panel::before,
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(24, 197, 143, 0.12), transparent 42%, rgba(230, 190, 99, 0.08));
  pointer-events: none;
}

.hero-card-visual,
.post-card-image,
.detail-visual,
.feature-card-image {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  overflow: hidden;
}

.hero-card-visual {
  margin-bottom: 18px;
}

.ticker-strip,
.stats-grid,
.signal-grid,
.faq-grid,
.post-grid {
  display: grid;
  gap: 16px;
}

.ticker-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

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

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

.ticker-label,
.detail-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8fcfb9;
}

.ticker-value,
.metric-value {
  margin-top: 10px;
  font-size: 28px;
  color: #ffffff;
  font-family: "Iowan Old Style", Georgia, serif;
}

.metric-card {
  min-height: 170px;
}

.feature-card {
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  align-items: center;
}

.feature-card h3,
.post-card h3,
.detail-main h1,
.faq-card h3,
.sidebar-card h3,
.panel h3,
.metric-card h3,
.content-sidebar h3 {
  font-size: clamp(22px, 3vw, 34px);
}

.feature-card h3,
.post-card h3,
.faq-card h3,
.sidebar-card h3,
.panel h3,
.metric-card h3,
.content-sidebar h3 {
  margin-bottom: 12px;
}

.post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.post-card-image {
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(10, 22, 39, 0.68), rgba(10, 22, 39, 0.26));
}

.post-card .btn-secondary {
  margin-top: auto;
}

.post-grid .post-card:nth-child(2) {
  transform: translateY(22px);
}

.post-grid .post-card:nth-child(3) {
  transform: translateY(44px);
}

.page-hero {
  padding: 72px 0 30px;
}

.page-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  align-items: end;
}

.breadcrumb {
  margin-top: 20px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.breadcrumb span,
.breadcrumb a {
  color: #bcd0e5;
}

.chip-row {
  margin-top: 18px;
}

.list-layout,
.content-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.article-feed,
.sidebar-stack {
  display: grid;
  gap: 22px;
}

.detail-main h1 {
  margin-top: 16px;
  font-size: clamp(38px, 5vw, 64px);
}

.detail-main > p {
  margin-top: 18px;
  font-size: 18px;
}

.detail-visual {
  margin: 28px 0;
}

.article-content h2,
.article-content h3 {
  margin-top: 36px;
  margin-bottom: 12px;
}

.article-content p,
.article-content li {
  font-size: 17px;
}

.article-content blockquote {
  margin: 30px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(230, 190, 99, 0.08);
  color: #f7f9fc;
  font-size: 20px;
  line-height: 1.6;
  font-family: "Iowan Old Style", Georgia, serif;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(131, 157, 189, 0.18);
}

.article-content th,
.article-content td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(131, 157, 189, 0.1);
  text-align: left;
}

.article-content th {
  color: #ffffff;
  background: rgba(19, 38, 63, 0.84);
}

.article-nav {
  justify-content: space-between;
  margin-top: 34px;
}

.article-nav a {
  flex: 1 1 240px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(131, 157, 189, 0.16);
  background: rgba(12, 30, 44, 0.62);
}

.article-nav strong {
  display: block;
  color: #ffffff;
  margin-bottom: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.topic-list {
  flex-direction: column;
  gap: 12px;
}

.topic-list a,
.topic-list span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(12, 30, 44, 0.58);
  border: 1px solid rgba(131, 157, 189, 0.14);
}

.pagebar {
  margin-top: 30px;
}

.pagebar a,
.pagebar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  margin: 0 8px 8px 0;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(131, 157, 189, 0.18);
  background: rgba(10, 24, 38, 0.72);
  color: #d8e6f4;
}

.pagebar .active,
.pagebar span:hover,
.pagebar a:hover {
  background: linear-gradient(135deg, #29dba3, #14ba86);
  color: #072314;
  border-color: transparent;
}

.footer-cta {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.site-footer {
  padding: 0 0 56px;
}

.site-footer small,
.site-footer p {
  color: var(--muted);
}

.footer-links {
  margin-top: 22px;
}

.footer-links a {
  color: #dce8f5;
}

.fade-up {
  animation: rise 0.7s ease both;
}

.delay-1 {
  animation-delay: 0.08s;
}

.delay-2 {
  animation-delay: 0.16s;
}

.delay-3 {
  animation-delay: 0.24s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .page-hero-grid,
  .feature-card,
  .content-layout,
  .list-layout,
  .footer-cta,
  .stats-grid,
  .signal-grid,
  .faq-grid,
  .post-grid,
  .ticker-strip {
    grid-template-columns: 1fr;
  }

  .post-grid .post-card:nth-child(2),
  .post-grid .post-card:nth-child(3) {
    transform: none;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(calc(100% - 24px), var(--content-width));
  }

  .hero,
  .section,
  .page-hero {
    padding: 54px 0 22px;
  }

  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a,
  .btn {
    width: 100%;
  }

  .hero-copy h1,
  .page-hero-copy h1,
  .detail-main h1,
  .section-header h2 {
    font-size: clamp(34px, 12vw, 54px);
  }

  .hero-copy p,
  .page-hero-copy p,
  .detail-main > p,
  .article-content p,
  .article-content li {
    font-size: 16px;
  }

  .hero-card,
  .feature-card,
  .detail-main,
  .content-sidebar,
  .footer-panel,
  .panel,
  .post-card,
  .sidebar-card,
  .faq-card,
  .metric-card,
  .ticker-card {
    padding: 20px;
    border-radius: 20px;
  }

  .article-content table,
  .article-content thead,
  .article-content tbody,
  .article-content tr,
  .article-content th,
  .article-content td {
    display: block;
    width: 100%;
  }

  .article-content th {
    border-bottom: none;
  }

  .article-content td {
    padding-top: 0;
  }
}
