:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --border: rgba(148, 163, 184, 0.24);
  --text: #0f172a;
  --muted: #475569;
  --accent: #0891b2;
  --accent-soft: #ecfeff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(circle at top, rgba(34, 211, 238, 0.08), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #f8fafc 100%);
}

@media (pointer: fine) {
  body {
    cursor: none;
  }

  a,
  button,
  input[type="submit"],
  input[type="button"],
  input[type="reset"],
  input[type="checkbox"],
  input[type="radio"],
  input[type="file"],
  input:not([type]),
  textarea,
  select,
  summary,
  option,
  label[for],
  [role="button"] {
    cursor: none;
  }
}

.cursor-dot,
.cursor-ring {
  --x: 0px;
  --y: 0px;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  pointer-events: none;
  will-change: transform;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.95);
  box-shadow: 0 0 0 6px rgba(8, 145, 178, 0.08);
  transform: translate(calc(var(--x) - 4px), calc(var(--y) - 4px));
  transition: opacity .18s ease, transform .02s linear;
}

.cursor-ring {
  --width: 42px;
  --height: 42px;
  --radius: 999px;
  --scale: 1;
  width: var(--width);
  height: var(--height);
  transform: translate(
    calc(var(--x) - var(--width) / 2),
    calc(var(--y) - var(--height) / 2)
  );
  transition:
    width .16s cubic-bezier(.25, .25, .42, 1),
    height .16s cubic-bezier(.25, .25, .42, 1),
    transform .18s cubic-bezier(.22, .61, .36, 1);
}

.cursor-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 2px solid rgba(8, 145, 178, 0.78);
  opacity: var(--scale);
  transform: scale(var(--scale));
  transition:
    .24s cubic-bezier(.25, .25, .42, 1) opacity,
    .24s cubic-bezier(.25, .25, .42, 1) transform,
    .1s cubic-bezier(.25, .25, .42, 1) border-radius;
}

.cursor-ring.is-hovering::after {
  opacity: 1;
}

.cursor-dot.is-hovering {
  opacity: 1;
  transform: translate(calc(var(--x) - 4px), calc(var(--y) - 4px)) scale(0.9);
}

@media (pointer: fine) {
  .cursor-dot,
  .cursor-ring {
    display: block;
  }
}

body:not(:hover) .cursor-ring::after {
  opacity: 0;
  transform: scale(0);
}

body:not(:hover) .cursor-dot {
  opacity: 0;
  transform: translate(calc(var(--x) - 4px), calc(var(--y) - 4px)) scale(0);
}

.hero-gradient {
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef6ff 100%);
}

.page-shell {
  position: relative;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 88%);
}

.section-kicker {
  color: #0f766e;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.glass-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.soft-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: var(--surface-strong);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.metric-card {
  border-radius: 1.75rem;
  border: 1px solid rgba(165, 243, 252, 0.75);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
  box-shadow: 0 18px 44px rgba(8, 145, 178, 0.1);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: #fff;
  color: var(--text);
  padding: 0.9rem 1rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: rgba(8, 145, 178, 0.55);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(8, 145, 178, 0.18);
}

.btn-secondary {
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: #fff;
  color: var(--text);
}

.btn-ghost {
  color: #0f172a;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
}

.nav-link-active {
  color: #0f172a;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 100%);
  backdrop-filter: blur(18px);
}

.header-utility {
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.07), rgba(255, 255, 255, 0.6));
}

.header-nav-shell {
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.brand-mark {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.14) 0%, rgba(34, 211, 238, 0.18) 100%);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.18);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -35% -15% auto auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.nav-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-link:hover {
  color: #0f172a;
  transform: translateY(-1px);
}

.nav-animated {
  position: relative;
  align-items: center;
  gap: 0.25rem;
}

.nav-animated-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  height: 100%;
  border-radius: 999px;
  background: #ecfeff;
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.2);
  opacity: 0;
  transform: translateX(0);
  transition: transform 320ms ease, width 320ms ease, opacity 180ms ease;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  font-weight: 600;
  color: #334155;
  transition: background-color 180ms ease, color 180ms ease;
}

.mobile-nav-link:hover {
  background: #f8fafc;
  color: #0f172a;
}

.section-link-active {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(8, 145, 178, 0.18);
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  background: var(--accent-soft);
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f766e;
}

.list-checks li {
  position: relative;
  padding-left: 1.5rem;
}

.list-checks li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.prose p {
  color: rgb(51 65 85);
  margin-bottom: 1rem;
}

.prose h2,
.prose h3 {
  color: rgb(15 23 42);
  margin-top: 1.5rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: rgb(15 23 42);
  font-weight: 800;
  line-height: 1.2;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content h1 { font-size: 2.35rem; }
.article-content h2 { font-size: 1.85rem; }
.article-content h3 { font-size: 1.45rem; }

.article-content p,
.article-content li,
.article-content td,
.article-content th {
  color: rgb(51 65 85);
  font-size: 1.1rem;
  line-height: 1.95;
}

.article-content ul,
.article-content ol {
  margin: 1.25rem 0 1.5rem;
  padding-left: 1.4rem;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content blockquote {
  margin: 2rem 0;
  border-left: 4px solid rgba(8, 145, 178, 0.55);
  background: linear-gradient(180deg, rgba(236, 254, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
  padding: 1.25rem 1.5rem;
  border-radius: 0 1.25rem 1.25rem 0;
}

.article-content pre {
  overflow-x: auto;
  border-radius: 1.25rem;
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.article-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
}

.article-content img {
  width: 100%;
  border-radius: 1.5rem;
  margin: 1.5rem 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.article-content th,
.article-content td {
  border: 1px solid rgba(226, 232, 240, 0.95);
  padding: 0.9rem 1rem;
  text-align: left;
}

.article-content th {
  background: #f8fafc;
  font-weight: 700;
}

.table-shell {
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
}

.table-shell table {
  width: 100%;
}

.table-shell thead {
  background: #f8fafc;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.7), transparent 45%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.media-frame-sm {
  height: 11rem;
}

.media-frame-md {
  height: 12rem;
}

.media-frame-lg {
  height: 26.25rem;
}

.media-fit-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.footer-shell {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.footer-link {
  color: #475569;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-link:hover {
  color: #0891b2;
  transform: translateX(1px);
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.footer-social:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.65);
  color: #0891b2;
  box-shadow: 0 12px 24px rgba(8, 145, 178, 0.1);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.status-pill-paid {
  background: #ecfdf3;
  color: #166534;
}

.status-pill-pending {
  background: #fff7ed;
  color: #9a3412;
}

.status-pill-locked {
  background: #eef2f7;
  color: #94a3b8;
}

.dashboard-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 360px minmax(0, 1fr);
    align-items: start;
  }
}
