/* ============================================================================
   Wallie — FIRE explainer (getwallie.app/fire)
   Dark ember-lit theme extracted from chat-landing FIRE mode — no chat-demo CSS.
   ========================================================================== */

:root {
  --bg: #100C08;
  --panel: rgba(31, 24, 18, 0.82);
  --panel-2: #271E16;
  --ink: #F7EFE2;
  --mid: rgba(247, 239, 226, 0.62);
  --faint: rgba(247, 239, 226, 0.38);
  --accent: #FF7A4D;
  --accent-deep: #FF8C5E;
  --accent-soft: #FFB088;
  --mark: #FF7A4D;
  --rule: rgba(247, 239, 226, 0.14);
  --rule-soft: rgba(247, 239, 226, 0.08);
  --pos: #8FD0A8;
  --blob-1: rgba(255, 122, 77, 0.40);
  --blob-2: rgba(245, 160, 70, 0.30);
  --blob-3: rgba(201, 83, 46, 0.34);
  --panel-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);

  --f-display: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --f-sans: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Animated background ─────────────────────────────────────── */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.9;
  will-change: transform;
}
.blob.b1 {
  width: 560px;
  height: 560px;
  background: var(--blob-1);
  top: -160px;
  left: -120px;
  animation: drift1 24s ease-in-out infinite alternate;
}
.blob.b2 {
  width: 520px;
  height: 520px;
  background: var(--blob-2);
  bottom: -180px;
  right: -120px;
  animation: drift2 28s ease-in-out infinite alternate;
}
.blob.b3 {
  width: 460px;
  height: 460px;
  background: var(--blob-3);
  top: 30%;
  left: 45%;
  animation: drift3 32s ease-in-out infinite alternate;
}
@keyframes drift1 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(120px, 80px) scale(1.18); }
}
@keyframes drift2 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-100px, -70px) scale(1.12); }
}
@keyframes drift3 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-90px, 60px) scale(1.2); }
}
.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(255, 122, 77, 0.18), transparent 60%);
}

.embers { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.ember {
  position: absolute;
  bottom: -12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 8px 1px rgba(255, 122, 77, 0.7);
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 0.9; }
  100% { transform: translateY(-104vh) translateX(var(--drift, 20px)); opacity: 0; }
}

/* ── Shell ───────────────────────────────────────────────────── */
.shell { position: relative; z-index: 2; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 21px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand .mk { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; }
.bar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.back-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mid);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  transition: color 0.15s, border-color 0.15s;
}
.back-link:hover { color: var(--ink); border-color: var(--accent); }
.login-btn {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--mid);
  text-decoration: none;
  padding: 10px 18px;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s, transform .15s;
}
.login-btn:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.req {
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #FF7A4D, #C9532E);
  color: #140d08;
  transition: transform 0.15s;
}
.req:hover { transform: translateY(-1px); }

/* ── Content ─────────────────────────────────────────────────── */
.content { flex: 1; padding: 0 24px 56px; max-width: 920px; margin: 0 auto; width: 100%; }

.hero { text-align: center; padding: 24px 0 48px; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow .d {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}
.hero h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 18px 0 0;
}
.hero h1 em { font-style: italic; color: var(--accent-deep); }
.hero .lede {
  font-size: 17px;
  color: var(--mid);
  margin: 18px auto 0;
  max-width: 540px;
  line-height: 1.55;
}
.hero .disclaimer {
  font-size: 13px;
  color: var(--faint);
  margin: 16px auto 0;
  max-width: 520px;
  line-height: 1.5;
}

.section { margin-top: 48px; }
.section-head {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 14px;
}
.section h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(26px, 3.5vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 12px;
}
.section h2 em { font-style: italic; color: var(--accent-deep); }
.section > p {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.55;
  margin: 0 0 20px;
  max-width: 640px;
}

/* Formula card */
.formula-card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
}
.formula-card .lab {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
}
.formula-eq {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin-top: 16px;
  font-family: var(--f-display);
  font-size: clamp(22px, 4vw, 32px);
  letter-spacing: -0.03em;
}
.formula-eq .op { color: var(--faint); font-size: 0.85em; }
.formula-eq .hl { color: var(--accent-deep); font-style: italic; }
.formula-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--mid);
  line-height: 1.5;
}

/* Style grid */
.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.style-card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 18px 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.15s;
}
.style-card:hover { border-color: rgba(255, 122, 77, 0.35); }
.style-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.style-card p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--mid);
  line-height: 1.45;
}

/* Feature callouts */
.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.feature-link {
  display: block;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 18px 20px;
  transition: border-color 0.15s, transform 0.15s;
}
.feature-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.feature-link .ix {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.feature-link h3 {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 600;
}
.feature-link p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--mid);
  line-height: 1.4;
}
.feature-link .arr {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-deep);
}

/* CTA block */
.cta-block {
  text-align: center;
  margin-top: 56px;
  padding: 40px 24px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 24px;
  backdrop-filter: blur(20px);
}
.cta-block h2 {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  margin: 0;
}
.cta-block h2 em { font-style: italic; color: var(--accent-deep); }
.cta-block p {
  margin: 14px auto 0;
  max-width: 400px;
  font-size: 15px;
  color: var(--mid);
  line-height: 1.5;
}
.cta-block .req { margin-top: 22px; }

.footer {
  padding: 32px 24px 40px;
  text-align: center;
  font-size: 12.5px;
  color: var(--faint);
}
.footer a {
  color: var(--mid);
  border-bottom: 1px solid var(--rule);
}
.footer a:hover { color: var(--ink); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

@media (max-width: 560px) {
  .bar { padding: 16px 18px; }
  .content { padding: 0 16px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .ember, .eyebrow .d { animation: none; }
  .embers { display: none; }
}

/* ── Request access modal (shared with landing) ── */
.ra-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  animation: raFadeIn 0.2s ease;
}
@keyframes raFadeIn { from { opacity: 0; } to { opacity: 1; } }
.ra-modal {
  position: relative;
  background: var(--panel);
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--rule);
}
.ra-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--mid);
  cursor: pointer;
  line-height: 1;
}
.ra-title {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink);
}
.ra-sub {
  font-size: 14px;
  color: var(--mid);
  margin: 0 0 20px;
  line-height: 1.5;
}
.ra-form { display: flex; gap: 10px; }
.ra-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--rule);
  background: var(--bg);
  font-size: 15px;
  font-family: var(--f-sans);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
.ra-input:focus { border-color: var(--accent); }
.ra-submit {
  padding: 12px 22px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #140d08;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--f-sans);
  cursor: pointer;
  white-space: nowrap;
}
.ra-submit:hover { background: var(--accent-deep); }
.ra-submit:disabled { opacity: 0.6; cursor: default; }
.ra-msg { margin: 16px 0 0; font-size: 14px; line-height: 1.4; }
.ra-msg--ok { color: var(--pos); }
.ra-msg--err { color: var(--accent-deep); }

/* ── Cookie notice ── */
.cookie-notice {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 520px;
  margin: 0 auto;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--rule);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  font-size: 13px;
  color: var(--mid);
}
.cookie-notice p { margin: 0; flex: 1; line-height: 1.45; }
.cookie-notice a { color: var(--accent-deep); text-decoration: underline; }
.cookie-notice__ok {
  flex-shrink: 0;
  padding: 8px 14px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #140d08;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--f-sans);
  cursor: pointer;
}

@media (max-width: 500px) {
  .ra-modal { padding: 30px 24px; }
  .ra-form { flex-direction: column; }
}
