:root {
  --bg: #050816;
  --bg-soft: #050816;
  --bg-elevated: #090e24;
  --bg-strong: #050816;
  --border-subtle: rgba(255,255,255,0.06);

  --accent: #6366f1;
  --accent-soft: rgba(99,102,241,0.18);
  --accent-2: #f97316;
  --accent-2-soft: rgba(249,115,22,0.18);
  --accent-3: #22c55e;

  --text-main: #f9fafb;
  --text-soft: #9ca3af;
  --text-muted: #6b7280;

  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-soft: 0 18px 60px rgba(15,23,42,0.7);
  --shadow-subtle: 0 10px 30px rgba(15,23,42,0.5);

  --container-width: 1120px;
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.25s ease-out;
}

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

html, body {
  margin: 0;
  padding: 0;
}

body.page {
  background: radial-gradient(circle at top, #1d253f 0, #050816 38%, #020617 100%);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  min-height: 100vh;
}

/* Layout base */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 18px;
}

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

.section--about {
  background: radial-gradient(circle at top left, rgba(99,102,241,0.25), transparent 45%),
              radial-gradient(circle at bottom right, rgba(236,72,153,0.25), transparent 45%);
}

.section--featured {
  background: linear-gradient(145deg, rgba(15,23,42,0.7), rgba(15,23,42,0.98));
}

.section--columns {
  background: radial-gradient(circle at top, rgba(56,189,248,0.2), transparent 55%),
              linear-gradient(180deg, #020617, #020617);
}

.section--topics {
  background: #020617;
}

.section--cta {
  background: radial-gradient(circle at center, rgba(99,102,241,0.3), #020617 65%);
}

/* Hero */

.hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
}

.hero--intense {
  min-height: 320px;
}

.hero__layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__layer--gradient {
  background:
    radial-gradient(circle at top left, rgba(56,189,248,0.35), transparent 55%),
    radial-gradient(circle at bottom right, rgba(236,72,153,0.4), transparent 55%),
    radial-gradient(circle at top right, rgba(129,140,248,0.5), transparent 55%);
  opacity: 0.8;
}

.hero__layer--grid {
  background-image:
    linear-gradient(rgba(148,163,184,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  mix-blend-mode: screen;
  opacity: 0.35;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}

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

.hero__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(15,23,42,0.7);
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  border: 1px solid rgba(148,163,184,0.3);
  margin-bottom: 12px;
}

.hero__title {
  font-size: clamp(2.2rem, 3.1vw, 3rem);
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 60px rgba(0,0,0,0.65);
}

.hero__subtitle {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 0.98rem;
  max-width: 520px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.86rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.btn--primary {
  background: radial-gradient(circle at top left, #f97316, #ef4444);
  border-color: rgba(248,250,252,0.08);
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 70px rgba(248,113,113,0.6);
}

.btn--ghost {
  background: rgba(15,23,42,0.7);
  color: var(--text-soft);
  border-color: rgba(148,163,184,0.4);
}

.btn--ghost:hover {
  background: rgba(15,23,42,0.95);
  border-color: rgba(248,250,252,0.2);
}

.btn--outline {
  background: transparent;
  border-color: rgba(248,250,252,0.35);
  color: var(--text-main);
}

.btn--outline:hover {
  background: rgba(15,23,42,0.85);
}

.btn--lg {
  padding: 11px 22px;
  font-size: 0.9rem;
}

/* Pills / Badges / Tags */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.4);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  background: rgba(15,23,42,0.8);
}

.pill--success {
  border-color: rgba(34,197,94,0.6);
  background: rgba(34,197,94,0.15);
  color: #bbf7d0;
}

.pill--accent {
  border-color: rgba(249,115,22,0.7);
  background: rgba(249,115,22,0.16);
  color: #fed7aa;
}

.pill--dark {
  background: rgba(15,23,42,0.95);
  border-color: rgba(148,163,184,0.45);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.badge--hot {
  background: rgba(236,72,153,0.15);
  color: #f9a8d4;
  border: 1px solid rgba(236,72,153,0.4);
}

.badge--pro {
  background: rgba(56,189,248,0.18);
  color: #a5f3fc;
  border: 1px solid rgba(56,189,248,0.5);
}

.badge--signal {
  background: rgba(52,211,153,0.15);
  color: #bbf7d0;
  border: 1px solid rgba(52,211,153,0.45);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.5);
  color: var(--text-soft);
}

.tag--small {
  font-size: 10px;
}

/* Hero panel (right side) */

.hero__panel {
  position: relative;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.26), rgba(15,23,42,0.98));
  border-radius: var(--radius-xl);
  padding: 18px 18px 20px;
  border: 1px solid rgba(148,163,184,0.5);
  box-shadow: var(--shadow-soft);
  max-width: 360px;
}

.hero__panel h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.hero__panel-sub {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.hero__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.hero__bullets li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}

.hero__bullets li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-2);
  position: absolute;
  left: 2px;
  top: 9px;
}

.hero__stats {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(148,163,184,0.4);
  padding-top: 10px;
}

.stat__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text-muted);
}

.stat__value {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Section headers */

.section__header {
  margin-bottom: 24px;
}

.section__header--tight {
  margin-top: 26px;
  margin-bottom: 14px;
}

.section__title {
  margin: 0 0 6px;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.section__subtitle {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  max-width: 640px;
}

.section__title-sm {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.section__subtitle-sm {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* About section */

.section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.about__highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 16px;
  margin-top: 18px;
}

.about__item {
  background: rgba(15,23,42,0.92);
  border-radius: var(--radius-lg);
  padding: 12px 13px;
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: var(--shadow-subtle);
  font-size: 0.85rem;
  color: var(--text-soft);
}

.about__item p {
  margin: 6px 0 0;
}

.about__side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about__card {
  background: rgba(15,23,42,0.96);
  border-radius: var(--radius-lg);
  padding: 13px 13px 14px;
  border: 1px solid rgba(148,163,184,0.45);
  font-size: 0.86rem;
  color: var(--text-soft);
}

.about__card h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.about__card ul,
.about__card ol {
  margin: 0;
  padding-left: 18px;
}

.about__card li {
  margin-bottom: 5px;
}

.about__card--accent {
  background: radial-gradient(circle at top left, rgba(249,115,22,0.22), rgba(15,23,42,0.96));
}

/* Featured */

.featured {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.23), rgba(15,23,42,0.98));
  border-radius: var(--radius-xl);
  padding: 16px;
  border: 1px solid rgba(148,163,184,0.6);
  box-shadow: var(--shadow-soft);
}

.featured__thumb img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

.featured__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.featured__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.featured__title {
  margin: 2px 0 2px;
  font-size: 1.3rem;
}

.featured__title a {
  color: var(--text-main);
  text-decoration: none;
}

.featured__title a:hover {
  text-decoration: underline;
}

.featured__excerpt {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.featured__read {
  margin-top: 8px;
  font-size: 0.86rem;
  color: #e5e7eb;
  text-decoration: none;
}

.featured__read:hover {
  text-decoration: underline;
}

/* Latest grid */

.grid--latest {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 16px;
}

.card {
  background: rgba(15,23,42,0.95);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(15,23,42,0.9);
  border-color: rgba(99,102,241,0.8);
}

.card__thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.card__body {
  padding: 11px 12px 12px;
}

.card__title {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.card__title a {
  color: var(--text-main);
  text-decoration: none;
}

.card__title a:hover {
  text-decoration: underline;
}

.card__excerpt {
  margin: 0 0 6px;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Columns section */

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

.column {
  background: rgba(15,23,42,0.94);
  border-radius: var(--radius-lg);
  padding: 13px 13px 14px;
  border: 1px solid rgba(148,163,184,0.45);
  box-shadow: var(--shadow-subtle);
}

.column--highlight {
  border-color: rgba(249,115,22,0.8);
  box-shadow: 0 22px 60px rgba(248,113,113,0.6);
  background: radial-gradient(circle at top left, rgba(249,115,22,0.25), rgba(15,23,42,0.98));
}

.column__title {
  margin: 0 0 4px;
  font-size: 1rem;
}

.column__desc {
  margin: 0 0 9px;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.column__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Inline cards */

.inline-card {
  display: block;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.35);
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.inline-card:hover {
  background: rgba(15,23,42,0.99);
  border-color: rgba(99,102,241,0.8);
  transform: translateY(-1px);
}

.inline-card__title {
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 3px;
}

.inline-card__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Topics table */

.topics-table__wrapper {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148,163,184,0.4);
  overflow: hidden;
  background: rgba(15,23,42,0.95);
  box-shadow: var(--shadow-subtle);
}

.topics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.topics-table th,
.topics-table td {
  padding: 9px 11px;
  border-bottom: 1px solid rgba(15,23,42,0.9);
}

.topics-table thead {
  background: radial-gradient(circle at top left, rgba(99,102,241,0.34), rgba(15,23,42,0.98));
}

.topics-table th {
  text-align: left;
  font-weight: 500;
}

.topics-table tbody tr:nth-child(even) {
  background: rgba(15,23,42,0.9);
}

.topics-table tbody tr:nth-child(odd) {
  background: rgba(15,23,42,0.96);
}

/* CTA strip */

.cta-strip {
  background: radial-gradient(circle at top left, rgba(99,102,241,0.4), rgba(15,23,42,0.98));
  border-radius: var(--radius-xl);
  padding: 16px 18px;
  border: 1px solid rgba(148,163,184,0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-soft);
}

.cta-strip__text h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.cta-strip__text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.cta-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Footer */

.footer {
  padding: 32px 0 20px;
  background: #020617;
  border-top: 1px solid rgba(15,23,42,1);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 18px;
  font-size: 0.85rem;
}

.footer__grid h3,
.footer__grid h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.footer__grid p {
  margin: 0;
  color: var(--text-soft);
}

.footer__grid ul {
  margin: 0;
  padding-left: 16px;
}

.footer__grid li {
  margin-bottom: 4px;
}

.footer__grid a {
  color: var(--text-soft);
  text-decoration: none;
}

.footer__grid a:hover {
  color: #e5e7eb;
  text-decoration: underline;
}

.footer__bottom {
  margin-top: 16px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Utilities */

.empty {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Responsive */

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0,1fr);
  }
  .hero__right {
    justify-content: flex-start;
  }
  .hero__panel {
    max-width: 100%;
  }
  .section__grid {
    grid-template-columns: minmax(0,1fr);
  }
  .featured {
    grid-template-columns: minmax(0,1fr);
  }
  .columns {
    grid-template-columns: minmax(0,1fr);
  }
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 34px;
  }
  .hero__ctas {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__grid {
    grid-template-columns: minmax(0,1fr);
  }
}
