/* Prudexis — marketing site (institutional / high-trust) */
:root {
  --bg: #08090c;
  --bg-elevated: #0f1218;
  --surface: #151922;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #eceef2;
  --muted: #868d9a;
  /* Calm blue-teal accents: trustworthy and restrained */
  --highlight: #9bb8d8;
  --link: #aec9e6;
  --accent-dim: rgba(111, 158, 201, 0.12);
  --accent-dim-mid: rgba(111, 158, 201, 0.18);
  --accent-line: rgba(111, 158, 201, 0.34);
  --brand: #5e86b4;
  --brand-strong: #6f9ec9;
  --brand-soft: rgba(111, 158, 201, 0.18);
  --brand-surface: rgba(67, 97, 129, 0.14);
  /* Primary actions: muted blue instead of bright white */
  --btn-primary-bg: linear-gradient(135deg, #587ca5 0%, #6f9ec9 100%);
  --btn-primary-fg: #f1f6fb;
  --btn-primary-hover: linear-gradient(135deg, #638ab5 0%, #7bacd7 100%);
  --ok: #8fa396;
  --ok-dim: rgba(143, 163, 150, 0.14);
  --warn: #c9a87a;
  --warn-dim: rgba(201, 168, 122, 0.16);
  --font-sans: "Instrument Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 20px 56px rgba(0, 0, 0, 0.5);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, #0c111b 0%, var(--bg) 38%, var(--bg) 100%),
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(111, 158, 201, 0.1), transparent),
    radial-gradient(ellipse 60% 35% at 85% 10%, rgba(68, 120, 115, 0.06), transparent);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  font-weight: 600;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 9, 12, 0.92);
  backdrop-filter: blur(14px) saturate(1.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--highlight);
  text-decoration: none;
}

.logo--footer {
  display: inline-block;
  margin-bottom: 0.35rem;
}

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

.site-nav a:not(.btn) {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  color: var(--text);
  text-decoration: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  list-style: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
  border: 0;
  padding: 0;
  background: transparent;
}

.nav-dropdown-toggle::after {
  content: "▾";
  font-size: 0.8em;
  opacity: 0.8;
}

.nav-dropdown.is-open .nav-dropdown-toggle,
.nav-dropdown-toggle:hover {
  color: var(--text);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 210px;
  display: grid;
  padding: 0.45rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.nav-dropdown:not(.is-open) .nav-dropdown-menu {
  display: none;
}

.nav-dropdown-menu a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border: 0;
}

.nav-dropdown-menu a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    gap: 0;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    justify-content: space-between;
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    padding: 0 0 0.25rem;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav-dropdown-menu a {
    padding: 0.55rem 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  box-shadow: 0 8px 22px rgba(24, 38, 56, 0.42);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(28, 46, 67, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent-line);
  background: var(--brand-surface);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

/* Hero */
.hero {
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--highlight);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-proof {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-proof li {
  padding-left: 1.5rem;
  position: relative;
}

.hero-proof li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--highlight);
  opacity: 0.85;
}

/* Hero panel mock */
.hero-panel {
  position: relative;
  min-height: 280px;
}

.panel-card {
  background: linear-gradient(165deg, var(--surface) 0%, #131a25 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.panel-card--main {
  position: relative;
  z-index: 1;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot--ok {
  background: var(--ok);
  box-shadow: none;
}

.panel-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.panel-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
}

.panel-row span:first-child {
  color: var(--text);
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.badge--pass {
  background: var(--ok-dim);
  color: #c5d4c8;
}

.badge--warn {
  background: var(--warn-dim);
  color: var(--warn);
}

.panel-card--float {
  position: absolute;
  right: 0;
  bottom: -1rem;
  z-index: 2;
  max-width: 200px;
  background: var(--bg-elevated);
  border-color: var(--accent-line);
}

@media (max-width: 899px) {
  .panel-card--float {
    position: relative;
    bottom: auto;
    right: auto;
    max-width: none;
    margin-top: 1rem;
  }
}

.float-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.float-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: var(--highlight);
}

.float-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

/* Sections */
.section {
  padding-block: clamp(3.5rem, 7vw, 5rem);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-head--narrow {
  margin-bottom: 2rem;
}

.section-head--tight {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* Logo strip */
.logos {
  border-block: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(18, 26, 37, 0.48), rgba(0, 0, 0, 0.22));
}

.logos-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.logos-label--spaced {
  margin-top: 2rem;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.logo-strip span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #121923, var(--bg-elevated));
}

/* Features */
.feature-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #121923, var(--bg-elevated));
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, #152131, #101621);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Steps */
.steps {
  background: linear-gradient(180deg, transparent, rgba(111, 158, 201, 0.1));
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .step-list {
    gap: 2.5rem;
  }
}

.step-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  align-items: start;
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--highlight);
  opacity: 0.85;
  line-height: 1;
}

.step-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.step-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Trust */
.trust-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 880px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.trust-grid h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}

.trust-grid > div > p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.trust-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.trust-list li {
  margin-bottom: 0.5rem;
}

.quote-card {
  margin: 0;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, #151c28 0%, var(--surface) 100%);
}

.quote-card p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 1.25rem;
  color: var(--text);
  border-left: 2px solid var(--accent-line);
  padding-left: 1.25rem;
}

.quote-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.9rem;
}

.quote-name {
  font-weight: 600;
  color: var(--text);
}

.quote-role {
  color: var(--muted);
}

/* CTA */
.cta {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.cta-inner {
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(165deg, #1a2535 0%, var(--bg-elevated) 100%);
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .cta-inner {
    grid-template-columns: minmax(240px, 1fr) minmax(320px, 560px);
    align-items: start;
  }

  .cta-note {
    grid-column: 1 / -1;
  }
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin: 0 0 0.5rem;
}

.cta-inner > div > p {
  margin: 0;
  color: var(--muted);
}

.cta-form-wrap {
  min-width: 0;
  width: 100%;
}

.cta-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.cta-field-name {
  min-width: 0;
}

.cta-form input {
  width: 100%;
  min-width: 0;
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.cta-field-comment {
  grid-column: 1 / -1;
  min-width: 0;
  min-height: 120px;
  resize: vertical;
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
  color: var(--muted);
}

.cta-form textarea {
  width: 100%;
  min-width: 0;
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.cta-form input:focus,
.cta-form textarea:focus {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

.cta-form .btn {
  justify-self: start;
}

@media (min-width: 900px) {
  .cta-form {
    grid-template-columns: 1fr 1fr;
  }

  .cta-field-name,
  .cta-form .btn {
    grid-column: 1 / -1;
  }
}

.cta-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.85;
}

.form-success {
  margin: 0;
  font-size: 1rem;
  color: var(--highlight);
  font-weight: 500;
}

.form-error {
  margin: 0;
  font-size: 0.9rem;
  color: var(--warn);
}

.form-error a {
  color: var(--link);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
  margin-top: 1rem;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer-legal,
  .footer-copy {
    grid-column: 1 / -1;
  }
}

.footer-legal {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 40rem;
}

.footer-legal strong {
  color: var(--text);
  font-weight: 600;
}

.footer-tag {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--highlight);
  text-decoration: none;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Problem / legacy comparison */
.compare-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .compare-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.compare-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #121923, var(--bg-elevated));
}

.compare-card--muted {
  opacity: 0.98;
  border-color: var(--accent-line);
}

.compare-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.compare-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.compare-list li {
  margin-bottom: 0.45rem;
}

.stat-callout {
  margin: 2rem 0 0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, var(--accent-dim-mid), var(--brand-surface));
  color: var(--text);
  font-size: 1rem;
}

.stat-callout strong {
  color: var(--highlight);
  font-weight: 600;
}

.mas-teaser {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.mas-teaser a {
  font-weight: 600;
}

/* Inner pages (e.g. /singapore/) */
.page-article {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.page-article-inner {
  max-width: 720px;
}

.page-article h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 1.25rem;
}

.page-lead {
  max-width: none;
}

.page-block {
  margin-top: 2.25rem;
}

.page-block h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.page-block p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.page-block p:last-child {
  margin-bottom: 0;
}

.page-list {
  margin-top: 1rem;
}

.callout-legal {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.callout-legal h2 {
  font-size: 1.15rem;
}

.callout-legal p {
  margin: 0;
}

.page-back {
  margin: 2.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.inline-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  color: var(--highlight);
  background: var(--accent-dim);
  padding: 0.12em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--border);
  word-break: break-all;
}

.stack-note {
  margin: 1.5rem auto 0;
  max-width: 52rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.page-article-inner--wide {
  max-width: 1120px;
}

.preview-nav {
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.preview-nav a {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.preview-nav a:hover {
  border-color: var(--accent-line);
  background: rgba(255, 255, 255, 0.04);
}

.preview-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 920px) {
  .preview-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.preview-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #121923, var(--bg-elevated));
}

.preview-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.preview-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.preview-figure {
  margin: 1rem 0 0;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(111, 158, 201, 0.18), transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(74, 136, 130, 0.12), transparent 42%),
    #f2f6fb;
  box-shadow: 0 22px 52px rgba(4, 10, 20, 0.35);
  position: relative;
}

.preview-figure img {
  display: block;
  width: 100%;
  height: auto;
  padding: 0.85rem;
  border-radius: calc(var(--radius-lg) - 4px);
  position: relative;
  z-index: 1;
  cursor: zoom-in;
}

.preview-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 27, 42, 0.08) 0%,
    rgba(17, 27, 42, 0) 28%,
    rgba(17, 27, 42, 0.1) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.preview-figure figcaption {
  position: relative;
  z-index: 3;
  margin: 0;
  padding: 0.55rem 0.95rem 0.95rem;
  font-size: 0.88rem;
  color: #d4deea;
  background: linear-gradient(180deg, rgba(16, 24, 35, 0.08) 0%, rgba(16, 24, 35, 0.5) 100%);
}

.preview-figure--hero img {
  padding: 0.95rem;
}

.is-lightbox-open {
  overflow: hidden;
}

.preview-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(5, 8, 14, 0.86);
  backdrop-filter: blur(4px);
}

.preview-lightbox[hidden] {
  display: none;
}

.preview-lightbox img {
  max-width: min(95vw, 1600px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  background: #fff;
}

.preview-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.preview-lightbox-close:hover {
  background: rgba(30, 41, 59, 0.92);
}
