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

:root {
  --btc-orange: #F7931A;
  --btc-orange-dark: #E2820E;
  --bg-primary: #0D1117;
  --bg-secondary: #161B22;
  --bg-card: #1C2128;
  --text-primary: #E6EDF3;
  --text-secondary: #8B949E;
  --border-color: #30363D;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--btc-orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--btc-orange-dark); }

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

/* ── Navigation ─────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--text-primary); font-size: 1.5rem;
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(247, 147, 26, 0.08) 0%, transparent 70%),
    radial-gradient(circle at 20% 80%, rgba(247, 147, 26, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content { position: relative; max-width: 720px; }

.hero-logo {
  height: 120px;
  width: auto;
  margin: 0 auto 1.5rem;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--btc-orange);
  background: rgba(247, 147, 26, 0.1);
  border: 1px solid rgba(247, 147, 26, 0.25);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero h1 .highlight { color: var(--btc-orange); }

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: var(--font-main);
}

.btn-primary {
  background: var(--btc-orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--btc-orange-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(247, 147, 26, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--btc-orange);
  color: var(--btc-orange);
  transform: translateY(-1px);
}

/* ── Section Common ──────────────────────────────────── */
.section {
  padding: 5rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--btc-orange);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── Issues Grid ─────────────────────────────────────── */
.issues { border-top: 1px solid var(--border-color); }

.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.issue-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.issue-card:hover {
  border-color: rgba(247, 147, 26, 0.4);
  transform: translateY(-2px);
}

.issue-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(247, 147, 26, 0.1);
  border-radius: 10px;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.issue-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.issue-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Endorsements (hidden by default) ────────────────── */
.endorsements {
  border-top: 1px solid var(--border-color);
  display: none; /* toggle to 'block' when ready */
}

.endorsements.active { display: block; }

.carousel-wrapper {
  position: relative;
  margin-top: 2.5rem;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: carousel-scroll 30s linear infinite;
}

.carousel-track:hover { animation-play-state: paused; }

@keyframes carousel-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.candidate-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s;
}

.candidate-card:hover { border-color: rgba(247, 147, 26, 0.4); }

.candidate-photo {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--bg-secondary);
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 2px solid var(--border-color);
}

.candidate-photo img { width: 100%; height: 100%; object-fit: cover; }

.candidate-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }

.candidate-card .office {
  color: var(--btc-orange);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.candidate-card .district {
  color: var(--text-secondary);
  font-size: 0.8rem;
}


/* ── Signup Form ──────────────────────────────────────── */
.signup {
  border-top: 1px solid var(--border-color);
}

.signup-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
  align-items: start;
}

.signup-text { padding-top: 0.5rem; }

.signup-text p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.signup-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.form-group input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-main);
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--btc-orange);
  box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.1);
}

.form-group input::placeholder { color: var(--text-secondary); opacity: 0.5; }

.signup-form .btn { width: 100%; justify-content: center; }

/* ── Donate Banner ───────────────────────────────────── */
.donate-banner {
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.donate-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.donate-inner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(247, 147, 26, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.donate-inner > * { position: relative; }

.donate-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.donate-inner p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

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

/* ── Mobile ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }

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

  .hero { min-height: auto; padding: 7rem 1.5rem 4rem; }

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

  .issues-grid { grid-template-columns: 1fr; }

  .signup-wrapper { grid-template-columns: 1fr; gap: 2rem; }

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