:root {
  color-scheme: dark;
  --bg: #080b10;
  --panel: #10151d;
  --panel-soft: #151b25;
  --text: #edf2f7;
  --muted: #9aa7b6;
  --line: rgba(148, 163, 184, 0.18);
  --blue: #2563eb;
  --blue-soft: rgba(37, 99, 235, 0.16);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.14);
  --amber: #f59e0b;
  --red: #ef4444;
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
}

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

p {
  line-height: 1.7;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 8px;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 74px);
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 72px;
}

.hero-noise,
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-noise {
  background-image: url("assets/auditcore-logo.png");
  background-repeat: no-repeat;
  background-position: right 8% center;
  background-size: min(420px, 42vw);
  opacity: 0.045;
  filter: grayscale(1);
}

.hero-grid {
  display: none;
}

.hero-content,
.scan-panel {
  position: relative;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 108px;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 28px 0 0;
  color: #cbd5e1;
  font-size: 19px;
}

.hero-actions,
.callout {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 18px 48px rgba(37, 99, 235, 0.3);
}

.button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.scan-panel,
.report-window {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 21, 29, 0.82);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.scan-panel {
  overflow: hidden;
  padding: 18px;
}

.scan-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--green);
  animation: scanline 3.2s linear infinite;
}

@keyframes scanline {
  0% {
    top: 0;
    opacity: 0.2;
  }

  70% {
    top: 100%;
    opacity: 0.85;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 12px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.panel-topline strong {
  color: var(--text);
  font-size: 22px;
}

.risk-list {
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

.risk {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.risk span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.risk strong {
  display: block;
  font-size: 15px;
}

.risk p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.risk.critical {
  border-color: rgba(239, 68, 68, 0.36);
}

.risk.high {
  border-color: rgba(245, 158, 11, 0.36);
}

.risk.medium {
  border-color: rgba(34, 197, 94, 0.28);
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.trust-strip div {
  padding: 22px;
  background: var(--panel);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-size: 16px;
}

.trust-strip span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 54px;
  align-items: start;
}

.section h2,
.legal-hero h1 {
  margin: 0;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.feature-mark {
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: var(--green);
}

.feature h3 {
  margin: 0;
  font-size: 18px;
}

.feature p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.report-window {
  overflow: hidden;
}

.window-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.report-content {
  padding: 22px;
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.report-summary div,
.report-finding {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.report-summary div {
  padding: 16px;
}

.report-summary small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.report-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.report-finding {
  padding: 18px;
}

.report-finding + .report-finding {
  margin-top: 12px;
}

.report-finding h3 {
  margin: 0 0 12px;
}

.report-finding p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
}

.report-finding b {
  color: var(--text);
}

.callout {
  justify-content: space-between;
  margin-bottom: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.callout h2 {
  max-width: 780px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer span {
  color: var(--text);
  font-weight: 800;
}

.site-footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--text);
}

.legal-page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.legal-hero {
  padding: 82px 0 40px;
  border-bottom: 1px solid var(--line);
}

.legal-hero p:last-child {
  color: var(--muted);
}

.legal-content {
  padding: 34px 0 80px;
}

.legal-content h2 {
  margin: 34px 0 10px;
  font-size: 22px;
}

.legal-content p {
  margin: 0;
  color: #cbd5e1;
}

@media (max-width: 900px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 28px;
    min-height: auto;
    padding-top: 42px;
  }

  .scan-panel {
    max-width: 560px;
  }

  .trust-strip,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header {
    width: calc(100% - 24px);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #0c1118;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .hero,
  .section,
  .legal-page,
  .site-footer {
    width: calc(100% - 24px);
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .section h2,
  .legal-hero h1 {
    font-size: 36px;
  }

  .trust-strip,
  .feature-grid,
  .report-summary {
    grid-template-columns: 1fr;
  }

  .callout,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
