:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --fg: #0f1a1f;
  --muted: #5a6870;
  --line: rgba(15, 26, 31, .09);
  --accent: #0e7c86;
  --accent-2: #2f5bd3;
  --glow-1: rgba(14, 124, 134, .18);
  --glow-2: rgba(47, 91, 211, .14);
  --radius: 20px;
  --shadow: 0 1px 2px rgba(15, 26, 31, .04), 0 12px 32px -12px rgba(15, 26, 31, .12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f12;
    --surface: #11181c;
    --fg: #eef2f3;
    --muted: #94a3aa;
    --line: rgba(238, 242, 243, .08);
    --accent: #3fc1c9;
    --accent-2: #7b9cff;
    --glow-1: rgba(63, 193, 201, .16);
    --glow-2: rgba(123, 156, 255, .12);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60rem 40rem at 85% -10%, var(--glow-2), transparent 60%),
    radial-gradient(50rem 36rem at -10% 10%, var(--glow-1), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--fg);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) { .wrap { padding: 0 2rem; } }

a { color: var(--accent); text-underline-offset: .2em; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--fg);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}

.brand img { width: 28px; height: 28px; flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  font-size: .92rem;
  font-weight: 550;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}

.btn:hover { transform: translateY(-1px); border-color: var(--accent); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(4rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}

.hero-lines {
  position: absolute;
  inset: auto -10% 0 -10%;
  width: 120%;
  height: 100%;
  opacity: .5;
  pointer-events: none;
}

.hero-content { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1.5rem;
  padding: .35rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--muted);
  font-size: .85rem;
  font-weight: 550;
}

.eyebrow::before {
  content: "";
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--accent);
}

.display {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 5.6rem);
  line-height: 1;
  font-weight: 750;
  letter-spacing: -.045em;
}

.display .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  max-width: 36rem;
  margin: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}

/* Cards */

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card .num {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--accent);
  font-size: .85rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.card h2 {
  margin: 0 0 .4rem;
  font-size: 1.2rem;
  letter-spacing: -.01em;
}

.card p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Contact band */

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: clamp(3rem, 8vw, 6rem);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius);
  background:
    radial-gradient(30rem 16rem at 100% 0%, var(--glow-2), transparent 70%),
    radial-gradient(30rem 16rem at 0% 100%, var(--glow-1), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact h2 { margin: 0 0 .25rem; font-size: 1.5rem; letter-spacing: -.02em; }
.contact p { margin: 0; color: var(--muted); }

/* Legal pages */

.legal {
  max-width: 44rem;
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.legal h1 {
  margin: 0 0 2rem;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  overflow-wrap: break-word;
  hyphens: auto;
}

.legal section {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.legal h2 {
  margin: 0 0 .4rem;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -.005em;
  overflow-wrap: break-word;
  hyphens: auto;
}

.legal p { margin: 0; }
.legal .stand { margin-top: 2rem; color: var(--muted); font-size: .9rem; }

/* Footer */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
  padding-top: 1.75rem;
  padding-bottom: 2rem;
}

.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
