/* BCLogic — brand: red #D23338, navy #032234, white. Diamond motif from the logo. */

:root {
  --red: #D23338;
  --navy: #032234;
  --ink: #0b2c3f;
  --muted: #5d707c;
  --paper: #ffffff;
  --paper-alt: #f5f7f8;
  --line: #dfe6e9;
  --display: "Archivo", helvetica, arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap {
  margin: 0 auto;
  max-width: 1060px;
  padding: 0 24px;
}

/* Diamond marker — the logo's geometry as a structural motif */
.dia {
  background: var(--red);
  display: inline-block;
  height: 9px;
  margin-right: 14px;
  transform: rotate(45deg);
  vertical-align: 2px;
  width: 9px;
}

/* ---------- header ---------- */

.top { border-bottom: 1px solid var(--line); }

.top-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  padding-top: 18px;
}

.brand {
  align-items: center;
  color: var(--navy);
  display: flex;
  gap: 10px;
}
.brand:hover { text-decoration: none; }

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.top-nav { display: flex; gap: 26px; align-items: center; }

.top-nav a {
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
}

.top-nav .top-cta {
  border: 2px solid var(--red);
  color: var(--red);
  font-weight: 700;
  padding: 7px 16px;
}
.top-nav .top-cta:hover { background: var(--red); color: #fff; text-decoration: none; }

/* ---------- hero ---------- */

.hero { padding: 76px 0 84px; }

.hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  grid-template-columns: minmax(0, 1fr) clamp(150px, 21vw, 300px);
}

.hero h1 {
  color: var(--navy);
  font-size: clamp(42px, 5.6vw, 72px);
  font-stretch: 115%;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 28px;
}

.hero h1 em {
  color: var(--red);
  font-style: normal;
}

.eyebrow {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin: 0 0 30px;
  text-transform: uppercase;
}

.lede {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.6;
  margin: 0 0 36px;
  max-width: 58ch;
  text-wrap: pretty;
}

.cols p, .app p, .apps-footnote { text-wrap: pretty; }

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

.btn {
  background: var(--red);
  border: 2px solid var(--red);
  color: #fff;
  display: inline-block;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 22px;
}
.btn:hover { background: var(--navy); border-color: var(--navy); text-decoration: none; }

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--navy);
}
.btn.ghost:hover { background: transparent; border-color: var(--navy); }

/* The logo mark as the hero's right column */
.hero-mark { text-align: center; }
.hero-mark img { display: block; height: auto; width: 100%; }

/* ---------- red stripe band (carried over from the original site) ---------- */

.stripe-band {
  background: var(--red);
  color: #fff;
  padding: 34px 0;
}

.band-row {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(4, 1fr);
}

.stat strong {
  display: block;
  font-size: 30px;
  font-stretch: 115%;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.stat span {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.45;
  margin-top: 6px;
  opacity: 0.92;
}

/* ---------- sections ---------- */

.section { padding: 68px 0; }
.section.alt { background: var(--paper-alt); }

.section h2 {
  color: var(--navy);
  font-size: clamp(28px, 4vw, 40px);
  font-stretch: 115%;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 36px;
}

.section-note {
  color: var(--muted);
  margin: -24px 0 36px;
  text-wrap: pretty;
}

.cols {
  display: grid;
  gap: 44px;
  grid-template-columns: repeat(3, 1fr);
}

.cols h3, .app h3 {
  border-top: 3px solid var(--navy);
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0 0 12px;
  padding-top: 16px;
}

.cols p, .app p { color: var(--ink); font-size: 16px; margin: 0; }

/* ---------- apps ---------- */

.apps {
  display: grid;
  gap: 34px;
  grid-template-columns: repeat(4, 1fr);
}

.app {
  border-top: 3px solid var(--red);
  padding-top: 16px;
}

.app h3 { border-top: 0; padding-top: 0; }
.app h3 a { color: var(--navy); }
.app h3 a:hover { color: var(--red); }

.app-shot {
  border: 1px solid var(--line);
  border-radius: 10px;
  display: block;
  height: 300px;
  margin: 0 0 18px;
  overflow: hidden;
}

.app-shot img {
  display: block;
  height: auto;
  object-fit: cover;
  object-position: top;
  width: 100%;
}

/* client work grid */
.cols.clients { grid-template-columns: repeat(4, 1fr); gap: 34px; }
.cols.clients article { border-top: 3px solid var(--navy); padding-top: 16px; }
.cols.clients h3 { border-top: 0; padding-top: 0; }
.cols.clients h3 a { color: var(--navy); }
.cols.clients h3 a:hover { color: var(--red); }

/* open source grid */
.cols.oss { grid-template-columns: repeat(4, 1fr); gap: 34px; }
.cols.oss article { border-top: 3px solid var(--red); padding-top: 16px; }
.cols.oss h3 { border-top: 0; padding-top: 0; font-family: var(--mono); font-weight: 500; letter-spacing: 0; }

.app-kicker {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.app .store-link { margin: 14px 0 0; }
.store-link a {
  color: var(--red);
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 500;
}

.apps-footnote {
  border-left: 3px solid var(--line);
  color: var(--muted);
  font-size: 14.5px;
  margin: 40px 0 0;
  max-width: 62ch;
  padding-left: 16px;
}

/* ---------- contact ---------- */

.contact { padding-bottom: 90px; }
.contact .lede { margin-bottom: 30px; }

/* ---------- footer ---------- */

.foot {
  background: var(--navy);
  color: #b9c6cd;
  padding: 30px 0;
}

.foot-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  justify-content: space-between;
}

.foot p { font-size: 14px; margin: 0; }

.foot nav { display: flex; gap: 22px; }

.foot nav a {
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .band-row { grid-template-columns: repeat(2, 1fr); }
  .cols, .apps { grid-template-columns: 1fr; gap: 34px; }
  .cols.oss, .cols.clients, .apps { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 56px 0 72px; }
}

@media (max-width: 620px) {
  .top-nav a:not(.top-cta) { display: none; }
  .cols.oss, .cols.clients, .apps { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .band-row { gap: 20px; }
  .section { padding: 52px 0; }
  .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-mark {
    animation: rise 0.6s cubic-bezier(0.2, 0.6, 0.2, 1) both;
  }
  .hero .eyebrow { animation-delay: 0.05s; }
  .hero h1 { animation-delay: 0.12s; }
  .hero .lede { animation-delay: 0.22s; }
  .hero .hero-actions { animation-delay: 0.32s; }
  .hero-mark { animation-delay: 0.4s; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
