:root {
  --bg: #120202;
  --bg-2: #250303;
  --panel: rgba(32, 6, 6, 0.8);
  --panel-2: rgba(71, 10, 10, 0.64);
  --line: rgba(255, 109, 109, 0.22);
  --text: #f8e6e0;
  --muted: #d7b9ae;
  --accent: #ff3b25;
  --accent-soft: #ff8e52;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(164, 27, 20, 0.35), transparent 34%),
    linear-gradient(180deg, #2a0303 0%, #150101 44%, #080000 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.02), rgba(0,0,0,0.02));
  mix-blend-mode: overlay;
  pointer-events: none;
}

.blood-haze,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.blood-haze {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 94, 54, 0.18), transparent 28%),
    radial-gradient(circle at 20% 20%, rgba(255, 0, 0, 0.08), transparent 26%),
    radial-gradient(circle at 80% 14%, rgba(255, 61, 31, 0.08), transparent 24%);
  animation: hazePulse 8s ease-in-out infinite alternate;
}

.grain {
  opacity: 0.12;
  background-image:
    linear-gradient(transparent 0, transparent 49%, rgba(255,255,255,0.12) 50%, transparent 51%, transparent 100%);
  background-size: 100% 4px;
  mix-blend-mode: soft-light;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
  background: rgba(15, 2, 2, 0.8);
  border-bottom: 1px solid rgba(255, 109, 109, 0.18);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff7848 0%, #ff2f1e 48%, #7e0505 100%);
  box-shadow: 0 0 24px rgba(255, 75, 37, 0.75);
}

.brand-text,
.hero h1,
.section-heading h2,
.story-card h3,
.altar-text h2 {
  font-family: 'Cinzel', serif;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ticker-badge {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.icon-link {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.36);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 8px 22px rgba(0,0,0,0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.icon-link:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 16px 28px rgba(0,0,0,0.34);
}

.icon-link img {
  width: 22px;
  height: 22px;
  display: block;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  min-height: calc(100vh - 92px);
  align-items: center;
  padding: 40px 0 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-soft);
  font-size: 0.86rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.lead {
  margin: 18px 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.cta,
.copy-button,
.wide-link {
  border: 1px solid rgba(255, 143, 102, 0.26);
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.cta img {
  width: 20px;
  height: 20px;
}

.cta.primary {
  background: linear-gradient(135deg, #8b0d0d, #ff4725);
}

.cta.secondary {
  background: rgba(255,255,255,0.06);
}

.cta:hover,
.copy-button:hover,
.wide-link:hover {
  transform: translateY(-4px);
}

.contract-card {
  margin-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

#caText {
  display: block;
  font-size: 0.98rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.copy-button {
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  padding: 14px 18px;
  min-width: 120px;
  font-weight: 700;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.art-frame {
  position: relative;
  overflow: hidden;
  width: min(540px, 100%);
  border-radius: 32px;
  border: 1px solid rgba(255, 125, 95, 0.22);
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-8deg);
}

.art-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.art-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent 20%, transparent 75%, rgba(0,0,0,0.32));
}

.eye-glow {
  position: absolute;
  inset: 10% 17% auto 17%;
  height: 22%;
  background: radial-gradient(circle at 38% 45%, rgba(255, 41, 41, 0.25), transparent 18%),
              radial-gradient(circle at 61% 45%, rgba(255, 41, 41, 0.25), transparent 18%);
  mix-blend-mode: screen;
  animation: eyePulse 2.8s ease-in-out infinite;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.narrative {
  padding: 28px 0 36px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.story-card,
.altar-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.story-card {
  padding: 24px;
  border-radius: 24px;
}

.story-card h3 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.story-card p,
.altar-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.altar {
  padding: 18px 0 64px;
}

.altar-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 28px;
  border-radius: 30px;
}

.altar-text h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.altar-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wide-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 88px;
  padding: 18px;
  background: rgba(255,255,255,0.06);
  font-size: 1rem;
  font-weight: 700;
}

.wide-link img {
  width: 22px;
  height: 22px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 24px 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  color: #c9a89d;
}

.footer p,
.footer a {
  margin: 0;
  color: inherit;
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hazePulse {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.08); }
}

@keyframes eyePulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@media (max-width: 980px) {
  .hero,
  .altar-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 26px;
  }

  .art-frame {
    transform: none;
  }

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

@media (max-width: 700px) {
  .topbar,
  .footer {
    width: calc(100% - 18px);
    padding-left: 10px;
    padding-right: 10px;
  }

  .topbar {
    margin: 9px auto 0;
    border-radius: 18px;
  }

  .section {
    width: calc(100% - 18px);
  }

  .top-actions {
    gap: 8px;
  }

  .ticker-badge {
    width: 100%;
    text-align: center;
  }

  .icon-link {
    width: 42px;
    height: 42px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .contract-card {
    flex-direction: column;
    align-items: stretch;
  }

  .copy-button {
    width: 100%;
  }

  .altar-actions {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
