/* ═══════════════════════════════════════════════════════════
   The Builder's Table — staas.fund/builders-table
   Premium dark theme. Manifesto structure + CarsAndCap energy.
   ═══════════════════════════════════════════════════════════ */

/* ── Custom Properties ──────────────────────────────────── */
:root {
  /* Dark palette (CarsAndCap-inspired) */
  --bt-bg: #0a0a0b;
  --bt-bg-alt: #111113;
  --bt-bg-card: #161618;
  --bt-bg-warm: #f5f3f0;
  --bt-surface: rgba(255, 255, 255, 0.04);
  --bt-border: rgba(255, 255, 255, 0.08);
  --bt-border-hover: rgba(255, 255, 255, 0.16);

  /* Text */
  --bt-text: #f2f2f4;
  --bt-text-muted: rgba(242, 242, 244, 0.55);
  --bt-text-dim: rgba(242, 242, 244, 0.35);
  --bt-text-dark: #0f1012;
  --bt-text-dark-muted: #6b7280;

  /* Accent */
  --bt-accent: #0071e3;
  --bt-accent-dim: #005bb8;
  --bt-accent-glow: rgba(0, 113, 227, 0.15);

  /* Typography */
  --bt-font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bt-fw-light: 300;
  --bt-fw-regular: 400;
  --bt-fw-medium: 500;
  --bt-letter-tight: -0.02em;
  --bt-letter-wider: 0.08em;

  /* Type Scale */
  --bt-display: clamp(44px, 7vw, 88px);
  --bt-h2: clamp(32px, 4vw, 56px);
  --bt-h3: clamp(20px, 2.5vw, 28px);
  --bt-body: clamp(15px, 1.1vw, 17px);
  --bt-small: 13px;

  /* Layout */
  --bt-gutter: 5%;
  --bt-max-w: 1200px;
  --bt-col-gap: clamp(16px, 2.5vw, 40px);

  /* Motion */
  --bt-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --bt-duration: 0.3s;

  /* Components */
  --bt-pill: 5.4rem;
  --bt-card-r: 1.2rem;
  --bt-nav-blur: 20px;
}

/* ── Reset & Base ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

html, body {
  overflow-x: hidden;
}

body.bt-dark {
  font-family: var(--bt-font);
  font-weight: var(--bt-fw-light);
  font-size: var(--bt-body);
  line-height: 1.65;
  color: var(--bt-text);
  background: var(--bt-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--bt-duration) var(--bt-ease);
}

img {
  display: block;
  max-width: 100%;
}

/* ── Scroll Reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--bt-ease), transform 0.7s var(--bt-ease);
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Nav ────────────────────────────────────────────────── */
.bt-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--bt-gutter);
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: blur(var(--bt-nav-blur));
  -webkit-backdrop-filter: blur(var(--bt-nav-blur));
  border-bottom: 1px solid var(--bt-border);
  transition: background var(--bt-duration) var(--bt-ease),
              box-shadow var(--bt-duration) var(--bt-ease);
}

.bt-nav.scrolled {
  background: rgba(10, 10, 11, 0.92);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.3);
}

.bt-nav-logo {
  font-size: 15px;
  font-weight: var(--bt-fw-medium);
  letter-spacing: var(--bt-letter-tight);
  color: var(--bt-text);
}

.bt-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.bt-nav-links a {
  font-size: 14px;
  font-weight: var(--bt-fw-regular);
  color: var(--bt-text-muted);
}

.bt-nav-links a:hover {
  color: var(--bt-text);
}

.bt-nav-cta {
  padding: 8px 22px !important;
  border: 1px solid var(--bt-text);
  border-radius: var(--bt-pill);
  font-size: 13px !important;
  font-weight: var(--bt-fw-medium) !important;
  color: var(--bt-text) !important;
  transition: background var(--bt-duration), color var(--bt-duration);
}

.bt-nav-cta:hover {
  background: var(--bt-text);
  color: var(--bt-bg) !important;
}

/* Hamburger */
.bt-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 210;
}

.bt-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--bt-text);
  border-radius: 2px;
  transition: transform 0.25s var(--bt-ease), opacity 0.25s var(--bt-ease);
}

/* Mobile nav overlay */
.bt-nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: var(--bt-bg);
  align-items: center;
  justify-content: center;
  gap: 36px;
  z-index: 200;
}

.bt-nav-links.open a {
  font-size: 24px;
  font-weight: var(--bt-fw-light);
  color: var(--bt-text);
}

.bt-nav-links.open a:hover {
  color: var(--bt-accent);
}

.bt-nav-links.open .bt-nav-cta {
  border-color: rgba(242, 242, 244, 0.3) !important;
  color: var(--bt-text) !important;
  font-size: 16px !important;
  padding: 12px 32px !important;
}

.bt-nav-links.open .bt-nav-cta:hover {
  background: var(--bt-accent);
  border-color: var(--bt-accent) !important;
}

/* ── Hero Flow (wrapper: dark zone → image bridge → warm white) ── */
.bt-hero-flow {
  position: relative;
  background: var(--bt-bg);
}

/* ── Hero ───────────────────────────────────────────────── */
.bt-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Hero image — anchored in dark, bottom fades to warm white via Pillow */
.bt-hero-image {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--bt-gutter);
}

.bt-hero-photo {
  width: 100%;
  height: auto;
  border-radius: var(--bt-card-r) var(--bt-card-r) 0 0;
  filter: contrast(1.05) saturate(1.1);
}

.bt-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 var(--bt-gutter);
}

.bt-eyebrow {
  font-size: 11px;
  font-weight: var(--bt-fw-medium);
  letter-spacing: var(--bt-letter-wider);
  text-transform: uppercase;
  color: var(--bt-accent);
  margin-bottom: 20px;
}

.bt-hero-title {
  font-size: var(--bt-display);
  font-weight: var(--bt-fw-light);
  letter-spacing: var(--bt-letter-tight);
  line-height: 1.02;
  color: var(--bt-text);
  margin-bottom: 20px;
}

.bt-hero-sub {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: var(--bt-fw-medium);
  color: var(--bt-text);
  margin-bottom: 16px;
  letter-spacing: var(--bt-letter-tight);
}

.bt-hero-detail {
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: var(--bt-fw-light);
  color: var(--bt-text-muted);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 40px;
  line-height: 1.7;
}

.bt-hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll hint */
.bt-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.bt-scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(242, 242, 244, 0.2));
  animation: btScrollPulse 2s ease-in-out infinite;
}

@keyframes btScrollPulse {
  0%, 100% { opacity: 0; transform: scaleY(0.5) translateY(-10px); }
  50% { opacity: 1; transform: scaleY(1) translateY(0); }
}

/* ── Buttons ────────────────────────────────────────────── */
.bt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--bt-font);
  font-size: 14px;
  font-weight: var(--bt-fw-medium);
  padding: 12px 28px;
  border-radius: var(--bt-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--bt-duration) var(--bt-ease),
              color var(--bt-duration) var(--bt-ease),
              border-color var(--bt-duration) var(--bt-ease),
              transform var(--bt-duration) var(--bt-ease);
}

.bt-btn:hover {
  transform: translateY(-1px);
}

.bt-btn-filled {
  background: var(--bt-accent);
  color: #fff;
  border-color: var(--bt-accent);
}

.bt-btn-filled:hover {
  background: var(--bt-accent-dim);
  border-color: var(--bt-accent-dim);
}

.bt-btn-outline-light {
  color: var(--bt-text);
  border-color: rgba(242, 242, 244, 0.25);
}

.bt-btn-outline-light:hover {
  border-color: rgba(242, 242, 244, 0.7);
  color: #fff;
}

.bt-btn-lg {
  padding: 16px 36px;
  font-size: 15px;
}

.bt-btn-icon {
  font-style: normal;
  transition: transform var(--bt-duration) var(--bt-ease);
}

.bt-btn:hover .bt-btn-icon {
  transform: translateX(3px);
}

/* ── Tags ───────────────────────────────────────────────── */
.bt-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--bt-fw-medium);
  letter-spacing: var(--bt-letter-wider);
  text-transform: uppercase;
  color: var(--bt-accent);
  margin-bottom: 16px;
}

.bt-tag-light {
  color: var(--bt-accent);
}

/* ── Section Titles ─────────────────────────────────────── */
.bt-section-title {
  font-size: var(--bt-h2);
  font-weight: var(--bt-fw-light);
  letter-spacing: var(--bt-letter-tight);
  line-height: 1.1;
  color: var(--bt-text-dark);
}

.bt-title-light {
  color: var(--bt-text);
}

/* ── Stats Bar ──────────────────────────────────────────── */
.bt-stats {
  background: var(--bt-bg);
  border-top: 1px solid var(--bt-border);
  padding: clamp(32px, 4vw, 48px) var(--bt-gutter);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.bt-stats-inner {
  max-width: var(--bt-max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--bt-col-gap);
  text-align: center;
}

.bt-stat-num {
  display: block;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: var(--bt-fw-light);
  letter-spacing: var(--bt-letter-tight);
  color: var(--bt-text);
  line-height: 1.1;
  margin-bottom: 6px;
}

.bt-stat-label {
  font-size: 11px;
  font-weight: var(--bt-fw-medium);
  letter-spacing: var(--bt-letter-wider);
  text-transform: uppercase;
  color: var(--bt-text-dim);
}

/* ── What Section (light) — top connects with hero image fade ── */
.bt-what {
  background: var(--bt-bg-warm);
  padding: clamp(64px, 8vw, 100px) var(--bt-gutter) clamp(80px, 10vw, 140px);
}

.bt-what-inner {
  max-width: 700px;
  margin-inline: auto;
}

.bt-what-text {
  max-width: 700px;
}

.bt-body {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--bt-text-dark-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.bt-body:last-child {
  margin-bottom: 0;
}

/* Text Generate Effect */
.am-text-generate .tg-word {
  display: inline;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.4s var(--bt-ease), filter 0.4s var(--bt-ease);
}

.am-text-generate.tg-active .tg-word {
  opacity: 1;
  filter: blur(0);
}

/* ── Inside Section (dark cards) ────────────────────────── */
.bt-inside {
  background: var(--bt-bg);
  padding: clamp(64px, 8vw, 120px) var(--bt-gutter);
}

.bt-inside-inner {
  max-width: var(--bt-max-w);
  margin-inline: auto;
}

.bt-inside-header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.bt-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.bt-card {
  padding: clamp(24px, 3vw, 36px);
  background: var(--bt-surface);
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-card-r);
  transition: border-color var(--bt-duration) var(--bt-ease),
              box-shadow var(--bt-duration) var(--bt-ease),
              transform var(--bt-duration) var(--bt-ease);
}

.bt-card:hover {
  border-color: var(--bt-border-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.bt-card-num {
  display: inline-block;
  font-size: 10px;
  font-weight: var(--bt-fw-medium);
  letter-spacing: 0.08em;
  color: var(--bt-accent);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bt-accent-glow);
}

.bt-card-title {
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: var(--bt-fw-medium);
  letter-spacing: var(--bt-letter-tight);
  color: var(--bt-text);
  line-height: 1.3;
  margin-bottom: 12px;
}

.bt-card-body {
  font-size: var(--bt-small);
  font-weight: var(--bt-fw-light);
  color: var(--bt-text-muted);
  line-height: 1.7;
}

/* ── Who Section (warm light) ───────────────────────────── */
.bt-who {
  background: var(--bt-bg-warm);
  padding: clamp(64px, 8vw, 120px) var(--bt-gutter);
}

.bt-who-inner {
  max-width: 800px;
  margin-inline: auto;
}

.bt-who-header {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.bt-who-grid {
  display: flex;
  flex-direction: column;
}

.bt-who-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  align-items: start;
  padding: clamp(20px, 2.5vw, 28px) 0;
  border-top: 1px solid rgba(15, 16, 18, 0.1);
}

.bt-who-item:last-child {
  padding-bottom: 0;
}

.bt-who-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bt-accent);
  color: #fff;
  font-size: 12px;
  font-weight: var(--bt-fw-medium);
  flex-shrink: 0;
  margin-top: 2px;
}

.bt-who-bold {
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: var(--bt-fw-medium);
  letter-spacing: var(--bt-letter-tight);
  line-height: 1.3;
  color: var(--bt-text-dark);
  margin-bottom: 4px;
}

.bt-who-desc {
  font-size: var(--bt-body);
  font-weight: var(--bt-fw-light);
  color: var(--bt-text-dark-muted);
  line-height: 1.65;
}

/* "Not for you" block */
.bt-who-not {
  margin-top: clamp(32px, 4vw, 48px);
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px solid rgba(15, 16, 18, 0.1);
  border-radius: var(--bt-card-r);
  background: rgba(15, 16, 18, 0.03);
}

.bt-who-not-title {
  font-size: 14px;
  font-weight: var(--bt-fw-medium);
  color: var(--bt-text-dark);
  margin-bottom: 6px;
}

.bt-who-not-body {
  font-size: var(--bt-small);
  color: var(--bt-text-dark-muted);
  line-height: 1.65;
}

/* ── Peter Section (dark) ───────────────────────────────── */
.bt-peter {
  background: var(--bt-bg-alt);
  padding: clamp(80px, 10vw, 140px) var(--bt-gutter);
  border-top: 1px solid var(--bt-border);
  border-bottom: 1px solid var(--bt-border);
}

.bt-peter-inner {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

.bt-peter-body {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--bt-text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.bt-peter-body:last-of-type {
  margin-bottom: 0;
}

/* ── FAQ Section ────────────────────────────────────────── */
.bt-faq {
  background: var(--bt-bg-warm);
  padding: clamp(48px, 6vw, 72px) var(--bt-gutter);
}

.bt-faq-inner {
  max-width: 900px;
  margin-inline: auto;
}

.bt-faq-header {
  text-align: center;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.bt-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.bt-faq-card {
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid rgba(15, 16, 18, 0.07);
  border-radius: var(--bt-card-r);
  background: #fff;
  transition: border-color var(--bt-duration) var(--bt-ease),
              box-shadow var(--bt-duration) var(--bt-ease);
}

.bt-faq-card:hover {
  border-color: rgba(15, 16, 18, 0.14);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.bt-faq-num {
  display: inline-block;
  font-size: 10px;
  font-weight: var(--bt-fw-medium);
  letter-spacing: 0.08em;
  color: var(--bt-accent);
  margin-bottom: 8px;
}

.bt-faq-q {
  font-size: 15px;
  font-weight: var(--bt-fw-medium);
  letter-spacing: var(--bt-letter-tight);
  color: var(--bt-text-dark);
  line-height: 1.3;
  margin-bottom: 6px;
}

.bt-faq-a {
  font-size: 13px;
  font-weight: var(--bt-fw-light);
  color: var(--bt-text-dark-muted);
  line-height: 1.65;
}

/* ── Apply CTA Section ──────────────────────────────────── */
.bt-apply {
  background: var(--bt-bg);
  padding: clamp(80px, 10vw, 140px) var(--bt-gutter);
  text-align: center;
}

.bt-apply-inner {
  max-width: 600px;
  margin-inline: auto;
}

.bt-apply-title {
  font-size: var(--bt-h2);
  font-weight: var(--bt-fw-light);
  letter-spacing: var(--bt-letter-tight);
  line-height: 1.1;
  color: var(--bt-text);
  margin-bottom: 20px;
}

.bt-apply-body {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--bt-text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.bt-apply-body + .bt-apply-list {
  margin-top: 0;
}

.bt-apply-list {
  text-align: left;
  max-width: 520px;
  margin: 0 auto 40px;
  padding-left: 24px;
  list-style: decimal;
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--bt-text-muted);
  line-height: 1.9;
}

.bt-apply-list li {
  padding-left: 8px;
  margin-bottom: 8px;
}

.bt-inline-link {
  color: var(--bt-text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.bt-inline-link:hover {
  text-decoration-color: var(--bt-text);
}

/* ── Private Workshop ──────────────────────────────────── */
.bt-apply-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 56px auto;
  max-width: 320px;
  font-size: 13px;
  color: var(--bt-text-dim);
  letter-spacing: var(--bt-letter-wider);
  text-transform: uppercase;
}
.bt-apply-divider::before,
.bt-apply-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bt-border);
}

.bt-private-block {
  margin-top: 8px;
}
.bt-private-title {
  font-family: var(--bt-font);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: var(--bt-fw-medium);
  color: var(--bt-text);
  letter-spacing: var(--bt-letter-tight);
  margin-bottom: 14px;
}
.bt-private-body {
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--bt-text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ── Trailer Video ─────────────────────────────────────── */
.bt-trailer {
  margin-top: 56px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.bt-trailer-video {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--bt-border);
}

/* ── Footer ─────────────────────────────────────────────── */
.bt-footer {
  background: var(--bt-bg-alt);
  border-top: 1px solid var(--bt-border);
}

.bt-footer-inner {
  max-width: var(--bt-max-w);
  margin-inline: auto;
  padding: 24px var(--bt-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.bt-footer-copy {
  font-size: 12px;
  color: var(--bt-text-dim);
}

.bt-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.bt-footer-links a {
  font-size: 12px;
  color: var(--bt-text-dim);
}

.bt-footer-links a:hover {
  color: var(--bt-text);
}

/* Network bar */
.bt-network-bar {
  padding: 12px var(--bt-gutter);
  background: var(--bt-bg);
  font-size: 11px;
  color: var(--bt-text-dim);
  text-align: center;
  line-height: 1.8;
  overflow-wrap: break-word;
  border-top: 1px solid var(--bt-border);
}

.bt-network-bar a {
  color: var(--bt-text-muted);
}

.bt-network-bar a:hover {
  color: var(--bt-text);
}

/* ── Responsive ─────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .bt-stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --bt-gutter: 6.5%;
  }

  .bt-nav-links {
    display: none;
  }

  .bt-nav-links.open {
    display: flex;
  }

  .bt-hamburger {
    display: flex;
  }

  .bt-hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .bt-hero-image {
    padding: 0 var(--bt-gutter);
  }

  .bt-stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .bt-card-grid {
    grid-template-columns: 1fr;
  }

  .bt-faq-grid {
    grid-template-columns: 1fr;
  }

  .bt-who-item {
    grid-template-columns: 32px 1fr;
    gap: 16px;
  }

  .bt-footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .bt-footer-links {
    justify-content: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  :root {
    --bt-gutter: 5.5%;
  }

  .bt-stats-inner {
    grid-template-columns: 1fr 1fr;
  }
}
