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

:root {
  --ink: #f7f7f2;
  --muted: #a5a7ad;
  --dim: #747780;
  --black: #070807;
  --panel: #111315;
  --panel-2: #17191c;
  --line: rgba(255,255,255,0.1);
  --green: #8bd977;
  --cyan: #62c9df;
  --amber: #e2b85f;
  --rose: #e1798f;
  --blue: #8da7ff;
}

html { scroll-behavior: smooth; }

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(140deg, rgba(98,201,223,0.08), transparent 32%),
    linear-gradient(320deg, rgba(226,184,95,0.07), transparent 36%),
    var(--black);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 48px;
  border-bottom: 1px solid var(--line);
  background: rgba(7,8,7,0.86);
  backdrop-filter: blur(18px);
}

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

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.18s ease;
}

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

.hero {
  padding: 88px 48px 58px;
  border-bottom: 1px solid var(--line);
}

.hero-inner, .site-grid, .section-inner, .article-shell, .footer-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.eyebrow {
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 980px;
  margin-top: 20px;
  font-size: clamp(2.9rem, 7.4vw, 6.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.75vw, 1.26rem);
}

.hero-actions, .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.05);
}

.button.primary {
  color: #061006;
  background: var(--green);
  border-color: transparent;
}

.site-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 52px 48px 92px;
}

.section-inner { padding: 72px 48px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin-top: 12px;
  max-width: 720px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.section-note {
  max-width: 380px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.article-card, .side-card, .product-card, .directory-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17,19,21,0.84);
}

.article-card {
  min-height: 278px;
  padding: 26px;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.article-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.24);
}

.article-card .meta, .article-meta, .side-card small {
  color: var(--dim);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 750;
}

.article-card h2, .article-card h3 {
  margin-top: 14px;
  font-size: 1.35rem;
  line-height: 1.22;
}

.article-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.96rem;
}

.sidebar {
  position: sticky;
  top: 84px;
  align-self: start;
  display: grid;
  gap: 14px;
}

.side-card {
  padding: 22px;
}

.side-card h2, .side-card h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
}

.side-card p, .side-card li {
  color: var(--muted);
  font-size: 0.92rem;
}

.side-card ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.side-card a {
  color: var(--cyan);
  text-decoration: none;
}

.side-card a:hover { text-decoration: underline; }

.product-grid, .directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  min-height: 292px;
  padding: 24px;
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.product-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
}

.tag {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.74rem;
  white-space: nowrap;
}

.product-card h3 {
  font-size: 1.32rem;
  line-height: 1.22;
}

.product-card p {
  margin-top: 12px;
  color: var(--muted);
}

.product-card .button-row {
  margin-top: 22px;
}

.directory-card {
  display: block;
  min-height: 116px;
  padding: 20px;
  text-decoration: none;
}

.directory-card strong {
  display: block;
}

.directory-card span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 760px) 320px;
  gap: 44px;
  padding: 66px 48px 92px;
}

.article-header {
  margin-bottom: 36px;
}

.article-header h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 6.5vw, 5.6rem);
}

.dek {
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.7vw, 1.22rem);
}

.article-body {
  display: grid;
  gap: 26px;
  color: #d9dbd4;
  font-size: 1.04rem;
}

.article-body h2 {
  margin-top: 18px;
  font-size: 1.8rem;
  line-height: 1.18;
  color: var(--ink);
}

.article-body h3 {
  margin-top: 8px;
  font-size: 1.24rem;
  color: var(--ink);
}

.article-body p, .article-body li {
  color: #d4d5cf;
}

.article-body ul, .article-body ol {
  display: grid;
  gap: 11px;
  padding-left: 22px;
}

.callout {
  padding: 22px;
  border: 1px solid rgba(139,217,119,0.28);
  border-radius: 8px;
  background: rgba(139,217,119,0.08);
}

.related {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 30px;
}

footer {
  padding: 46px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}

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

@media (max-width: 980px) {
  .site-nav { padding: 0 22px; }
  .nav-links { display: none; }
  .hero, .section-inner, .site-grid, .article-shell, footer { padding-left: 22px; padding-right: 22px; }
  .site-grid, .article-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 14px; }
}

@media (max-width: 680px) {
  h1 { font-size: 2.72rem; }
  .article-grid, .product-grid, .directory-grid { grid-template-columns: 1fr; }
  .hero-actions, .button-row { flex-direction: column; }
  .button { width: 100%; }
  .article-card, .product-card, .side-card { padding: 22px; }
}
