/* ── Reset & Variables ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #04060c;
  --surface:      #080c18;
  --surface2:     #0d1120;
  --surface3:     #121728;
  --border:       #1a1f36;
  --border2:      #242c48;
  --accent:       #00c2ff;
  --accent-dim:   #0096cc;
  --accent-glow:  rgba(0,194,255,0.15);
  --tool-accent:  #7c6bff;
  --pass:         #22d3a0;
  --pass-bg:      rgba(34,211,160,0.09);
  --warn:         #f5a623;
  --warn-bg:      rgba(245,166,35,0.09);
  --fail:         #ff5f5f;
  --fail-bg:      rgba(255,95,95,0.09);
  --text:         #dce2f0;
  --text-muted:   #6e7f9c;
  --text-dim:     #3e4c66;
  --mono:         'JetBrains Mono', 'Fira Code', monospace;
  --font-head:    'Montserrat', -apple-system, sans-serif;
  --font:         'Inter', -apple-system, 'Segoe UI', sans-serif;
  --radius:       12px;
  --radius-sm:    7px;
  --shadow:       0 4px 32px rgba(0,0,0,0.6);
  --shadow-sm:    0 2px 12px rgba(0,0,0,0.3);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.65; min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
code { font-family: var(--mono); background: var(--surface2); padding: 1px 5px; border-radius: 4px; font-size: 0.88em; }
pre { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; overflow-x: auto; }
pre code { background: none; padding: 0; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(4,6,12,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; height: 60px;
  display: flex; align-items: center; gap: 32px;
}
.logo { display: flex; align-items: center; font-family: var(--font-head); font-size: 22px; font-weight: 900; }
.logo-mark { color: var(--accent); }
.logo-team { color: var(--text); }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface2); }
.nav-link.active { color: var(--accent); }
.hamburger { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; margin-left: auto; }
.mobile-nav { display: none; flex-direction: column; background: var(--surface); border-top: 1px solid var(--border); padding: 8px 0; }
.mobile-nav a { padding: 12px 24px; display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 15px; }
.mobile-nav a:hover { color: var(--text); background: var(--surface2); }
.mobile-nav.open { display: flex; }

/* ── Ad strip ────────────────────────────────────────────────────────────── */
.ad-strip { background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 0; text-align: center; min-height: 100px; }
.sidebar-ad-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 4px; text-align: center; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 24px 80px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,194,255,0.07) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
}
.hero-glow {
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,194,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 780px; margin: 0 auto; text-align: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface2); border: 1px solid var(--border2);
  padding: 5px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  margin-bottom: 28px; letter-spacing: 0.3px;
}
.hero-title {
  font-family: var(--font-head); font-size: clamp(42px, 7vw, 78px);
  font-weight: 900; line-height: 1.05; margin-bottom: 20px; color: var(--text);
}
.hero-accent { color: var(--accent); }
.hero-sub { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; max-width: 540px; margin-left: auto; margin-right: auto; }
.hero-search { max-width: 560px; margin: 0 auto 24px; }
.hero-input-wrap {
  display: flex; align-items: center; gap: 0;
  background: var(--surface); border: 1.5px solid var(--border2);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.2s;
}
.hero-input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.hero-input-icon { padding: 0 14px; color: var(--text-muted); font-size: 18px; flex-shrink: 0; }
.hero-input-wrap input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 15px; font-family: var(--font); padding: 14px 0;
}
.hero-input-wrap input::placeholder { color: var(--text-dim); }
.hero-btn {
  background: var(--accent); border: none; color: #000; font-weight: 700;
  padding: 0 20px; height: 100%; cursor: pointer; font-size: 18px;
  transition: background 0.2s; flex-shrink: 0;
}
.hero-btn:hover { background: #33ccff; }
.hero-checks {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px;
  font-size: 13px; color: var(--text-muted);
}
.hero-checks span { display: flex; align-items: center; gap: 5px; }
.hero-checks i { color: var(--pass); }

/* ── Stats bar ────────────────────────────────────────────────────────────── */
.stats-bar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 20px 24px; }
.stats-inner { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.stat { text-align: center; padding: 8px 32px; }
.stat strong { display: block; font-size: 22px; font-weight: 800; color: var(--accent); font-family: var(--font-head); }
.stat span { font-size: 12px; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 80px 24px; }
.section-title { font-family: var(--font-head); font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 12px; }
.section-sub { color: var(--text-muted); font-size: 16px; max-width: 600px; margin-bottom: 48px; }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }

/* ── Features grid ────────────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 48px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.feature-icon.dns  { background: rgba(96,165,250,0.12); color: #60a5fa; }
.feature-icon.conn { background: rgba(34,211,160,0.12); color: var(--pass); }
.feature-icon.rep  { background: rgba(245,166,35,0.12); color: var(--warn); }
.feature-icon.adv  { background: rgba(167,139,250,0.12); color: #a78bfa; }
.feature-icon.tool { background: rgba(0,194,255,0.12);  color: var(--accent); }
.feature-icon.pdf  { background: rgba(255,95,95,0.12);  color: var(--fail); }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.cta-wrap { text-align: center; }

/* ── How it works ─────────────────────────────────────────────────────────── */
.how-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps { display: flex; align-items: flex-start; gap: 0; justify-content: center; flex-wrap: wrap; }
.step { text-align: center; max-width: 260px; padding: 20px; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent-glow);
  border: 2px solid var(--accent); color: var(--accent);
  font-size: 20px; font-weight: 800; font-family: var(--font-head);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text-muted); }
.step-arrow { color: var(--text-dim); font-size: 22px; align-self: center; padding: 0 8px; }

/* ── Blog preview ─────────────────────────────────────────────────────────── */
.blog-preview-section { border-top: 1px solid var(--border); }
.blog-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.blog-preview-card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color 0.2s, transform 0.15s;
}
.blog-preview-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.bpc-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--accent); margin-bottom: 10px; }
.bpc-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; line-height: 1.35; }
.bpc-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.bpc-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-dim); }
.bpc-ai { color: var(--tool-accent); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #000; font-weight: 700;
  padding: 11px 24px; border-radius: var(--radius-sm);
  font-size: 14px; border: none; cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  font-family: var(--font);
}
.btn-primary:hover { background: #33ccff; box-shadow: 0 0 20px rgba(0,194,255,0.3); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border2); padding: 10px 20px;
  border-radius: var(--radius-sm); font-size: 14px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s; font-family: var(--font);
}
.btn-outline:hover { color: var(--text); border-color: var(--text-muted); }

/* ── Page layout (blog, tools) ────────────────────────────────────────────── */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 40px 24px 80px; }
.page-header { margin-bottom: 32px; }
.page-title { font-family: var(--font-head); font-size: 34px; font-weight: 800; margin-bottom: 8px; }
.page-sub { color: var(--text-muted); font-size: 16px; }
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }

/* ── Topic filter ────────────────────────────────────────────────────────── */
.topic-filter { margin-bottom: 32px; }
.topic-label {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px;
}
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  transition: all 0.15s;
}
.topic-chip i { font-size: 14px; }
.topic-chip:hover { background: var(--surface2); border-color: var(--accent); color: var(--text); }
.topic-chip.active { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 600; }
.topic-chip.active i { color: #000; }

/* ── Posts grid ──────────────────────────────────────────────────────────── */
.posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color 0.15s, transform 0.15s;
}
.post-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.pc-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--accent); margin-bottom: 8px; }
.pc-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.pc-excerpt { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.6; }
.pc-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-dim); }
.pc-ai { color: var(--tool-accent); }
.post-ad-slot { grid-column: 1 / -1; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--text-muted); }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px; color: var(--text-muted);
  transition: all 0.15s;
}
.page-btn:hover, .page-btn.active { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 700; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.blog-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.widget-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.widget-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.widget-list a { font-size: 13px; color: var(--text-muted); transition: color 0.15s; }
.widget-list a:hover { color: var(--accent); }
.sidebar-ad { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; min-height: 280px; }
.sticky-ad { position: sticky; top: 76px; }

/* ── Blog post ────────────────────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb i { font-size: 11px; }
.post-article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.post-header { padding: 36px 40px 28px; border-bottom: 1px solid var(--border); }
.post-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 12px; }
.post-title { font-family: var(--font-head); font-size: clamp(22px, 4vw, 34px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.post-meta i { margin-right: 3px; }
.meta-ai { color: var(--tool-accent); }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { background: var(--surface2); border: 1px solid var(--border); padding: 2px 10px; border-radius: 999px; font-size: 12px; color: var(--text-muted); }
.post-content { padding: 36px 40px; }
.post-content h2 { font-family: var(--font-head); font-size: 22px; font-weight: 800; margin: 32px 0 12px; }
.post-content h3 { font-size: 18px; font-weight: 700; margin: 24px 0 10px; }
.post-content p { margin-bottom: 16px; color: var(--text); line-height: 1.75; }
.post-content ul, .post-content ol { margin: 0 0 16px 24px; }
.post-content li { margin-bottom: 6px; line-height: 1.65; }
.post-content a { color: var(--accent); text-decoration: underline; }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 14px; }
.post-content th, .post-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.post-content th { background: var(--surface2); font-weight: 600; }
.incontent-ad { margin: 32px 0; padding: 12px; background: var(--surface2); border-radius: var(--radius-sm); min-height: 90px; }
.post-footer { padding: 28px 40px; border-top: 1px solid var(--border); background: var(--surface2); }
.cta-box { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-icon { font-size: 32px; color: var(--accent); flex-shrink: 0; }
.cta-box strong { font-size: 16px; font-weight: 700; }
.cta-box p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.related-posts { margin-top: 32px; }
.related-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; transition: border-color 0.15s; }
.related-card:hover { border-color: var(--accent); }
.rc-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.rc-title { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 24px 0; margin-top: auto; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 48px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-brand { flex: 1; min-width: 200px; }
.footer-brand .logo-mark { font-family: var(--font-head); font-size: 20px; font-weight: 900; color: var(--accent); }
.footer-brand .logo-team { font-family: var(--font-head); font-size: 20px; font-weight: 900; }
.footer-brand p { color: var(--text-muted); font-size: 13px; margin-top: 8px; max-width: 260px; line-height: 1.6; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 8px; min-width: 120px; }
.footer-heading { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-dim); }
.footer-col a { font-size: 14px; color: var(--text-muted); transition: color 0.15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 16px 0; max-width: 1200px; margin: 0 auto; font-size: 12px; color: var(--text-dim); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-x2 { display: inline-flex; align-items: center; opacity: 0.7; transition: opacity 0.15s; }
.footer-x2:hover { opacity: 1; }
.footer-x2-logo { height: 28px; width: auto; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .sticky-ad { position: static; }
  .blog-preview-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 64px 20px 56px; }
  .features-grid, .blog-preview-grid, .posts-grid, .related-grid { grid-template-columns: 1fr; }
  .stats-inner { gap: 0; }
  .stat-divider { display: none; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding: 0; }
  .post-header, .post-content, .post-footer { padding: 24px 20px; }
  .cta-box { flex-direction: column; text-align: center; }
  .blog-sidebar { grid-template-columns: 1fr; }
  .section-header-row { flex-direction: column; align-items: flex-start; }
}
