:root {
  --blue: #0543fe;
  --blue-soft: #eef2ff;
  --ink: #070e1b;
  --muted: #545b6b;
  --line: #e3e6ee;
  --page: #ffffff;
  --panel: #f6f7fa;
  --petrol: #0c4a4e;
  --radius: 18px;
  --wide: 1080px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  /* White page with a faint dot grid; cards sit on it in solid white */
  background-color: var(--page);
  background-image: radial-gradient(circle, #eceff5 0.8px, transparent 1.2px);
  background-size: 28px 28px;
  background-position: 14px 14px;
  line-height: 1.55;
  font-size: 17px;
}

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

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

/* Header */
.wrap.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.top .logo img { display: block; height: 40px; width: auto; }
.lang {
  display: flex;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}
.lang a, .lang span {
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
}
.lang span { background: var(--ink); color: #fff; }
.lang a:hover { background: var(--panel); color: var(--ink); }

/* Hero */
.wrap.hero {
  padding-top: 56px;
  padding-bottom: 88px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 24px;
  max-width: 16em;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue);
}
.hero p {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--muted);
  max-width: 34em;
  margin: 0;
}

/* Sections */
main section.wrap { margin-bottom: 88px; }
.label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 20px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--page);
  overflow: hidden;
}

/* Product */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.product .body { padding: 40px; }
.product .art {
  background: var(--petrol);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.name {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.lead { margin: 0 0 24px; color: var(--ink); font-size: 18px; }
.go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
}
.go::after { content: "→"; transition: transform .15s ease; }
.go:hover::after { transform: translateX(3px); }

/* Partner */
.partner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.partner .body { padding: 40px; }
.partner .art {
  background: #0a2240;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.art .cover {
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 420;
}
.art .cover img { display: block; width: 100%; height: 100%; }
/* one bluebird on each cover, placed where a bird would land in that scene */
.art .sitter {
  position: absolute;
  width: 11%;
  background: #8fb0ff;
}
.partner .art .sitter { left: 58%; bottom: 55.6%; }

.since {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: var(--panel);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.built {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--line);
}
.built li {
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.built li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--blue);
}

/* Principles */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.principles .card { padding: 28px; background: var(--panel); border-color: transparent; }
.principles h3 { margin: 0 0 8px; font-size: 19px; }
.principles p { margin: 0; color: var(--muted); }

/* Contact */
.contact {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.contact h2 { margin: 0 0 6px; font-size: 28px; }
.contact p { margin: 0; color: #b8bfcc; }
.contact a.mail {
  color: #fff;
  background: var(--blue);
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.contact a.mail:hover { background: #2a5dff; }

/* Footer */
footer.wrap {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 14px;
}
footer p { margin: 0; }
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 15px;
  margin-bottom: 14px;
}
.foot-row a { color: var(--ink); text-decoration: none; }
.foot-row a:hover { color: var(--blue); }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.bird.mark { position: static; display: inline-block; width: 30px; }
.foot-id { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-right: auto; }
.tagline { color: var(--muted); }
.legal { font-size: 13px; }

@media (max-width: 820px) {
  .product, .partner { grid-template-columns: 1fr; }
  .product .art { min-height: 200px; order: -1; }
  .partner .art { min-height: 200px; order: -1; }
  .principles { grid-template-columns: 1fr; }
  .product .body, .partner .body { padding: 28px 24px; }
  .contact { padding: 36px 24px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .top .logo img { height: 32px; }
  .wrap.hero { padding-top: 24px; padding-bottom: 64px; }
  main section.wrap { margin-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .go::after { transition: none; }
}

/* Bluebirds: the company symbol, drawn from the logo's bird */
.bird {
  display: block;
  aspect-ratio: 386 / 244;
  background: var(--blue);
  -webkit-mask: url(/assets/bird.png) center / contain no-repeat;
  mask: url(/assets/bird.png) center / contain no-repeat;
}

/* Three birds on a wire under the headline */
.wire {
  position: relative;
  height: 96px;
  margin-top: 48px;
  border-bottom: 1.5px solid #c9cfdb;
}
.wire .bird { position: absolute; bottom: 1px; }
.wire .b1 { left: 4%; width: 58px; }
.wire .b2 { left: 41%; width: 88px; transform: scaleX(-1); }
.wire .b3 { right: 10%; width: 50px; animation: hop 7s ease-in-out infinite; }
@keyframes hop {
  0%, 86%, 100% { transform: translateY(0); }
  90% { transform: translateY(-10px); }
  94% { transform: translateY(0); }
  97% { transform: translateY(-4px); }
}

/* One sits on the contact card */
.contact { position: relative; }
.contact .perch {
  position: absolute;
  top: -40px;
  right: 56px;
  width: 64px;
}

/* One only comes out at night */
.bird.late {
  display: none;
  width: 22px;
  margin-left: 6px;
  vertical-align: -2px;
}
.night .bird.late { display: inline-block; }

@media (max-width: 480px) {
  .wire { height: 72px; margin-top: 36px; }
  .wire .b1 { width: 44px; }
  .wire .b2 { width: 66px; }
  .wire .b3 { width: 38px; }
  .contact .perch { right: 28px; width: 52px; top: -33px; }
}

@media (prefers-reduced-motion: reduce) {
  .wire .b3 { animation: none; }
}
