/* BCYD — plain CSS, no framework */
:root {
  --ink: #14202e;
  --ink-2: #44505e;
  --ink-3: #6b7683;
  --line: #e4e8ee;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --accent: #1f5eff;
  --accent-ink: #1747c4;
  --accent-soft: #eaf0ff;
  --teal: #0e8a7a;
  --teal-soft: #e5f5f2;
  --radius: 14px;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 720; }
h3 { font-size: 1.2rem; font-weight: 680; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .4em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 650; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.eyebrow.teal { color: var(--teal); }
.lead { font-size: 1.2rem; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; }
.logo:hover { text-decoration: none; color: var(--ink); }
.logo-mark { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links li { margin: 0; }
.nav-links a { color: var(--ink-2); font-weight: 550; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 10px; font-weight: 650; font-size: .98rem;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.nav .btn { padding: 9px 16px; font-size: .9rem; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero { padding: 96px 0 72px; }
.hero .lead { max-width: 660px; }
.hero-page { padding: 80px 0 56px; border-bottom: 1px solid var(--line); }

/* Doors (home) */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.door {
  display: block; padding: 34px; border-radius: var(--radius); border: 1px solid var(--line);
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.door:hover { text-decoration: none; color: var(--ink); border-color: #c9d3e2; box-shadow: 0 10px 30px rgba(20,32,46,.07); transform: translateY(-2px); }
.door .tag { display: inline-block; font-size: .78rem; font-weight: 650; padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; }
.door.telco .tag { background: var(--accent-soft); color: var(--accent-ink); }
.door.auto .tag { background: var(--teal-soft); color: var(--teal); }
.door p { color: var(--ink-2); }
.door .go { font-weight: 650; }
.door.telco .go { color: var(--accent); }
.door.auto .go { color: var(--teal); }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; font-weight: 800;
}
.card .icon.teal { background: var(--teal-soft); color: var(--teal); }
.card p { color: var(--ink-2); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding: 24px 0; border-top: 2px solid var(--ink); }
.stat .num { font-size: 2.2rem; font-weight: 780; letter-spacing: -0.02em; }
.stat .label { color: var(--ink-2); font-size: .95rem; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 52px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: .95rem;
}
.step p { color: var(--ink-2); font-size: .97rem; }

/* Checks list */
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg);
}

/* Case studies */
.case { border: 1px solid var(--line); border-radius: var(--radius); padding: 44px; background: #fff; margin-bottom: 40px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill { font-size: .8rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.case h3.case-title { font-size: 1.55rem; margin-bottom: 10px; }
.case .client { color: var(--ink-2); margin-bottom: 28px; }
.case-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.case h4 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 26px 0 10px; }
.case h4:first-child { margin-top: 0; }
.results { background: var(--bg-soft); border-radius: 12px; padding: 24px; }
.results .big { font-size: 1.9rem; font-weight: 780; letter-spacing: -0.02em; line-height: 1.1; }
.results .row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.results .row:last-child { border-bottom: 0; padding-bottom: 0; }
.results .row:first-child { padding-top: 0; }
.results .desc { color: var(--ink-2); font-size: .93rem; }
table.systems { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.systems th, table.systems td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.systems th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 650; }
table.systems td:first-child { font-weight: 600; white-space: nowrap; }
.stack { font-size: .9rem; color: var(--ink-3); margin-top: 20px; }
.note { font-size: .85rem; color: var(--ink-3); }

/* Labs */
.app-card { display: flex; gap: 20px; align-items: flex-start; }
.app-icon { position: relative; flex: 0 0 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.5rem; overflow: hidden; box-shadow: 0 0 0 1px rgba(20,32,46,.08); }
.app-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* CTA */
.cta { background: var(--ink); color: #fff; border-radius: 20px; padding: 64px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #c3cbd6; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: #e9edf3; color: var(--ink); }
.cta .btn-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 36px; margin-top: 88px; font-size: .93rem; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--ink-2); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-3); }

/* Responsive */
@media (max-width: 960px) {
  .grid-3, .grid-4, .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .case-cols { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
  .doors, .grid-2, .grid-3, .grid-4, .stats, .steps, .footer-grid { grid-template-columns: 1fr; }
  .case { padding: 26px; }
  .cta { padding: 40px 24px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 10px 0; }
  .nav-links a[aria-current="page"] { box-shadow: none; }
  table.systems td:first-child { white-space: normal; }
}

/* Spotlight band */
.spotlight { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 44px; border-radius: 20px; background: var(--teal-soft); border: 1px solid #cdebe5; }
.spotlight h2 { margin-bottom: .4em; }
.spotlight p { color: var(--ink-2); max-width: 640px; margin: 0; }
.spotlight .btn-primary { background: var(--teal); white-space: nowrap; }
.spotlight .btn-primary:hover { background: #0b7466; }
@media (max-width: 720px) { .spotlight { flex-direction: column; align-items: flex-start; padding: 28px; } }

/* Additions: CTA alt line, blue spotlight, work groups */
.cta .cta-alt { margin-top: 18px; font-size: .95rem; color: #c3cbd6; }
.cta .cta-alt a { color: #fff; text-decoration: underline; }
.spotlight.blue { background: var(--accent-soft); border-color: #d3defb; }
.spotlight.blue .btn-primary { background: var(--accent); }
.spotlight.blue .btn-primary:hover { background: var(--accent-ink); }
.work-group { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 8px 0 20px; scroll-margin-top: 90px; }
.work-group:not(:first-child) { margin-top: 64px; }
.case { scroll-margin-top: 90px; }
.case .visit { display: inline-block; margin-top: 8px; font-weight: 600; font-size: .95rem; }
