:root {
  color-scheme: dark;
  --bg: #070807;
  --surface: rgba(19, 22, 18, 0.68);
  --surface-border: rgba(197, 233, 156, 0.12);
  --text: #f3f4ef;
  --muted: #a7ad9f;
  --sage: #b8df8a;
  --sage-bright: #d2f7a5;
  --ember: #f17a36;
  --ember-soft: rgba(241, 122, 54, 0.24);
  --shadow: rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 20%, rgba(101, 133, 74, 0.12), transparent 32rem),
    radial-gradient(circle at 50% 110%, rgba(241, 122, 54, 0.10), transparent 30rem),
    linear-gradient(145deg, #050605 0%, #0b0d0a 50%, #060706 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
}

.page-shell {
  min-height: calc(100vh - 96px);
  display: grid;
  place-items: center;
  padding: 4rem 1.25rem 2rem;
}

.hero {
  position: relative;
  width: min(100%, 700px);
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 6vw, 4.5rem);
  text-align: center;
  background: linear-gradient(155deg, rgba(24, 28, 22, 0.76), rgba(11, 13, 10, 0.60));
  border: 1px solid var(--surface-border);
  border-radius: 28px;
  box-shadow:
    0 28px 80px var(--shadow),
    inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(18px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.025);
  border-radius: 20px;
}

.brand-mark {
  width: 82px;
  margin: 0 auto 1.75rem;
  filter: drop-shadow(0 0 26px rgba(184, 223, 138, 0.14));
}

.brand-mark svg {
  display: block;
  width: 100%;
}

.flame-outer {
  fill: var(--sage);
}

.flame-inner {
  fill: var(--bg);
}

.spark {
  fill: var(--sage-bright);
  opacity: 0.72;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--sage);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.8rem, 12vw, 7rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.motto {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  font-style: italic;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(240px, 60%);
  margin: 2.2rem auto;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(184, 223, 138, 0.32));
}

.divider::after {
  transform: scaleX(-1);
}

.divider span {
  width: 5px;
  height: 5px;
  border: 1px solid var(--sage);
  transform: rotate(45deg);
}

.intro {
  max-width: 520px;
  margin: 0 auto;
  color: #d4d8ce;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  line-height: 1.65;
  text-wrap: balance;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2rem;
  padding: 0.65rem 0.9rem;
  color: var(--sage-bright);
  background: rgba(184, 223, 138, 0.07);
  border: 1px solid rgba(184, 223, 138, 0.16);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 5px rgba(184, 223, 138, 0.08), 0 0 18px rgba(184, 223, 138, 0.55);
}

footer {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 1.5rem;
  color: #737a6f;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

footer p {
  margin: 0;
}

.domain {
  color: #959d8f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

.ember {
  position: absolute;
  bottom: -20px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 12px var(--ember), 0 0 22px var(--ember-soft);
  opacity: 0;
  animation: rise 9s linear infinite;
}

.ember-one { left: 15%; animation-delay: 0s; }
.ember-two { left: 34%; animation-delay: 4s; animation-duration: 12s; }
.ember-three { left: 58%; animation-delay: 1.5s; animation-duration: 10s; }
.ember-four { left: 76%; animation-delay: 6s; animation-duration: 13s; }
.ember-five { left: 89%; animation-delay: 2.5s; animation-duration: 11s; }

@keyframes rise {
  0% { transform: translate3d(0, 0, 0) scale(0.6); opacity: 0; }
  12% { opacity: 0.65; }
  75% { opacity: 0.25; }
  100% { transform: translate3d(28px, -108vh, 0) scale(1.2); opacity: 0; }
}

@media (max-width: 520px) {
  .page-shell {
    padding: 1rem;
  }

  .hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
    border-radius: 22px;
  }

  .brand-mark {
    width: 68px;
  }

  footer {
    min-height: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ember {
    animation: none;
    display: none;
  }
}
