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

:root {
  --vigil-red: #DC143C;
  --vigil-red-dark: #8B0000;
  --vigil-blood: #FF1744;
  --vigil-crimson: #B71C1C;
  --vigil-white: #F5F5F5;
  --bg-dark: #0a0505;
  --bg-card: rgba(20, 8, 8, 0.92);
  --bg-card-hover: rgba(30, 10, 10, 0.95);
  --text-primary: #ffffff;
  --text-secondary: #b0a0a0;
  --border: rgba(220, 20, 60, 0.25);
  --radius: 16px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.bg-noise {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(220, 20, 60, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 0, 0, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.bg-vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 5, 5, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo {
  border-radius: 50%;
  border: 2px solid var(--vigil-red);
}

.nav-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--vigil-red);
}

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

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

.nav-links a:hover {
  color: var(--vigil-blood);
}

.nav-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary) !important;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.nav-social svg {
  width: 16px;
  height: 16px;
}

.nav-social:hover {
  background: var(--vigil-red);
  border-color: var(--vigil-red);
  color: #fff !important;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding-top: 64px;
}

.hero-banner-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 0;
}

.hero-banner {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 20px 60px rgba(220, 20, 60, 0.35);
  border: 1px solid rgba(220, 20, 60, 0.3);
}

.hero-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 80px;
  background: radial-gradient(ellipse, rgba(220, 20, 60, 0.5) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  padding: 48px 24px 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(220, 20, 60, 0.12);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--vigil-blood);
  margin-bottom: 24px;
}

.hero-badge-icon {
  width: 18px;
  height: 18px;
}

.hero-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.text-red {
  color: var(--vigil-red);
}

.text-blood {
  color: var(--vigil-blood);
  text-shadow: 0 0 30px rgba(255, 23, 68, 0.5);
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.hero-sub strong {
  color: var(--vigil-white);
}

.hero-actions,
.buy-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.buy-actions {
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn svg,
.btn img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--vigil-red), var(--vigil-red-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(220, 20, 60, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(220, 20, 60, 0.6);
}

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

.btn-outline:hover {
  border-color: var(--vigil-red);
  color: var(--vigil-blood);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.hero-social {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.social-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--vigil-red);
}

/* Video section */
.video-section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  background: linear-gradient(180deg, transparent, rgba(139, 0, 0, 0.12), transparent);
}

.video-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(220, 20, 60, 0.2);
}

.video-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(139, 0, 0, 0.15);
}

.elon-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.elon-badge > svg {
  width: 36px;
  height: 36px;
  color: var(--vigil-white);
  flex-shrink: 0;
}

.elon-badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.elon-badge-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.elon-badge-handle {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.video-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.video-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.video-stat svg {
  width: 16px;
  height: 16px;
  color: var(--vigil-red);
}

.video-embed-wrap {
  display: flex;
  justify-content: center;
  min-height: 400px;
  padding: 24px;
  background: #000;
}

.video-embed-wrap .twitter-tweet {
  margin: 0 auto !important;
}

.video-card-footer {
  display: flex;
  justify-content: center;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

/* Sections with backgrounds */
.section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.section-bg {
  background-image: var(--section-bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.section-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 5, 5, 0.88) 0%,
    rgba(10, 5, 5, 0.82) 50%,
    rgba(10, 5, 5, 0.88) 100%
  );
  pointer-events: none;
}

.section-overlay-heavy {
  background: rgba(10, 5, 5, 0.9);
}

.section-inner {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--vigil-blood);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.section-desc em {
  color: var(--vigil-white);
  font-style: normal;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(8px);
  transition: transform 0.2s, border-color 0.2s;
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(220, 20, 60, 0.5);
}

.about-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  color: var(--vigil-red);
}

.about-icon svg {
  width: 100%;
  height: 100%;
}

.about-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Code */
.code-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.code-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.code-logo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 3px solid var(--vigil-red);
  animation: pulse-glow 3s ease-in-out infinite;
}

.code-crosshair {
  position: absolute;
  width: 280px;
  height: 280px;
  color: var(--vigil-red);
  animation: spin 30s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(220, 20, 60, 0.4); }
  50% { box-shadow: 0 0 60px rgba(220, 20, 60, 0.7); }
}

.code-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.code-text p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.code-text strong {
  color: var(--vigil-white);
}

.code-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.code-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}

.code-list svg {
  width: 22px;
  height: 22px;
  color: var(--vigil-blood);
  flex-shrink: 0;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin: 0;
}

.gallery-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-card figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--vigil-white);
  background: var(--bg-card);
}

.gallery-card figcaption svg {
  width: 18px;
  height: 18px;
  color: var(--vigil-red);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  text-align: center;
}

.stat-icon {
  width: 40px;
  height: 40px;
  color: var(--vigil-red);
  margin-bottom: 4px;
}

.stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  color: var(--vigil-white);
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Buy */
.buy {
  background: linear-gradient(180deg, transparent, rgba(139, 0, 0, 0.08), transparent);
}

.buy-card {
  text-align: center;
  background: linear-gradient(135deg, var(--bg-card), rgba(220, 20, 60, 0.1));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
  max-width: 600px;
  margin: 0 auto;
  backdrop-filter: blur(8px);
}

.buy-logo {
  border-radius: 50%;
  border: 2px solid var(--vigil-red);
  margin-bottom: 20px;
}

.buy-card h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.buy-card > p {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.contract-box {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 28px;
  text-align: left;
}

.contract-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.contract-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contract-row code {
  flex: 1;
  font-size: 0.85rem;
  color: var(--vigil-blood);
  word-break: break-all;
}

.copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.copy-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.copy-btn svg {
  width: 18px;
  height: 18px;
}

.copy-btn:not(:disabled):hover {
  background: var(--vigil-red);
  border-color: var(--vigil-red);
  color: #fff;
}

.buy-social {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 28px;
}

.buy-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-primary);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.buy-social svg,
.buy-social img,
.footer-links img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.buy-social a:hover {
  background: var(--vigil-red);
  border-color: var(--vigil-red);
  color: #fff;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 40px;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.footer-brand img {
  border-radius: 50%;
  border: 1px solid var(--vigil-red);
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-links svg {
  width: 16px;
  height: 16px;
}

.footer-links a:hover {
  color: var(--vigil-blood);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links a:not(.nav-social) {
    display: none;
  }

  .video-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .video-embed-wrap {
    min-height: 320px;
    padding: 16px;
  }

  .code-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .code-list li {
    justify-content: center;
  }

  .hero-content {
    padding-bottom: 48px;
  }

  .section {
    padding: 56px 0;
  }

  .section-bg {
    background-attachment: scroll;
  }
}
