/* ============================================================
   BIRD Bench — Brand System
   Premium enterprise · refined blue · geometric sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  /* Brand blue — refined, deep, premium */
  --brand:        #2447D9;
  --brand-strong: #1B36AE;
  --brand-press:  #152C8F;
  --brand-tint:   #EEF2FF;
  --brand-tint-2: #E0E7FF;
  --brand-ink:    #16297A;

  /* Ink / neutrals — cool slate with a faint blue undertone */
  --ink:        #11142A;
  --ink-2:      #2C3350;
  --body:       #444B63;
  --muted:      #717A93;
  --faint:      #9AA2B6;
  --line:       #E5E8F0;
  --line-soft:  #EEF0F6;
  --bg:         #F6F7FB;
  --bg-2:       #FBFCFE;
  --surface:    #FFFFFF;

  /* Navy (dark sections) */
  --navy:       #0B1030;
  --navy-2:     #121A44;
  --navy-line:  #283063;

  /* Support */
  --emerald:    #138A5E;
  --emerald-tint:#E6F5EE;
  --amber:      #B7791F;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(17,20,42,.05);
  --sh-sm: 0 2px 6px rgba(17,20,42,.06), 0 1px 2px rgba(17,20,42,.04);
  --sh-md: 0 10px 30px rgba(17,20,42,.08), 0 2px 8px rgba(17,20,42,.04);
  --sh-lg: 0 30px 70px rgba(17,20,42,.14), 0 8px 24px rgba(17,20,42,.07);
  --sh-brand: 0 14px 34px rgba(36,71,217,.30);

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--body);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--ink);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1.5px;
  background: var(--brand);
  display: inline-block;
}
.eyebrow.on-dark { color: #8FA6FF; }
.eyebrow.on-dark::before { background: #8FA6FF; }

.lead { font-size: 19px; color: var(--muted); line-height: 1.62; }

/* Display scale */
.display { font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -0.03em; }
.h-xl { font-size: clamp(32px, 4.4vw, 48px); font-weight: 700; }
.h-lg { font-size: clamp(27px, 3.2vw, 36px); font-weight: 700; }
.h-md { font-size: 22px; font-weight: 700; }

.text-grad {
  background: linear-gradient(95deg, var(--brand) 0%, #5470F0 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600; font-size: 15.5px;
  padding: 0 22px; height: 48px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
button.btn { cursor: pointer; }
/* Logout is a POST form; the form itself takes no room in the layout. */
.logout-form { display: contents; }
.btn-sm { height: 42px; font-size: 14.5px; padding: 0 18px; border-radius: 10px; }
.btn-lg { height: 54px; font-size: 16.5px; padding: 0 28px; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.btn-primary:hover { background: var(--brand-strong); transform: translateY(-1px); box-shadow: 0 18px 40px rgba(36,71,217,.36); }
.btn-primary:active { transform: translateY(0); background: var(--brand-press); }

.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-xs); }
.btn-secondary:hover { border-color: #cfd5e6; box-shadow: var(--sh-sm); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--brand); }

.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #1a2350; transform: translateY(-1px); box-shadow: var(--sh-md); }

.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--sh-lg); }

.btn-block { width: 100%; }

.link-arrow { color: var(--brand); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; font-size: 15.5px; }
.link-arrow svg { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(150deg, var(--brand) 0%, #3A5BF0 100%);
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(36,71,217,.32), inset 0 1px 0 rgba(255,255,255,.25);
  flex: none;
}
.logo-mark svg { width: 19px; height: 19px; }
.logo-word {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 20px;
  color: var(--ink); letter-spacing: -0.02em;
}
.logo-word b { font-weight: 800; }
.logo.on-dark .logo-word { color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,247,251,.78);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.site-header.scrolled {
  background: rgba(255,255,255,.85);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(17,20,42,.02);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  padding: 9px 14px; border-radius: 9px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--brand); background: var(--brand-tint); }
.nav-links a.active { color: var(--brand); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-login { font-size: 15px; font-weight: 600; color: var(--ink-2); padding: 9px 12px; border-radius: 9px; white-space: nowrap; }
.nav-login:hover { color: var(--brand); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); align-items: center; justify-content: center; box-shadow: var(--sh-xs); transition: background .15s, border-color .15s; }
.nav-toggle:hover { border-color: #cfd5e6; }
.nav-toggle[aria-expanded="true"] { background: var(--brand-tint); border-color: var(--brand-tint-2); }
.nav-toggle svg { width: 22px; height: 22px; color: var(--ink); }

.mobile-menu { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #AEB6D6; padding: 72px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--navy-line); }
.footer-brand .logo-word { color: #fff; }
.footer-tag { margin-top: 18px; max-width: 280px; font-size: 14.5px; color: #8A93BC; line-height: 1.6; }
.footer-col h5 { font-family: 'Manrope', sans-serif; color: #fff; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.footer-col a { display: block; font-size: 14.5px; color: #AEB6D6; padding: 6px 0; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; font-size: 13.5px; color: #767FA8; gap: 16px; flex-wrap: wrap; }
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--navy-line); display: grid; place-items: center; color: #AEB6D6; transition: all .18s; }
.footer-bottom .socials a:hover { color: #fff; border-color: #3a4280; background: var(--navy-2); }
.footer-bottom .socials svg { width: 17px; height: 17px; }

/* ---------- Cards / pills / misc ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--brand-tint); color: var(--brand-ink); border: 1px solid var(--brand-tint-2);
  white-space: nowrap;
}
.pill svg { width: 14px; height: 14px; }

.feat-icon {
  width: 50px; height: 50px; border-radius: 13px; flex: none;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand);
  border: 1px solid var(--brand-tint-2);
}
.feat-icon svg { width: 24px; height: 24px; }

.check-row { display: flex; align-items: flex-start; gap: 11px; font-size: 15.5px; color: var(--ink-2); }
.check-row .ck { width: 21px; height: 21px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--emerald-tint); color: var(--emerald); margin-top: 1px; }
.check-row .ck svg { width: 13px; height: 13px; }

.section-head { max-width: 660px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 18px; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--navy); border-radius: var(--r-xl); padding: 64px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(620px 320px at 50% -10%, rgba(58,91,240,.45), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #B9C0E0; font-size: 18px; max-width: 520px; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* GitHub button */
.gh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 11px; width: 100%; height: 54px; background: var(--navy); color: #fff; border-radius: var(--r-md); font-weight: 600; font-size: 16px; border: 1px solid var(--navy-2); transition: all .18s var(--ease); white-space: nowrap; }
.gh-btn:hover { background: #161e48; transform: translateY(-1px); box-shadow: var(--sh-md); }
.gh-btn svg { width: 21px; height: 21px; }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Mobile menu sheet */
.mobile-menu.open {
  display: flex; flex-direction: column;
  position: fixed; inset: 72px 0 0; z-index: 49;
  background: var(--bg);
  padding: 18px 20px calc(26px + env(safe-area-inset-bottom));
  overflow-y: auto;
  animation: mm-in .22s var(--ease);
}
@keyframes mm-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-menu > a {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 16.5px; font-weight: 600; color: var(--ink);
  padding: 16px 18px; margin-bottom: 8px;
  border-radius: 13px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--sh-xs);
  transition: background .15s, border-color .15s, transform .12s var(--ease);
}
.mobile-menu > a::after {
  content: ""; width: 8px; height: 8px; flex: none;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: rotate(-45deg); transition: border-color .15s;
}
.mobile-menu > a:active { background: var(--brand-tint); border-color: var(--brand-tint-2); transform: scale(.99); }
.mobile-menu > a:active::after { border-color: var(--brand); }
.mobile-menu .mm-actions { margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; gap: 11px; }
.mobile-menu .mm-actions .btn { height: 52px; font-size: 16px; }

/* Responsive */
@media (max-width: 940px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .nav-links, .nav-right .btn, .nav-right .nav-login { display: none; }
  .nav-toggle { display: flex; }
  .cta-band { padding: 48px 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Nav badge (admin portal pending count) ---------- */
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px;
  border-radius: var(--r-pill); background: #DC2626; color: #fff;
  font-size: 11.5px; font-weight: 700; line-height: 1; vertical-align: 1px;
}
