/* DevInspect marketing site — plain CSS, mobile-first */
:root {
  --bg: #09090b;
  --card: #111113;
  --raised: #18181b;
  --line: #27272a;
  --fg: #fafafa;
  --muted: #a1a1aa;
  --accent: #a3e635;
  --accent-dim: rgba(163, 230, 53, 0.12);
  --radius: 14px;
  --max: 1160px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.65 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #09090b; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
code, kbd { font-family: var(--mono); }
kbd { background: var(--raised); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 2px 8px; font-size: 13px; }

/* Background grid + glow */
.bg-grid { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .22;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%); }
.glow { position: absolute; width: 520px; height: 520px; left: 50%; top: -240px; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(163,230,53,.16), transparent 65%); filter: blur(10px); pointer-events: none; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; scale: 1.08; } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(9,9,11,.72); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.links { display: flex; align-items: center; gap: 6px; }
.links a { text-decoration: none; color: var(--muted); font-size: 15px; padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.links a:hover { color: var(--fg); background: var(--raised); }
.burger { display: none; background: none; border: 1px solid var(--line); color: var(--fg); width: 42px; height: 42px; border-radius: 10px; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; margin: auto; transition: .25s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; rotate: 45deg; }
.burger[aria-expanded="true"] span::after { top: 0; rotate: -45deg; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 inherit; text-decoration: none;
  padding: 14px 22px; border-radius: 11px; border: 1px solid var(--line); background: var(--raised); color: var(--fg); cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); border-color: #3f3f46; }
.btn-primary { background: var(--accent); color: #09090b; border-color: transparent; box-shadow: 0 6px 24px rgba(163,230,53,.22); }
.btn-primary:hover { box-shadow: 0 10px 32px rgba(163,230,53,.35); border-color: transparent; }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* Hero */
.hero { position: relative; padding: 72px 0 40px; text-align: center; overflow: clip; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-dim); border: 1px solid rgba(163,230,53,.28); padding: 6px 14px; border-radius: 999px; margin-bottom: 24px; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(163,230,53,.6); } 100% { box-shadow: 0 0 0 10px rgba(163,230,53,0); } }
h1 { font-size: clamp(38px, 7vw, 72px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 20px; font-weight: 800; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.note { color: var(--muted); font-size: 13px; margin-top: 16px; }

/* Live demo */
.demo { margin: 56px auto 0; max-width: 980px; text-align: left; border: 1px solid var(--line); border-radius: 18px; background: var(--card);
  box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.02) inset; overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--raised); }
.demo-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3f3f46; }
.demo-bar .url { margin-left: 12px; flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px; font: 12px var(--mono); color: var(--muted); }
.demo-body { display: grid; grid-template-columns: 1fr 300px; min-height: 380px; }
.stage { position: relative; background: #f8fafc; color: #0f172a; padding: 28px 30px; overflow: hidden; }
.stage .s-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; font-size: 13px; color: #475569; }
.stage .s-nav b { color: #4f46e5; font-size: 16px; }
.stage h3 { font-size: 30px; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 10px; font-weight: 800; }
.stage p { margin: 0 0 18px; font-size: 14px; color: #475569; max-width: 360px; line-height: 1.55; }
.stage .s-btn { display: inline-flex; background: #4f46e5; color: #fff; border: 0; font: 600 14px/1 inherit; padding: 12px 20px; border-radius: 9px; box-shadow: 0 4px 14px rgba(79,70,229,.35); }
.stage .s-card { margin-top: 24px; display: inline-block; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 18px; }
.stage .s-card b { display: block; font-size: 14px; } .stage .s-card span { font-size: 12px; color: #64748b; }
.hl { position: absolute; border: 2px solid var(--accent); background: rgba(163,230,53,.12); box-shadow: 0 0 0 1px rgba(9,9,11,.5); pointer-events: none;
  transition: left .55s cubic-bezier(.6,.1,.2,1), top .55s cubic-bezier(.6,.1,.2,1), width .55s cubic-bezier(.6,.1,.2,1), height .55s cubic-bezier(.6,.1,.2,1); }
.tip { position: absolute; background: #09090b; color: #fafafa; border: 1px solid #27272a; border-radius: 6px; padding: 4px 8px; font: 11px/1.35 var(--mono); white-space: nowrap; pointer-events: none;
  transition: left .55s cubic-bezier(.6,.1,.2,1), top .55s cubic-bezier(.6,.1,.2,1); }
.tip b { color: var(--accent); font-weight: 500; display: block; } .tip span { color: #a1a1aa; }
.cursor { position: absolute; width: 22px; height: 22px; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4));
  transition: left .55s cubic-bezier(.6,.1,.2,1), top .55s cubic-bezier(.6,.1,.2,1); z-index: 3; }
.panel { background: var(--bg); border-left: 1px solid var(--line); padding: 16px; font-size: 13px; }
.panel h4 { margin: 0 0 12px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.panel h4 img { width: 20px; height: 20px; border-radius: 5px; }
.panel .sel { font: 12px var(--mono); color: var(--muted); margin-bottom: 14px; min-height: 18px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.row span:first-child { color: var(--muted); } .row span:last-child { font-family: var(--mono); font-size: 12px; text-align: right; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line); vertical-align: -1px; margin-right: 6px; }
.copy-fake { margin-top: 14px; display: flex; gap: 8px; }
.copy-fake span { flex: 1; text-align: center; font-size: 12px; font-weight: 600; padding: 8px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line); transition: .25s; }
.copy-fake span.on { background: var(--accent); color: #09090b; border-color: transparent; }
.flash { animation: flash .5s; } @keyframes flash { from { opacity: .2; transform: translateY(3px); } }

/* Sections */
section { padding: 96px 0; position: relative; }
.eyebrow { color: var(--accent); font: 600 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
h2 { font-size: clamp(30px, 4.5vw, 46px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 800; }
.sub { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 0 48px; }
.center { text-align: center; } .center .sub { margin-inline: auto; }

/* Stats */
.stats { padding: 20px 0 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.stat { padding: 26px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 38px; letter-spacing: -.03em; color: var(--accent); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }

/* Features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden;
  transition: transform .3s, border-color .3s; }
.feature::after { content: ""; position: absolute; inset: 0; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(163,230,53,.09), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.feature:hover { transform: translateY(-4px); border-color: #3f3f46; } .feature:hover::after { opacity: 1; }
.ico { width: 44px; height: 44px; border-radius: 11px; background: var(--accent-dim); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; } .feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #09090b; font-weight: 800; margin-bottom: 16px; }
.step h3 { margin: 0 0 6px; } .step p { margin: 0; color: var(--muted); }

/* Showcase tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }
.tab { background: var(--card); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 9px 18px; font: 600 14px inherit; cursor: pointer; transition: .2s; }
.tab:hover { color: var(--fg); } .tab[aria-selected="true"] { background: var(--accent); color: #09090b; border-color: transparent; }
.shot { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: 0 30px 90px rgba(0,0,0,.55); max-width: 980px; margin-inline: auto; }
.shot img { width: 100%; height: auto; }
.shot-cap { padding: 14px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; }
[role="tabpanel"][hidden] { display: none; }
[role="tabpanel"]:not([hidden]) { animation: rise .5s both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Code showcase */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.code { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--raised); gap: 8px; }
.code-tabs { display: flex; gap: 4px; }
.code-tabs button { background: none; border: 0; color: var(--muted); font: 600 13px inherit; padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.code-tabs button[aria-selected="true"] { background: var(--bg); color: var(--fg); }
.copy { background: var(--bg); border: 1px solid var(--line); color: var(--fg); font: 600 12px inherit; padding: 7px 12px; border-radius: 8px; cursor: pointer; transition: .2s; }
.copy:hover { border-color: var(--accent); } .copy.done { background: var(--accent); color: #09090b; border-color: transparent; }
pre { margin: 0; padding: 18px; font: 13px/1.7 var(--mono); overflow-x: auto; min-height: 250px; color: #e4e4e7; }
.k { color: #a3e635; } .v { color: #7dd3fc; } .c { color: #71717a; } .cls { display: inline-block; background: var(--raised); border: 1px solid var(--line); padding: 0 8px; border-radius: 6px; margin: 2px 4px 2px 0; }
.cls.custom { border-color: #b45309; background: rgba(251,191,36,.1); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; color: var(--muted); } .checks li::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* Privacy */
.privacy-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.perms { display: grid; gap: 10px; }
.perm { display: flex; gap: 14px; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.perm code { color: var(--accent); font-size: 13px; min-width: 84px; } .perm span { color: var(--muted); font-size: 14px; }

/* Shortcuts */
.keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 700px; margin-inline: auto; }
.key { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.key div { margin-bottom: 10px; } .key p { margin: 0; color: var(--muted); font-size: 14px; }

/* FAQ */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 10px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s; }
details[open] { border-color: #3f3f46; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: rotate .25s; }
details[open] summary::after { rotate: 45deg; }
details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* CTA + footer */
.final { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(40px, 7vw, 80px) 24px; position: relative; overflow: hidden; }
.final .glow { top: auto; bottom: -300px; }
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; } .foot a { text-decoration: none; } .foot a:hover { color: var(--fg); }
.foot strong { color: var(--fg); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .demo-body { grid-template-columns: 1fr; } .panel { border-left: 0; border-top: 1px solid var(--line); }
  .split, .privacy-card { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  section { padding: 72px 0; }
}
@media (max-width: 720px) {
  .burger { display: block; }
  .links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #09090b; border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px; gap: 2px; clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none; transition: clip-path .35s, opacity .25s; }
  .links.open { clip-path: inset(0); opacity: 1; pointer-events: auto; }
  .links a { padding: 14px 12px; font-size: 16px; }
  .hero { padding-top: 44px; }
  .stage { padding: 20px; } .stage h3 { font-size: 24px; }
}
@media (max-width: 420px) { .stat b { font-size: 30px; } .cta-row .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Nav CTA must keep primary-button colors (beats `.links a`) */
.links a.btn-primary { color: #09090b; background: var(--accent); padding: 10px 16px; }
.links a.btn-primary:hover { color: #09090b; background: var(--accent); }
@media (max-width: 720px) { .links a.btn-primary { margin-top: 8px; text-align: center; padding: 14px; } }
