/* ============================================================
   Board Night Inc. — marketing site
   Self-contained, no external dependencies (S3-static friendly)
   Palette derived from the Board Night logo (brand blue #0078f0).
   ============================================================ */

:root {
  --bg:        #0a0b14;
  --bg-soft:   #0e1020;
  --panel:     rgba(255, 255, 255, 0.035);
  --panel-2:   rgba(255, 255, 255, 0.06);
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.16);
  --text:      #eef2fb;
  --muted:     #a6adc6;
  --muted-2:   #838cab;
  --muted-3:   #656d88;
  --brand:     #3d8bff;   /* primary brand blue (logo azure, lifted for dark bg) */
  --brand-2:   #7bb6ff;   /* lighter brand blue */
  --sky:       #3fc9ff;   /* sky/cyan-blue highlight */
  --accent:    #5ba0ff;
  --brand-rgb: 61, 139, 255;
  --sky-rgb:   63, 201, 255;
  --radius:    18px;
  --maxw:      1120px;
  --ease:      cubic-bezier(.22, 1, .36, 1);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, "Apple Color Emoji", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.03em; font-weight: 650; text-wrap: balance; }

a:focus-visible, .btn:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

/* ---------- brand mark (the logo, on a light medallion) ---------- */
.coin {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; padding: 3px; flex: none;
  background: radial-gradient(circle at 38% 30%, #ffffff 0%, #e4ebf7 78%, #d3ddef 100%);
  box-shadow: 0 6px 18px rgba(0,0,0,0.38), inset 0 0 0 1px rgba(255,255,255,0.65);
}
.coin img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 50%; }

/* ---------- ambient background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
    radial-gradient(1200px 700px at 50% -10%, #101a30 0%, transparent 60%),
    linear-gradient(180deg, #0a0b14 0%, #090a12 100%); }

.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.42; }
.orb-1 { width: 520px; height: 520px; top: -120px; left: -80px;
  background: radial-gradient(circle at 30% 30%, #1f6fe0, transparent 70%); }
.orb-2 { width: 560px; height: 560px; top: 240px; right: -140px;
  background: radial-gradient(circle at 60% 40%, #1587d8, transparent 70%); opacity: 0.30; }
.orb-3 { width: 620px; height: 620px; bottom: -220px; left: 30%;
  background: radial-gradient(circle at 50% 50%, #2b6ad6, transparent 70%); opacity: 0.22; }

.grid-lines { position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(1000px 620px at 50% 12%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(1000px 620px at 50% 12%, #000 0%, transparent 78%); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 18px 24px;
  transition: padding .3s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(10, 11, 20, 0);
  backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent; transition: all .35s var(--ease);
}
.nav.scrolled::before {
  background: rgba(10, 11, 20, 0.72);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 650; letter-spacing: -0.02em; font-size: 18px; }
.brand .coin { width: 42px; height: 42px; }
.brand-suffix { color: var(--muted-2); font-weight: 500; }
.reg { font-size: 0.62em; vertical-align: super; font-weight: 500; color: var(--muted-2); letter-spacing: 0; }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { color: var(--muted); font-size: 15px; padding: 9px 14px; border-radius: 10px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--panel); }
.nav-cta { color: var(--text) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border: 1px solid var(--border-2); }
.nav-cta:hover { background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06)) !important; }

/* ---------- layout ---------- */
main { display: block; }
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 24px; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-kicker {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sky); margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-lead { color: var(--muted); font-size: 18px; margin-top: 18px; max-width: 640px; }

/* ---------- hero ---------- */
.hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 10vh, 112px) 24px 96px; }
.hero-seal { margin-bottom: 30px; }
.hero-seal .coin { width: 96px; height: 96px;
  box-shadow: 0 10px 34px rgba(var(--brand-rgb), 0.30), 0 6px 18px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.65); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted);
  padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--panel); margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--sky); box-shadow: 0 0 12px var(--sky); }
.hero-title { font-size: clamp(42px, 7.2vw, 82px); font-weight: 680; letter-spacing: -0.04em; }
.grad-text {
  background: linear-gradient(105deg, #8fbcff 0%, #3d8bff 42%, #3fc9ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); max-width: 620px; margin: 28px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero-stats { display: flex; align-items: center; gap: 30px; margin-top: 64px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-size: 34px; font-weight: 680; letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff, #a9c8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 14px; color: var(--muted-2); max-width: 170px; line-height: 1.4; }
.stat.divider { width: 1px; height: 42px; background: var(--border); align-self: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 12px; font-weight: 570; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .18s var(--ease), box-shadow .25s, background .25s, border-color .25s;
}
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-primary {
  color: #06122a;
  background: linear-gradient(180deg, #7bb6ff 0%, #3d8bff 100%);
  box-shadow: 0 10px 30px -8px rgba(var(--brand-rgb), 0.6), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(var(--brand-rgb), 0.78), inset 0 1px 0 rgba(255,255,255,0.5); }
.btn-ghost { color: var(--text); background: var(--panel); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--panel-2); transform: translateY(-2px); }

/* ---------- generic cards grid ---------- */
.cards { display: grid; gap: 20px; }
.focus-grid { grid-template-columns: repeat(4, 1fr); }
.works-grid { grid-template-columns: repeat(2, 1fr); }
.approach-grid { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; padding: 28px 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border); overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px 140px at 50% -20%, rgba(var(--brand-rgb), 0.18), transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.card:hover::after { opacity: 1; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px; color: var(--brand);
  background: linear-gradient(180deg, rgba(var(--brand-rgb), 0.16), rgba(var(--brand-rgb), 0.05));
  border: 1px solid rgba(var(--brand-rgb), 0.24);
}
.card h3 { font-size: 19px; margin-bottom: 9px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }

/* ---------- works cards ---------- */
.work-card {
  position: relative; padding: 34px 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border); overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s;
}
.work-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--sky));
  opacity: .85;
}
.work-card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.work-tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 560;
  color: var(--muted); padding: 6px 12px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--border); margin-bottom: 20px;
}
.work-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sky);
  box-shadow: 0 0 10px var(--sky); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.work-card h3 { font-size: 24px; margin-bottom: 14px; }
.work-card p { color: var(--muted); margin: 0; }
.work-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 22px 0 0; }
.work-meta li { font-size: 13px; color: var(--muted-2); padding: 6px 12px; border-radius: 8px;
  background: var(--panel); border: 1px solid var(--border); }
.works-note { text-align: center; color: var(--muted-2); font-size: 15px; margin-top: 34px; }
.works-note a { color: var(--accent); border-bottom: 1px solid rgba(var(--brand-rgb), 0.45); }
.works-note a:hover { color: #fff; }

/* ---------- approach mini cards ---------- */
.mini { padding: 26px 22px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border);
  transition: transform .3s var(--ease), border-color .3s; }
.mini:hover { transform: translateY(-4px); border-color: var(--border-2); }
.mini-num { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--sky); }
.mini h3 { font-size: 18px; margin: 12px 0 8px; }
.mini p { color: var(--muted); font-size: 14.5px; margin: 0; line-height: 1.6; }

/* ---------- about band ---------- */
.about { padding-top: 40px; padding-bottom: 40px; }
.about-inner {
  padding: 56px clamp(28px, 5vw, 64px); border-radius: 24px; text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(var(--brand-rgb), 0.14), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
}
.about-inner h2 { font-size: clamp(26px, 3.6vw, 38px); max-width: 720px; margin: 0 auto 20px; }
.about-inner p { color: var(--muted); font-size: 18px; max-width: 700px; margin: 0 auto; }

/* ---------- contact ---------- */
.contact-card {
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding: 52px clamp(28px, 5vw, 60px); border-radius: 24px;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(var(--sky-rgb), 0.14), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(var(--brand-rgb), 0.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid var(--border-2);
}
.contact-card h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 10px 0 14px; }
.contact-card p { color: var(--muted); margin: 0; max-width: 420px; }
.contact-action { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.contact-fine { font-size: 13px; color: var(--muted-2); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 44px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 11px; font-weight: 620; font-size: 17px; }
.footer-brand .coin { width: 34px; height: 34px; }
.footer-tag { color: var(--muted); margin: 4px 0 0; }
.footer-legal { color: var(--muted-3); font-size: 12.5px; margin: 10px 0 0; max-width: 560px; line-height: 1.55; }
.footer-copy { color: var(--muted-3); font-size: 13px; margin: 4px 0 0; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .work-tag .dot { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links { gap: 2px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .section { padding: 68px 20px; }
  .works-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .stat.divider { display: none; }
  .contact-card { flex-direction: column; align-items: flex-start; }
  .contact-action { align-items: stretch; width: 100%; }
  .contact-action .btn { width: 100%; }
}
@media (max-width: 460px) {
  .focus-grid, .approach-grid { grid-template-columns: 1fr; }
  .brand-suffix { display: none; }
}
