/* ============================================================
   Cambridge Agents — styles
   Palette: ivory / ink / brass, with a deep-green console accent
   ============================================================ */

:root {
  --ivory: #faf7ef;
  --ivory-2: #f3edde;
  --card: #f6f1e4;
  --ink: #1c1a14;
  --ink-soft: #4c4738;
  --ink-faint: #8a836e;
  --brass: #a67c2e;
  --brass-bright: #c39743;
  --line: rgba(28, 26, 20, 0.12);
  --green: #12261f;
  --green-2: #0d1c17;
  --mint: #a3c1ad;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SF Mono", "Fira Code", ui-monospace, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(166, 124, 46, 0.25); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
}

.lede { font-size: 19px; color: var(--ink-soft); max-width: 640px; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 239, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: 0.01em; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft); font-size: 14.5px; font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 13px 26px; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--ink); color: var(--ivory);
  box-shadow: 0 1px 2px rgba(28, 26, 20, 0.2);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(28, 26, 20, 0.22); }
.btn-primary .arrow { transition: transform 0.15s; }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: var(--brass-bright); transform: translateY(-1px); }
.btn-light { background: var(--ivory); color: var(--ink); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

/* ---------- hero ---------- */

.hero { padding: 92px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 420px at 85% -10%, rgba(166, 124, 46, 0.10), transparent 65%),
    radial-gradient(600px 400px at 0% 10%, rgba(163, 193, 173, 0.16), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }

.hero h1 {
  font-size: clamp(44px, 6.4vw, 78px);
  max-width: 900px; margin: 0 auto 26px;
}
.hero h1 em { font-style: italic; color: var(--brass); }

.hero .lede { margin: 0 auto 38px; text-align: center; max-width: 700px; }
.hero .lede strong { color: var(--ink); font-weight: 600; }

.hero-cta { display: flex; gap: 14px; justify-content: center; margin-bottom: 22px; }
.hero-note { font-size: 13.5px; color: var(--ink-faint); }

/* ---------- console mock ---------- */

.console-frame { margin: 72px auto 0; max-width: 920px; position: relative; }
.console-frame::before {
  content: ""; position: absolute; inset: -1px -1px auto -1px; height: 60%;
  background: linear-gradient(180deg, rgba(166,124,46,0.35), transparent);
  border-radius: 18px; filter: blur(24px); opacity: 0.35; z-index: 0;
}
.console {
  position: relative; z-index: 1;
  background: var(--green-2);
  border: 1px solid rgba(163, 193, 173, 0.18);
  border-radius: 16px;
  box-shadow: 0 30px 80px -20px rgba(18, 38, 31, 0.55);
  overflow: hidden;
  text-align: left;
}
.console-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px;
  background: var(--green);
  border-bottom: 1px solid rgba(163, 193, 173, 0.14);
}
.dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(163, 193, 173, 0.25); }
.console-title {
  margin-left: 10px; font-family: var(--mono); font-size: 12.5px;
  color: rgba(250, 247, 239, 0.55); letter-spacing: 0.02em;
}
.console-badge {
  margin-left: auto; font-family: var(--mono); font-size: 11px;
  color: var(--mint); border: 1px solid rgba(163, 193, 173, 0.3);
  padding: 3px 10px; border-radius: 999px;
}
.console-badge .pulse {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #6fd39a; margin-right: 7px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.console-body {
  font-family: var(--mono); font-size: 13.5px; line-height: 1.85;
  padding: 22px 26px 26px; min-height: 320px;
  color: rgba(250, 247, 239, 0.85);
}
html.anim .console-body .line { opacity: 0; transform: translateY(4px); transition: opacity 0.4s, transform 0.4s; }
html.anim .console-body .line.show { opacity: 1; transform: none; }
.c-dim { color: rgba(250, 247, 239, 0.4); }
.c-mint { color: var(--mint); }
.c-gold { color: var(--brass-bright); }
.c-green { color: #6fd39a; }
.c-white { color: #faf7ef; }
.indent { padding-left: 22px; }

/* ---------- stats strip ---------- */

.stats { padding: 64px 0 8px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-block: 1px solid var(--line);
}
.stat { background: var(--ivory); padding: 34px 26px; text-align: center; }
.stat .num { font-family: var(--serif); font-size: 44px; font-weight: 500; color: var(--ink); line-height: 1.1; }
.stat .num span { color: var(--brass); }
.stat .label { font-size: 13px; color: var(--ink-faint); margin-top: 6px; letter-spacing: 0.04em; }

/* ---------- sections ---------- */

.section { padding: 110px 0; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(34px, 4.2vw, 52px); margin-bottom: 18px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 30px 26px 32px; position: relative;
}
.step .n {
  font-family: var(--serif); font-size: 15px; color: var(--brass);
  letter-spacing: 0.14em; margin-bottom: 18px; display: block;
}
.step h3 { font-size: 24px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

/* capabilities */
.cap-section { background: var(--ivory-2); border-block: 1px solid var(--line); }
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cap {
  background: var(--ivory); border: 1px solid var(--line); border-radius: 14px;
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cap:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -18px rgba(28, 26, 20, 0.25); }
.cap-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(166, 124, 46, 0.1); border: 1px solid rgba(166, 124, 46, 0.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--brass); font-size: 18px;
}
.cap h3 { font-size: 23px; margin-bottom: 10px; }
.cap p { font-size: 14.5px; color: var(--ink-soft); }

/* PE row */
.pe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.pe-list { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.pe-list li { display: flex; gap: 16px; align-items: flex-start; }
.pe-list .tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%; margin-top: 2px;
  background: rgba(166, 124, 46, 0.12); border: 1px solid rgba(166, 124, 46, 0.35);
  color: var(--brass); font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.pe-list b { display: block; font-size: 16.5px; font-weight: 600; }
.pe-list span.desc { font-size: 14.5px; color: var(--ink-soft); }

.brief-card {
  background: var(--green-2); color: rgba(250, 247, 239, 0.9);
  border-radius: 16px; padding: 34px;
  box-shadow: 0 30px 70px -25px rgba(18, 38, 31, 0.5);
  font-size: 14px;
}
.brief-card .bc-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid rgba(163, 193, 173, 0.2); padding-bottom: 16px; margin-bottom: 18px;
}
.brief-card .bc-title { font-family: var(--serif); font-size: 22px; color: #faf7ef; }
.brief-card .bc-tag { font-family: var(--mono); font-size: 11px; color: var(--mint); }
.brief-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed rgba(163, 193, 173, 0.15); }
.brief-row:last-child { border-bottom: none; }
.brief-row .co { font-weight: 600; color: #faf7ef; }
.brief-row .co small { display: block; font-weight: 400; color: rgba(250,247,239,0.55); font-size: 12px; }
.brief-row .score { font-family: var(--mono); color: var(--brass-bright); white-space: nowrap; }
.brief-src { font-family: var(--mono); font-size: 11px; color: rgba(163, 193, 173, 0.7); margin-top: 16px; }

/* integrations */
.integrations { text-align: center; padding: 90px 0; border-block: 1px solid var(--line); background: var(--ivory-2); }
.logo-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 46px; margin-top: 40px; opacity: 0.85;
}
.logo-row img { height: 34px; filter: grayscale(0.4); transition: filter 0.2s, transform 0.2s; }
.logo-row img.wordmark { height: 26px; }
.logo-row img:hover { filter: none; transform: scale(1.06); }
.logo-chip {
  font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink-soft);
  border: 1px solid var(--line); padding: 8px 18px; border-radius: 999px; background: var(--ivory);
}

/* security */
.security-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.sec-item { border-top: 2px solid var(--brass); padding-top: 20px; }
.sec-item h3 { font-size: 21px; margin-bottom: 8px; }
.sec-item p { font-size: 14px; color: var(--ink-soft); }

/* ---------- CTA band ---------- */

.cta-band { background: var(--green); color: var(--ivory); padding: 110px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% 120%, rgba(166, 124, 46, 0.25), transparent 70%);
}
.cta-band .wrap { position: relative; }
.cta-band h2 { font-size: clamp(36px, 4.6vw, 58px); margin-bottom: 20px; }
.cta-band h2 em { font-style: italic; color: var(--brass-bright); }
.cta-band p { color: rgba(250, 247, 239, 0.7); max-width: 560px; margin: 0 auto 36px; font-size: 17px; }

/* ---------- team ---------- */

.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 30px; justify-content: center; }
.member {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
}
.member-photo { aspect-ratio: 1 / 1; position: relative; background: #8f8a7c; overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--green), var(--green-2));
  font-family: var(--serif); font-size: 64px; color: rgba(250, 247, 239, 0.85);
}
.member-body { padding: 28px 28px 30px; }
.member-body h3 { font-size: 27px; margin-bottom: 4px; }
.member-role {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 16px;
}
.member-bio { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.member-bio li { font-size: 14px; color: var(--ink-soft); padding-left: 18px; position: relative; }
.member-bio li::before { content: "—"; position: absolute; left: 0; color: var(--brass); }
.member-link { margin-top: 18px; font-size: 13.5px; }
.member-link a { color: var(--brass); font-weight: 600; text-decoration: none; }
.member-link a:hover { text-decoration: underline; }
.badge-soon {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green); background: var(--mint);
  border-radius: 999px; padding: 3px 12px; margin-left: 8px; vertical-align: middle;
}

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--line); padding: 44px 0; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-inner .brand-name { font-size: 18px; }
.foot-note { font-size: 13px; color: var(--ink-faint); }
.foot-links { display: flex; gap: 26px; }
.foot-links a { font-size: 13.5px; color: var(--ink-soft); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

/* ---------- reveal animation ---------- */

html.anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.anim .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .steps, .security-grid { grid-template-columns: repeat(2, 1fr); }
  .caps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pe-grid { grid-template-columns: 1fr; gap: 46px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not(.btn) { display: none; }
}

@media (max-width: 620px) {
  .steps, .caps, .security-grid, .team-grid, .stats-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .section { padding: 72px 0; }
}
