/* ==========================================================================
   Lummenna public site — brand tokens from docs/App_Icon_Design_Specification.md
   Light matte palette, softened deep-space background, muted accents, and
   reduced contrast. Glass surfaces and shader-lit hero re-themed to Lummenna.
   No external fonts, no external requests.
   ========================================================================== */

:root {
  --bg: #121721;
  --bg-raise: #151b27;
  --card: #1a2232;
  --border: #283242;
  --text: #d1d5db;
  --muted: #8896a8;
  --dim: #7d8799;
  --emerald: #34d399;
  --emerald-deep: #064e3b;
  --emerald-soft: #2ebd88;
  --blue: #5b9cf5;
  --amber: #fbbf24;
  --amber-soft: #eab308;
  --red: #f87171;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-display: "Space Grotesk", "Inter", "Sora", var(--font);
  --glass: rgba(26, 34, 50, 0.48);
  --glass-strong: rgba(26, 34, 50, 0.72);
  --radius: 16px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Faint memory-palace floor plan behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(40, 50, 66, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 50, 66, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 82%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background: var(--bg);
}

a { color: var(--emerald); text-decoration: none; }
a:hover { text-decoration: underline; }
/* WCAG 1.4.1: emerald links sit at 1.9:1 against body copy, well under the
   3:1 needed to carry meaning by colour alone, so links inside running text
   are underlined. Nav, footer and button links are excluded: they read as
   discrete controls, not as words inside a sentence. */
p a:not(.btn), .faq-body a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
img { max-width: 100%; display: block; }
code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
}
code { background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 0.1em 0.4em; }
pre {
  background: var(--bg-raise);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  line-height: 1.5;
}
pre code { background: none; border: none; padding: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(18, 23, 33, 0.65);
  border-bottom: 1px solid rgba(40, 50, 66, 0.55);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); }
.nav-brand:hover { text-decoration: none; }
.nav-brand svg { flex: none; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1.02rem;
}
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; }
.nav-links a:not(.btn) { color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 2px;
  background: var(--emerald);
  border-radius: 2px;
}
.nav-cta { margin-left: 0.25rem; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-block;
  border-radius: 10px;
  padding: 0.7rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--emerald);
  color: #052e20;
  box-shadow: 0 6px 18px -8px rgba(52, 211, 153, 0.35);
}
.btn-primary:hover { background: #3edba3; }
.btn-ghost {
  background: rgba(26, 34, 50, 0.5);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--dim); }
.btn-amber {
  background: var(--amber);
  color: #2d1a04;
  box-shadow: 0 6px 18px -8px rgba(251, 191, 36, 0.3);
}
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; border-radius: 8px; }
.btn-block { display: block; text-align: center; width: 100%; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero .wrap {
  margin-left: 0;
  margin-right: auto;
  padding-left: 4rem;
}
#core-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
  padding: 6rem 0 6rem 0.5rem;
  background: radial-gradient(ellipse 120% 80% at 0% 50%, rgba(18, 23, 33, 0.78) 0%, rgba(18, 23, 33, 0.3) 55%, transparent 100%);
}
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--emerald);
  margin: 0 0 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
  font-weight: 700;
}
.hero h1 .glow {
  color: var(--emerald);
}
.hero p.lede { color: var(--muted); font-size: 1.05rem; margin: 0 0 2rem; max-width: 48ch; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
.hero-note { color: var(--dim); font-size: 0.8rem; margin-top: 1.1rem; }

/* ----------------------------------------------------------- glass cards */
.card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(40, 50, 66, 0.7);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow:
    inset 0 1px 0 rgba(209, 213, 219, 0.04),
    0 16px 32px -20px rgba(0, 0, 0, 0.5);
}
.card h2, .card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}
.card p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* --------------------------------------------------------------- sections */
section { padding: 5rem 0; }
.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber);
  margin: 0 0 0.7rem;
}
.title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.12;
  margin: 0 0 0.9rem;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.icon-chip {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.22);
}
.icon-chip.amber { background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.24); }
.icon-chip.blue { background: rgba(91, 156, 245, 0.08); border-color: rgba(91, 156, 245, 0.24); }

/* steps */
.step-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--emerald);
  margin-bottom: 0.6rem;
}

/* integrations strip */
.logo-strip { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill {
  border: 1px solid var(--border);
  background: rgba(26, 34, 50, 0.45);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 500;
}
.pill strong { color: var(--text); font-weight: 600; }

/* comparison table */
.table-card { padding: 0; overflow: hidden; }
.cmp { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.cmp th, .cmp td { text-align: left; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--border); }
.cmp thead th {
  color: var(--muted);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  background: rgba(18, 23, 33, 0.5);
}
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp .yes { color: var(--emerald); font-weight: 600; }
.cmp .no { color: var(--dim); }

/* ---------------------------------------------------------------- pricing */
.price-grid { align-items: stretch; }
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card.featured {
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(209, 213, 219, 0.04),
    0 0 0 1px rgba(52, 211, 153, 0.2),
    0 20px 40px -20px rgba(52, 211, 153, 0.22);
}
.tier-flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--emerald);
  color: #06281d;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
}
.tier-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.4rem;
}
.tier-price { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; margin: 0; }
.tier-price small { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.tier-desc { color: var(--muted); font-size: 0.88rem; margin: 0.5rem 0 1.1rem; }
.tier-list { list-style: none; margin: 0 0 1.5rem; padding: 0; flex: 1; }
.tier-list li {
  padding: 0.42rem 0 0.42rem 1.55rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text);
}
.tier-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background:
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"%3E%3Cpath d="M3 7.4 L6 10.2 L11 4" stroke="%2310b981" stroke-width="1.8" fill="none" stroke-linecap="round"/%3E%3C/svg%3E')
    center / contain no-repeat;
}
.tier-list li.dim { color: var(--dim); }
.tier-list li.dim::before {
  background:
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"%3E%3Cpath d="M3.5 7 H10.5" stroke="%236b7280" stroke-width="1.8" stroke-linecap="round"/%3E%3C/svg%3E')
    center / contain no-repeat;
}

/* FAQ */
details.faq {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--glass);
  padding: 0;
  margin-bottom: 0.7rem;
}
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--emerald); font-weight: 700; }
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 1.25rem 1.1rem; color: var(--muted); font-size: 0.92rem; }

/* screenshot frame */
.shot {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 56px -24px rgba(0, 0, 0, 0.55);
}
.shot img { width: 100%; }

/* callout band */
.band {
  background: var(--bg-raise);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.band .hero-actions { justify-content: center; }

/* ---------------------------------------------------------------- footer */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 3.5rem;
  color: var(--dim);
  font-size: 0.85rem;
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.foot-grid h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 0.8rem;
}
.foot-grid a { display: block; color: var(--dim); padding: 0.22rem 0; font-size: 0.88rem; }
.foot-grid a:hover { color: var(--text); text-decoration: none; }
.foot-brand p { max-width: 34ch; margin: 0.8rem 0 0; }

/* docs layout */
.doc-section h2, .doc-section h3 {
  font-family: var(--font-display);
  margin: 2.2rem 0 0.7rem;
  font-size: 1.15rem;
}
.doc-section p { color: var(--muted); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero .wrap { padding-left: 2rem; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .grid-5 { grid-template-columns: 1fr; }
  .nav-links { gap: 0.9rem; }
  .nav-links a:not(.btn) { font-size: 0.84rem; }
  .hero { min-height: 86vh; }
  .hero .wrap { padding-left: 1.5rem; }
  .hero-content {
    padding: 4.5rem 0;
    background: radial-gradient(ellipse 100% 85% at 50% 50%, rgba(18, 23, 33, 0.84) 0%, rgba(18, 23, 33, 0.45) 70%, transparent 100%);
  }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
