:root {
  color-scheme: light;
  --ink: #17202a;
  --ink-strong: #0b1117;
  --muted: #66717f;
  --paper: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #f0f3f6;
  --line: #dfe4ea;
  --line-strong: #c7d0da;
  --orange: #f38020;
  --blue: #2563eb;
  --teal: #0f8f8c;
  --green: #16835f;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(246, 247, 249, 0.96)),
    radial-gradient(circle at 8% 0%, rgba(243, 128, 32, 0.08), transparent 30%),
    radial-gradient(circle at 88% 4%, rgba(37, 99, 235, 0.07), transparent 34%),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  content: "";
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink-strong);
  letter-spacing: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  font-weight: 880;
  line-height: 0.92;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 4.5vw, 4.2rem);
  font-weight: 830;
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.06rem;
  line-height: 1.28;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(223, 228, 234, 0.86);
  background: rgba(246, 247, 249, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-strong);
  font-weight: 820;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.brand-text {
  font-size: 1rem;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 24px);
  font-size: 0.9rem;
  font-weight: 720;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(32px, 7vw, 84px);
  align-items: center;
  max-width: calc(var(--max) + 96px);
  margin: 0 auto;
  padding: clamp(54px, 8vw, 108px) clamp(18px, 4vw, 48px) clamp(44px, 7vw, 84px);
}

.eyebrow,
.tag,
.metrics span,
.module-grid span,
.compare-grid span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-intro {
  max-width: 660px;
  color: #374151;
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-strong);
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  border-color: var(--ink-strong);
  background: var(--ink-strong);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.76);
}

.button:hover,
.filter-button:hover {
  transform: translateY(-1px);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-proof span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 720;
}

.signal-panel {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-strong);
  box-shadow: var(--shadow);
}

.signal-map {
  position: relative;
  min-height: clamp(330px, 38vw, 500px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 50% 48%, rgba(243, 128, 32, 0.28), transparent 18%),
    linear-gradient(145deg, #101820, #071018);
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.signal-map::before,
.signal-map::after {
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.signal-map::after {
  inset: 30%;
}

.signal-ring {
  position: absolute;
  inset: 50%;
  width: 0;
  height: 0;
  border: 1px solid rgba(243, 128, 32, 0.42);
  border-radius: 50%;
  animation: pulse 5.5s ease-out infinite;
}

.ring-two {
  border-color: rgba(37, 99, 235, 0.36);
  animation-delay: 1.4s;
}

.ring-three {
  border-color: rgba(15, 143, 140, 0.36);
  animation-delay: 2.8s;
}

.signal-node {
  position: absolute;
  display: grid;
  min-width: 82px;
  min-height: 38px;
  place-items: center;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 780;
  backdrop-filter: blur(12px);
}

.core-node {
  top: 50%;
  left: 50%;
  min-width: 92px;
  min-height: 92px;
  border-color: rgba(243, 128, 32, 0.46);
  border-radius: 50%;
  background: #05080b;
  transform: translate(-50%, -50%);
}

.core-node span {
  font-size: 1.45rem;
}

.core-node small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.58rem;
  font-weight: 760;
  text-transform: uppercase;
}

.node-access {
  top: 18%;
  left: 12%;
}

.node-network {
  top: 19%;
  right: 11%;
}

.node-data {
  bottom: 16%;
  left: 16%;
}

.node-ai {
  right: 17%;
  bottom: 14%;
}

.scanline,
.neural-layer::before,
.threat-orbit {
  display: none;
}

.neural-layer span {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(243, 128, 32, 0.12);
}

.telemetry-stack {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 6px;
  min-width: 176px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(5, 8, 11, 0.7);
  color: rgba(255, 255, 255, 0.75);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
}

figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.metrics,
.section,
.subscribe,
.site-footer {
  max-width: calc(var(--max) + 96px);
  margin: 0 auto;
  padding-right: clamp(18px, 4vw, 48px);
  padding-left: clamp(18px, 4vw, 48px);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 24px;
}

.metrics article {
  min-height: 148px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.metrics strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-strong);
  font-size: 1.06rem;
}

.metrics p,
.section-heading p,
.pattern-card p,
.post-card p,
.community-columns p,
.site-footer p,
.module-grid p,
.compare-grid p,
.article-lede,
.collection-hero p,
.contact-card p {
  color: var(--muted);
}

.section {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.section + .section,
.subscribe,
.site-footer {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 30px;
}

.section-heading p {
  max-width: 660px;
  font-size: 1.02rem;
}

.pattern-grid,
.post-list,
.community-columns,
.module-grid,
.compare-grid,
.playbook-strip {
  display: grid;
  gap: 14px;
}

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

.post-list,
.community-columns,
.playbook-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.pattern-card,
.post-card,
.community-columns article,
.module-grid article,
.compare-grid article,
.contact-card,
.phase-table > div,
.playbook-strip article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pattern-card:hover,
.post-card:hover,
.community-columns article:hover,
.module-grid article:hover,
.compare-grid article:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.pattern-card,
.post-card {
  min-height: 206px;
}

.post-card {
  display: flex;
  flex-direction: column;
}

.post-card[hidden] {
  display: none;
}

.post-card a,
.module-grid a,
.compare-grid a {
  margin-top: auto;
  color: var(--blue);
  font-weight: 760;
  text-decoration: none;
}

.post-card a:hover,
.module-grid a:hover,
.compare-grid a:hover {
  text-decoration: underline;
}

.library {
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.library > * {
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-weight: 720;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  border-color: var(--ink-strong);
  background: var(--ink-strong);
  color: #fff;
}

.contact-section,
.subscribe {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: start;
}

.contact-card {
  display: grid;
  justify-items: start;
}

.telegram-qr {
  width: min(220px, 100%);
  height: auto;
  margin: 10px 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.subscribe {
  padding-top: 42px;
  padding-bottom: 42px;
}

.subscribe-form {
  display: grid;
  gap: 10px;
  align-content: start;
}

.subscribe-form label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
}

.input-row {
  display: flex;
  gap: 8px;
}

input {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  padding-bottom: 28px;
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--blue);
  font-weight: 720;
  text-decoration: none;
}

.collection-hero,
.article-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 92px) clamp(18px, 4vw, 48px);
}

.collection-hero {
  border-bottom: 1px solid var(--line);
}

.collection-hero h1,
.article-page h1 {
  max-width: 880px;
  font-size: clamp(2.9rem, 6.8vw, 5.8rem);
}

.collection-hero p,
.article-lede {
  max-width: 760px;
  font-size: 1.1rem;
}

.article-page {
  max-width: 940px;
}

.article-page h2 {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.article-page a {
  color: var(--blue);
  font-weight: 720;
}

.phase-table {
  display: grid;
  gap: 10px;
  margin: 20px 0 28px;
}

.phase-table > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.phase-table strong {
  color: var(--ink-strong);
}

.phase-table span {
  color: var(--muted);
}

.guide-section {
  padding-top: 36px;
}

@keyframes pulse {
  0% {
    width: 0;
    height: 0;
    opacity: 0.82;
    transform: translate(-50%, -50%);
  }
  100% {
    width: 380px;
    height: 380px;
    opacity: 0;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 1020px) {
  .hero,
  .contact-section,
  .subscribe {
    grid-template-columns: 1fr;
  }

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

  .post-list,
  .community-columns,
  .playbook-strip,
  .metrics {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .top-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: clamp(3rem, 18vw, 4.6rem);
  }

  .hero,
  .collection-hero,
  .article-page {
    padding-right: 18px;
    padding-left: 18px;
  }

  .pattern-grid,
  .module-grid,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .phase-table > div,
  .input-row {
    grid-template-columns: 1fr;
  }

  .input-row {
    display: grid;
  }

  .signal-panel {
    display: none;
  }

  .site-footer {
    flex-direction: column;
  }
}

/* Cloudflare Blog-inspired editorial pass */
:root {
  --paper: #ffffff;
  --surface-soft: #f7f7f8;
  --line: #e5e7eb;
  --line-strong: #cfd6df;
  --max: 1060px;
  --shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

body {
  background: #fff;
  font-size: 15px;
}

body::before {
  display: none;
}

.site-header {
  padding: 11px clamp(18px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.94);
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.brand-text {
  font-size: 0.96rem;
}

.top-nav {
  font-size: 0.86rem;
}

h1 {
  max-width: 720px;
  font-size: clamp(2.35rem, 4.6vw, 4.1rem);
  font-weight: 820;
  line-height: 1;
}

h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.45rem);
  font-weight: 780;
  line-height: 1.1;
}

.hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
  max-width: calc(var(--max) + 72px);
  gap: clamp(24px, 4vw, 46px);
  padding: clamp(34px, 5vw, 58px) clamp(18px, 4vw, 36px) clamp(30px, 4vw, 48px);
}

.hero-intro {
  max-width: 620px;
  font-size: 1rem;
}

.signal-panel {
  padding: 12px;
  box-shadow: none;
}

.signal-map {
  min-height: clamp(230px, 25vw, 320px);
}

.metrics {
  gap: 10px;
  padding-bottom: 14px;
}

.metrics article {
  min-height: 0;
}

.section {
  padding-top: clamp(34px, 5vw, 54px);
  padding-bottom: clamp(34px, 5vw, 54px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 20px;
}

.collection-hero {
  max-width: 940px;
  padding-top: clamp(30px, 4vw, 48px);
  padding-bottom: clamp(28px, 4vw, 42px);
}

.collection-hero h1 {
  max-width: 720px;
  font-size: clamp(2rem, 4vw, 3.15rem);
}

.collection-hero p {
  max-width: 680px;
  font-size: 0.98rem;
}

.article-page {
  max-width: 780px;
  padding-top: clamp(30px, 4vw, 48px);
  padding-bottom: clamp(36px, 5vw, 64px);
}

.article-page h1 {
  font-size: clamp(2.1rem, 4.3vw, 3.35rem);
}

.article-lede {
  font-size: 1rem;
}

.article-page h2 {
  margin-top: 30px;
  padding-top: 16px;
  font-size: clamp(1.32rem, 2.1vw, 1.82rem);
}

.pattern-card,
.post-card,
.community-columns article,
.module-grid article,
.compare-grid article,
.contact-card,
.phase-table > div,
.playbook-strip article,
.metrics article {
  padding: 16px;
  box-shadow: none;
}

.pattern-card,
.post-card {
  min-height: 154px;
}

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

.pattern-grid,
.module-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.button {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.eyebrow,
.tag,
.metrics span,
.module-grid span,
.compare-grid span {
  margin-bottom: 9px;
  color: var(--orange);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
}

@media (max-width: 1020px) {
  .hero,
  .post-list {
    grid-template-columns: 1fr;
  }
}

/* Compact production polish */
:root {
  --max: 1120px;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

body {
  font-size: 15.5px;
  line-height: 1.55;
}

h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(2.7rem, 5.8vw, 4.7rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  line-height: 1.06;
}

.site-header {
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand-mark {
  width: 32px;
  height: 32px;
}

.top-nav {
  gap: clamp(10px, 1.6vw, 20px);
}

.hero {
  min-height: auto;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: clamp(28px, 5vw, 64px);
  padding-top: clamp(42px, 6vw, 76px);
  padding-bottom: clamp(34px, 5vw, 60px);
}

.hero-intro,
.collection-hero p,
.article-lede {
  font-size: 1.02rem;
}

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

.signal-panel {
  padding: 14px;
}

.signal-map {
  min-height: clamp(280px, 31vw, 390px);
}

.metrics {
  padding-bottom: 18px;
}

.metrics article,
.pattern-card,
.post-card,
.community-columns article,
.module-grid article,
.compare-grid article,
.contact-card,
.phase-table > div,
.playbook-strip article {
  padding: 18px;
}

.section {
  padding-top: clamp(42px, 6vw, 68px);
  padding-bottom: clamp(42px, 6vw, 68px);
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading p {
  font-size: 0.98rem;
}

.collection-hero,
.article-page {
  padding-top: clamp(38px, 5vw, 66px);
  padding-bottom: clamp(34px, 5vw, 58px);
}

.collection-hero h1,
.article-page h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.article-page {
  max-width: 900px;
}

.article-page h2 {
  margin-top: 34px;
  padding-top: 18px;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
}

.pattern-grid,
.module-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pattern-card,
.post-card {
  min-height: 176px;
}

.button,
input {
  min-height: 38px;
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  h1,
  .collection-hero h1,
  .article-page h1 {
    font-size: clamp(2.35rem, 12vw, 3.35rem);
  }

  .pattern-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }
}
