/* ── RESET ─────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: hsl(221, 83%, 53%);
  --blue-hover: hsl(221, 83%, 45%);
  --blue-10: hsla(221, 83%, 53%, 0.1);
  --blue-20: hsla(221, 83%, 53%, 0.2);
  --blue-30: hsla(221, 83%, 53%, 0.3);
  --blue-50: hsla(221, 83%, 53%, 0.5);
  --foreground: hsl(0, 0%, 9%);
  --muted: hsl(220, 9%, 40%);
  --muted-30: hsl(214, 32%, 95%);
  --border: hsl(214, 32%, 91%);
  --card: hsl(0, 0%, 100%);
  --bg: hsl(0, 0%, 100%);
  --secondary: hsl(0, 0%, 9%);
  --secondary-fg: hsl(0, 0%, 100%);
  --max-w: 80rem; /* 1280px */
  --radius: 0.75rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans', system-ui, -apple-system, sans-serif;
  color: var(--foreground);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── NAV (glassmorphism, no bottom accent) ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: hsla(0, 0%, 100%, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 1024px) { .nav-inner { padding: 0 32px; } }
.nav-logo { height: 28px; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--foreground); background: var(--muted-30); }
.nav-links a.active { color: var(--blue); background: var(--blue-10); }
.nav-cta {
  margin-left: 16px !important;
  background: var(--blue) !important;
  color: white !important;
  padding: 10px 20px !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--blue-hover) !important; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--foreground);
  position: absolute; left: 4px; transition: all 0.3s;
}
.nav-toggle span:nth-child(1) { top: 8px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 22px; }

/* ── BUTTONS ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: white;
  padding: 16px 32px; border-radius: var(--radius);
  font-size: 18px; font-weight: 600; line-height: 1;
  transition: background 0.2s, transform 0.2s;
  border: none; cursor: pointer;
  height: 56px;
}
.btn:hover { background: var(--blue-hover); }
.btn svg { width: 20px; height: 20px; }
.btn-secondary {
  background: var(--secondary); color: var(--secondary-fg);
}
.btn-secondary:hover { background: hsl(0, 0%, 15%); }
.btn-outline {
  background: transparent; border: 1px solid var(--border); color: var(--foreground);
}
.btn-full { width: 100%; justify-content: center; }

/* ── SCROLL ANIMATIONS ───────────────── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-x {
  opacity: 0; transform: translateX(-20px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible, .reveal-x.visible { opacity: 1; transform: translate(0); }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; } .d4 { transition-delay: 0.4s; }

/* ── HERO (all pages) ────────────────── */
.hero { padding: 128px 24px 80px; }
.hero-inner { max-width: var(--max-w); margin: 0 auto; }
.hero-content { max-width: 56rem; }
.hero-label {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700; color: var(--blue); margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900; letter-spacing: -0.025em;
  line-height: 1.1; margin-bottom: 24px;
}
.hero h1 .accent { color: var(--blue); }
.hero .subtitle {
  font-size: 20px; color: var(--muted);
  max-width: 40rem; line-height: 1.7; margin-bottom: 32px;
}
@media (min-width: 1024px) { .hero { padding: 128px 32px 80px; } }

/* ── SECTION PATTERNS ────────────────── */
.section { padding: 80px 24px; }
.section-muted { background: var(--muted-30); }
.section-blue { background: var(--blue); color: white; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900; letter-spacing: -0.025em; margin-bottom: 24px;
}
.section-header p {
  font-size: 18px; color: var(--muted); max-width: 40rem; margin: 0 auto; line-height: 1.7;
}
.section-blue .section-header p { color: hsla(0, 0%, 100%, 0.9); }
@media (min-width: 1024px) { .section { padding: 80px 32px; } }

/* ── CAPABILITY CARDS (border-l + icon) ── */
.cap-grid-2 { display: grid; grid-template-columns: 1fr; gap: 32px; }
.cap-grid-3 { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .cap-grid-2 { grid-template-columns: 1fr 1fr; } .cap-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.cap-card {
  position: relative; padding-left: 24px; padding-top: 24px; padding-bottom: 24px;
  border-left: 2px solid var(--blue-30);
  transition: border-color 0.3s;
}
.cap-card:hover { border-left-color: var(--blue); }
.cap-card-inner { display: flex; align-items: flex-start; gap: 16px; }
.cap-icon {
  flex-shrink: 0; width: 48px; height: 48px;
  border-radius: 8px; background: var(--blue-10);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.cap-card:hover .cap-icon { background: var(--blue-20); }
.cap-icon svg { width: 24px; height: 24px; color: var(--blue); }
.cap-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.cap-card p { color: var(--muted); line-height: 1.7; }

/* ── CONTENT CARDS (rounded, bordered) ── */
.content-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 1rem; padding: 32px;
}
.content-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.content-card p { color: var(--muted); line-height: 1.7; }

/* ── SPLIT (2-col text) ──────────────── */
.split { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } }
.split h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 24px;
}
.split p { font-size: 18px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }

/* ── STEP GRID (Foundry 4-col) ───────── */
.step-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .step-grid { grid-template-columns: repeat(4, 1fr); } }
.step-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
}
.step-num {
  font-size: 40px; font-weight: 900; color: var(--blue); margin-bottom: 12px;
}
.step-card h3 { font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--muted); }

/* ── FUND ADVANTAGE CARDS ────────────── */
.adv-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .adv-grid { grid-template-columns: repeat(3, 1fr); } }
.adv-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 1rem; padding: 32px;
}
.adv-card svg { width: 40px; height: 40px; color: var(--blue); margin-bottom: 16px; }
.adv-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.adv-card p { color: var(--muted); line-height: 1.7; }

/* ── FUND FOCUS (CheckCircle + grid) ── */
.focus-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .focus-grid { grid-template-columns: 1fr 1fr; } }
.focus-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
}
.focus-item svg { width: 24px; height: 24px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.focus-item p { font-weight: 500; }

/* ── CTA (centered text + button) ────── */
.cta { max-width: 56rem; margin: 0 auto; text-align: center; }
.cta h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900; letter-spacing: -0.025em; margin-bottom: 24px;
}
.cta p { font-size: 20px; color: var(--muted); margin-bottom: 32px; }
.section-blue .cta p { color: hsla(0, 0%, 100%, 0.9); }

/* ── CONTACT FORM ────────────────────── */
.contact-wrap { max-width: 56rem; margin: 0 auto; }
.contact-header { text-align: center; margin-bottom: 48px; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 2fr 1fr; } }
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { margin-bottom: 24px; }
.form-group:last-of-type { margin-bottom: 0; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-input {
  width: 100%; padding: 12px 16px; height: 48px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 15px; background: var(--bg);
  transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--blue); }
.form-textarea { height: auto; min-height: 150px; resize: none; }
.form-status { margin-top: 12px; font-size: 14px; font-weight: 500; }
.form-status.success { color: hsl(142, 71%, 45%); }
.form-status.error { color: hsl(0, 84%, 60%); }

.contact-sidebar { display: flex; flex-direction: column; gap: 24px; }
.contact-email-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 1rem; padding: 32px;
  display: flex; align-items: flex-start; gap: 16px;
}
.contact-email-card svg { width: 24px; height: 24px; color: var(--blue); flex-shrink: 0; margin-top: 4px; }
.contact-email-card h3 { font-weight: 700; margin-bottom: 8px; }
.contact-email-card a { color: var(--muted); transition: color 0.2s; }
.contact-email-card a:hover { color: var(--blue); }
.quick-card {
  background: var(--blue); color: white; border-radius: 1rem; padding: 32px;
}
.quick-card h3 { font-weight: 700; margin-bottom: 12px; }
.quick-card p { font-size: 14px; opacity: 0.9; }

/* ── ENGINE CARDS (homepage) ─────────── */
.engine-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .engine-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.engine-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 1rem; padding: 32px;
  transition: border-color 0.3s;
}
.engine-card:hover { border-color: var(--blue-50); }
.engine-card svg.eicon { width: 40px; height: 40px; color: var(--blue); margin-bottom: 16px; }
.engine-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.engine-card p { color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.engine-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue); font-weight: 500;
  transition: transform 0.3s;
}
.engine-card:hover .engine-link { transform: translateX(8px); }
.engine-link svg { width: 16px; height: 16px; }

/* ── STACKED CARDS (Foundry "Built for") ── */
.stack { display: flex; flex-direction: column; gap: 24px; }

/* ── FOOTER ──────────────────────────── */
.footer { background: var(--secondary); color: var(--secondary-fg); }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 48px 24px;
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1.5fr 1fr 1fr 1.5fr; } }
@media (min-width: 1024px) { .footer-inner { padding: 48px 32px; } }
.footer-brand .footer-logo { height: 24px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.footer h4, .footer .fh { font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.footer ul a:hover { color: white; }
.footer .locs p { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.footer .locs strong { color: white; font-weight: 600; }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  padding: 32px 24px 0; border-top: 1px solid hsla(0, 0%, 100%, 0.1);
  font-size: 14px; color: var(--muted);
}
@media (min-width: 1024px) { .footer-bottom { padding: 32px 32px 0; } }

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 80px; left: 0; right: 0;
    background: var(--bg); padding: 16px 24px;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  }
  .nav-links.open .nav-cta { margin-left: 0 !important; margin-top: 8px; text-align: center; display: block; }
}
