:root {
  color-scheme: dark;
  --ink: #11130f;
  --paper: #f6f1e7;
  --paper-2: #fffaf0;
  --muted: #b9c4b7;
  --muted-dark: #5f6a60;
  --green: #2f8f6e;
  --green-deep: #183d31;
  --amber: #c98f35;
  --rust: #b75246;
  --line: rgba(255, 250, 240, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  letter-spacing: 0;
  overflow-x: hidden;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(17, 19, 15, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.signal-strip,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--amber));
  color: #fffaf0;
  font-size: 14px;
}

.nav-links {
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.nav-action:hover {
  color: var(--paper-2);
}

.nav-action {
  min-height: 42px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 8px;
  color: var(--paper-2);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 148px clamp(20px, 6vw, 96px) 74px;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.68;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 19, 15, 0.96) 0%, rgba(17, 19, 15, 0.82) 38%, rgba(17, 19, 15, 0.4) 100%),
    linear-gradient(0deg, rgba(17, 19, 15, 0.92), rgba(17, 19, 15, 0.04) 50%, rgba(17, 19, 15, 0.7));
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 820px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: #e3a84e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--paper-2);
  font-size: clamp(48px, 6.3vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 22px;
  color: var(--paper-2);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  color: var(--paper-2);
  font-size: 22px;
  line-height: 1.18;
}

p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-copy {
  max-width: 700px;
  color: #d4ddcf;
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  background: var(--paper-2);
  color: var(--ink);
}

.button.secondary {
  border: 1px solid rgba(255, 250, 240, 0.28);
  color: var(--paper-2);
  background: rgba(255, 250, 240, 0.06);
}

.signal-strip {
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 18px clamp(20px, 6vw, 96px);
  background: #f2eadb;
  color: #17201a;
}

.signal-strip span {
  padding: 9px 14px;
  border: 1px solid #d6c7ae;
  border-radius: 8px;
  background: #fffaf0;
  font-size: 13px;
  font-weight: 800;
}

.section {
  padding: clamp(70px, 9vw, 126px) clamp(20px, 6vw, 96px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(360px, 1.16fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: start;
}

.split > *,
.security > *,
.section-heading {
  min-width: 0;
}

.split > div:first-child {
  position: sticky;
  top: 105px;
}

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

.market-grid article,
.deployment-grid article,
.feature-band article,
.security-list > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.06);
}

.market-grid article,
.deployment-grid article {
  min-height: 190px;
  padding: 28px;
}

.market-grid p,
.deployment-grid p,
.feature-band p {
  margin-bottom: 0;
  font-size: 16px;
}

.visual-section {
  background: #f6f1e7;
  color: var(--ink);
}

.visual-section h2,
.visual-section p,
.visual-section .eyebrow {
  color: var(--ink);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 40px;
}

.visual-section img {
  display: block;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(47, 38, 26, 0.22);
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(47, 143, 110, 0.22), rgba(201, 143, 53, 0.14)),
    #141713;
}

.feature-band article {
  padding: 32px;
}

.metric {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--amber);
  font-size: 14px;
  font-weight: 900;
}

.security {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(34px, 6vw, 80px);
  background: #0f120f;
}

.security-list {
  display: grid;
  gap: 14px;
}

.security-list > div {
  display: grid;
  gap: 7px;
  padding: 22px 24px;
}

.security-list strong {
  color: var(--paper-2);
  font-size: 17px;
}

.security-list span {
  color: var(--muted);
  line-height: 1.55;
}

.deployment {
  background: #f6f1e7;
}

.deployment h2,
.deployment h3,
.deployment p,
.deployment .eyebrow {
  color: var(--ink);
}

.deployment-grid article {
  background: #fffaf0;
  border-color: #d8cab3;
}

.cta {
  padding: clamp(78px, 10vw, 140px) clamp(20px, 6vw, 96px);
  background:
    linear-gradient(90deg, rgba(17, 19, 15, 0.92), rgba(17, 19, 15, 0.55)),
    url("/assets/evidprism-hero.png") center/cover;
}

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

.contact-hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 148px clamp(20px, 6vw, 96px) 70px;
}

.contact-hero-image,
.contact-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contact-hero-image {
  object-fit: cover;
  object-position: center;
  opacity: 0.52;
}

.contact-hero-overlay {
  background:
    linear-gradient(90deg, rgba(17, 19, 15, 0.96), rgba(17, 19, 15, 0.72) 52%, rgba(17, 19, 15, 0.42)),
    linear-gradient(0deg, rgba(17, 19, 15, 0.9), rgba(17, 19, 15, 0.08));
}

.contact-hero-content {
  position: relative;
  max-width: 880px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(390px, 1.12fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
  padding: clamp(70px, 9vw, 124px) clamp(20px, 6vw, 96px);
  background: #f6f1e7;
  color: var(--ink);
}

.contact-section h2,
.contact-section p,
.contact-section .eyebrow {
  color: var(--ink);
}

.contact-copy {
  position: sticky;
  top: 105px;
  min-width: 0;
}

.contact-methods,
.expectation-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-methods {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-methods a,
.expectation-list > div,
.contact-form {
  border: 1px solid #d8cab3;
  border-radius: 8px;
  background: #fffaf0;
}

.contact-methods a {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.contact-methods span,
.expectation-list span,
.contact-form label span {
  color: #6f5f44;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-methods strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.expectation-list > div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 18px;
}

.expectation-list span {
  grid-row: 1 / span 2;
  color: var(--amber);
  font-size: 14px;
}

.expectation-list strong {
  color: var(--ink);
}

.expectation-list small {
  color: var(--muted-dark);
  line-height: 1.55;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 28px 80px rgba(47, 38, 26, 0.14);
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: #17201a;
  background: #ffffff;
  border: 1px solid #d8cab3;
  border-radius: 8px;
  outline: none;
}

.contact-form textarea {
  min-height: 168px;
  resize: vertical;
  line-height: 1.55;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 143, 110, 0.18);
}

.contact-submit {
  border: 0;
  cursor: pointer;
}

.contact-submit:disabled {
  cursor: progress;
  opacity: 0.7;
}

.trap-field {
  position: absolute;
  left: -9999px;
}

.form-status {
  padding: 12px;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.45;
}

.form-status.success {
  color: #17342f;
  background: #e9f7d6;
  border: 1px solid #c2df8f;
}

.form-status.error {
  color: #7d2d2d;
  background: #fff1ec;
  border: 1px solid #e5b4a5;
}

.form-fallback {
  margin: 0;
  color: var(--muted-dark);
  font-size: 14px;
}

.form-fallback a {
  color: #1f6f58;
  font-weight: 800;
}

.footer {
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 6vw, 96px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .split,
  .security,
  .contact-section,
  .feature-band,
  .deployment-grid,
  .market-grid {
    grid-template-columns: 1fr;
  }

  .split > div:first-child {
    position: static;
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 66px;
    padding: 12px 16px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav-action {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 13px;
  }

  .hero {
    padding: 128px 18px 56px;
  }

  .contact-hero {
    min-height: 620px;
    padding: 128px 18px 56px;
  }

  main,
  section,
  .hero-content,
  .contact-hero-content,
  .split > *,
  .security > *,
  .section-heading {
    max-width: 100vw;
    overflow: hidden;
  }

  .hero-content,
  .contact-hero-content,
  .hero-copy,
  .section p,
  .section h2 {
    max-width: calc(100vw - 36px);
  }

  .hero-copy {
    max-width: 21ch;
  }

  .section p {
    max-width: 24ch;
  }

  h1 {
    max-width: 10ch;
    font-size: 40px;
    line-height: 1.04;
  }

  h2 {
    max-width: 13ch;
    font-size: 30px;
    line-height: 1.08;
  }

  p,
  .hero-copy {
    font-size: 17px;
    overflow-wrap: break-word;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 64px 18px;
  }

  .contact-section {
    padding: 64px 18px;
  }

  .contact-methods,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .market-grid article,
  .deployment-grid article,
  .feature-band article {
    padding: 24px;
  }

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