:root {
  --ink: #082f33;
  --deep: #073235;
  --deep-2: #0b4b4f;
  --paper: #fbf7ee;
  --paper-2: #fffdf8;
  --gold: #c9a052;
  --gold-2: #ead7a6;
  --line: rgba(8, 47, 51, 0.16);
  --muted: #607579;
  --white: #ffffff;
  --shadow: 0 28px 80px rgba(5, 28, 30, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 160, 82, 0.22), transparent 28%),
    linear-gradient(145deg, #06292c 0%, #0b3d40 48%, #06292c 100%);
}

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

.site-header {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand-mark,
.cert-seal {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #050b0c;
  color: var(--white);
  font-weight: 900;
  font-size: 26px;
  font-family: Georgia, serif;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-size: 27px;
  letter-spacing: 0;
}

.brand-copy small {
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 800;
}

.nav-pill {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--gold);
  color: #10252a;
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 28px;
}

.hero {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.86fr);
  align-items: center;
  gap: 46px;
  padding: 28px 0 64px;
}

.hero-copy {
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.55;
}

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

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
}

.btn.primary {
  background: var(--gold);
  color: #10252a;
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.certificate,
.band,
.split,
.console {
  background: linear-gradient(135deg, var(--paper-2), var(--paper));
  border: 1px solid rgba(234, 215, 166, 0.78);
  box-shadow: var(--shadow);
}

.certificate {
  border-radius: 10px;
  padding: 18px;
}

.cert-frame {
  min-height: 520px;
  padding: 28px;
  border: 1px solid var(--gold);
  outline: 1px solid rgba(201, 160, 82, 0.28);
  outline-offset: -8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.92), rgba(251, 247, 238, 0.9));
}

.cert-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.cert-top p {
  margin: 0 0 4px;
  color: #9b742d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cert-top strong {
  font-family: Georgia, serif;
  font-size: 31px;
}

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

.cert-grid div,
.metric,
.evidence-list div,
.steps article {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.cert-grid div {
  padding: 17px;
  border-radius: 8px;
}

dt {
  color: #80632f;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline span {
  padding: 13px 14px;
  border-left: 3px solid var(--gold);
  background: rgba(8, 47, 51, 0.06);
  font-weight: 850;
}

.band,
.split,
.console {
  border-radius: 10px;
  padding: 44px;
  margin-bottom: 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1.05;
}

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

.steps article {
  min-height: 210px;
  padding: 22px;
  border-radius: 8px;
}

.steps span {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-family: Georgia, serif;
  font-size: 24px;
}

.steps p,
.split p,
.empty-state span,
.evidence-list span {
  color: var(--muted);
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: start;
}

.evidence-list {
  display: grid;
  gap: 10px;
}

.evidence-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px;
  border-radius: 8px;
}

.evidence-list strong {
  min-width: 130px;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.metric {
  min-height: 110px;
  padding: 20px;
  border-radius: 8px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.metric strong {
  display: block;
  margin-top: 12px;
  font-family: Georgia, serif;
  font-size: 44px;
}

.table-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
}

.table-head {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 47, 51, 0.18);
  color: rgba(8, 47, 51, 0.5);
  font-weight: 900;
}

.sign-app main {
  width: min(1180px, calc(100% - 36px));
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.app-main {
  display: grid;
  gap: 24px;
}

.app-hero,
.app-section {
  border: 1px solid rgba(234, 215, 166, 0.78);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--paper-2), var(--paper));
  box-shadow: var(--shadow);
}

.app-hero {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding: 44px;
}

.app-hero h1 {
  max-width: 860px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(38px, 5vw, 68px);
}

.app-hero .lead {
  max-width: 760px;
  color: var(--muted);
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.app-actions button,
.app-section button {
  min-height: 44px;
  background: var(--gold);
  color: #10252a;
  opacity: 0.58;
}

.app-section {
  padding: 36px;
}

.compact {
  align-items: start;
}

.table-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 0.8fr 0.7fr;
  gap: 16px;
}

.module-list {
  display: grid;
  gap: 12px;
}

.module-list div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.module-list strong,
.module-list span {
  display: block;
}

.module-list span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

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

.evidence-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps-three {
  grid-template-columns: repeat(3, 1fr);
}

.empty-state {
  min-height: 140px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 28px;
  text-align: center;
}

.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.site-footer span {
  margin-right: auto;
}

.public-sign-hero .cert-frame {
  min-height: 480px;
}

.signed-user {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.sign-login-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: min(100%, 560px);
  margin: 0;
}

.login-card {
  padding: 34px;
  border: 1px solid rgba(234, 215, 166, 0.78);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--paper-2), var(--paper));
  box-shadow: var(--shadow);
}

.login-brand {
  margin-bottom: 28px;
  color: var(--ink);
}

.login-card h1 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 42px;
}

.login-card p {
  color: var(--muted);
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.login-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.login-form input[name="company_website"] {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.login-form label {
  color: #80632f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.twofa-row {
  display: grid;
  gap: 10px;
}

.auth-error {
  min-height: 22px;
  margin: 4px 0;
  color: #9b2c2c;
  font-weight: 800;
}

.login-form .btn {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.login-form .btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

.login-back {
  display: inline-flex;
  margin-top: 18px;
  color: var(--ink);
  font-weight: 900;
}

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

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

  .hero {
    min-height: auto;
    padding-top: 18px;
  }

  .steps,
  .console-grid,
  .app-grid-two,
  .evidence-grid,
  .steps-three {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .app-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: 45px;
  }

  h2 {
    font-size: 31px;
  }

  .band,
  .split,
  .console,
  .cert-frame {
    padding: 22px;
  }

  .steps,
  .console-grid,
  .cert-grid,
  .app-grid-two,
  .evidence-grid,
  .steps-three,
  .table-row {
    grid-template-columns: 1fr;
  }

  .app-hero,
  .app-section {
    padding: 24px;
  }

  .evidence-list div,
  .section-head,
  .site-footer {
    display: grid;
  }

  .site-footer span {
    margin-right: 0;
  }

  .login-card {
    padding: 24px;
  }
}
