:root {
  --teal-deep: #004d5a;
  --orange-warm: #e65100;
  --orange-glow: #ff7a33;
  --white: #ffffff;
  --black: #0a0a0a;
  --nav-height: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--white);
  background: var(--teal-deep);
}

.page {
  min-height: 100vh;
  position: relative;
}

/* ——— Nav ——— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  height: var(--nav-height);
  background: linear-gradient(
    180deg,
    rgba(0, 30, 40, 0.55) 0%,
    rgba(0, 30, 40, 0) 100%
  );
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
}

.logo-mark {
  display: block;
  width: 1.5rem;
  height: 1.35rem;
  background: repeating-linear-gradient(
    125deg,
    var(--white) 0px,
    var(--white) 3px,
    transparent 3px,
    transparent 6px
  );
  opacity: 0.95;
}

.logo-text {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
}

.nav-link:hover {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.25);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.link-login {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.95;
}

.link-login:hover {
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-nav {
  background: var(--white);
  color: var(--black);
  padding: 0.55rem 1.15rem;
}

.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

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

  .nav-toggle {
    display: flex;
  }

  .nav.nav-open .nav-links,
  .nav.nav-open .nav-actions {
    display: flex;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(0, 40, 50, 0.97);
    backdrop-filter: blur(12px);
  }

  .nav.nav-open .nav-links {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav.nav-open .nav-link {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav.nav-open .nav-link:hover {
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }

  .nav.nav-open .nav-actions {
    padding-top: 1rem;
    gap: 1rem;
  }

  .nav.nav-open .link-login {
    padding: 0.5rem 0;
  }

  .nav.nav-open .btn-nav {
    width: 100%;
    padding: 0.75rem;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    #003844 0%,
    var(--teal-deep) 28%,
    #1a5c5a 52%,
    #c44a12 78%,
    var(--orange-warm) 100%
  );
}

.hero-stripes {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 48px
  );
  pointer-events: none;
}

.hero-readability {
  position: absolute;
  width: min(90vw, 720px);
  height: min(70vh, 520px);
  left: clamp(1rem, 6vw, 4rem);
  top: 50%;
  transform: translateY(-42%);
  background: radial-gradient(
    ellipse at 30% 50%,
    rgba(0, 20, 30, 0.45) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  width: 100%;
}

.hero-copy {
  max-width: 42rem;
  padding-left: clamp(0.85rem, 2vw, 1.15rem);
  border-left: 3px solid rgba(127, 212, 224, 0.55);
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.title-case {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.headline {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25);
}

.subhead {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 32rem;
}

.hero-body {
  margin: 0 0 1.75rem;
  max-width: 32rem;
}

.hero-body p {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.hero-body p:last-child {
  margin-bottom: 0;
}

.hero-lede {
  margin: 0 0 1.25rem;
  max-width: 38rem;
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.9);
}

.hero-meta {
  margin: 0 0 1.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.hero-secondary-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 0.05em;
}

.hero-secondary-link:hover {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.btn-hero {
  background: var(--white);
  color: var(--black);
  padding: 1rem 1.75rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  gap: 0.5rem;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.btn-chevron {
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: -0.15em;
  margin-left: 0.15rem;
}

/* ——— Document sections ——— */
.doc-wrap {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem)
    clamp(3rem, 6vw, 5rem);
  max-width: 1280px;
  margin: 0 auto;
  background: linear-gradient(
    180deg,
    rgba(0, 36, 48, 0.35) 0%,
    var(--teal-deep) 28%
  );
}

.doc-section {
  scroll-margin-top: calc(var(--nav-height) + 1rem);
  padding: 2.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 40rem;
}

.doc-section:first-of-type {
  border-top: none;
  padding-top: 1rem;
}

.doc-section--overview {
  max-width: min(52rem, 100%);
  margin-left: auto;
  margin-right: auto;
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
  padding-left: clamp(1.1rem, 2.5vw, 1.6rem);
  padding-right: clamp(1.1rem, 2.5vw, 1.6rem);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.doc-section--overview:first-of-type {
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
}

.overview-body {
  max-width: 44rem;
}

.doc-section--overview .overview-body p {
  font-size: clamp(0.98rem, 1.1vw, 1.05rem);
  line-height: 1.68;
}

.doc-section--wide {
  max-width: 52rem;
}

.doc-section--callout {
  max-width: 44rem;
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.callout {
  padding: 1.75rem clamp(1.25rem, 3vw, 1.85rem) 1.5rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.callout h2 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.callout p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.84);
}

.callout p:last-of-type {
  margin-bottom: 0;
}

.callout-cta {
  margin-top: 1.35rem;
}

.callout-foot {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
  font-size: 0.8125rem !important;
  line-height: 1.5 !important;
  color: rgba(255, 255, 255, 0.48) !important;
}

.doc-section h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.doc-subheading {
  margin: 2rem 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.doc-section .doc-subheading:first-of-type {
  margin-top: 1.25rem;
}

.inline-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.12em 0.35em;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

.badge-showcase {
  display: grid;
  gap: 1.5rem;
  margin: 1rem 0 0;
}

@media (min-width: 720px) {
  .badge-showcase {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
}

.badge-preview {
  margin: 0;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
}

.badge-preview-label {
  margin: 0 0 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.badge-preview-link {
  display: inline-block;
  line-height: 0;
  border-radius: 0.35rem;
}

.badge-preview-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
}

.badge-preview-link img {
  display: block;
}

.cert-note {
  margin-top: 1rem !important;
}

.cert-program {
  margin: 1.5rem 0 2.25rem;
  padding: 1.75rem clamp(1.25rem, 3vw, 2rem) 1.5rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(230, 81, 0, 0.08) 100%
  );
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cert-program-headline {
  margin: 0 0 1.15rem;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  border: none;
}

.cert-program-line {
  display: block;
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--white);
}

.cert-program-line:last-child {
  margin-top: 0.2rem;
}

.cert-program p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.88);
}

.cert-program p:last-of-type {
  margin-bottom: 0;
}

.cert-program-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
  margin-bottom: 0;
}

.cert-program-wink {
  margin-top: 1.25rem !important;
  margin-bottom: 0 !important;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem !important;
  line-height: 1.5 !important;
  color: rgba(255, 255, 255, 0.5) !important;
}

/* ——— Trust Services Criteria (standalone section) ——— */
.tsc-standalone {
  position: relative;
  z-index: 2;
  scroll-margin-top: calc(var(--nav-height) + 1rem);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem)
    clamp(3.5rem, 6vw, 5rem);
  background: linear-gradient(
    165deg,
    rgba(0, 30, 42, 0.97) 0%,
    #00323d 35%,
    #0a3d44 55%,
    rgba(180, 70, 20, 0.12) 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tsc-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.tsc-intro {
  margin: 0 0 1.25rem;
  max-width: 48rem;
}

.tsc-intro h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--white);
}

.criteria-lead {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

.criteria-scope-note {
  margin: 0 0 2.75rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.52);
  max-width: 48rem;
}

.tsc-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.25rem;
  align-items: stretch;
}

@media (max-width: 768px) {
  .tsc-category-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.tsc-category-card {
  margin: 0;
  padding: 1.55rem 1.45rem 1.6rem;
  background: rgba(8, 38, 48, 0.92);
  scroll-margin-top: calc(var(--nav-height) + 0.75rem);
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.tsc-category-card--full {
  grid-column: 1 / -1;
  padding: 1.65rem 1.5rem 1.75rem;
}

.tsc-category-card--full .tsc-category-desc {
  max-width: none;
}

.tsc-cc-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  align-items: start;
}

@media (max-width: 840px) {
  .tsc-cc-columns {
    grid-template-columns: 1fr;
  }

  .tsc-cc-columns .tsc-criteria-rows + .tsc-criteria-rows {
    margin-top: 0.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.tsc-auditor-guidance {
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
  padding: 1.65rem 1.65rem 1.7rem;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0.5rem;
  border: 1px solid rgba(127, 212, 224, 0.35);
  border-left-width: 5px;
  background: rgba(0, 22, 30, 0.72);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.tsc-auditor-guidance h3 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.tsc-auditor-guidance p {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.tsc-category-label {
  margin: 0 0 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.tsc-category-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--white);
}

.tsc-category-desc {
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
  max-width: 36rem;
}

.tsc-criteria-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tsc-criterion-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 0.85rem;
  align-items: start;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tsc-criterion-row:first-of-type {
  border-top: none;
  padding-top: 0.15rem;
}

.tsc-criterion-badge {
  flex-shrink: 0;
  display: inline-block;
  min-width: 2.75rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.03em;
  text-align: center;
  color: #0d3a5c;
  background: linear-gradient(180deg, #c5e4ff 0%, #9dcbf5 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.tsc-criterion-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 480px) {
  .tsc-criterion-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .tsc-criterion-badge {
    justify-self: start;
  }
}

.doc-section p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.84);
}

.doc-section p:last-child {
  margin-bottom: 0;
}

.doc-list {
  margin: 0;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
}

.doc-list li {
  margin-bottom: 0.85rem;
}

.doc-list li:last-child {
  margin-bottom: 0;
}

.doc-list strong {
  color: var(--white);
  font-weight: 600;
}

.doc-list--tight li {
  margin-bottom: 0.6rem;
}

.doc-note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
  margin-top: 1.25rem;
}

@media (max-width: 900px) {
  .hero-inner {
    padding-bottom: 3rem;
  }

  .hero-copy {
    padding-left: 0.65rem;
    border-left-width: 2px;
  }

  .hero-readability {
    left: 50%;
    transform: translate(-50%, -40%);
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover,
  .btn-nav:hover,
  .btn-hero:hover {
    transform: none;
  }
}
