/* BuildX — Apple-inspired design system
   Typography: SF Pro (system) + Inter fallback
   Palette: near-black background, silver text, electric blue accent (from logo) */

:root {
  --bg: #000000;
  --bg-elev: #0a0a0a;
  --bg-card: #111114;
  --surface: #16161a;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --text-muted: #a1a1a6;
  --text-dim: #6e6e73;
  --accent: #2997ff;      /* Apple blue, close to logo */
  --accent-2: #0071e3;
  --accent-glow: rgba(41, 151, 255, 0.35);
  --gradient-hero: radial-gradient(1200px 600px at 50% -10%, rgba(41,151,255,0.25), transparent 60%),
                   radial-gradient(800px 400px at 90% 20%, rgba(0,113,227,0.15), transparent 60%);
  --gradient-silver: linear-gradient(180deg, #ffffff 0%, #c7c7cc 60%, #8e8e93 100%);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow: 0 10px 40px -10px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 40px -8px var(--accent-glow);
  --maxw: 1120px;
  --header-h: 64px;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "IBM Plex Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 15px;
  color: var(--text);
}
.brand img { height: 28px; width: auto; }
.brand-text { display: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  opacity: 0.85;
  padding: 8px 14px;
  border-radius: 999px;
  transition: opacity .2s ease, background .2s ease, color .2s ease;
}
.nav a:hover { opacity: 1; background: rgba(255,255,255,0.06); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 20px;
    transform: translateY(-120%);
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  }
  .nav.open { transform: translateY(0); }
  .nav a {
    padding: 14px 8px;
    border-radius: 8px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }
  .nav a:last-child { border-bottom: none; }
}

/* ============ SECTIONS ============ */
.section { padding: 96px 0; position: relative; }
.section.dark {
  background: var(--bg);
  background-image: var(--gradient-hero);
  padding: 140px 0 120px;
}
.section.band {
  background: linear-gradient(180deg, #060608 0%, #0a0a0d 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section.dark { padding: 96px 0 72px; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 600;
}
h1 {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  background: var(--gradient-silver);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 {
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
}
h3 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

.lede {
  color: var(--text-muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  max-width: 680px;
  margin: 0;
}

/* ============ BUTTONS ============ */
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-body);
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 20px -6px var(--accent-glow);
  white-space: nowrap;
}
.btn:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 8px 30px -6px var(--accent-glow); }
.btn.ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(255,255,255,0.12); }

/* ============ GRID ============ */
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }

/* ============ CARDS ============ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color .3s ease, transform .3s ease, background .3s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.card.bracket::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(41,151,255,0.4), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.card.bracket:hover::before { opacity: 1; }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(41,151,255,0.12);
  color: var(--accent);
  border: 1px solid rgba(41,151,255,0.25);
}

/* ============ STEPS ============ */
.steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.steps li {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: flex-start;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
  padding-top: 4px;
}
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* ============ CONTACT INFO ============ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.info-card h3 { margin-bottom: 4px; }
@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr; } }

/* ============ TEAM ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

.founder {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: transform .3s ease, border-color .3s ease;
}
.founder:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.founder .photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #1c1c1f, #0a0a0d);
  margin-bottom: 14px;
}
.founder .name { font-weight: 600; font-size: 15px; color: var(--text); }
.founder .role { font-size: 12px; color: var(--text-muted); margin-top: 4px; letter-spacing: 0.01em; }

/* ============ LEGAL ============ */
.legal h1 {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--text);
  font-size: clamp(32px, 4vw, 44px) !important;
}
.legal .updated {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}
.legal h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text);
}
.legal p, .legal ul {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 12px;
}
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); }
.legal .mono { font-family: var(--font-mono); font-size: 0.9em; color: var(--text); }

/* ============ FOOTER ============ */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: #000;
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.mono { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); letter-spacing: 0.05em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--text); }
@media (max-width: 640px) {
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
