:root {
  --ink: #101418;
  --graphite: #26313a;
  --steel: #51606b;
  --mist: #eef3f5;
  --paper: #f8faf9;
  --white: #ffffff;
  --signal: #1c7c6b;
  --signal-dark: #0f5f53;
  --amber: #c47a2c;
  --risk: #b5474a;
  --line: #d8e0e3;
  --shadow: 0 18px 44px rgba(16, 20, 24, 0.12);
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 32px;
  background: rgba(248, 250, 249, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  width: 28px;
  height: 28px;
  border: 7px solid var(--signal);
  border-right-color: var(--amber);
  border-radius: 50%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--steel);
  font-size: 14px;
}

.site-nav a:hover {
  color: var(--ink);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.header-action,
.button.secondary {
  background: var(--white);
}

.button.primary {
  color: var(--white);
  background: var(--signal);
  border-color: var(--signal);
}

.button.primary:hover {
  background: var(--signal-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 54px 6vw 36px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--signal-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(44px, 6.5vw, 86px);
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
}

h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.lead {
  max-width: 600px;
  margin: 24px 0 0;
  color: var(--graphite);
  font-size: 20px;
  line-height: 1.52;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 40px 0 0;
}

.hero-stats div {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.hero-stats dt {
  font-size: 32px;
  font-weight: 850;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--steel);
  font-size: 14px;
  line-height: 1.35;
}

.vision-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.panel-top,
.detections {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  color: var(--steel);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}

.panel-top strong {
  color: var(--signal-dark);
}

#visionCanvas {
  display: block;
  width: 100%;
  height: auto;
  background: #182026;
}

.detections {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
}

.dot.ok {
  background: var(--signal);
}

.dot.warn {
  background: var(--amber);
}

.dot.risk {
  background: var(--risk);
}

.section {
  padding: 84px 6vw;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.offer-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.offer-card.featured {
  border-color: var(--signal);
  box-shadow: var(--shadow);
}

.offer-card p {
  color: var(--graphite);
  line-height: 1.55;
}

.offer-card span {
  display: block;
  margin-top: 26px;
  color: var(--steel);
  font-size: 14px;
  line-height: 1.45;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: 42px;
  align-items: start;
}

.split p {
  color: var(--graphite);
  font-size: 18px;
  line-height: 1.58;
}

.method-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-list li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.method-list span {
  color: var(--steel);
}

.roi-section {
  background: var(--mist);
}

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

.roi-tool label {
  display: grid;
  gap: 8px;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 700;
}

.roi-tool input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
}

.roi-result {
  grid-column: 1 / -1;
  padding: 22px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  font-size: 24px;
  font-weight: 850;
}

.tool-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--steel);
  font-size: 14px;
  line-height: 1.5;
}

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

.security-grid div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 750;
}

.diagnostic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--ink);
  color: var(--white);
}

.diagnostic p {
  max-width: 720px;
  color: #dce5e6;
  line-height: 1.55;
}

.diagnostic .eyebrow {
  color: #7fd3c5;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 6vw;
  color: var(--steel);
  font-size: 14px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.brief-page {
  min-height: calc(100vh - 72px);
}

.error-page {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: 100vh;
  padding: 48px 8vw;
}

.error-page .button {
  margin-top: 28px;
}

.brief-intro {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 0;
}

.privacy-note {
  display: grid;
  gap: 6px;
  max-width: 880px;
  margin: 32px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--amber);
  background: #fff7ea;
  color: var(--graphite);
  line-height: 1.5;
}

.brief-form {
  margin-top: 40px;
}

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

.brief-field {
  min-width: 0;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.brief-field legend {
  padding: 0 6px;
  font-size: 20px;
  font-weight: 800;
}

.brief-field label {
  display: block;
  min-height: 48px;
  margin-bottom: 12px;
  color: var(--graphite);
  line-height: 1.5;
}

.brief-field textarea,
.brief-field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #aebbc1;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
}

.brief-field textarea {
  resize: vertical;
}

.brief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.brief-summary {
  scroll-margin-top: 96px;
  margin-top: 52px;
  padding: 32px;
  border: 1px solid var(--signal);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.brief-summary[hidden] {
  display: none;
}

.summary-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.summary-content article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-content h3 {
  font-size: 18px;
}

.summary-content p {
  margin: 0;
  color: var(--graphite);
  line-height: 1.55;
  white-space: pre-wrap;
}

@media (max-width: 960px) {
  .site-header {
    padding: 0 18px;
  }

  .site-nav {
    display: none;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 38px;
  }

  .vision-panel {
    order: -1;
  }

  .offer-grid,
  .roi-tool,
  .brief-grid,
  .summary-content {
    grid-template-columns: 1fr;
  }

  .method-list li {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .site-header {
    gap: 10px;
  }

  .header-action {
    min-height: 38px;
    padding: 0 11px;
    font-size: 12px;
  }

  .hero-stats,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 20px;
  }

  .hero {
    min-height: auto;
    padding-right: 20px;
    padding-left: 20px;
  }

  h1 {
    font-size: 42px;
  }

  .brief-field,
  .brief-summary {
    padding: 20px;
  }
}

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

  .skip-link {
    transition: none;
  }
}

@media print {
  .skip-link,
  .site-header,
  .brief-form,
  .brief-actions,
  .privacy-note,
  .site-footer {
    display: none !important;
  }

  body,
  .brief-summary {
    background: var(--white);
  }

  .brief-summary {
    display: block !important;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
