/* Visiro — v2 dark scanner design, ported from the design brief */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #111315;
  --bg-elev: #16191B;
  --ink: #EDF1F3;
  --body: #C3C9CE;
  --muted: #8E979E;
  --dim: #7A858C;            /* text-safe version of the design's #6C757C/#565E64 (WCAG AA) */
  --dim-decor: #6C757C;      /* original grey, decorative/border use only */
  --faint-decor: #565E64;
  --cyan: #2FE6E0;
  --cyan-soft: #7FF4F0;
  --btn-ink: #0C0E10;
  --line: rgba(255,255,255,0.07);
  --line-2: rgba(255,255,255,0.09);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: 'Space Grotesk', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 88px 88px;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-soft); }
::selection { background: var(--cyan); color: var(--btn-ink); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

.container { max-width: 1160px; margin: 0 auto; padding-left: 22px; padding-right: 22px; }

[id] { scroll-margin-top: 76px; }

/* No-JS fallback: expandable detail stays visible, animated entrances resolve */
.no-js .annotation-panel, .no-js .finding-panel { max-height: none; opacity: 1; visibility: visible; }
.no-js .annotation { opacity: 1; animation: none; }
.no-js .step { opacity: 1; transform: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--cyan); color: var(--btn-ink); font-weight: 600;
  padding: 10px 16px; border-radius: 0 0 5px 0;
}
.skip-link:focus { left: 0; color: var(--btn-ink); }

/* ---------- Keyframes ---------- */
@keyframes vs-scan { 0% { transform: translateY(-8%); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(108%); opacity: 0; } }
@keyframes vs-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes vs-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(47,230,224,0.7); } 50% { transform: scale(1.22); box-shadow: 0 0 20px rgba(47,230,224,1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(17,19,21,0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  padding-top: 16px; padding-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-dot {
  width: 9px; height: 9px; background: var(--cyan); border-radius: 50%;
  box-shadow: 0 0 12px rgba(47,230,224,0.9);
  animation: vs-pulse 2.8s ease-in-out infinite;
}
.brand-dot.small { width: 7px; height: 7px; animation: none; box-shadow: 0 0 10px rgba(47,230,224,0.9); }
.brand-name { font-size: 26px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.brand-name.small { font-size: 19px; font-weight: 600; }

.btn-ghost {
  font-family: var(--mono); font-size: 12.5px; color: var(--cyan);
  border: 1px solid rgba(47,230,224,0.35); padding: 9px 15px; border-radius: 4px;
  transition: background 240ms ease-out, border-color 240ms ease-out, box-shadow 240ms ease-out, transform 200ms ease-out;
  will-change: transform;
}
.btn-ghost:hover {
  color: var(--cyan);
  background: rgba(47,230,224,0.1); border-color: rgba(47,230,224,0.8);
  box-shadow: 0 0 24px rgba(47,230,224,0.18);
}

.btn-primary {
  display: inline-block; background: var(--cyan); color: var(--btn-ink);
  font-family: var(--sans); font-size: 15.5px; font-weight: 600;
  padding: 15px 26px; border-radius: 5px; border: 0; cursor: pointer;
  transition: box-shadow 260ms ease-out, transform 200ms ease-out;
  box-shadow: 0 0 0 rgba(47,230,224,0);
  will-change: transform;
}
.btn-primary:hover { color: var(--btn-ink); box-shadow: 0 0 36px rgba(47,230,224,0.35); }
.btn-primary.compact { font-size: 15px; padding: 13px 22px; }
.btn-primary.compact:hover { box-shadow: 0 0 32px rgba(47,230,224,0.32); }

.link-underline {
  font-size: 15px; color: var(--body);
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px;
  transition: background-size 300ms ease-out, color 300ms ease-out;
  padding-bottom: 2px;
}
.link-underline:hover { background-size: 100% 1px; color: var(--ink); }
.link-underline.accent { color: var(--cyan); }
.link-underline.accent:hover { color: var(--cyan); }

/* ---------- Hero ---------- */
.hero {
  padding-top: 84px; padding-bottom: 96px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.eyebrow {
  margin: 0; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan);
}
h1 {
  margin: 0; font-size: clamp(36px, 5.6vw, 62px); font-weight: 600;
  line-height: 1.05; letter-spacing: -0.025em; color: var(--ink);
  max-width: 17ch; text-wrap: pretty;
}
.hero-sub { margin: 0; font-size: 17.5px; line-height: 1.6; color: var(--muted); max-width: 46ch; text-wrap: pretty; }
.hero-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 6px; }

/* Scanner module */
.scanner-wrap { position: relative; }
.scanner {
  margin: 0; position: relative;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: rgba(255,255,255,0.032);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.scanner-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--dim);
}
.scan-status { color: var(--cyan); }
.scanner-body { position: relative; padding: 22px 20px 24px 20px; }
.scan-beam {
  position: absolute; left: 0; right: 0; top: 0; height: 62px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(47,230,224,0) 0%, rgba(47,230,224,0.16) 70%, rgba(47,230,224,0.85) 100%);
  animation: vs-scan 2400ms cubic-bezier(0.4,0,0.2,1) 300ms 2 forwards;
  opacity: 0;
}
.scan-name { margin: 0 0 6px 0; font-size: 20px; font-weight: 600; color: var(--ink); }
.scan-meta { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.scan-stats {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.scan-stats [data-count] { color: var(--ink); }
.scan-addresses {
  margin-top: 18px; display: flex; flex-direction: column; gap: 8px;
  font-size: 13.5px; color: var(--muted); font-family: var(--mono);
}
.scan-chips { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono); font-size: 11.5px;
  border: 1px solid rgba(255,255,255,0.1); padding: 7px 12px; border-radius: 4px; color: var(--dim);
}
.chip-accent { border-color: rgba(47,230,224,0.3); color: var(--cyan); }

/* Annotations */
.annotations { list-style: none; margin: 14px 0 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.annotation {
  border: 1px solid rgba(47,230,224,0.28); background: rgba(47,230,224,0.05); border-radius: 6px;
  transition: border-color 260ms ease-out, background 260ms ease-out, box-shadow 260ms ease-out;
  opacity: 0; animation: vs-pop 340ms ease-out forwards;
}
.annotation:nth-child(1) { animation-delay: 1400ms; }
.annotation:nth-child(2) { animation-delay: 1820ms; }
.annotation:nth-child(3) { animation-delay: 2240ms; }
.annotation:hover, .annotation.open {
  border-color: rgba(47,230,224,0.7); background: rgba(47,230,224,0.09);
  box-shadow: 0 0 28px rgba(47,230,224,0.12);
}
.annotation-toggle {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; padding: 11px 13px; color: inherit; font: inherit;
}
.annotation-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.annotation-label { font-family: var(--mono); font-size: 12.5px; color: var(--cyan); }
.annotation-hint { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.annotation-panel {
  overflow: hidden; max-height: 0; opacity: 0; visibility: hidden;
  transition: max-height 300ms ease-out, opacity 300ms ease-out, visibility 300ms;
}
.annotation.open .annotation-panel { visibility: visible; }
.annotation-panel p { margin: 0; padding: 0 13px 11px 13px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-top: 60px; padding-bottom: 100px; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 46px; }
.section-head.tight { margin-bottom: 12px; }
.section-head.wrap { flex-wrap: wrap; }
.section-index { font-family: var(--mono); font-size: 11.5px; color: var(--cyan); }
h2 { margin: 0; font-size: clamp(27px, 3.6vw, 40px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.section-sub { margin: 0 0 40px 0; font-size: 16px; color: var(--muted); max-width: 56ch; text-wrap: pretty; }

.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.015); }
.band.rule-top { border-bottom: 0; }
.rule-top { border-top: 1px solid var(--line); }

/* ---------- How it works ---------- */
#how-it-works .section-head { margin-bottom: 46px; }
.track { position: relative; padding-left: 42px; }
.track-line { position: absolute; left: 8px; top: 4px; bottom: 4px; width: 1px; background: var(--line-2); }
.track-fill {
  position: absolute; left: 8px; top: 4px; width: 1px; height: 0%;
  background: var(--cyan); box-shadow: 0 0 12px rgba(47,230,224,0.6);
  transition: height 220ms linear;
}
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 52px; }
.step {
  opacity: 0.35; transform: translateY(8px); position: relative;
  transition: opacity 340ms ease-out, transform 340ms ease-out;
}
.step.on { opacity: 1; transform: translateY(0); }
.step-dot {
  position: absolute; left: -38px; top: 7px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1px solid rgba(255,255,255,0.25);
  transition: background 300ms ease-out, border-color 300ms ease-out, box-shadow 300ms ease-out;
}
.step.on .step-dot { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 14px rgba(47,230,224,0.7); }
.step-kicker { margin: 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; color: var(--cyan); }
.step h3 { margin: 10px 0; font-size: 22px; font-weight: 600; color: var(--ink); }
.step-body { margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 58ch; text-wrap: pretty; }

/* ---------- What we look for ---------- */
#what-we-look-for .section { padding-top: 76px; padding-bottom: 88px; }
.findings {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px;
}
.finding { position: relative; }
.finding-toggle {
  position: relative; overflow: hidden; display: block; width: 100%; text-align: left; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02); border-radius: 10px 10px 0 0;
  padding: 20px 20px 22px 20px; color: inherit; font: inherit;
  transition: border-color 280ms ease-out, background 280ms ease-out, transform 280ms ease-out;
}
.finding:not(.open) .finding-toggle { border-radius: 10px; }
.finding.open .finding-toggle, .finding-toggle:hover { border-color: rgba(47,230,224,0.55); }
.finding.open .finding-toggle { transform: translateY(-3px); }
.finding-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  transition: opacity 300ms ease-out;
  background: radial-gradient(220px circle at var(--gx, 50%) var(--gy, 0%), rgba(47,230,224,0.14), transparent 70%);
}
.finding.open .finding-glow, .finding-toggle:hover .finding-glow { opacity: 1; }
.finding-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.finding-id { font-family: var(--mono); font-size: 11.5px; color: var(--dim); transition: color 280ms ease-out; }
.finding.open .finding-id { color: var(--cyan); }
.finding-tag { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.finding-text {
  position: relative; display: block; margin-top: 14px;
  font-size: 16.5px; line-height: 1.5; color: var(--muted);
  transition: color 280ms ease-out; text-wrap: pretty;
}
.finding.open .finding-text { color: var(--ink); }
.finding-panel {
  overflow: hidden; max-height: 0; opacity: 0; visibility: hidden;
  transition: max-height 320ms ease-out, opacity 320ms ease-out, visibility 320ms;
  border: 1px solid rgba(47,230,224,0.55); border-top: 0; border-radius: 0 0 10px 10px;
  background: rgba(255,255,255,0.02);
}
.finding:not(.open) .finding-panel { border-color: transparent; }
.finding.open .finding-panel { visibility: visible; }
.finding-panel p {
  margin: 0; padding: 13px 20px 16px 20px; border-top: 1px solid rgba(47,230,224,0.25);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.55; color: var(--cyan);
}

/* ---------- Sample work ---------- */
.work { padding-top: 84px; padding-bottom: 96px; }
.badge {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid rgba(47,230,224,0.4); padding: 4px 9px; border-radius: 3px;
}
.work .section-sub { margin-bottom: 46px; }
.tilt-scene { perspective: 1400px; }
.browser {
  transform: rotateX(6deg) rotateY(-7deg); transform-style: preserve-3d;
  transition: transform 400ms ease-out;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; overflow: hidden;
  background: var(--bg-elev); box-shadow: 0 40px 90px rgba(0,0,0,0.55);
}
.browser-bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.03);
}
.browser-dot { width: 8px; height: 8px; border-radius: 50%; background: #2E3438; display: inline-block; }
.browser-url { margin-left: 12px; font-family: var(--mono); font-size: 11.5px; color: #8A959C; }
.browser-body { padding: clamp(20px, 4vw, 46px); }
.concept-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  flex-wrap: wrap; margin-bottom: 34px;
}
.concept-brand { font-size: 19px; font-weight: 600; color: var(--ink); }
.concept-cta {
  background: var(--cyan); color: var(--btn-ink); font-size: 13px; font-weight: 600;
  padding: 9px 16px; border-radius: 4px;
}
.concept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; align-items: center; }
.concept-copy { display: flex; flex-direction: column; gap: 16px; }
.concept-h {
  margin: 0; font-size: clamp(23px, 3vw, 32px); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.15; color: var(--ink);
}
.concept-sub { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.concept-nav { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--body); }
.concept-photo {
  aspect-ratio: 4 / 3; border-radius: 6px; border: 1px solid var(--line-2);
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.035), rgba(255,255,255,0.035) 9px, transparent 9px, transparent 18px);
  display: flex; align-items: center; justify-content: center;
}
.concept-photo span {
  font-family: var(--mono); font-size: 11.5px; color: var(--dim);
  border: 1px solid var(--line-2); padding: 6px 10px; border-radius: 3px;
}
.work-note { margin: 26px 0 0 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--dim); }
.work-note .link-underline { font-size: 12.5px; font-family: var(--mono); }

/* ---------- About ---------- */
#about .section { padding-top: 76px; padding-bottom: 88px; }
.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 44px; align-items: start;
}
.about-grid .section-head { margin-bottom: 0; }
.about-copy { display: flex; flex-direction: column; gap: 16px; max-width: 56ch; }
.about-lead { margin: 0; font-size: 17px; line-height: 1.7; color: var(--body); text-wrap: pretty; }
.about-sub { margin: 0; font-size: 17px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }

/* ---------- Contact ---------- */
#contact .section { padding-top: 76px; padding-bottom: 96px; }
.audit-form { max-width: 720px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--dim);
}
.field input {
  font-family: var(--sans); font-size: 15.5px; color: var(--ink);
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; padding: 13px 14px;
  transition: border-color 240ms ease-out, box-shadow 240ms ease-out;
}
.field input:focus { outline: none; border-color: rgba(47,230,224,0.7); box-shadow: 0 0 24px rgba(47,230,224,0.12); }
.form-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 26px; }
.form-status { margin: 18px 0 0 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--cyan); min-height: 1em; }
.form-status.error { color: #FF9D9D; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: rgba(255,255,255,0.015); }
.watermark {
  position: absolute; left: 0; right: 0; bottom: -2.5vw; pointer-events: none; user-select: none;
  text-align: center; font-size: clamp(96px, 22vw, 320px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 0.8; color: rgba(237,241,243,0.045);
}
.footer-inner { position: relative; padding-top: 54px; padding-bottom: 100px; display: flex; flex-direction: column; gap: 34px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px;
  border-top: 1px solid var(--line); padding-top: 30px;
}
.footer-col { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.footer-blurb { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 34ch; text-wrap: pretty; }
.footer-label {
  margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--dim);
}
.footer-label.gap { margin-top: 14px; }
.footer-col a { font-size: 15px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 24px;
}
.footer-bottom p { margin: 0; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.legal-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.legal-links a { font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.legal-links a:hover { color: var(--cyan); }

/* ---------- 404 / utility pages ---------- */
.page-min { min-height: 70vh; display: flex; align-items: center; }
.page-min-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-top: 84px; padding-bottom: 96px; }
.code-line { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin: 0; }
.page-min h1 { font-size: clamp(36px, 5.6vw, 56px); }
.page-min p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 52ch; }
