/* ============================================================
   GhostSite Theme — Main CSS
   ============================================================ */

:root {
  --c-bg:        #0a0a0f;
  --c-surface:   #111118;
  --c-surface-2: #1a1a24;
  --c-border:    #2a2a38;
  --c-text:      #e8e8f0;
  --c-muted:     #8888a8;
  --c-accent:    #7c6cff;
  --c-accent-h:  #9b8dff;
  --c-bad:       #ff4d6d;
  --c-warn:      #ffb347;
  --c-good:      #4dffb4;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;
  --radius:      12px;
  --radius-sm:   6px;
  --max-w:       1160px;
  --header-h:    64px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Typography ---- */
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
p  { color: var(--c-muted); }
strong { color: var(--c-text); }

/* ---- Layout ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--c-accent);
  color: #fff;
  padding: 10px 20px;
}
.btn-primary:hover { background: var(--c-accent-h); transform: translateY(-1px); }
.btn-outline {
  border-color: var(--c-border);
  color: var(--c-text);
  padding: 10px 20px;
  background: transparent;
}
.btn-outline:hover { border-color: var(--c-accent); color: var(--c-accent); }
.btn-ghost {
  color: var(--c-muted);
  padding: 10px 20px;
  background: transparent;
}
.btn-ghost:hover { color: var(--c-text); }
.btn-sm { font-size: 0.875rem; padding: 8px 16px; }
.btn-lg { font-size: 1rem; padding: 14px 28px; }
.btn-xl { font-size: 1.1rem; padding: 16px 36px; border-radius: var(--radius); }
.btn-block { width: 100%; justify-content: center; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-text);
  flex-shrink: 0;
}
.site-nav { flex: 1; }
.nav-list {
  display: flex;
  gap: 4px;
}
.nav-list a {
  font-size: 0.9rem;
  color: var(--c-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}
.nav-list a:hover { color: var(--c-text); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ---- Hero ---- */
.hero {
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-content { max-width: 560px; }
.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: rgba(124, 108, 255, 0.12);
  border: 1px solid rgba(124, 108, 255, 0.3);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero-title {
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #a8a8cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem;
  line-height: 1.65;
  margin-bottom: 32px;
  color: var(--c-muted);
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-note {
  font-size: 0.85rem;
  color: var(--c-muted);
  opacity: 0.7;
}

/* Ghost card visual */
.ghost-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}
.ghost-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(124,108,255,0.3), transparent 60%);
  pointer-events: none;
}
.ghost-icon {
  color: var(--c-accent);
  margin-bottom: 20px;
  opacity: 0.8;
}
.ghost-metrics { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}
.metric.bad {
  background: rgba(255, 77, 109, 0.1);
  border: 1px solid rgba(255, 77, 109, 0.2);
}
.metric-label { color: var(--c-muted); }
.metric-val { color: var(--c-bad); font-weight: 600; }
.ghost-cta-hint {
  font-size: 0.9rem;
  color: var(--c-accent);
  font-weight: 600;
}

/* ---- Social Proof ---- */
.social-proof {
  padding: 28px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
}
.social-proof .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.proof-stat { font-size: 1rem; color: var(--c-text); }
.proof-stat strong { font-size: 1.5rem; color: var(--c-accent); }
.proof-divider { width: 1px; height: 32px; background: var(--c-border); }
.proof-quote { font-size: 0.95rem; font-style: italic; color: var(--c-muted); }

/* ---- Sections shared ---- */
.section-title { margin-bottom: 12px; }
.section-sub { font-size: 1.1rem; margin-bottom: 56px; color: var(--c-muted); }

/* ---- How it works ---- */
.how-it-works { padding: 96px 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(124, 108, 255, 0.15);
  border: 2px solid rgba(124, 108, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-accent);
  margin-bottom: 20px;
}
.step h3 { margin-bottom: 10px; color: var(--c-text); }
.step p { font-size: 0.95rem; }

/* ---- Questions ---- */
.questions { padding: 96px 0; background: var(--c-surface); }
.question-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.q-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s;
}
.q-card:hover { border-color: var(--c-accent); }
.q-icon { font-size: 2rem; margin-bottom: 16px; }
.q-card h3 { color: var(--c-text); margin-bottom: 12px; }
.q-card p { font-size: 0.95rem; margin-bottom: 16px; }
.q-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-accent);
  background: rgba(124, 108, 255, 0.12);
  border: 1px solid rgba(124, 108, 255, 0.25);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ---- What you get ---- */
.what-you-get { padding: 96px 0; }
.report-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feature-list li { display: flex; align-items: flex-start; gap: 16px; }
.feature-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(77, 255, 180, 0.15);
  border: 1px solid rgba(77, 255, 180, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--c-good);
}
.feature-list li div strong { display: block; color: var(--c-text); margin-bottom: 2px; }
.feature-list li div span { font-size: 0.875rem; color: var(--c-muted); }

/* Mock report */
.mock-report {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.875rem;
}
.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--c-surface-2);
  border-bottom: 1px solid var(--c-border);
}
.mock-url { font-family: var(--font-mono); color: var(--c-muted); font-size: 0.8rem; }
.mock-score { font-weight: 700; font-size: 1rem; }
.score-bad { color: var(--c-bad); }
.mock-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--c-border);
}
.mock-item:last-child { border-bottom: none; }
.mock-severity {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.mock-item.critical .mock-severity { background: rgba(255,77,109,0.15); color: var(--c-bad); }
.mock-item.warning  .mock-severity { background: rgba(255,179,71,0.15); color: var(--c-warn); }
.mock-item.info     .mock-severity { background: rgba(136,136,168,0.15); color: var(--c-muted); }

/* ---- Pricing ---- */
.pricing { padding: 96px 0; background: var(--c-surface); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 400px);
  gap: 24px;
  justify-content: center;
}
.pricing-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
}
.pricing-card--featured {
  border-color: var(--c-accent);
  background: linear-gradient(160deg, rgba(124,108,255,0.08) 0%, var(--c-bg) 60%);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-header { margin-bottom: 32px; text-align: center; }
.pricing-header h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--c-text); }
.price { font-size: 2.8rem; font-weight: 800; color: var(--c-text); line-height: 1; margin-bottom: 6px; }
.price span { font-size: 1rem; font-weight: 400; color: var(--c-muted); }
.pricing-header p { font-size: 0.875rem; color: var(--c-muted); }
.pricing-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.pricing-features li { font-size: 0.95rem; color: var(--c-text); }

/* ---- CTA Section ---- */
.cta-section {
  padding: 96px 0;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(124,108,255,0.12) 0%, transparent 70%);
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { font-size: 1.1rem; margin-bottom: 32px; }

/* ---- Blog / Archive ---- */
.page-content { padding: 64px 0; }
.archive-header { margin-bottom: 48px; }
.archive-header h1 { margin-bottom: 12px; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.post-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.post-card:hover { border-color: var(--c-accent); }
.post-thumb img { width: 100%; height: 200px; object-fit: cover; }
.post-body { padding: 24px; }
.post-meta time { font-size: 0.8rem; color: var(--c-muted); }
.post-title { font-size: 1.1rem; margin: 8px 0 10px; }
.post-title a { color: var(--c-text); transition: color 0.15s; }
.post-title a:hover { color: var(--c-accent); }
.post-excerpt { font-size: 0.9rem; margin-bottom: 16px; }

/* ---- Single Post ---- */
.single-post { padding: 64px 0; max-width: 760px; margin: 0 auto; }
.post-header { margin-bottom: 40px; }
.post-header .post-meta { margin-bottom: 12px; }
.post-header h1 { margin-bottom: 24px; }
.post-featured-img { border-radius: var(--radius); overflow: hidden; margin-top: 24px; }
.post-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--c-text);
}
.post-content h2 { margin: 40px 0 16px; }
.post-content h3 { margin: 28px 0 12px; }
.post-content p  { margin-bottom: 20px; color: var(--c-muted); }
.post-content a  { color: var(--c-accent); text-decoration: underline; }
.post-content ul, .post-content ol { margin: 20px 0 20px 24px; color: var(--c-muted); }
.post-content li { margin-bottom: 8px; }
.post-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  padding: 2px 6px;
  border-radius: 4px;
}
.post-content pre {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}
.post-content pre code { background: none; border: none; padding: 0; }
.post-footer { margin-top: 64px; }
.post-cta {
  background: var(--c-surface);
  border: 1px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.post-cta p { color: var(--c-text); font-size: 1.1rem; margin-bottom: 16px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-tagline { font-size: 0.9rem; color: var(--c-muted); margin: 8px 0; }
.footer-built { font-size: 0.85rem; color: var(--c-muted); }
.footer-built a { color: var(--c-accent); }
.footer-links h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-muted); margin-bottom: 16px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.9rem; color: var(--c-muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--c-text); }
.footer-bottom { border-top: 1px solid var(--c-border); padding-top: 24px; }
.footer-bottom p { font-size: 0.85rem; color: var(--c-muted); text-align: center; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero-content { max-width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .question-grid { grid-template-columns: 1fr; }
  .report-preview { grid-template-columns: 1fr; gap: 40px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-nav.open { display: block; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--c-surface); border-bottom: 1px solid var(--c-border); padding: 16px; }
  .site-nav.open .nav-list { flex-direction: column; }
  .nav-toggle { display: flex; }
  .hero { padding: 64px 0 56px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .social-proof .container { flex-direction: column; gap: 16px; text-align: center; }
  .proof-divider { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .pricing-grid { max-width: 100%; }
}
