:root {
  --ink: #0b1c24;
  --ink-soft: #243842;
  --muted: #5a737c;
  --line: #d5e3e7;
  --paper: #f3f8f7;
  --surface: #ffffff;
  --teal: #00b4a6;
  --teal-deep: #008f84;
  --teal-wash: #dff5f2;
  --sand: #e8efe9;
  --accent-glow: rgba(0, 180, 166, 0.22);
  --radius: 4px;
  --shadow-soft: 0 18px 50px rgba(11, 28, 36, 0.08);
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --nav-h: 4.5rem;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--accent-glow), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(11, 28, 36, 0.06), transparent 50%),
    linear-gradient(180deg, #f7fbfa 0%, var(--paper) 40%, #eef5f3 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

#root,
.site-shell {
  min-height: 100vh;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.25rem;
  box-sizing: border-box;
}

p,
li,
.section-lead {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1,
h2,
h3,
.section-title {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ink-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 25%, transparent);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-teal {
  background: var(--teal);
  color: var(--ink);
}

.btn-teal:hover {
  background: var(--teal-deep);
  color: #fff;
}

.section {
  padding: 5.5rem 0;
}

.section-tight {
  padding: 4rem 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  max-width: 18ch;
}

.section-lead {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.05rem;
}

.page-hero {
  padding: calc(var(--nav-h) + 3.5rem) 0 3.5rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: 18ch;
}

.page-hero p {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 48ch;
  font-size: 1.1rem;
}

.legal-page {
  padding: calc(var(--nav-h) + 3rem) 0 5rem;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.legal-page .updated {
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.legal-page h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.legal-page p,
.legal-page li {
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.legal-page ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.legal-page a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

@keyframes pulse-line {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-rise {
  animation: rise 0.8s ease both;
}

.animate-rise-delay {
  animation: rise 0.9s ease 0.15s both;
}

.animate-rise-delay-2 {
  animation: rise 1s ease 0.3s both;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal--up {
  transform: translateY(28px);
}

.reveal--left {
  transform: translateX(-32px);
}

.reveal--right {
  transform: translateX(32px);
}

.reveal--scale {
  transform: scale(0.94);
}

.reveal--fade {
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
