/* ============================================================
   Buildie Inc. — shared design system
   Monochrome, near-white. Heavy grotesque display + humanist body.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* surfaces */
  --bg:        #ffffff;
  --bg-soft:   #f6f6f7;
  --card:      #f7f7f8;
  --card-2:    #ffffff;
  --line:      #ececee;
  --line-2:    #e2e2e5;

  /* ink */
  --ink:       #16161a;
  --ink-2:     #3a3a40;
  --ink-soft:  #76767e;
  --ink-faint: #a6a6ad;

  /* radii */
  --r-tile:   26px;
  --r-card:   30px;
  --r-card-l: 38px;
  --r-pill:   999px;

  /* shadow */
  --sh-card:  0 1px 2px rgba(20,20,30,.04), 0 18px 48px -22px rgba(20,20,30,.18);
  --sh-tile:  0 2px 6px rgba(20,20,30,.06), 0 24px 50px -24px rgba(20,20,30,.28);
  --sh-btn:   0 1px 2px rgba(20,20,30,.18), 0 8px 20px -8px rgba(20,20,30,.30);

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 104px; }

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

::selection { background: #16161a; color: #fff; }

a { color: inherit; text-decoration: none; }

/* ---- type ---- */
.display,
h1, h2, h3 {
  font-family: 'Archivo', system-ui, sans-serif;
  color: var(--ink);
  margin: 0;
}
.display {
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-wrap: balance;
}
.eyebrow {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.lead { color: var(--ink-soft); text-wrap: pretty; }

/* ---- layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; }
.section--tight { padding: 80px 0; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600; font-size: 17px;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--dark   { background: var(--ink); color: #fff; box-shadow: var(--sh-btn); }
.btn--dark:hover { background: #000; transform: translateY(-2px); }
.btn--light  { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--light:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--sm { padding: 11px 22px; font-size: 15px; }

/* ---- badges ---- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 14px; border-radius: var(--r-pill);
}
.badge--dark { background: var(--ink); color: #fff; }
.badge--soft { background: #e8e8ea; color: var(--ink-2); }
.badge--dot::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; display: inline-block;
}
.badge--live .badge-dot { background: #2fbf71; }
.badge .badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  display: inline-block; background: currentColor;
  box-shadow: 0 0 0 3px rgba(255,255,255,.12);
}
@keyframes pulse { 0%,100%{ opacity: 1; transform: scale(1);} 50%{ opacity:.5; transform: scale(.8);} }
.badge .badge-dot--pulse { animation: pulse 1.8s ease-in-out infinite; }

/* ---- app icon tile (the "tray" behind the icon) ---- */
.tile {
  border-radius: var(--r-tile);
  background: linear-gradient(160deg,#ffffff, #eef0f2);
  box-shadow: var(--sh-tile);
  padding: 18px;
  display: grid; place-items: center;
}
.tile image-slot { display: block; }

/* ---- card ---- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
}

/* ---- focus ---- */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ---- reveal on scroll (opt-in: hidden state only applies once JS confirms
   the page is painting, so frozen/offscreen renders always show content) ---- */
.reveal { opacity: 1; transform: none; }
html.anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
html.anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.anim .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
