/* Noetfield Scan — security scanner landing */

:root {
  --bg: #060608;
  --bg-alt: #0a0a0e;
  --surface: #101014;
  --surface-2: #16161c;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #22c55e;
  --accent-hover: #4ade80;
  --accent-dim: rgba(34, 197, 94, 0.12);
  --accent-glow: rgba(34, 197, 94, 0.25);
  --warn: #f59e0b;
  --danger: #ef4444;
  --critical: #f87171;
  --radius: 14px;
  --radius-sm: 8px;
  --font: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --nav-h: 64px;
  --shell: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(34, 197, 94, 0.08), transparent 60%);
}
.shell { width: min(100% - 2rem, var(--shell)); margin-inline: auto; position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-hover); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  padding: 0.75rem 1rem; background: var(--accent); color: #000;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; height: var(--nav-h); z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.is-scrolled {
  background: rgba(6, 6, 8, 0.9);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 1rem; }
.nav__brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 600; font-size: 0.95rem; }
.nav__brand-sub { color: var(--text-muted); font-weight: 500; }
.nav__mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(145deg, var(--accent), #15803d);
  box-shadow: 0 0 24px var(--accent-glow);
}
.nav__links { display: none; gap: 1.5rem; margin-left: auto; }
.nav__links a { color: var(--text-muted); font-size: 0.875rem; font-weight: 500; }
.nav__links a:hover { color: var(--text); }
.nav__cta { margin-left: auto; }
.nav__toggle {
  display: flex; flex-direction: column; gap: 5px; margin-left: auto;
  background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.nav__toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}
@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .nav__cta { margin-left: 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.25rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.9rem; border: 1px solid transparent;
  cursor: pointer; transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn--primary {
  background: var(--accent); color: #041008;
  box-shadow: 0 0 32px var(--accent-glow);
}
.btn--primary:hover { background: var(--accent-hover); color: #041008; }
.btn--primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--ghost {
  background: transparent; border-color: var(--border); color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-hover); }
.btn--sm { padding: 0.5rem 0.9rem; font-size: 0.8rem; }

/* Hero */
.hero {
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  position: relative;
}
.hero__grid {
  display: grid; gap: 2.5rem;
  align-items: start;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.eyebrow {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.hero__headline {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.12; letter-spacing: -0.03em; font-weight: 700;
  margin-bottom: 1rem;
}
.hero__accent { color: var(--accent); }
.hero__lede { color: var(--text-muted); font-size: 1.05rem; max-width: 36rem; margin-bottom: 1.75rem; }

/* Scan form */
.scan-form__label { display: block; font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0.4rem; }
.scan-form__row {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.75rem;
}
.scan-form__input {
  flex: 1 1 220px; min-width: 0;
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text);
}
.scan-form__input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.scan-form__consent {
  display: flex; gap: 0.5rem; align-items: flex-start;
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem;
}
.scan-form__consent input { margin-top: 0.2rem; accent-color: var(--accent); }
.scan-form__hint { font-size: 0.8rem; color: var(--text-dim); }

/* Terminal */
.terminal {
  background: #0c0c10;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.terminal__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 0.6rem 0.85rem; background: #141418;
  border-bottom: 1px solid var(--border);
}
.terminal__dot { width: 10px; height: 10px; border-radius: 50%; background: #3f3f46; }
.terminal__dot:first-child { background: #ef4444; }
.terminal__dot:nth-child(2) { background: #eab308; }
.terminal__dot:nth-child(3) { background: #22c55e; }
.terminal__title {
  margin-left: 0.5rem; font-family: var(--mono); font-size: 0.75rem; color: var(--text-dim);
}
.terminal__body {
  font-family: var(--mono); font-size: 0.78rem; line-height: 1.55;
  padding: 1rem 1.1rem; min-height: 220px; max-height: 320px;
  overflow-y: auto; white-space: pre-wrap; color: #d4d4d8;
}
.terminal__prompt { color: var(--accent); }
.terminal__muted { color: var(--text-dim); }
.terminal__ok { color: var(--accent); }
.terminal__warn { color: var(--warn); }
.terminal__bad { color: var(--critical); }

/* Results */
.results { padding: 2rem 0 4rem; }
.results__head {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: flex-start; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.results__url { font-family: var(--mono); font-size: 0.85rem; color: var(--text-dim); }
.grade-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 1rem 1.5rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  min-width: 100px;
}
.grade-card__letter { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.grade-card__score { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.25rem; }
.results__counts {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem;
}
.count-pill {
  font-family: var(--mono); font-size: 0.75rem;
  padding: 0.35rem 0.65rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
}
.count-pill--critical { border-color: rgba(248, 113, 113, 0.4); color: var(--critical); }
.count-pill--high { border-color: rgba(245, 158, 11, 0.4); color: var(--warn); }

.findings { display: flex; flex-direction: column; gap: 1rem; }
.finding {
  padding: 1.1rem 1.25rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
}
.finding__meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  margin-bottom: 0.5rem;
}
.finding__severity {
  font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 0.2rem 0.45rem; border-radius: 4px;
}
.finding__severity--critical { background: rgba(248, 113, 113, 0.15); color: var(--critical); }
.finding__severity--high { background: rgba(245, 158, 11, 0.15); color: var(--warn); }
.finding__severity--medium { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; }
.finding__severity--low { background: rgba(113, 113, 122, 0.2); color: var(--text-muted); }
.finding__cat { font-size: 0.75rem; color: var(--text-dim); }
.finding h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.finding p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
.finding__fix {
  font-family: var(--mono); font-size: 0.72rem;
  background: #0a0a0e; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.75rem;
  color: var(--text-dim); max-height: 120px; overflow-y: auto;
  white-space: pre-wrap; margin-bottom: 0.5rem;
}
.copy-fix {
  font-size: 0.8rem; color: var(--accent); background: none; border: none;
  cursor: pointer; font-weight: 600;
}
.copy-fix:hover { color: var(--accent-hover); }
.results__cta {
  margin-top: 2rem; padding: 1.5rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  text-align: center;
}
.results__cta p { color: var(--text-muted); margin-bottom: 1rem; }

/* Sections */
.section { padding: 4rem 0; }
.section--alt { background: var(--bg-alt); }
.section__head { margin-bottom: 2rem; max-width: 40rem; }
.section__head h2 { font-size: 1.75rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.section__lede { color: var(--text-muted); }
.kicker {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem;
}

.check-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.check-card {
  padding: 1.25rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.check-card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.check-card p { font-size: 0.9rem; color: var(--text-muted); }
.check-card__tag {
  display: inline-block; font-family: var(--mono); font-size: 0.65rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 0.6rem; padding: 0.15rem 0.4rem; border-radius: 4px;
}
.check-card__tag.critical { background: rgba(248, 113, 113, 0.12); color: var(--critical); }
.check-card__tag.high { background: rgba(245, 158, 11, 0.12); color: var(--warn); }
.check-card__tag.medium { background: rgba(99, 102, 241, 0.12); color: #a5b4fc; }

.step-list { list-style: none; display: grid; gap: 1.25rem; }
.step-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.step-list__num {
  font-family: var(--mono); font-weight: 600; color: var(--accent);
  font-size: 0.9rem; flex-shrink: 0;
}
.step-list h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.step-list p { color: var(--text-muted); font-size: 0.9rem; }

.faq__list { display: grid; gap: 1.25rem; }
.faq__list dt { font-weight: 600; margin-bottom: 0.35rem; }
.faq__list dd { color: var(--text-muted); font-size: 0.95rem; }

.seo-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.seo-grid article {
  padding: 1.25rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.seo-grid h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.seo-grid p { font-size: 0.9rem; color: var(--text-muted); }

.footer {
  padding: 2rem 0; border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 0.85rem;
}
.footer__inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.footer__note { font-family: var(--mono); font-size: 0.72rem; }

.error-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.error-page h1 { font-size: 2rem; margin: 0.5rem 0 1rem; }

.reveal { animation: fadeUp 0.7s var(--ease) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  body.nav-open .nav__links {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    padding: 1rem 1.5rem 1.5rem; background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
}
