/* Book of Trump — USA + Book Theme */

:root {
  --navy: #0a1628;
  --navy-light: #132238;
  --red: #b22234;
  --red-dark: #8b1a28;
  --white: #f8f6f1;
  --cream: #ede8dc;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --gold-dark: #9a7b1a;
  --book-brown: #3d2914;
  --book-leather: #5c3d1e;
  --text: #1a1a2e;
  --text-muted: #5a5a6e;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  --radius: 8px;
  --font-display: 'Cinzel', Georgia, serif;
  --font-book: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

/* Background stars */
.stars-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 50% 10%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 15% 90%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 85% 15%, rgba(255,255,255,0.45), transparent),
    linear-gradient(180deg, var(--navy) 0%, #0d1f3c 50%, var(--navy-light) 100%);
  z-index: -1;
  pointer-events: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--white);
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.logo-ticker {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--gold);
  color: var(--navy);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

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

.nav-links a {
  color: rgba(248, 246, 241, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(178, 34, 52, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(178, 34, 52, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(248, 246, 241, 0.4);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  overflow: hidden;
  background:
    linear-gradient(
      105deg,
      rgba(10, 22, 40, 0.92) 0%,
      rgba(10, 22, 40, 0.78) 42%,
      rgba(10, 22, 40, 0.55) 68%,
      rgba(10, 22, 40, 0.72) 100%
    ),
    url('hero-bg.png') center center / cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(201, 162, 39, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(178, 34, 52, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.35);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

.gold {
  color: var(--gold-light);
  text-shadow: 0 0 40px rgba(201, 162, 39, 0.3);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(248, 246, 241, 0.9);
  max-width: 520px;
  margin-bottom: 2rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.hero-subtitle strong {
  color: var(--gold-light);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-light);
}

.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(248, 246, 241, 0.55);
}

/* Hero logo */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  width: min(100%, 420px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.55));
  animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-stripes {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0px,
    var(--red) 40px,
    var(--white) 40px,
    var(--white) 80px,
    #002868 80px,
    #002868 120px
  );
  opacity: 0.85;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-desc {
  margin-inline: auto;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-book);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
}

.section-desc {
  margin-top: 0.75rem;
  color: rgba(248, 246, 241, 0.65);
  max-width: 560px;
}

/* About */
.about {
  background: rgba(19, 34, 56, 0.6);
  border-block: 1px solid rgba(201, 162, 39, 0.15);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text .lead {
  font-family: var(--font-book);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--cream);
  margin-bottom: 1.25rem;
}

.about-text p {
  color: rgba(248, 246, 241, 0.78);
  margin-bottom: 1rem;
}

.about-text strong {
  color: var(--gold-light);
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card {
  background: rgba(10, 22, 40, 0.7);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
}

.card:hover {
  border-color: rgba(201, 162, 39, 0.5);
  transform: translateX(6px);
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.92rem;
  color: rgba(248, 246, 241, 0.7);
}

/* Achievements / Timeline */
.achievements {
  background: linear-gradient(180deg, transparent 0%, rgba(178, 34, 52, 0.06) 50%, transparent 100%);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 2.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--red), var(--gold));
  opacity: 0.4;
}

.chapter {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.chapter.visible {
  opacity: 1;
  transform: translateY(0);
}

.chapter-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  line-height: 1;
  padding-top: 0.25rem;
  position: relative;
  z-index: 1;
}

.chapter-body {
  background: rgba(248, 246, 241, 0.04);
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  position: relative;
}

.chapter-body::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--red), var(--gold));
  border-radius: var(--radius) 0 0 var(--radius);
}

.chapter-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.chapter-body ul {
  list-style: none;
}

.chapter-body li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
  color: rgba(248, 246, 241, 0.82);
  font-size: 0.95rem;
}

.chapter-body li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 0.7rem;
  top: 0.15rem;
}

.pull-quote {
  margin-top: 3rem;
  text-align: center;
  padding: 2.5rem;
  border-top: 1px solid rgba(201, 162, 39, 0.25);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

.pull-quote p {
  font-family: var(--font-book);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--cream);
  max-width: 720px;
  margin-inline: auto;
}

/* Token */
.token-box {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(178, 34, 52, 0.12) 0%, rgba(10, 22, 40, 0.9) 40%),
    var(--navy-light);
  border: 2px solid rgba(201, 162, 39, 0.35);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow);
}

.token-info h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.token-info > p {
  color: rgba(248, 246, 241, 0.8);
  margin-bottom: 1.75rem;
}

.token-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}

.token-details dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(248, 246, 241, 0.5);
  margin-bottom: 0.2rem;
}

.token-details dd {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-light);
  font-weight: 600;
}

.ca-box {
  margin-bottom: 1.75rem;
}

.ca-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(248, 246, 241, 0.5);
  margin-bottom: 0.5rem;
}

.ca-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ca-address {
  flex: 1;
  min-width: 0;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  word-break: break-all;
}

.btn-copy {
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-copy:hover {
  background: rgba(201, 162, 39, 0.28);
  border-color: var(--gold);
}

.btn-copy.copied {
  background: rgba(34, 139, 34, 0.25);
  border-color: #3cb371;
  color: #90ee90;
}

.disclaimer {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: rgba(248, 246, 241, 0.45);
}

.token-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.token-logo {
  width: min(100%, 260px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(201, 162, 39, 0.35));
  animation: logoFloat 6s ease-in-out infinite;
}

/* Community */
.community {
  padding-bottom: 6rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.25rem;
  background: rgba(19, 34, 56, 0.8);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--white);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.social-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.social-card.highlight {
  background: linear-gradient(135deg, rgba(178, 34, 52, 0.25), rgba(19, 34, 56, 0.9));
  border-color: var(--red);
}

.social-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.social-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.social-handle {
  font-size: 0.82rem;
  color: rgba(248, 246, 241, 0.55);
}

/* Footer */
.site-footer {
  position: relative;
  background: #060d18;
  padding: 2.5rem 0 0;
}

.footer-inner {
  text-align: center;
  padding-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(248, 246, 241, 0.45);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-stripes {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0px,
    var(--red) 40px,
    var(--white) 40px,
    var(--white) 80px,
    #002868 80px,
    #002868 120px
  );
}

/* Mobile nav open state */
.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .token-box {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-logo {
    width: min(100%, 300px);
  }

  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 22, 40, 0.98);
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 600px) {
  .hero-stats {
    gap: 1.5rem;
  }

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

  .chapter {
    grid-template-columns: 50px 1fr;
    gap: 1rem;
  }

  .timeline::before {
    left: 1.5rem;
  }

  .token-details {
    grid-template-columns: 1fr;
  }

  .token-box {
    padding: 2rem 1.5rem;
  }
}
