/* Copyright (c) 2026 Prometheus Platform LLC. All Rights Reserved. */

:root {
  --bg: #0b0a09;
  --text: #ece7e0;
  --muted: #a9a199;
  --fire-1: #ffa14d;
  --fire-2: #ff5c2e;
  --line: rgba(255, 255, 255, 0.09);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ember glow: a fixed radial wash rising from the bottom of the viewport. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 42% at 50% 112%, rgba(255, 92, 46, 0.16), transparent 65%),
    radial-gradient(38% 30% at 50% 108%, rgba(255, 161, 77, 0.10), transparent 60%);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  body::before {
    animation: ember 9s ease-in-out infinite alternate;
  }
  @keyframes ember {
    from { opacity: 0.75; }
    to   { opacity: 1; }
  }
}

.top,
main,
.foot {
  max-width: 66rem;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.75rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

/* Peak Seal, sized in rem so it tracks the wordmark rather than the viewport. */
.seal {
  flex: none;
  width: 1.875rem;
  height: 1.875rem;
}

/* Hero */
.hero {
  padding-block: clamp(5rem, 14vh, 9rem) clamp(4rem, 10vh, 7rem);
}

.eyebrow {
  color: var(--fire-1);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* Eyebrow variant carrying a short fire rule, used to open a section. */
.rule::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 2px;
  margin-right: 0.9rem;
  vertical-align: middle;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--fire-1), var(--fire-2));
}

.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.022em;
  max-width: 17ch;
  text-wrap: balance;
}

.fire {
  background: linear-gradient(100deg, var(--fire-1), var(--fire-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  margin-top: 2rem;
  letter-spacing: 0.01em;
}

/* Origin: the myth the name comes from, carried by the mark at scale. */
.origin {
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(4.5rem, 11vh, 7rem);
  border-top: 1px solid var(--line);
}

/* Warm halo behind the mark. Painted as this box's own background rather than
   an overflowing pseudo-element: a negative-inset box widens the document and
   clips the page at narrow widths, since overflow-x on body alone won't hold it. */
.origin-art {
  display: flex;
  justify-content: center;
  padding: 2rem;
  background: radial-gradient(circle at 50% 50%, rgba(255, 92, 46, 0.22), transparent 66%);
}

.origin-art img {
  width: 100%;
  max-width: 13rem;
  height: auto;
}

.origin-copy h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
  max-width: 20ch;
  text-wrap: balance;
}

.origin-copy p {
  color: var(--muted);
  margin-top: 1.15rem;
  max-width: 48ch;
}

/* Capability grid */
.capabilities {
  padding-block: clamp(4rem, 10vh, 6.5rem);
  border-top: 1px solid var(--line);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: clamp(2.25rem, 4.5vw, 3.25rem);
  text-wrap: balance;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.tease {
  padding: 1.75rem 1.6rem 1.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
}

.tease:hover { border-color: rgba(255, 161, 77, 0.34); }

.tease h3 {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.tease p {
  color: var(--muted);
  font-size: 0.9688rem;
  line-height: 1.55;
}

/* Icon chip: a fire-tinted tile holding a stroked glyph. */
.ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.15rem;
  border: 1px solid rgba(255, 161, 77, 0.24);
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(255, 161, 77, 0.17), rgba(255, 92, 46, 0.05));
  color: var(--fire-1);
}

.ico svg {
  width: 1.375rem;
  height: 1.375rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: no-preference) {
  .tease { transition: border-color 0.25s ease, transform 0.25s ease; }
  .tease:hover { transform: translateY(-2px); }
}

@media (max-width: 62rem) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 44rem) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .origin { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .origin-art img { max-width: 10rem; }
}

/* Closer */
.closer {
  position: relative;
  padding-block: clamp(5rem, 12vh, 8rem);
  border-top: 1px solid var(--line);
  text-align: center;
}

.closer h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

/* Buttons and the invitation chip */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 999px;
  padding: 0.7em 1.7em;
  letter-spacing: 0.01em;
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.25); }

.btn-fire {
  color: #1a0c05;
  background: linear-gradient(100deg, var(--fire-1), var(--fire-2));
}

.btn-fire:hover { filter: brightness(1.08); }

.chip {
  color: var(--muted);
  font-size: 0.9375rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7em 1.4em;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 2rem 2.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* 404 */
.notfound {
  padding-block: clamp(6rem, 20vh, 12rem);
}

.notfound h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.notfound p {
  color: var(--muted);
  margin-top: 1rem;
}

.notfound a {
  color: var(--fire-1);
  text-decoration: none;
}

.notfound a:hover { text-decoration: underline; }
