:root {
  --bg: #061427;
  --bg-soft: #0c2342;
  --panel: rgba(10, 27, 50, 0.82);
  --panel-strong: rgba(9, 22, 40, 0.92);
  --text: #edf4ff;
  --muted: #aac2db;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #23d18b;
  --accent-strong: #ffd24a;
  --danger: #ff6b6b;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  --radius: 22px;
  --radius-sm: 16px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Instrument Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(35, 209, 139, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 210, 74, 0.16), transparent 24%),
    linear-gradient(180deg, #061427 0%, #0a1d36 48%, #08182d 100%);
  min-height: 100vh;
}

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

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

img {
  max-width: 100%;
}

.topline {
  padding: 0.8rem 1rem;
  text-align: center;
  font-size: 0.92rem;
  color: #d8e9fa;
  background: linear-gradient(90deg, rgba(35, 209, 139, 0.18), rgba(255, 210, 74, 0.16));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header,
.page-shell,
.site-footer {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0 1rem;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand span {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.site-nav a {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.93rem;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  border-color: rgba(35, 209, 139, 0.32);
  background: rgba(35, 209, 139, 0.12);
}

.page-shell {
  padding: 1rem 0 3.5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1.4rem;
  margin-bottom: 1.6rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 210, 74, 0.14);
  color: #fff3bf;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), #1eabff);
  color: #03203f;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.button:hover {
  transform: translateY(-2px);
}

.hero-side {
  padding: 1.8rem;
  display: grid;
  gap: 0.9rem;
}

.stat-card,
.signal-card,
.comment-card,
.link-card,
.text-card {
  padding: 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.stat-card strong,
.signal-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.stat-card span,
.signal-card span,
.comment-card span,
.text-card span {
  color: var(--muted);
  line-height: 1.55;
}

.content-grid,
.home-grid,
.comment-grid,
.footer-links {
  display: grid;
  gap: 1rem;
}

.content-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.7fr);
  align-items: start;
}

.article-card,
.side-stack {
  padding: 1.8rem;
}

.article-card h2,
.side-stack h2,
.section-title {
  margin: 0 0 1rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.article-card p {
  margin: 0 0 1rem;
  color: #ddeaf8;
  line-height: 1.8;
}

.home-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.3rem;
}

.link-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(35, 209, 139, 0.35);
}

.link-card strong {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
}

.link-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0 0;
}

.chip {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #f1f7ff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.signal-list {
  display: grid;
  gap: 0.9rem;
}

.comment-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.1rem;
}

.comment-card strong {
  display: block;
  margin-bottom: 0.35rem;
}

.comment-card small {
  display: inline-block;
  margin-top: 0.55rem;
  color: #8cb7d7;
}

.site-footer {
  margin-bottom: 2rem;
  padding: 1.8rem;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.4rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  line-height: 1.7;
}

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

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  margin: 1.3rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

@media (max-width: 1100px) {
  .hero,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 84px;
    left: 1rem;
    right: 1rem;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(5, 18, 35, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }

  body.nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
  }

  .hero-copy,
  .hero-side,
  .article-card,
  .side-stack,
  .site-footer {
    padding: 1.3rem;
  }
}

@media (max-width: 640px) {
  .topline {
    font-size: 0.85rem;
  }

  .site-header,
  .page-shell,
  .site-footer {
    width: min(calc(100% - 1rem), var(--max));
  }

  .home-grid,
  .comment-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .button {
    width: 100%;
  }
}
