:root {
  --bg: #fafaf7;
  --ink: #0c0c0d;
  --ink-2: #474750;
  --muted: #8a8a94;
  --line: #e7e7e0;
  --card: #ffffff;
  --brand: #ff5b24;
  --brand-2: #ffae4a;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(12, 12, 13, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(12, 12, 13, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: block;
  width: 22px;
  height: 22px;
  background-color: var(--brand);
  -webkit-mask: url("./CLAWDB_LOGO.svg") center / contain no-repeat;
  mask: url("./CLAWDB_LOGO.svg") center / contain no-repeat;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-wide { width: 100%; }
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: #fff; }

/* Hero */
.hero {
  position: relative;
  padding: 80px 0 40px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 520px;
  background:
    radial-gradient(60% 60% at 20% 30%, rgba(255, 91, 36, 0.18), transparent 70%),
    radial-gradient(50% 50% at 80% 20%, rgba(255, 174, 74, 0.22), transparent 70%);
  filter: blur(10px);
  z-index: -1;
}
.hero-inner { text-align: center; max-width: 820px; margin: 0 auto; }
.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero h1 {
  font-size: clamp(42px, 6.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  font-weight: 800;
}
.grad {
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 auto 34px;
}
.lede.center { text-align: center; }
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.trust {
  color: var(--ink-2);
  font-size: 15px;
}
.trust span { display: block; margin-bottom: 16px; }
.logos {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 15px;
  color: #aeaeb6;
  letter-spacing: 0.02em;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-top: 40px;
}
.stat {
  text-align: center;
  border-right: 1px solid var(--line);
  padding: 12px 8px;
}
.stat:last-child { border-right: none; }
.stat b {
  display: block;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.stat span {
  color: var(--muted);
  font-size: 13px;
}

/* Creds strip */
.creds { margin-top: 56px; }
.creds-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.creds-inner img {
  height: 28px;
  width: auto;
  opacity: 0.85;
}
.creds-inner img[alt="Harvard"],
.creds-inner img[alt="MIT"] {
  height: 42px;
}
.creds-inner img[alt="UCL"] { margin-left: -8px; }
.creds-inner p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  font-weight: 500;
}

/* Sections */
.section { padding: 96px 24px; }
.section h2 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 8px 0 48px;
  font-weight: 800;
  max-width: 720px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--brand);
  font-weight: 700;
}

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card h3 { margin: 12px 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: #fff7f1;
  border: 1px solid #ffe0cc;
  border-radius: 10px;
  font-size: 20px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.step h3 { margin: 0 0 8px; font-size: 20px; }
.step p { margin: 0; color: var(--ink-2); }

/* Quotes */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.quotes blockquote {
  margin: 0;
  padding: 28px;
}
.quotes blockquote p {
  font-size: 16px;
  margin: 0 0 16px;
  color: var(--ink);
  line-height: 1.55;
}
.quotes blockquote footer {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 880px;
}
.price-card {
  position: relative;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.price-card.featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.price-card.featured ul li { color: #c9c9d3; }
.price-card.featured .price-note { color: #a0a0ad; }
.price-card.featured .btn-primary {
  background: #fff;
  color: var(--ink);
}
.tag {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--brand);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.price-card h3 { margin: 0 0 18px; font-size: 20px; }
.price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.price .num { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.price .per { font-size: 14px; color: var(--muted); }
.price-card.featured .price .per { color: #a0a0ad; }
.price-note { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.price-card ul { margin-bottom: 28px; }
.price-card ul li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}
.price-card.featured ul li { border-color: #2a2a2e; }
.price-card ul li:first-child { border-top: none; }
.price-card ul li::before {
  content: "✓";
  color: var(--brand);
  margin-right: 10px;
  font-weight: 700;
}

/* Calendar */
.calendar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Footer */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer p { margin: 0; color: var(--muted); font-size: 14px; }

/* Reveal on scroll */
.reveal-init { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 860px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .features, .steps, .quotes { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .section { padding: 48px 24px; }
  .section h2 { margin-bottom: 28px; }
  .hero { padding: 56px 0 24px; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 56px; line-height: 1.02; }
  .lede { font-size: 16.5px; }
  .logos { gap: 10px 20px; font-size: 14px; }
  .trust span { margin-bottom: 12px; }
  .stats { padding: 16px; gap: 8px; margin: 16px 16px 0; width: auto; }
  .features .card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    row-gap: 8px;
    align-items: center;
  }
  .features .card .icon {
    grid-row: 1; grid-column: 1;
    background: none;
    border: none;
    width: auto;
    height: auto;
    padding: 0;
  }
  .features .card h3 { grid-row: 1; grid-column: 2; margin: 0; }
  .features .card p { grid-row: 2; grid-column: 1 / -1; margin: 0; }
  .stat { padding: 14px 4px; }
  .stat b { font-size: 24px; }
  .stat span { font-size: 12px; }
}
