:root {
  --ink: #16161d;
  --ink-soft: #4a4a57;
  --paper: #fbfaf7;
  --paper-2: #f2f0ea;
  --line: #e4e1d8;

  /* Pulled from the logo */
  --coral: #ef6f6c;
  --amber: #f2a65a;
  --lemon: #f2dc5d;
  --sage: #9cc69b;
  --sky: #7fd1e3;

  --radius: 18px;
  --max: 1080px;
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--head);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.eyebrow {
  font-family: var(--head);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem max(16px, calc((100% - var(--max)) / 2));
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--head);
  font-weight: 700;
}

.nav nav { display: flex; align-items: center; gap: 1.5rem; }

.nav nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

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

.nav nav a.nav-cta {
  color: var(--paper);
  background: var(--ink);
  padding: 0.45rem 1rem;
  border-radius: 999px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 6px 20px -8px rgba(22, 22, 29, 0.5);
}

.btn-ghost {
  border: 1.5px solid var(--line);
  background: #fff;
}

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

.btn-lg { font-size: 1.1rem; padding: 1rem 1.8rem; }

/* Hero */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 16px 6rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 520px;
  z-index: -1;
  background:
    radial-gradient(closest-side at 30% 40%, color-mix(in srgb, var(--coral) 22%, transparent), transparent),
    radial-gradient(closest-side at 50% 30%, color-mix(in srgb, var(--lemon) 26%, transparent), transparent),
    radial-gradient(closest-side at 70% 45%, color-mix(in srgb, var(--sky) 24%, transparent), transparent);
  filter: blur(20px);
}

.hero-logo {
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
  padding: 0;
  border-radius: 40px;
  background: #fff;
  box-shadow: 0 24px 60px -24px rgba(22, 22, 29, 0.35), 0 0 0 1px var(--line);
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  font-weight: 700;
  max-width: 14ch;
  margin: 0 auto;
}

.grow {
  background: linear-gradient(90deg, var(--coral), var(--amber) 30%, var(--sage) 65%, var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 38rem;
  margin: 1.5rem auto 2.25rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 16px;
}

.section-head { max-width: 40rem; margin-bottom: 2.5rem; }

.section h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }

.section-sub { color: var(--ink-soft); margin: 1rem 0 0; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px -24px var(--accent);
}

.card .dot {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 1.25rem;
}

.card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }

.card p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* Approach */
.approach {
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  padding: 4rem clamp(1.5rem, 5vw, 4rem);
  max-width: calc(var(--max) - 32px);
}

.approach .eyebrow,
.approach .section-sub { color: #b8b8c4; }

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.principles li { display: flex; gap: 1rem; }

.principles .num {
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--lemon);
  padding-top: 0.2rem;
}

.principles li:nth-child(2) .num { color: var(--sage); }
.principles li:nth-child(3) .num { color: var(--sky); }

.principles h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }

.principles p { margin: 0; color: #c9c9d3; font-size: 0.97rem; }

/* Contact */
.contact { text-align: center; padding-top: 6rem; padding-bottom: 6rem; }

.contact-logo { margin: 0 auto 1.5rem; border-radius: 20px; }

.contact p { color: var(--ink-soft); margin: 1rem 0 2rem; }

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 2rem max(16px, calc((100% - var(--max)) / 2));
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer p { margin: 0; }

.footer a { text-decoration: none; }

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

/* 404 */
.notfound {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 4rem 16px;
}

.notfound img { margin: 0 auto 2rem; border-radius: 28px; }

.notfound h1 { font-size: clamp(2rem, 6vw, 3.5rem); }

.notfound p { color: var(--ink-soft); margin: 1rem 0 2rem; }

@media (max-width: 560px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .hero { padding-top: 3rem; }
  .hero-logo { width: 160px; height: 160px; border-radius: 32px; }
  .approach { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
