:root {
  --bg: #090909;
  --bg-soft: #141012;
  --panel: rgba(22, 16, 18, 0.84);
  --panel-strong: rgba(34, 22, 25, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4ede6;
  --muted: #b8aca3;
  --accent: #b31824;
  --accent-soft: #dd5960;
  --shadow: rgba(163, 15, 28, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at bottom, rgba(255, 101, 21, 0.18), transparent 26%),
    radial-gradient(circle at top, rgba(179, 24, 36, 0.15), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08), transparent 20%),
    linear-gradient(180deg, #050505 0%, #12090c 50%, #070707 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px;
  mix-blend-mode: screen;
}

.page-shell {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.flame-layer {
  position: fixed;
  inset: auto 0 0;
  height: 34vh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  opacity: 0.95;
}

.flame {
  position: absolute;
  bottom: -8vh;
  border-radius: 48% 52% 38% 62%;
  background:
    radial-gradient(circle at 50% 72%, rgba(255, 244, 210, 0.95) 0 14%, rgba(255, 188, 64, 0.9) 18%, rgba(255, 106, 24, 0.85) 48%, rgba(173, 22, 14, 0.45) 72%, transparent 100%);
  filter: blur(2px) drop-shadow(0 0 20px rgba(255, 92, 22, 0.34));
  transform-origin: center bottom;
  animation: flicker 4.8s ease-in-out infinite;
}

.flame::after {
  content: "";
  position: absolute;
  inset: 18% 28% 12%;
  border-radius: 50% 50% 42% 58%;
  background: radial-gradient(circle at 50% 70%, rgba(255, 251, 235, 0.95), rgba(255, 196, 91, 0.78) 42%, transparent 76%);
  filter: blur(6px);
}

.flame-1 {
  left: -3%;
  width: 18vw;
  height: 30vh;
  animation-delay: 0s;
}

.flame-2 {
  left: 10%;
  width: 14vw;
  height: 24vh;
  animation-delay: -1.1s;
}

.flame-3 {
  left: 27%;
  width: 16vw;
  height: 28vh;
  animation-delay: -2.4s;
}

.flame-4 {
  right: 24%;
  width: 16vw;
  height: 26vh;
  animation-delay: -0.8s;
}

.flame-5 {
  right: 9%;
  width: 13vw;
  height: 23vh;
  animation-delay: -1.9s;
}

.flame-6 {
  right: -2%;
  width: 19vw;
  height: 31vh;
  animation-delay: -3.2s;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--panel);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 55px rgba(196, 63, 18, 0.14);
}

.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--shadow) 0%, transparent 70%);
  filter: blur(8px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 10% -120px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 99, 20, 0.24) 0%, rgba(178, 27, 18, 0.1) 42%, transparent 72%);
  filter: blur(24px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 48px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Cinzel", serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-logo {
  width: 52px;
  height: 52px;
  flex: none;
  filter: drop-shadow(0 0 18px rgba(179, 24, 36, 0.22));
}

.ghost-link,
.button {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.ghost-link {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 999px;
}

.ghost-link:hover,
.ghost-link:focus-visible,
.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(221, 89, 96, 0.45);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.7fr);
  gap: 28px;
  align-items: end;
}

.eyebrow,
.section-tag {
  margin: 0 0 12px;
  color: var(--accent-soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-weight: 800;
  line-height: 1.05;
}

h1 {
  max-width: 9ch;
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  text-wrap: balance;
}

h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.lead,
.feature p,
.ritual-list p,
.card-note {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  max-width: 58ch;
  margin: 20px 0 0;
  font-size: 1.05rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  color: var(--text);
  background: linear-gradient(135deg, #ff7f2a, var(--accent) 55%, #5d0811);
  box-shadow:
    0 12px 30px rgba(179, 24, 36, 0.26),
    0 0 24px rgba(255, 116, 42, 0.24);
}

.button.secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.hero-card,
.panel,
.ritual-list article,
.feature {
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-card {
  position: relative;
  padding: 24px;
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(221, 89, 96, 0.14);
  border-radius: 18px;
  pointer-events: none;
}

.card-title {
  margin: 0 0 14px;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
}

blockquote {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 1.45rem;
  line-height: 1.45;
}

main {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.panel {
  padding: 28px;
  border-radius: 28px;
}

.panel-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.feature-grid,
.ritual-list {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature,
.ritual-list article {
  padding: 22px;
  border-radius: 22px;
}

.ritual-panel {
  background:
    radial-gradient(circle at top center, rgba(255, 122, 33, 0.08), transparent 22%),
    radial-gradient(circle at bottom left, rgba(179, 24, 36, 0.14), transparent 28%),
    var(--panel-strong);
}

.ritual-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ritual-list span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent-soft);
  font-family: "Cinzel", serif;
  font-size: 1.5rem;
}

@keyframes flicker {
  0% {
    transform: translateY(0) scale(0.96, 1);
    opacity: 0.82;
  }

  25% {
    transform: translateY(-10px) scale(1.02, 1.08) rotate(-2deg);
    opacity: 1;
  }

  50% {
    transform: translateY(-4px) scale(0.98, 0.94) rotate(2deg);
    opacity: 0.88;
  }

  75% {
    transform: translateY(-14px) scale(1.04, 1.12) rotate(-1deg);
    opacity: 0.96;
  }

  100% {
    transform: translateY(0) scale(0.96, 1);
    opacity: 0.84;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .ritual-list {
    grid-template-columns: 1fr;
  }

  h1,
  h2 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 10px;
  }

  .flame-layer {
    height: 26vh;
  }

  .flame {
    width: 28vw;
  }

  .hero,
  .panel {
    padding: 18px;
    border-radius: 22px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 28px;
  }

  blockquote {
    font-size: 1.2rem;
  }

  .button,
  .ghost-link {
    width: 100%;
  }
}
