/* =========================================================================
   Pentest Reporter — landing site
   Dark, technical, restrained. One accent color. No heavy framework.
   ========================================================================= */

:root {
  --bg:        #0b0e14;   /* page */
  --bg-alt:    #0f131b;   /* alternating sections */
  --panel:     #131822;   /* cards / code */
  --panel-2:   #0d1119;   /* code body */
  --line:      #202836;   /* borders */
  --line-soft: #1a212d;
  --ink:       #e6edf3;   /* primary text */
  --muted:     #9aa7b8;   /* secondary text */
  --faint:     #64748b;   /* tertiary */
  --accent:    #4ade80;   /* the one accent — a restrained terminal green */
  --accent-dim:#2f7d52;
  --accent-ink:#0b0e14;   /* text on accent */
  --radius:    10px;
  --maxw:      1200px;
  --mono: "SFMono-Regular", "SF Mono", "JetBrains Mono", "Menlo", "Consolas", ui-monospace, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.container.narrow { max-width: 780px; }

/* ------------------------------- Nav ------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; letter-spacing: -0.01em; }
.brand-mark { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 14.5px; transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-repo { color: var(--ink) !important; font-weight: 550; }
@media (max-width: 680px) {
  .nav-links a:not(.nav-repo) { display: none; }
}

/* ------------------------------- Hero ------------------------------- */
.hero { padding: 92px 0 64px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 50% -8%, rgba(74, 222, 128, 0.08), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08; letter-spacing: -0.025em; font-weight: 700;
  margin: 0 0 20px; max-width: 15ch;
}
@media (max-width: 720px) { .hero h1 { max-width: none; } }
.lede { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 60ch; margin: 0 0 30px; }
.lede strong { color: var(--ink); font-weight: 600; }

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

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 560; padding: 11px 20px;
  border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #5ce88c; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #33404f; background: var(--panel); }
.btn-arrow { font-size: 12px; color: var(--muted); }

/* Hero terminal */
.hero-terminal {
  margin-top: 44px; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; background: var(--panel-2);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.8);
}
.term-bar { display: flex; gap: 7px; padding: 12px 14px; background: var(--panel); border-bottom: 1px solid var(--line-soft); }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a3342; }
.term-bar span:first-child { background: #3a2730; }
.term-body {
  margin: 0; padding: 18px 20px; overflow-x: auto;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.85; color: #c6d0dc;
}
.c-prompt { color: var(--accent); user-select: none; }
.c-ok { color: var(--accent); }
.c-accent { color: var(--accent); }
.c-dim { color: var(--faint); }

/* ------------------------------- Sections ------------------------------- */
.section { padding: 76px 0; border-top: 1px solid var(--line-soft); }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(24px, 3.4vw, 33px); letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 680; }
.section-lede { font-size: 17px; color: var(--muted); max-width: 62ch; margin: 0 0 16px; }
.section-head { margin-bottom: 44px; }
.narrow .section-lede { margin-left: 0; }

/* Value grid */
.value-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.value-grid li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.value-grid h3 { margin: 0 0 8px; font-size: 16px; letter-spacing: -0.01em; }
.value-grid p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 780px) { .value-grid { grid-template-columns: 1fr; } }

/* ------------------------------- Steps ------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: start; }
.step-index span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel);
  font-family: var(--mono); font-size: 14px; color: var(--accent); font-weight: 600;
}
.step-body { min-width: 0; }
.step-body h3 { margin: 6px 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.step-body > p { margin: 0 0 14px; color: var(--muted); max-width: 60ch; }
@media (max-width: 620px) {
  .step { grid-template-columns: 1fr; gap: 12px; }
}

/* ------------------------------- Code blocks ------------------------------- */
.code {
  border: 1px solid var(--line); border-radius: 9px; overflow: hidden;
  background: var(--panel-2); margin: 0 0 12px;
}
.code:last-child { margin-bottom: 0; }
.code-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: var(--panel); border-bottom: 1px solid var(--line-soft);
}
.code-tag {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--faint);
}
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; }
.code code {
  font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: #c6d0dc;
  white-space: pre; display: block;
}
.code-lg code { font-size: 15px; line-height: 1.9; }
.code-lg .code-tag { font-size: 12px; }

.copy-btn {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 6px;
  padding: 4px 10px; cursor: pointer; transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.copy-btn:hover { color: var(--ink); border-color: #33404f; }
.copy-btn.copied { color: var(--accent); border-color: var(--accent-dim); }

/* ------------------------------- Quickstart ------------------------------- */
.quickstart-note { color: var(--muted); font-size: 15px; margin: 18px 0 0; }
.quickstart-sub { color: var(--muted); font-size: 15px; margin: 26px 0 10px; }
.mono-link { color: var(--accent); font-family: var(--mono); font-size: 14px; }
.mono-link:hover { text-decoration: underline; }
code:not(.code code) {
  font-family: var(--mono); font-size: 0.86em; color: #cbd5e1;
  background: var(--panel); border: 1px solid var(--line-soft);
  padding: 1px 6px; border-radius: 5px;
}
.req-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.req { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 12px 14px; }
.req-k { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.req-v { font-size: 14.5px; color: var(--ink); }
@media (max-width: 620px) { .req-row { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------- Trust ------------------------------- */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.trust-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 24px; }
.trust-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 9px; margin-bottom: 14px;
  background: rgba(74, 222, 128, 0.10); color: var(--accent);
  border: 1px solid rgba(74, 222, 128, 0.22); font-size: 20px;
}
.trust-card h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.01em; }
.trust-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 680px) { .trust-grid { grid-template-columns: 1fr; } }

/* ------------------------------- Screenshots ------------------------------- */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.shot { margin: 0; }
.shot-frame {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--panel-2);
}
.shot-frame img { display: block; width: 100%; height: auto; }
.shot-placeholder {
  aspect-ratio: 16 / 10; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 11px, rgba(255,255,255,0.015) 11px, rgba(255,255,255,0.015) 22px);
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.shot-badge {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent-dim); border-radius: 20px; padding: 3px 12px;
}
.shot-name { font-family: var(--mono); font-size: 14px; color: var(--ink); }
.shot-hint { font-size: 13px; color: var(--faint); }
.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
@media (max-width: 780px) { .shots { grid-template-columns: 1fr; } }

/* ------------------------------- CTA ------------------------------- */
.cta { text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta .hero-actions { justify-content: center; }
.cta .section-lede { text-align: center; }

/* ------------------------------- Footer ------------------------------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 52px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand .brand { font-weight: 650; }
.footer-brand .brand-mark { color: var(--accent); }
.footer-tag { color: var(--muted); font-size: 14px; margin: 12px 0 0; max-width: 34ch; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.footer-col a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 9px; transition: color .15s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-legal {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-soft);
  color: var(--faint); font-size: 13px;
}
.footer-legal .mono { font-family: var(--mono); }

/* =========================================================================
   v2 polish — full-width feel, hero pipeline animation, works-with strip,
   scroll reveal, hover lift. All motion respects prefers-reduced-motion.
   ========================================================================= */

/* More generous vertical rhythm for a spacious, confident feel */
.section { padding: 88px 0; }
.hero { padding: 84px 0 70px; }

/* ---- Hero two-column layout ---- */
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero-copy { min-width: 0; }

/* ---- Hero pipeline visualization ---- */
.hero-viz { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pipeline { position: relative; width: 100%; max-width: 560px; aspect-ratio: 20 / 9; }
@media (max-width: 900px) { .pipeline { max-width: 480px; } }

.rails { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rail-base path { fill: none; stroke: var(--line); stroke-width: 1; opacity: .7; }
.rail-flow path {
  fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .55;
  stroke-linecap: round; stroke-dasharray: 3 8;
  animation: railflow 1s linear infinite;
}
@keyframes railflow { to { stroke-dashoffset: -11; } }

/* nodes are absolutely placed by % (they scale with the aspect-locked box) */
.chip, .core, .out { position: absolute; transform: translate(-50%, -50%); }

.chip {
  left: 16%;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 11px; font-family: var(--mono); font-size: 12px; color: var(--muted);
  box-shadow: 0 8px 22px -14px #000; animation: floaty 6s ease-in-out infinite;
}
.chip-ic { color: var(--accent); font-size: 11px; }
.chip-1 { top: 20%; }
.chip-2 { top: 50%; animation-delay: -2s; }
.chip-3 { top: 80%; animation-delay: -4s; }
@keyframes floaty {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 4px)); }
}

.core {
  left: 50%; top: 50%; width: 108px; height: 108px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border-radius: 16px; border: 1px solid var(--accent-dim);
  background: radial-gradient(circle at 50% 34%, rgba(74, 222, 128, .16), var(--panel) 72%);
  animation: corepulse 3s ease-in-out infinite;
}
.core-mark { color: var(--accent); }
.core-name { font-size: 11px; font-weight: 700; line-height: 1.14; text-align: center; color: var(--ink); }
@keyframes corepulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(74, 222, 128, .05), 0 18px 46px -22px rgba(74, 222, 128, .30); }
  50%      { box-shadow: 0 0 0 9px rgba(74, 222, 128, .08), 0 20px 58px -18px rgba(74, 222, 128, .50); }
}

.out {
  left: 84%; top: 50%;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  background: linear-gradient(180deg, rgba(74, 222, 128, .12), var(--panel));
  border: 1px solid var(--accent-dim); border-radius: 8px;
  padding: 9px 13px; font-family: var(--mono); font-size: 12.5px; color: var(--ink);
  box-shadow: 0 10px 28px -14px rgba(74, 222, 128, .55);
  animation: outpop 2.4s ease-in-out infinite;
}
.out-ic { color: var(--accent); }
@keyframes outpop {
  0%, 60%, 100% { transform: translate(-50%, -50%) scale(1); }
  72%           { transform: translate(-50%, -50%) scale(1.05); }
}

/* traveling packets — from each file into the core, then core → report */
.pulse {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  margin: -3.5px 0 0 -3.5px; background: var(--accent);
  box-shadow: 0 0 10px 2px rgba(74, 222, 128, .7); opacity: 0;
}
.pin1 { animation: flowIn1 2.4s ease-in-out infinite; }
.pin2 { animation: flowIn2 2.4s ease-in-out infinite .2s; }
.pin3 { animation: flowIn3 2.4s ease-in-out infinite .4s; }
.pout { animation: flowOut 2.4s ease-in-out infinite 1s; }
@keyframes flowIn1 { 0% { left: 26.5%; top: 20%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 42%; top: 50%; opacity: 0; } }
@keyframes flowIn2 { 0% { left: 26.5%; top: 50%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 42%; top: 50%; opacity: 0; } }
@keyframes flowIn3 { 0% { left: 26.5%; top: 80%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 42%; top: 50%; opacity: 0; } }
@keyframes flowOut { 0% { left: 57.5%; top: 50%; opacity: 0; } 14% { opacity: 1; } 86% { opacity: 1; } 100% { left: 75%; top: 50%; opacity: 0; } }

/* dedupe micro-scene: two findings collapse into one */
.merge { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.merge-viz { position: relative; width: 22px; height: 12px; flex: none; }
.merge-viz i {
  position: absolute; top: 0; width: 12px; height: 12px; border-radius: 50%; box-sizing: border-box;
  border: 1.5px solid var(--accent); background: rgba(74, 222, 128, .16);
}
.merge-viz i.a { left: 0; animation: mergeA 3s ease-in-out infinite; }
.merge-viz i.b { left: 10px; animation: mergeB 3s ease-in-out infinite; }
.merge-label strong { color: var(--accent); font-weight: 650; }
@keyframes mergeA { 0%, 20% { transform: translateX(0); opacity: 1; } 55% { transform: translateX(5px); opacity: 1; } 70% { transform: translateX(5px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes mergeB { 0%, 20% { transform: translateX(0); } 55%, 100% { transform: translateX(-5px); } }

/* ---- Works-with strip (full-bleed band) ---- */
.strip { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 30px 0; }
.strip-inner { display: flex; flex-direction: column; align-items: center; gap: 15px; text-align: center; }
.strip-label { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.wordmarks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 6vw, 72px); }
.wm { cursor: default; }
.wm-name { font-weight: 700; font-size: clamp(19px, 2.4vw, 26px); letter-spacing: -0.01em; color: var(--faint); opacity: .8; transition: color .2s ease, opacity .2s ease; }
.wm:hover .wm-name { color: var(--ink); opacity: 1; }
.strip-note { margin: 4px 0 0; font-size: 12px; line-height: 1.55; color: var(--faint); max-width: 78ch; }

/* ---- Quickstart access note ---- */
.access-note { margin: 0 0 16px; font-size: 14px; color: var(--muted); }

/* ---- Scroll reveal (only active when JS is present) ---- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.4, 0, .2, 1), transform .6s cubic-bezier(.4, 0, .2, 1); }
.js .reveal.reveal-in { opacity: 1; transform: none; }

/* ---- Hover lift on value + trust cards ---- */
.value-grid li, .trust-card { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.value-grid li:hover, .trust-card:hover {
  transform: translateY(-3px); border-color: #2b3546;
  box-shadow: 0 18px 44px -26px rgba(0, 0, 0, .85), 0 0 0 1px rgba(74, 222, 128, .06);
}

/* ---- Reduced motion: freeze the pipeline but keep it legible ---- */
@media (prefers-reduced-motion: reduce) {
  .rail-flow path, .chip, .core, .out, .merge-viz i { animation: none !important; }
  .pulse { display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .value-grid li:hover, .trust-card:hover { transform: none; }
}
