/* ===========================================================================
   landing.css — marketing landing page ONLY.
   Scoped styles. The dashboard (main.css) and chat surfaces (chat.css) are
   intentionally not loaded on this page; the landing page must paint with
   the fastest possible first paint (pure HTML+CSS, no JS).

   Visual direction: bold dark (Option C, 2026-08-03 brainstorming session).
   Reference mockup: .superpowers/brainstorm/1424296-1785735655/content/style-directions.html
   =========================================================================== */

:root {
  --lw-bg:        #0a0a0b;
  --lw-fg:        #f5f5f5;
  --lw-muted:     #a1a1a6;
  --lw-faint:     #6a6a6f;
  --lw-accent:    #c6ff3a;
  --lw-card:      #131316;
  --lw-border:    #1d1d20;
  --lw-sans:      -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --lw-mono:      ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --lw-maxw:      1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--lw-bg);
  color: var(--lw-fg);
  font-family: var(--lw-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a { color: var(--lw-fg); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--lw-accent); outline-offset: 3px; }

::selection { background: var(--lw-accent); color: var(--lw-bg); }

/* --- Layout shell --------------------------------------------------------- */

.lw-wrap { max-width: var(--lw-maxw); margin: 0 auto; padding: 0 32px; }

/* --- Top bar -------------------------------------------------------------- */

.lw-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--lw-border);
}
.lw-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.lw-brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lw-fg);
}
.lw-brand .dot { color: var(--lw-accent); }
.lw-topbar-actions { display: flex; align-items: center; gap: 18px; }
.lw-topbar-signin {
  font-size: 13px;
  color: var(--lw-fg-muted, rgba(255, 255, 255, 0.55));
  text-decoration: none;
  transition: color 120ms ease;
}
.lw-topbar-signin:hover { color: var(--lw-accent); }
.lw-topbar-cta-form { margin: 0; }
.lw-topbar-cta {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lw-fg);
  background: transparent;
  padding: 8px 14px;
  border: 1px solid var(--lw-border);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease;
}
.lw-topbar-cta:hover { border-color: var(--lw-accent); color: var(--lw-accent); }

/* --- Hero ----------------------------------------------------------------- */

.lw-hero {
  padding: 120px 0 96px;
  position: relative;
}

/* Subtle background grid + radial accent — atmosphere, not flat black. */
.lw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  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: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 100%);
  pointer-events: none;
}
.lw-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -180px;
  width: 720px;
  height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(198, 255, 58, 0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.lw-hero > * { position: relative; z-index: 1; }

.lw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lw-muted);
  margin-bottom: 28px;
  padding: 6px 12px;
  border: 1px solid var(--lw-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.012);
}
.lw-eyebrow .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lw-accent);
  box-shadow: 0 0 0 0 rgba(198, 255, 58, 0.55);
  animation: lw-pulse 2.4s ease-out infinite;
}
@keyframes lw-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(198, 255, 58, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(198, 255, 58, 0); }
  100% { box-shadow: 0 0 0 0   rgba(198, 255, 58, 0); }
}

.lw-hero h1 {
  font-size: 60px;
  line-height: 1.0;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 32px;
  max-width: 16ch;
}
.lw-hero h1 .strike {
  position: relative;
  color: var(--lw-faint);
  text-decoration: line-through;
  text-decoration-thickness: 4px;
  text-decoration-color: var(--lw-accent);
}
.lw-hero h1 .accent { color: var(--lw-accent); }

.lw-subhead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--lw-muted);
  max-width: 50ch;
  margin: 0 0 44px;
}

.lw-cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.lw-cta-form {
  margin: 0;
  display: inline-block;
}
.lw-cta {
  display: inline-block;
  padding: 16px 28px;
  background: var(--lw-accent);
  color: var(--lw-bg);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
  box-shadow: 0 0 0 0 rgba(198, 255, 58, 0.45);
}
.lw-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px -8px rgba(198, 255, 58, 0.55);
}
.lw-cta-secondary {
  font-size: 14px;
  color: var(--lw-muted);
  transition: color 120ms ease;
}
.lw-cta-secondary:hover { color: var(--lw-accent); }
.lw-cta-secondary .arrow { display: inline-block; transition: transform 160ms ease; }
.lw-cta-secondary:hover .arrow { transform: translateX(3px); }

/* --- Section primitives --------------------------------------------------- */

.lw-section { padding: 88px 0; border-top: 1px solid var(--lw-border); }
.lw-section-head { margin-bottom: 56px; max-width: 720px; }
.lw-section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lw-accent);
  margin: 0 0 16px;
}
.lw-section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  color: var(--lw-fg);
}

/* --- How it works --------------------------------------------------------- */

.lw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.lw-step {
  padding-top: 28px;
  border-top: 1px solid var(--lw-border);
  position: relative;
}
.lw-step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 56px; height: 2px;
  background: var(--lw-accent);
}
.lw-step .num {
  font-family: var(--lw-mono);
  font-size: 13px;
  color: var(--lw-accent);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  display: block;
}
.lw-step h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--lw-fg);
}
.lw-step p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--lw-muted);
  margin: 0;
}

/* --- Features grid -------------------------------------------------------- */

.lw-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.lw-feature {
  padding: 24px;
  background: var(--lw-card);
  border: 1px solid var(--lw-border);
  border-radius: 8px;
  transition: border-color 160ms ease, transform 160ms ease;
  display: flex;
  flex-direction: column;
}
.lw-feature:hover {
  border-color: #2a2a30;
  transform: translateY(-2px);
}
.lw-feature .ico {
  font-family: var(--lw-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--lw-accent);
  margin-bottom: 18px;
  line-height: 1;
}
.lw-feature h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 8px;
  color: var(--lw-fg);
}
.lw-feature p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--lw-muted);
  margin: 0;
}

/* --- For senders / For creators ------------------------------------------- */

.lw-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--lw-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--lw-card);
}
.lw-col {
  padding: 40px;
  position: relative;
}
.lw-col + .lw-col { border-left: 1px solid var(--lw-border); }
.lw-col::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 56px;
  background: var(--lw-accent);
}
.lw-col-label {
  font-family: var(--lw-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lw-accent);
  margin: 0 0 12px;
}
.lw-col-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--lw-fg);
}
.lw-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.lw-col li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.lw-col li .glyph {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid var(--lw-border);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--lw-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--lw-accent);
  background: rgba(198, 255, 58, 0.04);
  margin-top: 2px;
}
.lw-col li .body { font-size: 14px; line-height: 1.55; color: var(--lw-muted); }
.lw-col li .body strong { color: var(--lw-fg); font-weight: 600; }

/* --- Closing CTA ---------------------------------------------------------- */

.lw-closing {
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--lw-border);
  position: relative;
  overflow: hidden;
}
.lw-closing::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 900px; height: 480px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(198, 255, 58, 0.06) 0%, transparent 65%);
  pointer-events: none;
}
.lw-closing > * { position: relative; }
.lw-closing h2 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 auto 36px;
  max-width: 14ch;
}
.lw-closing h2 .accent { color: var(--lw-accent); }
.lw-closing .lw-cta { padding: 18px 36px; font-size: 14px; }
.lw-closing .lw-cta-secondary { margin-top: 18px; display: inline-block; }

/* --- Footer --------------------------------------------------------------- */

.lw-footer {
  padding: 36px 0;
  border-top: 1px solid var(--lw-border);
}
.lw-footer p {
  margin: 0;
  font-size: 13px;
  color: var(--lw-faint);
  letter-spacing: 0.01em;
}
.lw-footer p .accent { color: var(--lw-muted); }

/* --- Entrance animations (CSS-only, staggered on load) -------------------- */

@keyframes lw-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lw-hero .lw-eyebrow { animation: lw-rise 480ms ease 60ms both; }
.lw-hero h1          { animation: lw-rise 560ms ease 120ms both; }
.lw-hero .lw-subhead { animation: lw-rise 560ms ease 200ms both; }
.lw-hero .lw-cta-row { animation: lw-rise 560ms ease 280ms both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0ms !important;
  }
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 880px) {
  .lw-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .lw-wrap { padding: 0 20px; }
  .lw-hero { padding: 72px 0 56px; }
  .lw-hero h1 { font-size: 38px; max-width: 100%; }
  .lw-subhead { font-size: 16px; margin-bottom: 36px; }
  .lw-steps { grid-template-columns: 1fr; gap: 28px; }
  .lw-split { grid-template-columns: 1fr; }
  .lw-col + .lw-col { border-left: none; border-top: 1px solid var(--lw-border); }
  .lw-col { padding: 32px 28px; }
  .lw-closing h2 { font-size: 32px; }
  .lw-closing { padding: 80px 0; }
  .lw-section { padding: 64px 0; }
  .lw-section-title { font-size: 26px; }
}

@media (max-width: 480px) {
  .lw-features { grid-template-columns: 1fr; }
  .lw-topbar-cta { display: none; }
  .lw-hero h1 { font-size: 34px; }
}
