:root {
  --bg: #050a11;
  --bg-soft: rgba(9, 20, 32, 0.78);
  --panel: rgba(7, 17, 28, 0.9);
  --line: rgba(191, 214, 236, 0.16);
  --line-strong: rgba(255, 255, 255, 0.26);
  --text: #f1f6ff;
  --muted: #91a8c0;
  --accent: #74f5c2;
  --accent-strong: #1fd49a;
  --accent-warm: #d6a46d;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
  --gold-glow: rgba(214, 164, 109, 0.22);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(116, 245, 194, 0.2), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(214, 164, 109, 0.16), transparent 18%),
    linear-gradient(180deg, #08121d 0%, #03070c 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 52%, transparent 100%);
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.status-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 0 8px;
  color: rgba(241, 246, 255, 0.62);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 12, 20, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  box-shadow: 0 0 20px rgba(116, 245, 194, 0.45);
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.8rem;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a:last-child {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

main {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

section {
  position: relative;
}

.hero,
.featured-grid,
.trends-section,
.library-section,
.spotlight-section,
.newsletter-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(11, 21, 33, 0.96), rgba(6, 13, 20, 0.96)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 48%);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 24px;
  overflow: hidden;
  padding: 46px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: calc(var(--radius-xl) - 10px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -90px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 245, 194, 0.26), transparent 68%);
}

.eyebrow,
.card-tag,
.article-meta,
.trend-index,
.signal-header,
.featured-note p {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow,
.featured-note p,
.article-meta,
.signal-header,
.card-tag {
  color: #9eeecf;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.hero-badges span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(241, 246, 255, 0.84);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero h1,
.section-heading h2,
.spotlight-panel h2,
.newsletter-copy h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.98;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 6vw, 5.4rem);
  text-wrap: balance;
}

.hero-text,
.feature-card p,
.trend-card p,
.article-card p,
.spotlight-panel p,
.spotlight-list p,
.newsletter-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions,
.hero-metrics,
.featured-grid,
.trends-grid,
.article-grid,
.spotlight-section,
.newsletter-section {
  display: grid;
}

.hero-actions {
  grid-auto-flow: column;
  justify-content: start;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  color: #021017;
  background: linear-gradient(135deg, var(--accent), #93ffd6);
  box-shadow: 0 16px 40px rgba(31, 212, 154, 0.22);
}

.button-secondary {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.hero-metrics li,
.issue-card,
.signal-card,
.featured-note,
.feature-card,
.trend-card,
.article-card,
.spotlight-panel,
.spotlight-list > div {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

.hero-metrics li {
  padding: 18px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.5rem;
  font-family: "Space Grotesk", sans-serif;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.issue-card,
.signal-card,
.featured-note {
  padding: 24px;
}

.issue-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(214, 164, 109, 0.14), transparent 55%),
    rgba(9, 20, 32, 0.92);
}

.issue-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -40px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
}

.issue-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  color: rgba(241, 246, 255, 0.58);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.issue-card h2,
.featured-note h2 {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.14;
}

.signal-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.signal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(116, 245, 194, 0.12);
}

.signal-list {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.signal-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.signal-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.featured-grid {
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 18px;
  padding: 18px;
}

.feature-card {
  padding: 26px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature-card h2,
.feature-card h3,
.article-card h3,
.trend-card h3 {
  margin-top: 10px;
  margin-bottom: 0;
  font-family: "Space Grotesk", sans-serif;
}

.feature-lead {
  background:
    linear-gradient(135deg, rgba(214, 164, 109, 0.1), transparent 36%),
    linear-gradient(135deg, rgba(12, 29, 44, 0.96), rgba(20, 43, 62, 0.96));
}

.feature-card:hover,
.trend-card:hover,
.spotlight-list > div:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.feature-card a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.trends-section,
.library-section {
  padding: 32px;
}

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

.section-heading h2,
.spotlight-panel h2,
.newsletter-copy h2 {
  font-size: clamp(2rem, 3vw, 3.1rem);
}

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

.trend-card {
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.trend-index {
  color: var(--accent-warm);
  font-size: 0.9rem;
  font-weight: 800;
}

.library-heading {
  align-items: center;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.filter-chip.active {
  color: #051017;
  background: var(--accent);
  border-color: transparent;
}

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

.article-card {
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.article-card.is-hidden {
  display: none;
}

.spotlight-section {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  padding: 18px;
}

.spotlight-panel,
.spotlight-list > div {
  padding: 28px;
}

.spotlight-list {
  display: grid;
  gap: 16px;
}

.spotlight-list strong {
  display: inline-block;
  margin-bottom: 8px;
  font-family: "Space Grotesk", sans-serif;
}

.newsletter-section {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(214, 164, 109, 0.09), transparent 42%),
    linear-gradient(180deg, rgba(11, 21, 33, 0.96), rgba(6, 13, 20, 0.96));
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 12px;
}

.newsletter-form input {
  width: min(340px, 100%);
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.newsletter-form input::placeholder {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 980px) {
  .status-strip {
    flex-wrap: wrap;
  }

  .hero,
  .featured-grid,
  .trends-grid,
  .article-grid,
  .spotlight-section,
  .newsletter-section {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }

  .section-heading,
  .library-heading {
    align-items: start;
    flex-direction: column;
  }

  .newsletter-form {
    width: 100%;
  }

  .newsletter-form input {
    flex: 1;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .status-strip {
    padding: 0 2px;
    gap: 10px;
    font-size: 0.72rem;
  }

  .topbar {
    align-items: start;
    border-radius: 28px;
    padding: 16px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(5, 12, 20, 0.96);
  }

  .nav.is-open {
    display: flex;
  }

  .hero,
  .trends-section,
  .library-section,
  .newsletter-section {
    padding: 24px;
  }

  .hero {
    padding: 28px 24px;
  }

  .hero-actions {
    grid-auto-flow: row;
  }

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

  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-form input,
  .button {
    width: 100%;
  }
}
