:root {
  --obsidian: #080806;
  --iron: #151410;
  --charcoal: #221d16;
  --bronze: #9f6b2e;
  --gold: #e6bf68;
  --parchment: #f3dfb1;
  --crimson: #6a1913;
  --green: #72f349;
  --green-2: #1eb85a;
  --smoke: rgba(246, 219, 158, 0.72);
  --line: rgba(230, 191, 104, 0.26);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.52);
  color-scheme: dark;
  font-family: "Cormorant Garamond", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 8%, rgba(118, 243, 73, 0.14), transparent 24rem),
    radial-gradient(circle at 82% 14%, rgba(178, 91, 31, 0.2), transparent 28rem),
    linear-gradient(135deg, #060605 0%, #17100b 44%, #090907 100%);
  color: var(--parchment);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
  z-index: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.ambient span {
  position: absolute;
  bottom: -12vh;
  width: 2px;
  height: 120px;
  background: linear-gradient(to top, transparent, rgba(112, 243, 73, 0.95), transparent);
  filter: drop-shadow(0 0 14px rgba(112, 243, 73, 0.75));
  animation: candle-rise 8s linear infinite;
  opacity: 0.5;
}

.ambient span:nth-child(1) { left: 11%; animation-delay: -1s; height: 95px; }
.ambient span:nth-child(2) { left: 35%; animation-delay: -4s; height: 150px; }
.ambient span:nth-child(3) { left: 58%; animation-delay: -2.5s; height: 110px; }
.ambient span:nth-child(4) { left: 79%; animation-delay: -6s; height: 180px; }
.ambient span:nth-child(5) { left: 92%; animation-delay: -3s; height: 100px; }

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  width: min(1180px, calc(100% - 28px));
  height: 72px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(8, 8, 6, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.36);
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 800;
  color: var(--gold);
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.brand span {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: clamp(12px, 2vw, 30px);
  color: rgba(243, 223, 177, 0.82);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.header-actions,
.cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(230, 191, 104, 0.08);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.icon-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.icon-link:hover,
.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(114, 243, 73, 0.78);
  box-shadow: 0 0 28px rgba(114, 243, 73, 0.18);
}

.section {
  position: relative;
  z-index: 2;
}

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

.hero {
  min-height: 100vh;
  padding: 126px 0 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 6, 0.96) 0%, rgba(8, 8, 6, 0.76) 42%, rgba(8, 8, 6, 0.22) 100%),
    url("assets/generated/bullius-stance.png") center / cover no-repeat;
  opacity: 0.38;
  transform: scale(1.04);
  animation: slow-breathe 11s ease-in-out infinite alternate;
}

.hero-grid {
  position: relative;
  min-height: calc(100vh - 126px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: clamp(28px, 4vw, 70px);
  padding-bottom: 92px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 640px;
  font-size: clamp(3.6rem, 7.2vw, 7rem);
  line-height: 0.88;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 3px 0 rgba(54, 31, 10, 0.9), 0 0 38px rgba(230, 191, 104, 0.16);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 5.6rem);
  line-height: 0.92;
  color: var(--gold);
}

h3 {
  font-size: clamp(1.22rem, 1.7vw, 1.6rem);
  color: var(--parchment);
}

p {
  font-size: clamp(1.08rem, 1.45vw, 1.32rem);
  line-height: 1.55;
  color: var(--smoke);
}

.hero-line {
  max-width: 590px;
  margin: 24px 0 0;
  font-size: clamp(1.65rem, 3vw, 3.15rem);
  line-height: 1;
  color: #fff3ca;
}

.symbol-row {
  width: min(420px, 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(230, 191, 104, 0.1), rgba(114, 243, 73, 0.06));
  font-family: "Cinzel", Georgia, serif;
}

.symbol-row span {
  color: rgba(243, 223, 177, 0.72);
}

.symbol-row strong {
  color: var(--green);
  font-size: 1.35rem;
}

.ca-copy {
  width: min(420px, 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(230, 191, 104, 0.1), rgba(114, 243, 73, 0.06));
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.ca-copy:hover {
  border-color: rgba(114, 243, 73, 0.78);
  box-shadow: 0 0 28px rgba(114, 243, 73, 0.14);
  transform: translateY(-1px);
}

.ca-copy span:first-child {
  color: rgba(243, 223, 177, 0.72);
  font-family: "Cinzel", Georgia, serif;
}

.ca-copy code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--parchment);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.08rem;
}

.ca-copy-hint {
  color: var(--green);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ca-copy.is-copied {
  border-color: rgba(114, 243, 73, 0.9);
  box-shadow: 0 0 32px rgba(114, 243, 73, 0.22);
}

.ca-copy.is-copied .ca-copy-hint {
  color: var(--gold);
}

.btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-family: "Cinzel", Georgia, serif;
  font-weight: 800;
  font-size: 0.9rem;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.btn.primary {
  background: linear-gradient(135deg, rgba(114, 243, 73, 0.95), rgba(31, 184, 90, 0.88));
  color: #081006;
  border-color: rgba(184, 252, 90, 0.9);
}

.btn.secondary {
  background: rgba(230, 191, 104, 0.1);
  color: var(--parchment);
}

.hero-card,
.art-panel,
.victory-panel,
.oracle-strip,
.chart-shell,
.step {
  border: 1px solid var(--line);
  background: rgba(16, 14, 10, 0.72);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  transform: perspective(900px) rotateY(-5deg);
}

.hero-card::before,
.art-panel::before,
.victory-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0 35%, rgba(255, 241, 181, 0.16) 48%, transparent 62% 100%);
  transform: translateX(-120%);
  animation: blade-glint 5.8s ease-in-out infinite;
  z-index: 2;
}

.hero-card img,
.art-panel img,
.victory-panel img,
.oracle-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.marquee {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 6, 0.76);
}

.marquee div {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee span {
  padding: 18px 32px;
  font-family: "Cinzel", Georgia, serif;
  color: rgba(230, 191, 104, 0.78);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(84px, 12vw, 150px) 0;
}

.art-panel,
.victory-panel {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.copy-panel p {
  max-width: 620px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 30px;
  border: 1px solid var(--line);
  background: var(--line);
}

.stat-grid div {
  min-height: 110px;
  padding: 18px;
  background: rgba(8, 8, 6, 0.74);
}

.stat-grid strong,
.step span {
  display: block;
  color: var(--green);
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.4rem;
}

.stat-grid span {
  color: rgba(243, 223, 177, 0.72);
}

.how,
.chart,
.join {
  padding: clamp(84px, 12vw, 150px) 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 38px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  position: relative;
  min-height: 248px;
  padding: 24px;
  overflow: hidden;
}

.step::before {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 72px;
  height: 120px;
  background: linear-gradient(to top, rgba(114, 243, 73, 0.22), transparent);
  filter: blur(2px);
  animation: pulse-candle 2.8s ease-in-out infinite;
}

.step p {
  margin-bottom: 0;
  font-size: 1.06rem;
}

.oracle-strip {
  height: clamp(260px, 40vw, 500px);
  margin-top: 18px;
  overflow: hidden;
}

.chart-shell {
  height: min(72vh, 720px);
  min-height: 520px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(114, 243, 73, 0.13), transparent 26rem),
    #070806;
}

.chart-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.join {
  overflow: hidden;
}

.join-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.join-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 6, 0.94) 0%, rgba(8, 8, 6, 0.66) 48%, rgba(8, 8, 6, 0.88) 100%),
    linear-gradient(0deg, rgba(8, 8, 6, 1), transparent 26%, transparent 70%, rgba(8, 8, 6, 1));
}

.join-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.join-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: clamp(26px, 5vw, 66px);
}

.join-copy p {
  max-width: 560px;
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px max(16px, calc((100% - 1180px) / 2));
  border-top: 1px solid var(--line);
  color: rgba(243, 223, 177, 0.72);
  font-family: "Cinzel", Georgia, serif;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes candle-rise {
  from { transform: translateY(0) scaleY(0.4); opacity: 0; }
  18% { opacity: 0.52; }
  to { transform: translateY(-120vh) scaleY(1); opacity: 0; }
}

@keyframes slow-breathe {
  from { transform: scale(1.04) translateX(0); }
  to { transform: scale(1.08) translateX(1.6%); }
}

@keyframes blade-glint {
  0%, 62% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes pulse-candle {
  0%, 100% { opacity: 0.32; transform: scaleY(0.88); }
  50% { opacity: 0.78; transform: scaleY(1.06); }
}

@media (max-width: 920px) {
  .site-header {
    height: auto;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding-top: 2px;
  }

  .hero {
    padding-top: 138px;
  }

  .hero-grid,
  .split,
  .join-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    transform: none;
  }

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

@media (max-width: 620px) {
  .brand span {
    max-width: 150px;
    white-space: normal;
    line-height: 1.05;
  }

  .header-actions {
    margin-left: auto;
  }

  h1 {
    font-size: clamp(3.45rem, 18vw, 5.4rem);
  }

  .cta-row,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .steps,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .chart-shell {
    min-height: 430px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
