:root {
  --bg: #07080c;
  --bg-elevated: #0e1018;
  --ink: #f2efe6;
  --ink-muted: #a8a49a;
  --sol-purple: #9945ff;
  --sol-cyan: #14f195;
  --sol-blue: #00d1ff;
  --ember: #ff6b35;
  --steel: #1a1d28;
  --line: rgba(153, 69, 255, 0.28);
  --glow: 0 0 40px rgba(20, 241, 149, 0.25);
  --font-display: "Cinzel Decorative", "Cinzel", serif;
  --font-title: "Cinzel", serif;
  --font-body: "Rajdhani", sans-serif;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.ember-field {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.ember {
  position: absolute;
  bottom: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--sol-cyan);
  box-shadow: 0 0 8px var(--sol-cyan), 0 0 16px var(--sol-purple);
  animation: rise linear forwards;
  opacity: 0.7;
}

@keyframes rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-110vh) scale(0.3);
    opacity: 0;
  }
}

/* ——— Nav ——— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: linear-gradient(180deg, rgba(7, 8, 12, 0.92), rgba(7, 8, 12, 0.55) 70%, transparent);
  backdrop-filter: blur(8px);
  transition: background 0.35s ease;
}

.nav.scrolled {
  background: rgba(7, 8, 12, 0.92);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.nav-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(20, 241, 149, 0.45);
  box-shadow: 0 0 20px rgba(153, 69, 255, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links a:not(.nav-cta) {
  color: var(--ink-muted);
  transition: color 0.2s;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--sol-cyan);
}

.nav-cta {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--sol-cyan);
  color: var(--bg) !important;
  background: linear-gradient(120deg, var(--sol-cyan), var(--sol-blue));
  font-weight: 700;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: filter 0.2s, transform 0.2s;
}

.nav-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 3rem;
  overflow: hidden;
}

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

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  animation: heroKen 28s ease-in-out infinite alternate;
  transform: scale(1.08);
}

@keyframes heroKen {
  from {
    transform: scale(1.08) translate(0, 0);
  }
  to {
    transform: scale(1.14) translate(-1.5%, -1%);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 12, 0.35) 0%, rgba(7, 8, 12, 0.15) 35%, rgba(7, 8, 12, 0.75) 70%, rgba(7, 8, 12, 0.98) 100%),
    linear-gradient(90deg, rgba(7, 8, 12, 0.7) 0%, transparent 45%, rgba(7, 8, 12, 0.45) 100%),
    radial-gradient(ellipse at 70% 40%, rgba(153, 69, 255, 0.18), transparent 55%);
}

.hero-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.03) 3px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-title);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--sol-cyan);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 24px rgba(20, 241, 149, 0.5);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 1rem;
}

.brand-glow {
  background: linear-gradient(105deg, #fff 0%, var(--sol-cyan) 40%, var(--sol-purple) 70%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(153, 69, 255, 0.35));
}

@keyframes shimmer {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

.hero-tag {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 500;
  color: var(--ink-muted);
  max-width: 34ch;
  margin-bottom: 1.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.ca-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  max-width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 2.5rem;
  border: 1px solid var(--line);
  background: rgba(7, 8, 12, 0.65);
  backdrop-filter: blur(6px);
}

.ca-label {
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sol-purple);
}

.ca-value {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: clamp(0.65rem, 2vw, 0.8rem);
  color: var(--ink-muted);
  word-break: break-all;
}

.ca-copy {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  background: linear-gradient(120deg, var(--sol-cyan), var(--sol-blue));
  border: none;
  cursor: pointer;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: filter 0.2s, transform 0.2s;
}

.ca-copy:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.ca-copy.copied {
  background: linear-gradient(120deg, var(--sol-purple), var(--sol-cyan));
}

.ca-strip {
  max-width: 1000px;
  margin: 1px auto 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-top: none;
  background: var(--bg-elevated);
}

.ca-strip-label {
  font-family: var(--font-title);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sol-cyan);
}

.ca-strip code {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  color: var(--ink-muted);
  word-break: break-all;
}

.ca-copy-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
}

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

.btn-primary {
  background: linear-gradient(120deg, var(--sol-purple), #6c2bd9 40%, var(--sol-cyan));
  color: #fff;
  box-shadow: var(--glow), 0 0 30px rgba(153, 69, 255, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.12);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(20, 241, 149, 0.45);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--sol-cyan);
  box-shadow: 0 0 24px rgba(20, 241, 149, 0.2);
}

.hero-ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.ticker-track {
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  animation: ticker 28s linear infinite;
  width: max-content;
}

.ticker-track span:nth-child(odd) {
  color: var(--sol-cyan);
}

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

.scroll-hint {
  position: absolute;
  right: 1.5rem;
  bottom: 2.5rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--sol-cyan), transparent);
  animation: pulse-line 2s ease-in-out infinite;
}

@keyframes pulse-line {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.85);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

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

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

/* ——— Lore ——— */
.lore {
  position: relative;
  padding: 6rem 1.5rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(153, 69, 255, 0.12), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(20, 241, 149, 0.08), transparent 45%),
    var(--bg);
}

.section-ornament {
  position: absolute;
  inset: 2rem 0;
  pointer-events: none;
  opacity: 0.15;
}

.column {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(242, 239, 230, 0.35) 15%,
    rgba(242, 239, 230, 0.35) 85%,
    transparent
  );
}

.column::before,
.column::after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  height: 14px;
  background: rgba(242, 239, 230, 0.4);
}

.column::before {
  top: 8%;
}

.column::after {
  bottom: 8%;
}

.column.left {
  left: 4%;
}

.column.right {
  right: 4%;
}

.lore-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.lore-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.lore-portrait {
  width: min(100%, 380px);
  border-radius: 2px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 50px rgba(153, 69, 255, 0.35));
  animation: float 5.5s ease-in-out infinite;
}

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

.lore-ring {
  position: absolute;
  width: min(92%, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(20, 241, 149, 0.35);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 24s linear infinite;
  box-shadow: inset 0 0 40px rgba(153, 69, 255, 0.12), 0 0 40px rgba(20, 241, 149, 0.1);
}

.lore-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(153, 69, 255, 0.35);
  border-radius: 50%;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.section-kicker {
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sol-purple);
  margin-bottom: 0.75rem;
}

.section-kicker.center,
.section-title.center,
.section-body.center {
  text-align: center;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-body {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 52ch;
  margin-bottom: 1.75rem;
}

.section-body strong {
  color: var(--sol-cyan);
  font-weight: 700;
}

.lore-traits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.lore-traits li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trait-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  position: relative;
  border: 1px solid var(--line);
  background: rgba(153, 69, 255, 0.08);
}

.trait-icon::before,
.trait-icon::after {
  content: "";
  position: absolute;
  background: var(--sol-cyan);
  box-shadow: 0 0 8px rgba(20, 241, 149, 0.45);
}

.trait-icon::before {
  width: 2px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.trait-icon::after {
  width: 14px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.trait-icon.sol::before {
  width: 12px;
  height: 3px;
  transform: translate(-50%, -50%) skewX(-24deg);
  border-radius: 1px;
}

.trait-icon.sol::after {
  width: 12px;
  height: 3px;
  top: calc(50% + 6px);
  transform: translate(-50%, -50%) skewX(-24deg);
  box-shadow: 0 -6px 0 var(--sol-cyan), 0 0 8px rgba(20, 241, 149, 0.45);
}

.trait-icon.pillar::before {
  width: 10px;
  height: 14px;
  transform: translate(-50%, -50%);
  background: transparent;
  border: 2px solid var(--sol-cyan);
  border-bottom-width: 3px;
  box-shadow: none;
}

.trait-icon.pillar::after {
  width: 14px;
  height: 2px;
  top: calc(50% - 8px);
  transform: translate(-50%, -50%);
}

.lore-traits strong {
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.2rem;
}

.lore-traits p {
  color: var(--ink-muted);
  font-size: 1rem;
}

/* ——— Empire banner ——— */
.empire {
  padding: 0 0 5rem;
}

.empire-banner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
}

.empire-banner img {
  width: 100%;
  height: clamp(280px, 48vw, 520px);
  object-fit: cover;
  object-position: center 35%;
}

.empire-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 3rem 1.5rem 1.75rem;
  background: linear-gradient(transparent, rgba(7, 8, 12, 0.95));
}

.empire-caption h2 {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 0.4rem;
}

.empire-caption p {
  color: var(--ink-muted);
  font-size: 1.1rem;
  max-width: 40ch;
}

/* ——— March / steps ——— */
.march {
  padding: 2rem 1.5rem 5rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 209, 255, 0.08), transparent 55%),
    var(--bg);
}

.march-lead {
  margin-left: auto;
  margin-right: auto;
}

.steps {
  list-style: none;
  max-width: 1000px;
  margin: 2.5rem auto 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: none;
}

.step {
  padding: 1.75rem 1.25rem;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--sol-purple), var(--sol-cyan)) 1;
  background: linear-gradient(180deg, rgba(26, 29, 40, 0.65), transparent);
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--sol-cyan);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 20px rgba(20, 241, 149, 0.4);
}

.step h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.step p {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.step strong {
  color: var(--ink);
}

.march-cta {
  display: flex;
  justify-content: center;
}

/* ——— Signals ——— */
.signals {
  padding: 0 1.5rem 5rem;
}

.signals-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.signal {
  background: var(--bg-elevated);
  padding: 1.5rem 1rem;
  text-align: center;
}

.signal-label {
  display: block;
  font-family: var(--font-title);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.signal-value {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--sol-cyan), var(--sol-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ——— Footer ——— */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.5rem 3rem;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
  background:
    linear-gradient(0deg, rgba(153, 69, 255, 0.06), transparent 40%),
    var(--bg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand img {
  border-radius: 50%;
  border: 1px solid rgba(20, 241, 149, 0.4);
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.footer-brand span {
  color: var(--ink-muted);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.social {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  transition: color 0.2s;
}

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

.social:hover {
  color: var(--sol-cyan);
}

.footer-note {
  font-size: 0.85rem;
  color: rgba(168, 164, 154, 0.7);
  max-width: 42ch;
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .lore-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .lore-visual {
    order: -1;
  }

  .lore-portrait {
    width: min(100%, 280px);
  }

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

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

  .column {
    display: none;
  }

  .scroll-hint {
    display: none;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1.25rem;
    background: rgba(7, 8, 12, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

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

  .nav-links a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
  }

  .hero {
    align-items: flex-end;
    padding-bottom: 2rem;
  }

  .hero-img {
    object-position: 65% center;
  }
}
