:root {
  color-scheme: dark;
  --bg: #0f111a;
  --bg-alt: #111827;
  --panel: #161b26;
  --border: #2a3140;
  --text: #e6edf3;
  --muted: #9aa4b2;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.15);
}

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

html {
  scroll-behavior: auto;
  scroll-padding-top: 100px;
}

body {
  font-family: "Segoe UI", "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 17, 26, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}

.header-logo {
  height: 100px;
  width: auto;
  margin-right: 0.75rem;
  background: transparent;
  mix-blend-mode: screen;
}

.site-title {
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.section-note {
  margin: 0.75rem 0 1.75rem;
  padding: 0.75rem 1rem;
  background: rgba(249, 115, 22, 0.12);
  border-left: 3px solid #f97316;
  border-radius: 6px;
  color: #fdba74;
  font-style: normal;
}

.setup-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.75rem 0 2rem;
}

.burp-setup .writeup-section p,
.burp-setup .writeup-section ol,
.burp-setup .writeup-section ul,
.burp-setup .writeup-section blockquote {
  margin: 1.5rem 0;
}

.burp-setup .setup-link {
  color: #f97316;
  font-weight: 600;
}

.burp-setup .setup-link:hover {
  color: #fb923c;
}

.hero {
  padding: 6rem 0 4rem;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.2), transparent 50%);
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.hero-copy {
  max-width: 560px;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #0b1020;
}

.btn.ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
}

.download-btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-btn:hover,
.download-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.highlight-link {
  color: #f97316;
  font-weight: 600;
}

.highlight-link:hover,
.highlight-link:focus {
  color: #fb923c;
}

.adlab-users-page .writeup-section h3,
.adlab-users-page .writeup-section h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.adlab-users-page .writeup-section p,
.adlab-users-page .writeup-section pre,
.adlab-users-page .writeup-section ul,
.adlab-users-page .writeup-section ol {
  margin: 1.25rem 0;
}

.adlab-users-page .adlab-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.75rem 0 2rem;
}

.content-section {
  padding: 4rem 0;
}

.content-section.alt {
  background: var(--bg-alt);
}

.content-section h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 10px 25px rgba(10, 12, 20, 0.35);
}

.card h4 {
  font-size: 1.2rem;
}

.card p {
  color: var(--muted);
  flex: 1;
}

.card a {
  color: var(--accent);
  font-weight: 600;
}

.walkthrough-layout {
  position: relative;
}

.walkthrough-sidebar {
  position: fixed;
  top: 120px;
  left: 1rem;
  width: var(--walkthrough-sidebar-width, 210px);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  z-index: 100;
  box-shadow: 0 10px 25px rgba(10, 12, 20, 0.35);
}

.walkthrough-sidebar-title {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.walkthrough-sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.walkthrough-sidebar-list a {
  display: block;
  color: var(--muted);
  line-height: 1.4;
  transition: color 0.2s ease, transform 0.2s ease;
}

.walkthrough-sidebar-list a:hover,
.walkthrough-sidebar-list a:focus,
.walkthrough-sidebar-list a.is-active {
  color: var(--text);
  transform: translateX(2px);
}

.walkthrough-main {
  margin-left: calc(var(--walkthrough-sidebar-width, 210px) + 3rem);
  min-width: 0;
}

.index-with-sidebar main {
  margin-left: calc(var(--walkthrough-sidebar-width, 210px) + 3rem);
}

.index-section-sidebar {
  left: 1rem;
}

@media (max-width: 960px) {
  .walkthrough-layout {
    position: static;
  }

  .walkthrough-sidebar {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    max-height: none;
    margin-bottom: 1.5rem;
  }

  .walkthrough-main {
    margin-left: 0;
  }

  .index-with-sidebar main {
    margin-left: 0;
  }

  .index-section-sidebar {
    position: static;
    width: min(1100px, 90vw);
    margin: 1rem auto 0;
    left: auto;
    top: auto;
    max-height: none;
  }
}
.tool-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
  color: var(--muted);
}

.tool-list li {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  border-radius: 12px;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
}

.breadcrumbs {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--accent);
}

.writeup-article {
  padding-bottom: 4rem;
}

.writeup-meta {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
  color: var(--muted);
}

.writeup-section {
  margin-bottom: 2.5rem;
}

.writeup-section h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.writeup-section h4 {
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
}

.writeup-list {
  list-style: disc;
  padding-left: 1.2rem;
  color: var(--muted);
}

.writeup-note {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  color: var(--muted);
}

.contact-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

pre {
  background: #0b0f1a;
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.9rem;
  color: #d1d9e6;
}

code {
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", monospace;
}

figure {
  margin: 1.5rem 0;
}

figure img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

figure figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .contact-header {
    align-items: flex-start;
  }

  .contact-avatar {
    width: 72px;
    height: 72px;
  }
}
