/* ============ Bridge — builtbybridge.ai ============ */
:root {
  --ink: #1F2A35;
  --blue: #3674F5;
  --blue-dark: #2558C9;
  --steel: #5A6873;
  --mist: #E6E8EA;
  --cloud: #F6F8FA;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 42, 53, 0.08);
  --shadow-hover: 0 16px 40px rgba(31, 42, 53, 0.14);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; margin-bottom: 0.5em; }
h3 { font-size: 1.15rem; font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 12px;
}

.lead { font-size: 1.15rem; color: var(--steel); margin-bottom: 24px; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(54, 116, 245, 0.35);
}
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 10px 26px rgba(54, 116, 245, 0.45); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--mist);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light {
  background: var(--white);
  color: var(--blue);
}
.btn-light:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--mist); box-shadow: 0 4px 20px rgba(31, 42, 53, 0.06); }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-logo { height: 44px; width: 44px; object-fit: contain; }
.brand-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  text-decoration: none;
  color: var(--steel);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 110px 0 150px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: auto 0 0 0;
  height: 420px;
  pointer-events: none;
}
.hero-bridge { width: 100%; height: 100%; opacity: 0.35; }
.hero-inner { position: relative; text-align: center; max-width: 860px; }
.hero-sub {
  font-size: 1.2rem;
  color: var(--steel);
  max-width: 640px;
  margin: 20px auto 32px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 1rem; font-weight: 600; color: var(--ink); }
.accent-word {
  color: var(--blue);
  display: inline-block;
  min-width: 4.2ch;
  text-align: left;
}
.accent-word.swap { animation: wordSwap 0.45s ease; }
@keyframes wordSwap {
  0% { opacity: 0; transform: translateY(0.4em); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ============ Tagline band ============ */
.tagline-band {
  background: var(--ink);
  padding: 80px 0 64px;
  text-align: center;
}
.tagline {
  color: var(--white);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 900px;
  margin: 0 auto;
}
.tg-accent { color: #6E9AF8; }
.tg-sub { display: block; color: var(--blue); margin-top: 6px; }
.tagline-arc { width: min(320px, 60%); margin: 28px auto 0; display: block; }

/* ============ Sections ============ */
.section { padding: 96px 0; }
.section-alt { background: var(--cloud); }

/* ============ Cards ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(54, 116, 245, 0.35);
}
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(54, 116, 245, 0.1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.95rem; color: var(--steel); }

/* ============ Who ============ */
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.chip-wall { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  cursor: default;
}
.chip:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ============ Steps ============ */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 48px;
}
.step-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue);
  opacity: 0.25;
  margin-bottom: 8px;
  line-height: 1;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.95rem; color: var(--steel); }
.step-connector {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--mist));
  margin-top: 22px;
  border-radius: 2px;
}

/* ============ Freedom ============ */
.freedom-inner { text-align: center; }
.freedom-accent { color: var(--blue); }
.freedom .lead { max-width: 640px; margin-left: auto; margin-right: auto; }
.freedom-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
  text-align: left;
}
.freedom-point {
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 18px;
}
.freedom-point strong { display: block; margin-bottom: 4px; font-size: 1.02rem; }
.freedom-point p { font-size: 0.92rem; color: var(--steel); }
@media (max-width: 720px) {
  .freedom-points { grid-template-columns: 1fr; }
}

/* ============ FAQ ============ */
.faq-list { margin-top: 32px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: rgba(54, 116, 245, 0.4); }
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-plus::before, .faq-plus::after {
  content: '';
  position: absolute;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.25s ease;
}
.faq-plus::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-plus::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item[open] .faq-plus::after { transform: rotate(90deg); }
.faq-body { padding: 0 24px 20px; color: var(--steel); }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-email { margin-top: 20px; font-size: 0.95rem; color: var(--steel); }
.contact-email a { color: var(--blue); font-weight: 600; text-decoration: none; }
.contact-email a:hover { text-decoration: underline; }
.contact-form {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.contact-form input, .contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 0.95rem;
  border: 1px solid var(--mist);
  border-radius: 10px;
  background: var(--cloud);
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row label { margin-bottom: 16px; }
.form-note { margin-top: 12px; font-size: 0.85rem; color: var(--steel); text-align: center; }

/* ============ CTA band ============ */
.cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 88px 0;
  text-align: center;
  color: var(--white);
}
.cta-inner h2 { color: var(--white); margin-bottom: 28px; }
.cta-inner p { margin-top: 18px; font-size: 0.92rem; opacity: 0.85; }

/* ============ Fixes (after the audit) ============ */
.fix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.fix-item {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.fix-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(54, 116, 245, 0.35);
}
.fix-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.fix-icon svg { width: 22px; height: 22px; }
.fix-item h3 { margin-bottom: 8px; }
.fix-item p { font-size: 0.95rem; color: var(--steel); }
.fix-note {
  margin-top: 28px;
  font-weight: 600;
  color: var(--ink);
}
@media (max-width: 900px) {
  .fix-grid { grid-template-columns: 1fr; }
}

/* ============ Founder ============ */
.founder {
  background: var(--ink);
  padding: 64px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.founder-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 720px;
}
.founder-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--blue);
}
.founder-name {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.founder-name span { color: var(--blue); font-weight: 600; font-size: 0.95rem; }
.founder-copy p:not(.founder-name) {
  color: var(--mist);
  font-size: 0.95rem;
  margin-bottom: 8px;
}
@media (max-width: 720px) {
  .founder-inner { flex-direction: column; text-align: center; }
}

/* ============ Footer ============ */
.footer { background: var(--ink); color: var(--mist); padding: 48px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.footer-brand img { height: 42px; width: 42px; object-fit: contain; background: var(--white); border-radius: 10px; padding: 3px; }
.footer-brand strong { display: block; color: var(--white); font-size: 1.05rem; }
.footer-brand a { color: var(--mist); font-size: 0.85rem; text-decoration: none; }
.footer-brand a:hover { color: var(--white); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--mist); font-size: 0.85rem; text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.8rem; opacity: 0.6; width: 100%; }

/* ============ Reveal animations ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Hero bridge draw-in */
.hero-bridge path {
  stroke-dasharray: 2200;
  stroke-dashoffset: 2200;
  animation: drawBridge 2.2s ease-out forwards;
}
#bridgeGray { animation-delay: 0.3s; }
.bridge-pillars { opacity: 0; animation: fadePillars 0.8s ease 1.6s forwards; }
@keyframes drawBridge { to { stroke-dashoffset: 0; } }
@keyframes fadePillars { to { opacity: 0.5; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bridge path { animation: none; stroke-dashoffset: 0; }
  .bridge-pillars { animation: none; opacity: 0.5; }
  .accent-word.swap { animation: none; }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .who-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .step-connector { display: none; }
}
@media (max-width: 980px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--mist);
    box-shadow: 0 12px 30px rgba(31, 42, 53, 0.1);
  }
  .nav-links.open { display: flex; }
  .btn-nav { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 720px) {
  .card-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 120px; }
  .hero-bg { height: 240px; }
  .hero-bridge { opacity: 0.22; }
}
