/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SHARED COMPONENTS — billbarger.com
   Nav, footer, buttons, cards, reveal, stats,
   timeline, scenario card, hero, mobile menu
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Progress bar ────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ── Nav ─────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 28px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.nav-brand {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 500; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  background: var(--accent);
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-radius: var(--radius-pill);
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover {
  background: var(--accent-hover) !important;
  transform: none !important;
  color: #fff !important;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 52px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(255,255,255,0.98);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    padding: 24px 28px;
    gap: 20px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 16px; }
  .nav-hamburger { display: flex; }
}

/* ── Scroll reveal ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }
.reveal-delay-7 { transition-delay: 0.56s; }
.reveal-delay-8 { transition-delay: 0.64s; }

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
}
.btn-blue {
  background: var(--accent);
  color: #fff;
}
.btn-blue:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,113,227,0.28);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent-border);
  background: var(--accent-light);
  transform: translateY(-1px);
}
.btn-white {
  background: #fff;
  color: var(--text);
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}
.btn-white:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.btn-ghost-white {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}
.btn-ghost-white:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Hero ────────────────────────────────── */
.hero {
  padding-top: 140px;
  padding-bottom: 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero.hero-left { text-align: left; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 32px;
  animation: heroFadeUp 0.6s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2.5s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity:1; }
  50% { opacity:0.3; }
}

.hero h1 {
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 28px;
  animation: heroFadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.08s both;
}

.hero-sub {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 44px;
  line-height: 1.55;
  font-weight: 300;
  animation: heroFadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.16s both;
}
.hero-left .hero-sub { margin-left: 0; }

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  animation: heroFadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.24s both;
}
.hero-left .hero-cta-row { justify-content: flex-start; }

@keyframes heroFadeUp {
  from { opacity:0; transform: translateY(24px); }
  to   { opacity:1; transform: translateY(0); }
}

.hero-bg {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,113,227,0.05) 0%, transparent 60%);
  pointer-events: none;
  will-change: transform;
}

@media (max-width: 768px) {
  .hero { padding-top: 110px; padding-bottom: 72px; }
}

/* ── Stats strip ─────────────────────────── */
.stats-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0;
}
.stats-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid var(--border-subtle);
  transition: background 0.25s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--bg-card-hover); }
.stat-val {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 400;
}
@media (max-width: 600px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
}

/* ── Scenario / dark card ────────────────── */
.scenario-card {
  background: var(--text);
  border-radius: var(--radius-lg);
  padding: 56px 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.scenario-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}
.scenario-card blockquote {
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.95);
  margin-bottom: 32px;
  position: relative;
}
.scenario-card blockquote::before {
  content: '\201C';
  font-size: 120px;
  font-weight: 700;
  line-height: 0.5;
  color: rgba(255,255,255,0.08);
  display: block;
  margin-bottom: 20px;
}
.scenario-card p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  font-weight: 300;
}
.scenario-card p strong { color: rgba(255,255,255,0.9); font-weight: 500; }
@media (max-width: 680px) {
  .scenario-card { padding: 36px 28px; }
}

/* ── Card grid ───────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  cursor: default;
}
.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}
.card p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  font-weight: 300;
}
.card .tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  transition: gap 0.2s;
}
.card:hover .card-link { gap: 8px; }
.card .badge-private {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}

/* ── Timeline ────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 52px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 18px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border-subtle);
}
.tl-item {
  position: relative;
  padding-bottom: 44px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -42px;
  top: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: all 0.3s ease;
  z-index: 1;
}
.tl-item:hover .tl-dot {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: scale(1.1);
}
.tl-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.tl-item h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}
.tl-item p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  font-weight: 300;
  max-width: 520px;
}

/* ── Closing CTA section ─────────────────── */
.cta-section {
  background: var(--text);
  padding: 120px 0;
  text-align: center;
}
.cta-section .eyebrow { color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.cta-section h2 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 20px;
}
.cta-section p {
  font-size: 19px;
  color: rgba(255,255,255,0.5);
  max-width: 480px;
  margin: 0 auto 44px;
  line-height: 1.6;
  font-weight: 300;
}
.cta-section p strong { color: rgba(255,255,255,0.8); font-weight: 500; }
.cta-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ── Footer ──────────────────────────────── */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-inner span {
  font-size: 13px;
  color: var(--text-3);
}
.footer-inner a { color: var(--text-2); }
.footer-inner a:hover { color: var(--accent); }

/* ── Video section ───────────────────────── */
.video-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
}
.video-wrap video {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Notice bar ──────────────────────────── */
.notice-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 14px;
  color: var(--text-2);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.6;
}
.notice-bar strong { color: var(--text); font-weight: 600; }

/* ── Featured project spotlight ──────────── */
.featured-project {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.featured-project h3 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}
.featured-project p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 12px;
}
.featured-project .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .featured-project {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 24px;
  }
}

/* ── Number counter ──────────────────────── */
.count-up { display: inline-block; }
