
:root {
  --bg: #061116;
  --panel: rgba(7, 25, 31, 0.88);
  --panel-strong: #0a2028;
  --ink: #f5fbfd;
  --muted: #b7c8ce;
  --line: rgba(255, 255, 255, 0.14);
  --cyan: #67e8f9;
  --teal: #2dd4bf;
  --green: #86efac;
  --amber: #fbbf24;
  --red: #fb7185;
  --navy: #081827;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(3, 15, 20, 0.72);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #041216;
  box-shadow: 0 12px 30px rgba(45, 212, 191, 0.24);
}
.site-header nav { display: flex; gap: clamp(14px, 2vw, 26px); color: var(--muted); font-size: 14px; }
.site-header nav a:hover { color: var(--cyan); }
.icon-button, .primary-action, .secondary-action, .footer-checkout {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.primary-action {
  color: #041216;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 18px 44px rgba(103, 232, 249, 0.22);
}
.secondary-action, .icon-button, .footer-checkout {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--ink);
}
.primary-action:hover, .secondary-action:hover, .icon-button:hover, .footer-checkout:hover { transform: translateY(-1px); }
.full { width: 100%; }
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 92px clamp(18px, 4vw, 56px) 42px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("/assets/certcore-hero-cra-command-center.png");
  background-size: cover;
  background-position: center;
  filter: saturate(1.06);
  transform: scale(1.02);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 8, 12, .94), rgba(4, 17, 22, .78) 46%, rgba(4, 17, 22, .38)),
    linear-gradient(0deg, rgba(6, 17, 22, .98), rgba(6, 17, 22, .1) 42%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, .72fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: end;
  max-width: 1220px;
  width: 100%;
  margin: 0 auto;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(62px, 11vw, 138px);
  line-height: .86;
  margin-bottom: 20px;
  letter-spacing: 0;
}
.hero-lede {
  max-width: 760px;
  color: #d8e9ef;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #d6e7ec;
  font-size: 13px;
}
.proof-row span, .status-chip, .recommended {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,255,255,.07);
}
.hero-tool, .dialog-panel, .dialog-aside, .price-card, .feature-grid article, .timeline-grid article, .calendar-grid article, .article-cta, .article-callout, .vuln-panel, .doc-form, #doc-output, #sbom-output {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 22, 28, .82);
  box-shadow: var(--shadow);
}
.hero-tool {
  padding: 18px;
  backdrop-filter: blur(16px);
}
.tool-header, .panel-title, .selected-summary, .price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.tool-header strong {
  color: #041216;
  background: var(--green);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
}
label { display: grid; gap: 8px; color: #d9e8ed; font-weight: 750; font-size: 13px; margin-bottom: 12px; }
select, input, textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(0,0,0,.28);
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}
select:focus, input:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(103,232,249,.12); }
.tool-output {
  margin-top: 14px;
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.tool-output span { font-weight: 900; }
.tool-output small, .muted, .price-note { color: var(--muted); line-height: 1.55; }
.section {
  padding: clamp(72px, 9vw, 116px) clamp(18px, 4vw, 56px);
  max-width: 1240px;
  margin: 0 auto;
}
.section-heading { max-width: 780px; margin-bottom: 30px; }
.section-heading h2, .page-hero h1, .article-page h1 { font-size: clamp(36px, 5vw, 68px); line-height: .98; margin-bottom: 16px; }
.section-heading p, .page-hero p, .article-intro { color: var(--muted); font-size: 18px; line-height: 1.65; }
.feature-grid, .timeline-grid, .calendar-grid, .pricing-grid, .resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feature-grid article, .timeline-grid article, .calendar-grid article, .price-card {
  padding: 22px;
  box-shadow: none;
}
.feature-grid strong, .timeline-grid strong, .calendar-grid strong { display: block; font-size: 20px; margin-bottom: 8px; }
.feature-grid span, .timeline-grid p, .calendar-grid p, .price-card p { color: var(--muted); line-height: 1.6; }
.lab-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}
textarea { min-height: 176px; resize: vertical; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.result-stack { display: grid; gap: 14px; }
pre {
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  color: #d9fbff;
  line-height: 1.45;
}
#sbom-output, #doc-output { min-height: 208px; padding: 18px; background: #061014; }
.vuln-panel { padding: 18px; box-shadow: none; }
.vuln-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.severity { width: 10px; height: 10px; border-radius: 999px; }
.critical { background: var(--red); }
.high { background: var(--amber); }
.medium { background: var(--cyan); }
.timeline-grid article span, .calendar-grid article span {
  display: inline-block;
  color: var(--cyan);
  font-weight: 950;
  margin-bottom: 12px;
}
.calendar-grid article span { font-size: 34px; }
.doc-generator {
  display: grid;
  grid-template-columns: minmax(0, .74fr) minmax(320px, .62fr) minmax(0, .9fr);
  gap: 18px;
  align-items: start;
}
.doc-form { padding: 18px; box-shadow: none; }
.pricing-section { max-width: 1320px; }
.pricing-toggle { margin: -8px 0 22px; }
.billing-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  padding: 4px;
  gap: 4px;
}
.billing-toggle button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 9px 12px;
  font-weight: 850;
}
.billing-toggle button.is-active { background: var(--cyan); color: #031217; }
.price-card { position: relative; display: grid; gap: 12px; }
.price-card.is-featured { border-color: rgba(103,232,249,.54); background: rgba(9, 40, 49, .9); }
.recommended { position: absolute; top: 14px; right: 14px; color: var(--green); font-size: 12px; }
.price-card h3 { font-size: 26px; margin: 0; }
.price-line span { font-size: 42px; font-weight: 950; }
.price-line small { color: var(--muted); }
.resources { padding-top: 40px; }
.resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.resource-grid a {
  display: grid;
  gap: 8px;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255,255,255,.04);
  font-weight: 900;
}
.resource-grid span { color: var(--muted); font-weight: 500; line-height: 1.5; }
.page-hero {
  padding: 138px clamp(18px, 4vw, 56px) 64px;
  max-width: 980px;
  margin: 0 auto;
}
.page-hero.compact { min-height: 54vh; display: grid; align-content: center; }
.article-page {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  padding: 132px 0 80px;
}
.article-page h1 { margin-bottom: 22px; }
.article-page h2 { font-size: 28px; margin: 40px 0 14px; }
.article-page p, .article-page li { color: var(--muted); line-height: 1.7; font-size: 17px; }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--cyan); font-weight: 850; }
.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  margin: 28px 0;
  box-shadow: none;
}
.article-cta span { font-weight: 900; }
.article-list { padding-left: 20px; }
.article-callout { padding: 20px; box-shadow: none; }
.reference-links { display: flex; flex-wrap: wrap; gap: 10px; }
.reference-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--cyan);
  background: rgba(103,232,249,.08);
}
.faq-list details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.faq-list summary { cursor: pointer; font-weight: 900; }
.checkout-done { text-align: center; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 42px clamp(18px, 4vw, 56px);
  background: #030b0f;
}
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) repeat(3, minmax(0, .7fr));
  gap: 28px;
}
.footer-grid h2 { font-size: 14px; margin-bottom: 12px; color: var(--cyan); text-transform: uppercase; letter-spacing: .08em; }
.footer-grid a, .footer-grid button { display: flex; margin: 8px 0; color: var(--muted); }
.footer-link-stack { max-height: 230px; overflow: auto; padding-right: 6px; }
.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(1, 7, 10, .72);
  backdrop-filter: blur(12px);
}
.checkout-overlay[hidden] { display: none; }
body.checkout-open main, body.checkout-open .site-header, body.checkout-open .site-footer { filter: blur(3px); }
.plan-dialog {
  position: relative;
  width: min(960px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid rgba(103,232,249,.26);
  border-radius: 8px;
  background: #061116;
  box-shadow: 0 30px 90px rgba(0,0,0,.58);
}
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
  color: var(--ink);
}
.dialog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0;
}
.dialog-panel { padding: 28px; border: 0; border-radius: 0; box-shadow: none; }
.dialog-aside {
  border-width: 0 0 0 1px;
  border-radius: 0;
  padding: 28px;
  box-shadow: none;
  background: linear-gradient(180deg, rgba(103,232,249,.08), rgba(134,239,172,.06));
}
.dialog-aside ul { padding-left: 18px; color: var(--muted); line-height: 1.75; }
.modal-plans { display: grid; gap: 10px; margin: 18px 0; }
.modal-plans button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255,255,255,.05);
  color: var(--ink);
}
.modal-plans button.is-selected { border-color: var(--cyan); background: rgba(103,232,249,.1); }
.modal-plans span { color: var(--muted); }
.modal-plans em { grid-row: span 2; align-self: center; color: var(--cyan); font-style: normal; font-weight: 950; }
.selected-summary {
  margin: 16px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.payment-facts { display: grid; gap: 10px; margin: 18px 0; }
.payment-facts span { border: 1px solid var(--line); border-radius: 8px; padding: 10px; color: var(--muted); }
@media (max-width: 980px) {
  .site-header nav { display: none; }
  .hero-inner, .lab-layout, .doc-generator, .dialog-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-tool { max-width: 620px; }
  .feature-grid, .timeline-grid, .calendar-grid, .pricing-grid, .resource-grid, .footer-grid { grid-template-columns: 1fr; }
  .dialog-aside { border-width: 1px 0 0; }
}
@media (max-width: 620px) {
  .site-header { padding: 12px 14px; }
  .brand span:last-child { display: none; }
  .hero { padding-inline: 14px; }
  h1 { font-size: 60px; }
  .hero-actions, .inline-actions, .article-cta { align-items: stretch; flex-direction: column; }
  .primary-action, .secondary-action, .icon-button { width: 100%; white-space: normal; text-align: center; }
  .tool-header, .selected-summary, .price-line { align-items: flex-start; flex-direction: column; }
  .article-page { width: calc(100% - 28px); }
}
