@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
  color-scheme: dark;
  --bg: #11101a;
  --surface: #1b1928;
  --text: #f2f0ff;
  --muted: #b7b2d4;
  --primary: #806dff;
  --primary-2: #6b5af3;
}

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

body {
  min-height: 100vh;
  font-family: Poppins, Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 0% 0%, #2a2248 0%, var(--bg) 40%), var(--bg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  width: min(1120px, calc(100% - 32px));
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #332d4a;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 36px;
  width: auto;
  border-radius: 8px;
}

.nav-links { display: flex; gap: 20px; }

.nav-links a {
  color: #d9d4ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
}

.nav-links a.nav-active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(128, 109, 255, 0.32), rgba(107, 90, 243, 0.22));
  border: 1px solid #7a66ff;
  box-shadow:
    0 0 0 1px rgba(128, 109, 255, 0.18) inset,
    0 0 14px rgba(128, 109, 255, 0.35),
    0 0 28px rgba(107, 90, 243, 0.22);
}

.actions { display: flex; gap: 10px; align-items: center; }

select {
  height: 40px;
  border: 1px solid #4b426e;
  border-radius: 10px;
  padding: 0 10px;
  background: #211d31;
  color: #f2f0ff;
}

.hero {
  width: min(860px, calc(100% - 32px));
  margin: 40px auto 0;
  padding-bottom: 48px;
}

.hero-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid #332d4a;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(10, 8, 20, 0.45);
  padding: 40px 28px;
}

.eyebrow {
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 8px;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: 0.1px;
}

.lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.hero-cta {
  margin-top: 26px;
  display: flex;
  gap: 12px;
}

.section {
  margin-top: 32px;
  max-width: 860px;
}

.section-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
}

.section-head.compact h2 {
  font-size: 18px;
  font-weight: 700;
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.pill-grid {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #4a4170;
  background: #26213a;
  font-size: 13px;
  font-weight: 500;
  color: #e2ddff;
}

.role-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.role-card,
.service-card,
.contact-card,
.person-card {
  background: #1e1b2e;
  border: 1px solid #332d4a;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(10, 8, 20, 0.35);
}

.role-card,
.service-card,
.person-card {
  padding: 16px;
}

.role-card {
  cursor: pointer;
}

.role-card.role-active {
  border: 2px solid var(--primary);
  box-shadow: 0 12px 30px rgba(128, 109, 255, 0.22);
}

.contact-card {
  margin-top: 18px;
  padding: 16px;
}

.role-card h3,
.service-card h3,
.person-card h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.role-card p,
.service-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.service-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.section-link-row {
  margin-top: 10px;
}

.inline-link {
  color: #cbbfff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.inline-link:hover {
  color: #ffffff;
}

.role-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.service-grid-long {
  grid-template-columns: 1fr;
}

.service-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.service-list li + li {
  margin-top: 6px;
}

.contact-card h3 { margin: 0 0 12px; }
.contact-card p { margin: 6px 0; }

.contact-card a,
.person-card a {
  color: #e2ddff;
  text-decoration: none;
}

.contact-card a { font-weight: 600; }

.people-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.person-card p { margin: 7px 0 0; }

.muted { color: var(--muted); }

.footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #332d4a;
}

.footer p {
  margin: 4px 0;
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.2px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 24px rgba(128, 109, 255, 0.28);
}

.btn-ghost {
  color: #e2ddff;
  background: #27213b;
  border: 1px solid #49406d;
}

@media (max-width: 740px) {
  .topbar {
    margin-top: 16px;
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .brand-wrap {
    order: 1;
  }
  .actions {
    order: 2;
    margin-left: auto;
  }
  .nav-links {
    order: 3;
    width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links a {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 6px 8px;
    white-space: nowrap;
  }
  .hero { margin-top: 24px; }
  .hero-card { padding: 24px; border-radius: 16px; }
  .actions .btn.btn-ghost { display: none; }
  .service-grid,
  .people-grid,
  .role-grid {
    grid-template-columns: 1fr;
  }
  .section-head h2 {
    font-size: 28px;
  }
}

[data-signup-button], [data-signup-flow], a[href^="/app/signup"] { display: none !important; }
