:root {
  --bg: #f5f5f4;
  --bg-soft: #ffffff;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --text: #111111;
  --muted: #6b7280;
  --muted-strong: #374151;
  --accent: #111111;
  --accent-soft: rgba(17, 17, 17, 0.04);
  --accent-secondary: #e7e5e4;
  --danger: #b91c1c;
  --warning: #a16207;
  --success: #166534;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1780px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 8%, rgba(0, 0, 0, 0.035), transparent 24%),
    radial-gradient(circle at 84% 12%, rgba(15, 23, 42, 0.03), transparent 22%),
    linear-gradient(180deg, #fbfbfa 0%, #f4f4f3 48%, #efefee 100%);
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 100%);
  pointer-events: none;
  opacity: 0.09;
}

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

.container {
  width: min(var(--max-width), calc(100% - 1rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.site-header__inner {
  width: min(var(--max-width), calc(100% - 1rem));
  margin: 0 auto;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #111111;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  font-weight: 800;
  font-size: 1.02rem;
}

.brand__text {
  display: grid;
  gap: 0.18rem;
}

.brand__name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand__tagline {
  font-size: 0.92rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

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

.nav-link {
  color: var(--muted-strong);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  transition: color 160ms ease;
}

.nav-link:hover {
  color: #000000;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 1rem 1.45rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button--primary {
  color: #ffffff;
  background: #111111;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.button--secondary {
  color: var(--text);
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.button--ghost {
  color: var(--muted-strong);
  padding-inline: 0.85rem;
  background: transparent;
}

.hero,
.auth-page,
.scanner-page {
  padding: 4rem 0;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted-strong);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  margin: 1rem 0 1rem;
  font-size: clamp(3rem, 5.6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 16ch;
}

.hero p,
.page-subtitle {
  margin: 0;
  max-width: 72ch;
  color: var(--muted-strong);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero__actions,
.page-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero__points {
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.hero__points li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted-strong);
}

.hero__points span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  box-shadow: 0 0 16px rgba(159, 183, 161, 0.25);
}

.hero-visual {
  position: relative;
  min-height: 440px;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 248, 247, 0.98)),
    radial-gradient(circle at center, rgba(17, 17, 17, 0.04), transparent 56%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.hero-visual::after {
  inset: 30%;
  border-color: rgba(15, 23, 42, 0.06);
}

.hero-visual__ring {
  position: absolute;
  inset: 12%;
  border-radius: 999px;
  border: 1px dashed rgba(15, 23, 42, 0.1);
}

.hero-visual__sweep {
  position: absolute;
  inset: 18%;
  border-radius: 999px;
  background: conic-gradient(from 90deg, rgba(17, 17, 17, 0.08), transparent 34%);
  filter: blur(6px);
  animation: rotate 14s linear infinite;
}

.hero-visual__core {
  position: absolute;
  inset: 38%;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(17, 17, 17, 0.06), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #111111;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-visual__readout {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  width: min(320px, calc(100% - 2.5rem));
  padding: 1rem 1.1rem;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
  color: var(--muted-strong);
  display: grid;
  gap: 0.6rem;
  backdrop-filter: blur(18px);
}

.hero-visual--logo {
  display: grid;
  place-items: center;
}

.hero-visual__backdrop {
  position: absolute;
  inset: 8%;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 34%, rgba(83, 221, 255, 0.16), transparent 28%),
    radial-gradient(circle at 50% 70%, rgba(108, 245, 142, 0.08), transparent 22%);
  border: 1px solid rgba(83, 221, 255, 0.08);
}

.hero-visual__shield {
  position: relative;
  z-index: 1;
  width: min(68%, 360px);
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgba(83, 221, 255, 0.24))
    drop-shadow(0 0 42px rgba(108, 245, 142, 0.16));
}

.readout-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

.section {
  padding: 2.6rem 0;
}

.section__header {
  margin-bottom: 1.5rem;
}

.section__header h2 {
  margin: 0.35rem 0 0.7rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.section__header p {
  margin: 0;
  color: var(--muted-strong);
  max-width: 54ch;
  line-height: 1.75;
}

.feature-grid,
.preview-grid,
.results-grid,
.footer__layout,
.scanner-layout {
  display: grid;
  gap: 1rem;
}

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

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

.scanner-layout {
  grid-template-columns: minmax(0, 1.65fr) minmax(380px, 0.72fr);
}

.feature-card,
.preview-card,
.result-card,
.info-panel,
.auth-card,
.scan-form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.45rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.feature-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 700;
}

.feature-card h3,
.preview-card h3,
.result-card h3,
.info-panel h3,
.scan-form h3,
.auth-card h1 {
  margin: 0;
  font-size: 1.18rem;
}

.feature-card p,
.preview-card p,
.result-card p,
.info-panel p {
  color: var(--muted-strong);
  line-height: 1.7;
}

.preview-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer {
  margin-top: 2rem;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.footer__layout {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
}

.footer h4 {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer p {
  color: var(--muted-strong);
  line-height: 1.7;
}

.auth-layout {
  min-height: calc(100vh - 76px - 2rem);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(480px, calc(100% - 2rem));
  padding: 2rem;
}

.auth-login-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(17, 17, 17, 0.04), transparent 26%),
    radial-gradient(circle at 18% 12%, rgba(15, 23, 42, 0.03), transparent 18%),
    linear-gradient(180deg, #fafaf9 0%, #f4f4f3 48%, #efefee 100%);
}

.auth-login-page::before {
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.06;
}

.auth-page--login {
  padding: clamp(2.5rem, 7vw, 5rem) 1rem;
}

.auth-shell {
  width: min(470px, calc(100% - 1.5rem));
  margin: 0 auto;
  display: grid;
  gap: 1.4rem;
}

.auth-brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.auth-brand__icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.auth-brand__icon svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: #111111;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-brand__text {
  display: grid;
  gap: 0.2rem;
}

.auth-brand__name {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #111111;
}

.auth-brand__tagline {
  color: #6b7280;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.auth-card--login {
  width: 100%;
  padding: 1.7rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.08);
}

.auth-card h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.85rem;
}

.auth-card__body {
  color: var(--muted-strong);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.auth-card__body--centered {
  text-align: center;
  margin-bottom: 1.15rem;
}

.auth-status-banner {
  margin-top: 0;
  margin-bottom: 1rem;
}

.social-stack {
  display: grid;
  gap: 0.7rem;
}

.social-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 54px;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.96);
  color: #111111;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    opacity 180ms ease;
}

.social-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(15, 23, 42, 0.18);
  background: rgba(249, 250, 251, 0.98);
}

.social-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.social-button--google {
  justify-content: flex-start;
}

.social-button--github {
  background: rgba(255, 255, 255, 0.96);
}

.social-button__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 800;
}

.social-button__icon--google {
  background: #f5f5f4;
  color: #4285f4;
}

.social-button__icon--github {
  background: #111111;
  color: #ffffff;
}

.auth-provider-note {
  min-height: 1rem;
  margin: 0;
  color: #6b7280;
  font-size: 0.83rem;
  line-height: 1.5;
}

.auth-divider {
  position: relative;
  margin: 1rem 0 1.15rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 0.9rem;
  background: rgba(255, 255, 255, 0.98);
}

.field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.field__split {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.field label {
  font-size: 0.92rem;
  color: var(--muted-strong);
}

.input {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input:focus {
  border-color: rgba(17, 17, 17, 0.2);
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.05);
}

.field__error {
  min-height: 1.15rem;
  color: #d9b5ad;
  font-size: 0.85rem;
}

.auth-inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #111111;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-inline-link:hover {
  color: #000000;
}

.helper-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.credential-hint,
.notice,
.results-grid--empty {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  line-height: 1.65;
}

.credential-hint {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted-strong);
}

.credential-hint--compact {
  margin-top: 1rem;
}

.terms-card {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.terms-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.terms-card__title {
  font-weight: 700;
  color: #111111;
}

.terms-card__version {
  margin-top: 0.18rem;
  color: #6b7280;
  font-size: 0.82rem;
}

.terms-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(17, 17, 17, 0.05);
  color: #111111;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.terms-badge.is-accepted {
  background: rgba(22, 101, 52, 0.08);
  color: #166534;
  border-color: rgba(22, 101, 52, 0.16);
}

.terms-card__summary,
.terms-card__meta {
  margin: 0.75rem 0 0;
  color: #4b5563;
  line-height: 1.6;
  font-size: 0.9rem;
}

.terms-card__actions {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.terms-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(17, 17, 17, 0.04);
  color: #111111;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.terms-action-button:hover:not(:disabled) {
  background: rgba(17, 17, 17, 0.08);
}

.terms-action-button:disabled {
  opacity: 0.58;
  cursor: default;
}

.terms-card__details {
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 0.95rem;
  max-height: 280px;
  overflow: auto;
}

.terms-point-list,
.terms-section__list {
  margin: 0;
  padding-left: 1rem;
  color: #4b5563;
  display: grid;
  gap: 0.48rem;
  line-height: 1.6;
  font-size: 0.9rem;
}

.terms-section {
  display: grid;
  gap: 0.5rem;
}

.terms-section__title {
  color: #111111;
  font-weight: 700;
  font-size: 0.92rem;
}

.auth-submit {
  width: 100%;
  margin-top: 1.1rem;
}

.auth-footnote {
  margin: 1rem 0 0;
  color: #6b7280;
  text-align: center;
  line-height: 1.65;
  font-size: 0.85rem;
}

.scanner-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) auto;
  gap: 2rem;
  align-items: flex-end;
  margin-bottom: 2.4rem;
}

.section--tight {
  padding-top: 1.4rem;
}

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

.demo-card,
.panel-block,
.monitor-item,
.report-item,
.certificate-tile {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.demo-card h3,
.panel-block h3,
.monitor-item h3,
.report-item h3,
.certificate-tile h3 {
  margin: 0;
}

.demo-card p,
.monitor-item p,
.report-item p,
.certificate-tile p {
  color: var(--muted-strong);
  line-height: 1.65;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pill--warning {
  background: rgba(161, 98, 7, 0.08);
  border-color: rgba(161, 98, 7, 0.14);
}

.pill--critical {
  background: rgba(185, 28, 28, 0.08);
  border-color: rgba(185, 28, 28, 0.14);
}

.monitor-form-row,
.button-row,
.status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: end;
}

.monitor-form-row {
  margin-top: 1rem;
}

.stack {
  display: grid;
  gap: 0.9rem;
}

.split-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.split-heading--compact {
  margin-bottom: 0.75rem;
}

.monitor-list,
.report-list {
  display: grid;
  gap: 1rem;
}

.monitor-alert {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 0.45rem;
}

.monitor-alert .badge {
  width: fit-content;
}

.muted-line {
  color: var(--muted);
  font-size: 0.88rem;
}

.empty-state {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted);
  line-height: 1.65;
}

.button--small {
  min-height: 40px;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
}

.certificate-details {
  margin-top: 1rem;
  border-top: 1px solid rgba(196, 180, 155, 0.12);
  padding-top: 1rem;
}

.certificate-details summary {
  cursor: pointer;
  color: var(--muted-strong);
  font-weight: 700;
}

.certificate-pem {
  margin: 0.85rem 0 0;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(20, 25, 31, 0.72);
  border: 1px solid rgba(196, 180, 155, 0.14);
  color: var(--muted-strong);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.button--danger {
  color: var(--text);
  border-color: rgba(185, 28, 28, 0.16);
  background: rgba(185, 28, 28, 0.06);
}

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

.certificate-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 1rem;
  align-items: start;
}

.certificate-workspace__panel {
  min-height: 100%;
  padding: 1.15rem;
  border-radius: calc(var(--radius-lg) - 6px);
  border: 1px solid rgba(83, 221, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(18, 26, 44, 0.92), rgba(12, 21, 37, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 30px rgba(5, 11, 22, 0.22);
}

.certificate-workspace__panel .chain-grid {
  grid-template-columns: 1fr;
}

.certificate-workspace__subheading {
  margin: 1rem 0 0.6rem;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
}

.certificate-tile .kv-list li {
  gap: 0.25rem;
}

.scan-form__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: end;
}

.scan-form__support {
  margin-top: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

.info-panel {
  display: grid;
  gap: 1rem;
}

.session-metric {
  display: grid;
  gap: 0.3rem;
}

.session-metric span:first-child {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.results-grid--empty {
  border: 1px dashed rgba(196, 180, 155, 0.2);
  color: var(--muted);
  background: rgba(31, 37, 43, 0.58);
}

.result-card--span-2 {
  grid-column: span 2;
}

.result-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--secure,
.badge--excellent,
.badge--healthy {
  color: #166534;
  background: rgba(22, 101, 52, 0.1);
}

.badge--warning,
.badge--watch {
  color: #a16207;
  background: rgba(161, 98, 7, 0.1);
}

.badge--critical,
.badge--risk {
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.1);
}

.kv-list,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kv-list {
  display: grid;
  gap: 0.85rem;
}

.kv-list li {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.kv-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.kv-label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kv-value {
  color: var(--text);
  word-break: break-word;
  line-height: 1.65;
}

.plain-list {
  display: grid;
  gap: 0.65rem;
}

.plain-list li {
  position: relative;
  padding-left: 1rem;
  line-height: 1.65;
  color: var(--muted-strong);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #111111;
}

.mono,
.inline-code {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.92rem;
}

.inline-code {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.05);
}

.notice {
  display: none;
}

.notice.is-visible {
  display: block;
}

.notice--error {
  background: rgba(254, 242, 242, 0.95);
  border: 1px solid rgba(185, 28, 28, 0.12);
  color: #7f1d1d;
}

.notice--success {
  background: rgba(240, 253, 244, 0.95);
  border: 1px solid rgba(22, 101, 52, 0.12);
  color: #166534;
}

.notice--loading {
  background: rgba(249, 250, 251, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #111111;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(15, 23, 42, 0.14);
  border-top-color: #111111;
  border-radius: 999px;
  display: inline-block;
  vertical-align: middle;
  animation: rotate 0.8s linear infinite;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 960px) {
  .hero__layout,
  .scanner-layout,
  .footer__layout,
  .feature-grid,
  .preview-grid,
  .results-grid,
  .demo-grid,
  .chain-grid,
  .certificate-workspace {
    grid-template-columns: 1fr;
  }

  .result-card--span-2 {
    grid-column: auto;
  }

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

@media (max-width: 720px) {
  .site-header__inner {
    flex-wrap: wrap;
    padding: 0.9rem 0;
  }

  .nav-links {
    width: 100%;
    order: 3;
    padding-bottom: 0.2rem;
  }

  .hero-visual {
    min-height: 320px;
  }

  .scan-form__grid {
    grid-template-columns: 1fr;
  }

  .monitor-form-row,
  .button-row,
  .status-summary,
  .split-heading,
  .split-heading--compact {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .button {
    flex: 1;
  }

  .auth-shell {
    width: min(100%, calc(100% - 1rem));
  }

  .auth-brand {
    gap: 0.75rem;
  }

  .auth-brand__icon {
    width: 62px;
    height: 62px;
  }

  .auth-brand__icon svg {
    width: 48px;
    height: 48px;
  }

  .auth-card--login {
    padding: 1.25rem;
  }

  .terms-card__actions,
  .field__split {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-button--google {
    justify-content: center;
  }
}

/* Cybersecurity brand theme */
:root {
  --bg: #061425;
  --bg-soft: #0a1d36;
  --panel: rgba(10, 25, 47, 0.86);
  --panel-strong: rgba(10, 28, 54, 0.94);
  --border: rgba(83, 221, 255, 0.12);
  --border-strong: rgba(83, 221, 255, 0.22);
  --text: #effbff;
  --muted: #85a8c3;
  --muted-strong: #c3e4f3;
  --accent: #53ddff;
  --accent-soft: rgba(83, 221, 255, 0.12);
  --accent-secondary: #6cf58e;
  --danger: #ff7b8b;
  --warning: #ffd86f;
  --success: #70f8b7;
  --shadow: 0 24px 60px rgba(1, 9, 22, 0.42);
}

body {
  background:
    radial-gradient(circle at 12% 10%, rgba(83, 221, 255, 0.14), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(108, 245, 142, 0.12), transparent 20%),
    linear-gradient(180deg, #08182c 0%, #071426 45%, #091a2f 100%);
}

body::before {
  background-image:
    linear-gradient(rgba(83, 221, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 221, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.16;
}

.site-header {
  background: rgba(4, 16, 31, 0.82);
  border-bottom: 1px solid rgba(83, 221, 255, 0.12);
  box-shadow: 0 10px 30px rgba(1, 9, 22, 0.24);
}

.brand__mark,
.auth-brand__icon {
  background: linear-gradient(180deg, rgba(10, 31, 57, 0.95), rgba(8, 23, 43, 0.95));
  border: 1px solid rgba(83, 221, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 32px rgba(1, 9, 22, 0.28);
}

.brand__mark {
  padding: 0.4rem;
}

.brand__logo,
.auth-brand__logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(83, 221, 255, 0.22));
}

.brand__name,
.auth-brand__name {
  color: #f1fdff;
}

.brand__tagline,
.auth-brand__tagline {
  color: #89b0ca;
}

.nav-link {
  color: #cbe8f3;
}

.nav-link:hover {
  color: var(--accent);
}

.button {
  border-color: transparent;
}

.button--primary {
  color: #071322;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  box-shadow:
    0 12px 28px rgba(17, 96, 132, 0.28),
    0 0 0 1px rgba(83, 221, 255, 0.08);
}

.button--secondary {
  color: var(--text);
  border-color: rgba(83, 221, 255, 0.14);
  background: rgba(10, 28, 54, 0.72);
}

.button--ghost {
  color: #d4f3fb;
}

.button--danger {
  color: #ffeef1;
  border-color: rgba(255, 123, 139, 0.2);
  background: rgba(104, 21, 38, 0.35);
}

.eyebrow {
  border-color: rgba(83, 221, 255, 0.14);
  background: rgba(9, 27, 48, 0.74);
  color: #d8f4fb;
}

.hero h1,
.page-title {
  color: #f1fdff;
  text-shadow: 0 12px 40px rgba(6, 212, 255, 0.08);
}

.hero p,
.page-subtitle,
.feature-card p,
.preview-card p,
.result-card p,
.info-panel p,
.footer p,
.demo-card p,
.monitor-item p,
.report-item p,
.certificate-tile p,
.scan-form__support {
  color: var(--muted-strong);
}

.hero__points span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  box-shadow: 0 0 18px rgba(83, 221, 255, 0.34);
}

.hero-visual {
  background:
    linear-gradient(180deg, rgba(10, 32, 58, 0.95), rgba(7, 21, 39, 0.94)),
    radial-gradient(circle at center, rgba(83, 221, 255, 0.12), transparent 54%);
  border: 1px solid rgba(83, 221, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    var(--shadow);
}

.hero-visual::before,
.hero-visual::after {
  border-color: rgba(83, 221, 255, 0.14);
}

.hero-visual__ring {
  border-color: rgba(83, 221, 255, 0.12);
}

.hero-visual__sweep {
  background: conic-gradient(from 90deg, rgba(83, 221, 255, 0.22), rgba(108, 245, 142, 0.05), transparent 38%);
  filter: blur(7px);
}

.hero-visual__core {
  background: radial-gradient(circle at center, rgba(83, 221, 255, 0.12), rgba(7, 21, 39, 0.96));
  border: 1px solid rgba(83, 221, 255, 0.14);
  color: #ebfbff;
}

.hero-visual__readout {
  border: 1px solid rgba(83, 221, 255, 0.12);
  background: rgba(7, 21, 39, 0.9);
  color: var(--muted-strong);
}

.hero-visual--logo::before,
.hero-visual--logo::after,
.hero-visual--logo .hero-visual__ring,
.hero-visual--logo .hero-visual__sweep,
.hero-visual--logo .hero-visual__core {
  display: none;
}

.feature-card,
.preview-card,
.result-card,
.info-panel,
.auth-card,
.scan-form,
.demo-card,
.panel-block,
.monitor-item,
.report-item,
.certificate-tile {
  background: var(--panel);
  border-color: rgba(83, 221, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    var(--shadow);
}

.feature-card__icon {
  color: #071322;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  box-shadow: 0 10px 24px rgba(17, 96, 132, 0.22);
}

.preview-card__meta,
.session-metric span:first-child,
.kv-label,
.footer h4 {
  color: #8fb6cf;
}

.input,
.social-button,
.empty-state,
.notice--loading,
.credential-hint,
.terms-card,
.hero-visual__readout,
.inline-code,
.certificate-pem {
  background: rgba(8, 23, 43, 0.86);
  color: var(--text);
  border-color: rgba(83, 221, 255, 0.12);
}

.input {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.input:focus {
  border-color: rgba(83, 221, 255, 0.34);
  box-shadow: 0 0 0 4px rgba(83, 221, 255, 0.12);
}

.social-button:hover:not(:disabled) {
  border-color: rgba(83, 221, 255, 0.22);
  background: rgba(9, 27, 48, 0.92);
}

.social-button__icon--google {
  background: #ffffff;
}

.social-button__icon--github {
  background: rgba(83, 221, 255, 0.12);
  color: #ecfbff;
}

.auth-divider::before,
.kv-list li,
.monitor-alert,
.footer,
.terms-card__details {
  border-color: rgba(83, 221, 255, 0.1);
}

.terms-card__title,
.terms-section__title {
  color: #f0fcff;
}

.terms-card__summary,
.terms-card__meta,
.terms-point-list,
.terms-section__list,
.auth-footnote,
.auth-provider-note,
.muted-line,
.empty-state {
  color: var(--muted);
}

.terms-badge {
  background: rgba(83, 221, 255, 0.12);
  color: #d8f6ff;
  border-color: rgba(83, 221, 255, 0.16);
}

.terms-badge.is-accepted,
.badge--secure,
.badge--excellent,
.badge--healthy {
  background: rgba(108, 245, 142, 0.14);
  color: #b8ffd0;
  border: 1px solid rgba(108, 245, 142, 0.16);
}

.badge--warning,
.badge--watch {
  background: rgba(255, 216, 111, 0.16);
  color: #ffe9a7;
  border: 1px solid rgba(255, 216, 111, 0.16);
}

.badge--critical,
.badge--risk {
  background: rgba(255, 123, 139, 0.14);
  color: #ffc7cf;
  border: 1px solid rgba(255, 123, 139, 0.16);
}

.pill {
  background: rgba(83, 221, 255, 0.12);
  border-color: rgba(83, 221, 255, 0.16);
  color: #d8f6ff;
}

.pill--warning {
  background: rgba(255, 216, 111, 0.12);
  border-color: rgba(255, 216, 111, 0.16);
}

.pill--critical {
  background: rgba(255, 123, 139, 0.12);
  border-color: rgba(255, 123, 139, 0.16);
}

.plain-list li::before {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  box-shadow: 0 0 10px rgba(83, 221, 255, 0.24);
}

.notice--error {
  background: rgba(75, 14, 26, 0.62);
  border-color: rgba(255, 123, 139, 0.16);
  color: #ffdce3;
}

.notice--success {
  background: rgba(10, 61, 38, 0.56);
  border-color: rgba(108, 245, 142, 0.16);
  color: #d6ffe3;
}

.notice--loading {
  color: #eafcff;
}

.spinner {
  border-color: rgba(83, 221, 255, 0.14);
  border-top-color: var(--accent);
}

.auth-login-page {
  background:
    radial-gradient(circle at 16% 12%, rgba(83, 221, 255, 0.14), transparent 22%),
    radial-gradient(circle at 84% 10%, rgba(108, 245, 142, 0.12), transparent 18%),
    linear-gradient(180deg, #08182c 0%, #071426 45%, #091a2f 100%);
}

.auth-login-page::before {
  background-image:
    linear-gradient(rgba(83, 221, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 221, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.14;
}

.auth-card--login {
  background:
    linear-gradient(180deg, rgba(10, 25, 47, 0.94), rgba(8, 23, 43, 0.96)),
    radial-gradient(circle at top, rgba(83, 221, 255, 0.07), transparent 45%);
  border-color: rgba(83, 221, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 28px 64px rgba(1, 9, 22, 0.34);
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.35rem;
  margin-bottom: 1.35rem;
  border-radius: 999px;
  background: rgba(8, 23, 43, 0.82);
  border: 1px solid rgba(83, 221, 255, 0.12);
}

.auth-mode-button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.auth-mode-button:hover {
  color: #effbff;
}

.auth-mode-button.is-active {
  color: #071322;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  box-shadow: 0 12px 24px rgba(17, 96, 132, 0.24);
}

.auth-signup-only[hidden] {
  display: none !important;
}

.auth-secondary-action {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.auth-inline-link {
  color: #d8f6ff;
}

.auth-inline-link:hover {
  color: var(--accent-secondary);
}

.auth-card__body--centered {
  color: #c9e5f4;
}

.auth-reset-panel {
  margin-top: 1rem;
  padding: 1.15rem;
  border-radius: 22px;
  background: rgba(8, 23, 43, 0.78);
  border: 1px solid rgba(83, 221, 255, 0.12);
}

.auth-reset-panel[hidden] {
  display: none !important;
}

.auth-reset-panel__header {
  margin-bottom: 1rem;
}

.auth-reset-panel__header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #f1fdff;
}

.auth-reset-panel__header p {
  margin: 0;
  color: #bddced;
  line-height: 1.6;
  font-size: 0.94rem;
}

.auth-reset-panel__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.auth-reset-panel .notice {
  margin-top: 0.9rem;
}

@media (max-width: 720px) {
  .auth-reset-panel__actions {
    grid-template-columns: 1fr;
  }

  .brand__mark {
    width: 50px;
    height: 50px;
  }

  .brand__tagline {
    font-size: 0.82rem;
  }
}
