:root {
  color-scheme: dark;
  --bg: #111722;
  --bg-deep: #090e17;
  --panel: #171e2a;
  --panel-2: #202a38;
  --line: #334155;
  --text: #f8fafc;
  --muted: #b7c2d0;
  --muted-2: #8fa0b5;
  --green: #7bc16d;
  --green-strong: #cdcc00;
  --purple: #514de9;
  --orange: #f05a28;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(81, 77, 233, 0.18), transparent 30%),
    linear-gradient(270deg, rgba(123, 193, 109, 0.12), transparent 28%);
  opacity: 0.5;
  z-index: -2;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--green-strong);
  color: #111;
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand-lockup,
.header-nav,
.hero-actions,
.final-actions,
.site-footer address {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 14px;
}

.knock-logo {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.knock-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-divider {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.25);
}

.itbrasil-logo {
  width: 112px;
  padding: 6px 0;
}

.header-nav {
  gap: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.header-nav a {
  outline-offset: 6px;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--white);
}

.nav-cta {
  padding: 10px 14px;
  border: 1px solid rgba(205, 204, 0, 0.5);
  border-radius: 8px;
  color: var(--white);
  background: rgba(205, 204, 0, 0.08);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 86vh;
  background:
    linear-gradient(90deg, rgba(9, 14, 23, 0.95) 0%, rgba(9, 14, 23, 0.82) 48%, rgba(9, 14, 23, 0.62) 100%),
    url("assets/knocknoc-cover.png") center / cover;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: linear-gradient(90deg, var(--purple) 0 52%, var(--green) 52% 100%);
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 82%);
  z-index: -1;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 48px;
  align-items: center;
  width: min(var(--max), calc(100% - 48px));
  min-height: 86vh;
  margin: 0 auto;
  padding: 124px 0 56px;
}

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

.eyebrow,
.panel-kicker,
.model-label {
  margin: 0 0 12px;
  color: var(--green-strong);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 5rem;
  line-height: 0.95;
  font-weight: 900;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.35rem;
  line-height: 1.08;
  font-weight: 800;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.hero-lede {
  max-width: 660px;
  color: #dce5f0;
  font-size: 1.24rem;
}

.hero-actions,
.final-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

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

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--green-strong);
  color: #111;
  box-shadow: 0 12px 32px rgba(205, 204, 0, 0.24);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 36px 0 0;
}

.hero-proof div {
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(17, 23, 34, 0.72);
  backdrop-filter: blur(8px);
}

.hero-proof dt {
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-proof dd {
  margin: 7px 0 0;
  color: var(--text);
  font-size: 1rem;
}

.contact-panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(17, 23, 34, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.contact-panel h2 {
  margin-bottom: 20px;
  font-size: 1.35rem;
}

.lead-form {
  display: grid;
  gap: 12px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 12px 13px;
  outline: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--green-strong);
  box-shadow: 0 0 0 3px rgba(205, 204, 0, 0.12);
}

.check-field {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: start;
  color: var(--muted);
  font-size: 0.82rem;
}

.check-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--green-strong);
}

.form-submit {
  width: 100%;
  margin-top: 4px;
  cursor: pointer;
}

.form-note {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.78rem;
}

section:not(.hero) {
  padding: 88px 0;
}

.section-heading,
.risk-flow,
.capability-grid,
.architecture-rail,
.visual-evidence,
.model-grid,
.timeline,
.final-cta,
.site-footer {
  width: min(var(--max), calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  margin-bottom: 36px;
}

.section-heading.compact {
  max-width: 760px;
}

.section-heading p,
.evidence-copy p,
.model-card p,
.timeline span,
.site-footer p {
  color: var(--muted);
}

.risk-band {
  background: var(--bg-deep);
}

.risk-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.risk-flow article,
.capability-card,
.model-card,
.architecture-rail article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: var(--panel);
}

.risk-flow article {
  min-height: 260px;
  padding: 22px;
  position: relative;
}

.risk-flow article::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--purple);
}

.risk-flow article:nth-child(2)::after {
  background: var(--green-strong);
}

.risk-flow article:nth-child(3)::after {
  background: var(--orange);
}

.risk-flow article:nth-child(4)::after {
  background: var(--green);
}

.flow-index {
  display: block;
  margin-bottom: 22px;
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 900;
}

.risk-flow p,
.capability-card p,
.architecture-rail p {
  margin-bottom: 0;
  color: var(--muted);
}

.solution-section {
  background:
    linear-gradient(180deg, rgba(32, 42, 56, 0.38), transparent 35%),
    var(--bg);
}

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

.capability-card {
  min-height: 214px;
  padding: 22px;
}

.accent-line {
  display: block;
  width: 68px;
  height: 6px;
  margin-bottom: 28px;
  border-radius: 999px;
}

.accent-line.purple {
  background: var(--purple);
}

.accent-line.green {
  background: var(--green);
}

.accent-line.yellow {
  background: var(--green-strong);
}

.accent-line.orange {
  background: var(--orange);
}

.architecture-section {
  background: var(--bg-deep);
}

.architecture-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

.architecture-rail article {
  border-width: 0 1px 0 0;
  border-radius: 0;
  padding: 24px;
  background: rgba(23, 30, 42, 0.84);
}

.architecture-rail article:last-child {
  border-right: 0;
}

.architecture-rail span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 28px;
  border-radius: 8px;
  background: var(--green-strong);
  color: #111;
  font-weight: 900;
}

.visual-evidence {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 48px;
  align-items: center;
}

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

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.noc-board {
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(81, 77, 233, 0.16), transparent 42%),
    linear-gradient(315deg, rgba(123, 193, 109, 0.12), transparent 40%),
    #0b1018;
  box-shadow: var(--shadow);
}

.board-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.82rem;
}

.board-topline span {
  color: var(--green-strong);
  font-weight: 900;
  text-transform: uppercase;
}

.board-topline strong {
  color: var(--text);
}

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

.signal {
  position: relative;
  min-height: 84px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(23, 30, 42, 0.78);
  overflow: hidden;
}

.signal::before,
.signal::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.signal::before {
  top: 18px;
  height: 7px;
}

.signal::after {
  top: 38px;
  right: 38%;
  height: 5px;
  opacity: 0.78;
}

.signal.is-green {
  border-color: rgba(123, 193, 109, 0.34);
}

.signal.is-green::before {
  background: var(--green);
}

.signal.is-yellow {
  border-color: rgba(205, 204, 0, 0.38);
}

.signal.is-yellow::before {
  background: var(--green-strong);
}

.signal.is-orange {
  border-color: rgba(240, 90, 40, 0.42);
}

.signal.is-orange::before {
  background: var(--orange);
}

.signal.is-purple {
  border-color: rgba(81, 77, 233, 0.45);
}

.signal.is-purple::before {
  background: var(--purple);
}

.noc-board figcaption {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.noc-board figcaption span {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.models-section {
  background:
    linear-gradient(90deg, rgba(81, 77, 233, 0.1), transparent 50%),
    var(--bg-deep);
}

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

.model-card {
  padding: 28px;
}

.model-card.featured {
  border-color: rgba(205, 204, 0, 0.52);
  background: linear-gradient(180deg, rgba(205, 204, 0, 0.1), rgba(23, 30, 42, 0.96));
}

.model-card ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding-left: 19px;
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding-left: 0;
  list-style: none;
  counter-reset: step;
}

.timeline li {
  position: relative;
  min-height: 220px;
  padding: 58px 18px 20px;
  border-top: 3px solid var(--line);
  background: rgba(23, 30, 42, 0.62);
}

.timeline li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 17px;
  left: 18px;
  color: var(--green-strong);
  font-size: 0.86rem;
  font-weight: 900;
}

.timeline strong {
  display: block;
  margin-bottom: 12px;
  line-height: 1.2;
}

.timeline span {
  display: block;
  font-size: 0.94rem;
}

section.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  width: min(1180px, calc(100% - 96px));
  padding: clamp(34px, 4vw, 52px) clamp(40px, 5vw, 68px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(81, 77, 233, 0.22), transparent 46%),
    linear-gradient(270deg, rgba(123, 193, 109, 0.16), transparent 42%),
    var(--panel);
}

.final-cta > div:first-child {
  min-width: 0;
  max-width: 720px;
}

.final-cta h2 {
  margin-bottom: 0;
  max-width: 720px;
  font-size: clamp(2rem, 3vw, 2.45rem);
  line-height: 1.12;
}

.final-cta .eyebrow {
  margin-bottom: 14px;
}

.final-actions {
  justify-self: end;
  align-items: stretch;
  width: auto;
  max-width: none;
  margin: 0;
}

.final-actions .button {
  flex: 0 0 auto;
  min-width: 188px;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 0 46px;
  color: var(--muted);
}

.site-footer img {
  width: 112px;
  margin-bottom: 12px;
}

.site-footer p {
  margin: 0;
}

.site-footer address {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-style: normal;
}

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

@media (max-width: 1024px) {
  .site-header {
    align-items: flex-start;
  }

  .header-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 132px;
  }

  .contact-panel {
    max-width: 640px;
  }

  .risk-flow,
  .capability-grid,
  .architecture-rail,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .architecture-rail {
    border-radius: 8px;
  }

  .architecture-rail article:nth-child(2) {
    border-right: 0;
  }

  .architecture-rail article:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .visual-evidence {
    grid-template-columns: 1fr;
  }

  section.final-cta {
    grid-template-columns: 1fr;
    gap: 28px;
    width: min(var(--max), calc(100% - 72px));
    padding: 40px;
  }

  .final-actions {
    width: 100%;
    max-width: 470px;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: relative;
    width: min(var(--max), calc(100% - 32px));
    padding: 16px 0;
    background: var(--bg);
  }

  .brand-lockup {
    gap: 10px;
  }

  .knock-logo {
    width: 48px;
    height: 48px;
  }

  .itbrasil-logo {
    width: 92px;
  }

  .header-nav {
    display: none;
  }

  .hero {
    min-height: 0;
  }

  .hero::before {
    top: 0;
  }

  .hero-inner {
    width: min(var(--max), calc(100% - 32px));
    min-height: 0;
    padding: 64px 0 44px;
  }

  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero-lede {
    font-size: 1.08rem;
  }

  .hero-proof,
  .risk-flow,
  .capability-grid,
  .architecture-rail,
  .model-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-proof div,
  .risk-flow article,
  .capability-card {
    min-height: auto;
  }

  section:not(.hero) {
    padding: 62px 0;
  }

  .section-heading,
  .risk-flow,
  .capability-grid,
  .architecture-rail,
  .visual-evidence,
  .model-grid,
  .timeline,
  .final-cta,
  .site-footer {
    width: min(var(--max), calc(100% - 32px));
  }

  .architecture-rail article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .architecture-rail article:last-child {
    border-bottom: 0;
  }

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

  section.final-cta {
    width: min(var(--max), calc(100% - 40px));
    padding: 30px 24px;
  }

  .final-cta h2 {
    font-size: 1.78rem;
  }

  .final-actions {
    max-width: none;
  }

  .final-actions .button {
    flex-basis: 100%;
    width: 100%;
  }

  .site-footer address {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
