:root {
  --ink: #f7fbff;
  --muted: #9fb0c8;
  --soft: #d8e4f4;
  --bg: #07111f;
  --panel: #0d1a2c;
  --line: rgba(255, 255, 255, 0.12);
  --blue: #55a7ff;
  --teal: #43d3c7;
  --green: #85d48f;
  --amber: #f0c76d;
  --coral: #ff8f70;
  --max: 1160px;
  --nav: 72px;
  --radius: 8px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #06101d 0%, #08192c 44%, #111827 100%);
  background-size: 72px 72px, 72px 72px, auto;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 17, 31, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #06101d;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  box-shadow: 0 14px 30px rgba(67, 211, 199, 0.24);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.nav-links a:hover {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  cursor: pointer;
}

.hero {
  padding: 74px 0 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 5vw, 5.1rem);
  font-weight: 900;
}

.lead {
  max-width: 760px;
  color: var(--soft);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.section {
  padding: 74px 0;
}

.section.alt {
  background: rgba(255, 255, 255, 0.035);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
}

.section-title {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 900;
}

.section-copy,
.card p,
.article-section p,
.faq-card p,
.related-card p,
.callout p {
  color: var(--muted);
  font-size: 0.96rem;
}

.hero-actions,
.filter-row,
.tag-row,
.tool-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn,
.filter-btn,
.tag,
.tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.065);
  color: #eef6ff;
  font-size: 0.88rem;
  font-weight: 750;
}

.btn {
  min-height: 46px;
  padding: 12px 18px;
  border-color: transparent;
  font-weight: 850;
}

.btn-primary {
  color: #06101d;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  box-shadow: 0 18px 34px rgba(67, 211, 199, 0.2);
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line);
}

.filter-btn {
  cursor: pointer;
}

.filter-btn.active {
  color: #06101d;
  border-color: transparent;
  background: linear-gradient(135deg, var(--teal), var(--amber));
}

.article-grid,
.related-grid,
.faq-grid,
.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card,
.article-section,
.faq-card,
.related-card,
.callout,
.cta-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 26, 44, 0.78);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.card,
.related-card,
.faq-card,
.callout {
  padding: 20px;
}

.card {
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover,
.related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(67, 211, 199, 0.48);
  background: rgba(16, 33, 55, 0.86);
}

.card h2,
.related-card h3,
.faq-card h3,
.callout h3 {
  font-size: 1.18rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.signal {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #07111f;
  font-weight: 900;
  background: var(--teal);
}

.signal.blue { background: var(--blue); }
.signal.green { background: var(--green); }
.signal.amber { background: var(--amber); }
.signal.coral { background: var(--coral); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  gap: 20px;
  align-items: start;
}

.article-stack {
  display: grid;
  gap: 16px;
}

.article-section {
  padding: 24px;
}

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

.article-section ul {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-left: 18px;
  color: var(--soft);
}

.sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.callout {
  display: grid;
  gap: 12px;
}

.cta-panel {
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.footer {
  padding: 28px 0 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .section-head,
  .article-layout,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .article-grid,
  .related-grid,
  .faq-grid,
  .visual-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar {
    position: static;
  }
}

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

  .brand span:last-child {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    padding: 14px;
    align-items: stretch;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 17, 31, 0.98);
  }

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

  .nav-links a {
    display: block;
    padding: 8px 0;
  }

  .hero {
    padding: 42px 0 44px;
  }

  .hero-actions,
  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .article-grid,
  .related-grid,
  .faq-grid,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }
}
