:root {
  --brand: #06b6d4;
  --brand-deep: #0891b2;
  --brand-soft: rgba(6, 182, 212, 0.14);
  --ink: #0c1222;
  --ink-soft: #3d4a5c;
  --paper: #f4f8fb;
  --paper-2: #e8f4f8;
  --white: #ffffff;
  --line: rgba(12, 18, 34, 0.08);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(6, 182, 212, 0.22), transparent 55%),
    radial-gradient(900px 500px at -10% 30%, rgba(8, 145, 178, 0.12), transparent 50%),
    linear-gradient(165deg, var(--paper) 0%, var(--paper-2) 45%, #f7fafc 100%);
  background-attachment: fixed;
}

a {
  color: var(--brand-deep);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

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

.wrap {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0 0.5rem;
  animation: rise 0.7s ease both;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark img {
  width: 40px;
  height: 40px;
  border-radius: 0;
  object-fit: contain;
}

.brand-mark span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--brand-deep);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
}

.nav a:hover {
  color: var(--brand-deep);
}

/* —— Landing hero —— */
.hero {
  padding: 2rem 0 3.5rem;
  animation: rise 0.85s 0.08s ease both;
}

.hero-inner {
  max-width: 36rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.2rem, 10vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--brand-deep);
  margin: 0 0 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  color: var(--ink);
  max-width: 18ch;
}

.hero p {
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 34ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(6, 182, 212, 0.35);
}

.btn-primary:hover {
  background: var(--brand-deep);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  text-decoration: underline;
  padding-inline: 0.25rem;
  box-shadow: none;
}

.btn-ghost:hover {
  color: var(--ink);
  transform: none;
}

.hero-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 12px 12px 0;
  max-width: 28rem;
  animation: rise 1s 0.2s ease both;
}

/* —— Legal pages —— */
.legal-header {
  padding: 2rem 0 1rem;
  animation: rise 0.6s ease both;
}

.legal-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 0.35rem;
}

.legal-header .lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.legal {
  max-width: 42rem;
  padding: 0.5rem 0 4rem;
  animation: rise 0.75s 0.05s ease both;
}

.legal section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.legal section:last-of-type {
  border-bottom: none;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.legal ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.legal li {
  margin-bottom: 0.35rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

/* —— Footer —— */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
}

.site-footer a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
}

.site-footer a:hover {
  color: var(--brand-deep);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 1.75rem);
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
  }
}
