@font-face {
  font-family: 'PrometheanBoldCond';
  src: url('../fonts/prometheanboldcond.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Shared / Persona */
  --cs-bg: #0a0e1a;
  --cs-text: rgba(248, 248, 248, 0.72);
  --cs-text-mid: rgba(248, 248, 248, 0.55);
  --kest-blue-glow: #3b82f6;
  --kest-tan: #b29e84;
  --kest-primary: #1e40af;
  --kest-primary-hover: #2563eb;
  --kest-ghost: #f8f8f8;
  --mode-dur: 0.55s;
  --mode-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --cs-logo-glow: rgba(59, 130, 246, 0.3);
}

[data-mode='buyer'] {
  --cs-bg: #f1f5f9;
  --cs-text: rgba(15, 23, 42, 0.8);
  --cs-text-mid: rgba(15, 23, 42, 0.6);
  --kest-blue-glow: #1e40af;
  --kest-blue-secondary: #2563eb;
  --cs-logo-glow: transparent;
}

body {
  background: var(--cs-bg);
  color: var(--cs-text);
  position: relative;
  transition:
    background var(--mode-dur) var(--mode-ease),
    color var(--mode-dur) var(--mode-ease);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--mode-dur) var(--mode-ease);
  background:
    radial-gradient(
      ellipse 70% 60% at 5% 0%,
      rgba(30, 64, 175, 0.16) 0%,
      rgba(59, 130, 246, 0.06) 40%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 70% 60% at 95% 100%,
      rgba(30, 64, 175, 0.12) 0%,
      rgba(59, 130, 246, 0.05) 40%,
      transparent 65%
    );
}
[data-mode='buyer'] body::after {
  opacity: 1;
}

h1,
h2,
strong,
.header-wordmark {
  transition: color var(--mode-dur) var(--mode-ease);
}

[data-mode='buyer'] .page-title,
[data-mode='buyer'] h2,
[data-mode='buyer'] .header-wordmark {
  color: var(--kest-primary);
}
[data-mode='buyer'] strong {
  color: #0f172a;
}

[data-mode='buyer'] .noise,
[data-mode='buyer'] .ambient {
  opacity: 0.05;
}

.mode-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  pointer-events: none;
}
.mode-toggle {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px;
  padding: 4px;
  gap: 6px;
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
  transition: all var(--mode-dur) var(--mode-ease);
}
[data-mode='buyer'] .mode-toggle {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(30, 58, 138, 0.2);
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.12);
}
.mode-sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0;
}
[data-mode='buyer'] .mode-sep {
  background: rgba(30, 58, 138, 0.15);
}
.mode-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 18px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.22s ease;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Mode Button Hovers */
[data-mode='persona'] .mode-btn:not(.active):hover {
  color: rgba(255, 255, 255, 0.8);
}
[data-mode='persona'] .mode-btn.active:hover {
  background: rgba(255, 255, 255, 0.25);
}

[data-mode='buyer'] .mode-btn:not(.active):hover {
  color: #2563eb;
}
[data-mode='buyer'] .mode-btn.active:hover {
  background: #2563eb;
}

.mode-toggle > .mode-btn:first-child {
  border-radius: 100px 0 0 100px;
}
.mode-toggle > .mode-btn:last-child {
  border-radius: 0 100px 100px 0;
}

[data-mode='buyer'] .mode-btn {
  color: rgba(30, 58, 138, 0.38);
}
[data-mode='persona'] .mode-btn.active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
[data-mode='buyer'] .mode-btn.active {
  background: #1e40af;
  color: #ffffff;
}

/* Return Back Button inside Content */
.btn-return {
  display: inline-block;
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  background: transparent;
  cursor: pointer;
  border: none;
  padding: 0;
}
[data-mode='persona'] .btn-return {
  color: #555555;
}
[data-mode='persona'] .btn-return:hover {
  color: var(--kest-tan);
}

[data-mode='buyer'] .btn-return {
  color: var(--cs-text-mid);
}
[data-mode='buyer'] .btn-return:hover {
  color: var(--kest-primary);
}

[data-mode='buyer'] .section {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}

[data-mode='buyer'] .page-footer {
  color: #475569;
}

[data-mode='buyer'] .page-footer a {
  color: #1e40af;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

[data-mode='buyer'] .footer-dot {
  background: #94a3b8;
}

img.header-logo-svg {
  width: 42px;
  height: 42px;
  object-fit: contain;
  transition:
    filter var(--mode-dur) var(--mode-ease),
    transform var(--mode-dur) var(--mode-ease),
    opacity 0.3s ease;
  animation: glowPulseSvg 4s ease-in-out infinite;
}
img.header-logo-svg.logo-img--swapping {
  opacity: 0;
}
[data-mode='persona'] img.header-logo-svg {
  transform: scale(1.25);
}
[data-mode='buyer'] img.header-logo-svg {
  transform: scale(0.9);
}

@keyframes glowPulseSvg {
  0%,
  100% {
    filter: drop-shadow(0 0 10px var(--cs-logo-glow)) drop-shadow(0 0 20px var(--cs-logo-glow));
  }
  50% {
    filter: drop-shadow(0 0 25px var(--cs-logo-glow)) drop-shadow(0 0 45px var(--cs-logo-glow));
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: rgba(59, 130, 246, 0.3);
  color: var(--kest-ghost);
}

/* ── Ambient (subtle) ────────────────────────────────────────── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 15% 20%, rgba(30, 58, 138, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 85% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── Header ───────────────────────────────────────────────────── */
.page-header {
  position: relative;
  z-index: 10;
  padding: 6rem 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--kest-ghost);
  transition: opacity 0.3s ease;
}

[data-mode='persona'] .header-logo:hover .header-wordmark {
  color: #b29e84;
}

[data-mode='buyer'] .header-logo:hover .header-wordmark {
  color: var(--kest-primary-hover); /* Lighter blue on hover */
}

[data-mode='buyer'] .header-logo:hover .header-logo-svg {
  animation: none;
  filter: brightness(1.6) saturate(1.1);
}

.header-logo-svg {
  width: 32px;
  height: 32px;
}

.header-wordmark {
  font-family: 'PrometheanBoldCond', Impact, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--kest-ghost);
}

/* ── Content ──────────────────────────────────────────────────── */
.content {
  position: relative;
  z-index: 10;
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 2rem 4rem;
  flex: 1;
}

.page-title {
  font-family: 'PrometheanBoldCond', Impact, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--kest-ghost);
  margin-bottom: 0.5rem;
  text-align: center;
}

.page-meta {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(248, 248, 248, 0.3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  transition: color var(--mode-dur) var(--mode-ease);
}
[data-mode='buyer'] .page-meta {
  color: var(--cs-text-mid);
}

.divider {
  width: 80px;
  height: 1px;
  margin: 0 auto 3rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.4),
    rgba(124, 58, 237, 0.3),
    transparent
  );
}

h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--kest-ghost);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: 0.02em;
}

h2:first-of-type {
  margin-top: 0;
}

p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

ul {
  margin: 0.5rem 0 1rem 1.2rem;
  font-size: 0.9rem;
}

li {
  margin-bottom: 0.4rem;
}

a {
  color: var(--kest-blue-glow);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--kest-blue-secondary);
}

strong {
  color: rgba(248, 248, 248, 0.85);
  font-weight: 600;
}

/* ── Section card ─────────────────────────────────────────────── */
.section {
  background: rgba(248, 248, 248, 0.02);
  border: 1px solid rgba(248, 248, 248, 0.05);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.section h2 {
  margin-top: 0;
}

/* ── Footer ───────────────────────────────────────────────────── */
.page-footer {
  position: relative;
  z-index: 10;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.7rem;
  color: rgba(248, 248, 248, 0.6);
  letter-spacing: 0.05em;
}

.page-footer a {
  color: rgba(248, 248, 248, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-footer a:hover {
  color: rgba(147, 197, 253, 0.95);
}

.footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(248, 248, 248, 0.15);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .content {
    padding: 1rem 1.25rem 3rem;
  }
  .page-title {
    font-size: 1.8rem;
  }
  .section {
    padding: 1.5rem 1.25rem;
  }
}
