:root {
  color-scheme: light dark;
  --bg: #f2f4f5;
  --surface: #ffffff;
  --surface-muted: #f8faf9;
  --text: #111827;
  --text-muted: #4b5563;
  --border: #e5e7eb;
  --accent: #77d5ed;
  --accent-light: #b7ecff;
  --shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
}
.dark {
  --bg: #020617;
  --surface: #0f172a;
  --surface-muted: #111827;
  --text: #f8fafc;
  --text-muted: #cbd5e1;
  --border: #1f2937;
  --shadow: 0 30px 80px rgba(8, 10, 20, 0.45);
}
*,*::before,*::after {
  box-sizing: border-box;
}
html {
  font-family: 'DM Sans', sans-serif;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  transition: background-color .3s ease, color .3s ease;
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'PT Sans', sans-serif;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 99px;
}
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
}
.reveal.in,
.reveal.visible {
  opacity: 1;
  transform: none;
}
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }
.nl {
  position: relative;
}
.nl::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width .22s cubic-bezier(.4,0,.2,1);
}
.nl:hover::after,
.nl.on::after {
  width: 100%;
}
.nl.on {
  font-weight: 500;
}
.shimmer {
  position: relative;
  overflow: hidden;
}
.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: rgba(255,255,255,.18);
  transform: skewX(-20deg);
  transition: left .4s cubic-bezier(.4,0,.2,1);
}
.shimmer:hover::after {
  left: 160%;
}
.pf {
  overflow: hidden;
  background: #d4d4d8;
}
.pf img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-h {
  transition: transform .28s cubic-bezier(.4,0,.2,1), border-color .18s;
}
.card-h:hover {
  transform: translateY(-4px);
}
.stag {
  transition: border-color .18s;
}
.photo-frame {
  position: relative;
  overflow: hidden;
  background: #e4e4e7;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.prose-cs h2 {
  font-family: 'PT Sans', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  margin: 2.75rem 0 1rem;
  line-height: 1.25;
}
.prose-cs h3 {
  font-family: 'PT Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 .6rem;
  line-height: 1.3;
  color: var(--accent);
}
.prose-cs p,
.prose-cs ul,
.prose-cs li {
  color: var(--text-muted);
}
.prose-cs p {
  margin: 0 0 1.4rem;
  line-height: 1.82;
}
.prose-cs ul {
  margin: 0 0 1.4rem 1.5rem;
  list-style: disc;
}
.prose-cs li {
  margin-bottom: .45rem;
  line-height: 1.7;
}
.prose-cs blockquote {
  border-left: 3px solid var(--accent);
  padding: .75rem 1.25rem;
  margin: 0 0 1.8rem;
  background: #fff7f4;
  border-radius: 0 8px 8px 0;
}
.dark .prose-cs blockquote {
  background: #27272a;
}
.prose-cs blockquote p {
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}
.prose-cs hr {
  border: none;
  border-top: 1px solid #e4e4e7;
  margin: 2.5rem 0;
}
.dark .prose-cs hr {
  border-top-color: #27272a;
}
.prose-cs a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.stat-card {
  border-left: 3px solid var(--accent);
}
.img-caption {
  font-size: .8rem;
  color: #a1a1aa;
  text-align: center;
  margin-top: .6rem;
}
.step-badge {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: 'PT Sans', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 60;
  transition: width .2s ease;
}
[x-cloak] {
  display: none !important;
}
