/* Civic Bridge — brand system per "Civic Bridge Brand Theme" */

:root {
  --navy: #17164F;
  --purple: #5A32C9;
  --magenta: #C23B92;
  --orange: #FF792E;
  --gold: #FFA329;
  --white: #FFFFFF;
  --soft-gray: #F5F5F7;
  --slate: #626575;
  --gradient: linear-gradient(90deg, #5132C9 0%, #B63C9A 50%, #FF792E 100%);
  --max-width: 1120px;
  --radius: 16px;
  --shadow: 0 20px 60px -25px rgba(23, 22, 79, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Avenir Next", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ECECF1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img { height: 34px; width: auto; }

.brand-word {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--purple); }

.nav-toggle { display: none; }

/* Hero */
.hero {
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -220px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.10;
  filter: blur(10px);
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--purple);
  background: rgba(90, 50, 201, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin: 0 0 22px;
  color: var(--navy);
}

.hero .accent { color: var(--orange); }

.hero p.lede {
  font-size: 1.2rem;
  color: var(--slate);
  max-width: 620px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover { background: #E86A20; }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: #DFDFE6;
}

.btn-secondary:hover { border-color: var(--purple); color: var(--purple); }

/* Section framing */
section { padding: 88px 0; }

.section-alt { background: var(--soft-gray); }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  display: block;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--navy);
}

.section-head p {
  color: var(--slate);
  font-size: 1.05rem;
  margin: 0;
}

/* Problem / stat cards */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid #ECECF1;
  border-radius: var(--radius);
  padding: 32px 28px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--navy);
}

.card p {
  color: var(--slate);
  margin: 0;
  font-size: 0.98rem;
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #F0EEFC;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card .icon svg {
  width: 28px;
  height: 28px;
}

/* Tech stack list */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.stack-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border: 1px solid #ECECF1;
  border-radius: 12px;
  padding: 20px 22px;
}

.stack-item .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 7px;
  flex: none;
}

.stack-item span { color: var(--navy); font-weight: 600; font-size: 0.98rem; }

/* Onboarding steps */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 20px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #ECECF1;
  text-align: left;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.step h3 { font-size: 1.02rem; margin: 0 0 8px; color: var(--navy); }
.step p { font-size: 0.9rem; color: var(--slate); margin: 0; }

/* Intake form */
.intake {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.intake::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.14;
}

.intake .container { position: relative; }

.intake-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.intake-copy .label { color: var(--gold); }
.intake-copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.intake-copy p { color: #C9C8E0; font-size: 1.02rem; margin: 0 0 28px; }

.intake-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.intake-points li { display: flex; gap: 12px; align-items: flex-start; color: #DFDEF0; font-size: 0.95rem; }
.intake-points li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 7px;
  flex: none;
}

.form-card {
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-card h3 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 800; }
.form-card .sub { color: var(--slate); font-size: 0.92rem; margin: 0 0 26px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #E2E2EA;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--soft-gray);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 96px; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--slate);
  margin: 4px 0 24px;
}
.consent input { margin-top: 3px; flex: none; }

.form-submit {
  width: 100%;
  border: none;
  background: var(--orange);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.form-submit:hover { background: #E86A20; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
  margin-top: 14px;
  font-size: 0.88rem;
  display: none;
}
.form-status.success { display: block; color: #1E824C; }
.form-status.error { display: block; color: #C23B3B; }

.honeypot { position: absolute; left: -9999px; opacity: 0; }

/* Footer */
footer {
  padding: 48px 0;
  border-top: 1px solid #ECECF1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 24px; }
.footer-brand span { color: var(--slate); font-size: 0.85rem; }

.footer-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--slate); text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: var(--purple); }

/* Responsive */
@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .intake-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  section { padding: 64px 0; }
  .form-card { padding: 26px; }
}
