/* Public marketing landing — brand-first, single composition hero
   Rebuilt to consume the same design tokens as the rest of the app
   (theme.css: --bg, --surface, --border-subtle, --text, --spot-gold, --radius,
   --s-*) instead of a parallel, hand-tuned palette — so the landing page
   stays in sync with the product instead of drifting from it. */

.landing {
  margin: 0;
  min-height: 100dvh;
  color: var(--text, #edeae4);
  background: var(--bg, #0a0a09);
  font-family: var(--sans, "Plus Jakarta Sans", system-ui, sans-serif);
  position: relative;
  overflow-x: hidden;
}

.landing-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 55% at 70% -10%, rgba(232, 192, 74, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 60%, rgba(94, 184, 168, 0.07), transparent 50%),
    var(--bg, #0a0a09);
  animation: landing-glow 14s ease-in-out infinite alternate;
}

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

@keyframes landing-glow {
  from { filter: saturate(1) brightness(1); }
  to { filter: saturate(1.12) brightness(1.04); }
}

.landing-header,
.landing main,
.landing-footer {
  position: relative;
  z-index: 1;
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4, 1rem);
  padding: calc(var(--safe-top, 0px) + 1.15rem) var(--page-pad, 1.5rem) 0.75rem;
  max-width: var(--page-max, 1120px);
  margin: 0 auto;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.landing-brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--spot-slate, #5eb8a8);
  transition: color 0.12s;
  flex: none;
}

.landing-brand:hover .landing-brand-mark {
  color: var(--spot-gold, #e8c04a);
}

.landing-brand-mark .ico {
  width: 1.9rem;
  height: 1.9rem;
}

.landing-brand-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-word-second { opacity: 0.85; }
.brand-word-mind { color: var(--spot-gold, #e8c04a); }

.landing-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem 1.1rem;
  font-size: 0.9rem;
}

.landing-nav a {
  color: var(--text-secondary, rgba(237, 234, 228, 0.72));
  text-decoration: none;
  white-space: nowrap;
}

.landing-nav a:hover {
  color: var(--text, #edeae4);
}

.landing-nav-cta {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(232, 192, 74, 0.45);
  color: var(--spot-gold, #e8c04a) !important;
  background: var(--spot-gold-soft, rgba(232, 192, 74, 0.1));
}

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

.landing-hero {
  padding: clamp(2.5rem, 6vh, 4rem) var(--page-pad, 1.5rem) 3rem;
  max-width: var(--page-max, 1120px);
  margin: 0 auto;
  animation: landing-rise 0.7s ease-out both;
}

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

@keyframes landing-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.landing-hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 960px) {
  .landing-hero-grid {
    grid-template-columns: 1.05fr 1fr;
  }
}

.landing-kicker {
  margin: 0 0 0.75rem;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--spot-gold, #e8c04a);
  font-weight: 600;
}

.landing-logo-hero {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(2.35rem, 4.4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--text, #edeae4);
}

.landing-hero-accent {
  font-style: italic;
  color: var(--spot-gold, #e8c04a);
}

.landing-tagline {
  margin: 1.1rem 0 0;
  max-width: 30rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.5;
  color: var(--text-secondary, #9c9890);
}

.landing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.landing-cta-end {
  margin-top: 1.5rem;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.landing-btn:hover {
  transform: translateY(-1px);
}

.landing-btn-primary {
  background: var(--spot-gold, #e8c04a);
  color: var(--bg, #0a0a09);
  border: 1px solid transparent;
}

.landing-btn-primary:hover {
  opacity: 0.92;
}

.landing-btn-ghost {
  background: transparent;
  color: var(--text, #edeae4);
  border: 1px solid var(--border, #2a2824);
}

.landing-btn-ghost:hover {
  border-color: rgba(232, 192, 74, 0.5);
  color: var(--spot-gold, #e8c04a);
}

/* ---------- Hero visual: capture -> note -> skill -> agent funnel ---------- */

.landing-visual {
  display: flex;
  justify-content: center;
}

.sm-frame {
  position: relative;
  width: min(100%, 460px);
  height: 580px;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--border-subtle, #1e1c1a);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--spot-gold, #e8c04a) 7%, transparent), transparent 45%),
    var(--surface, #161412);
  overflow: hidden;
}

.sm-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 50%, #000 55%, transparent 85%);
}

.sm-col {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 20px 24px;
}

/* capture zone: input chips converging on the brain.
   Chips and the SVG lines share one 0-100 percentage coordinate space
   so anchors always agree regardless of container size. Core sits at (50%, 62%). */
.sm-capture-zone {
  position: relative;
  width: 100%;
  height: 210px;
  flex: none;
}

.sm-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid var(--border, #2a2824);
  background: var(--bg-elevated, #10100e);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary, #9c9890);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.sm-chip svg { flex: none; }

.sm-chip-text   { top: 8%;  left: 15%; }
.sm-chip-images { top: 4%;  left: 50%; }
.sm-chip-links  { top: 8%;  left: 85%; }
.sm-chip-notes  { top: 46%; left: 9%; }
.sm-chip-docs   { top: 46%; left: 91%; }
.sm-chip-video  { top: 80%; left: 24%; }
.sm-chip-audio  { top: 80%; left: 76%; }

.sm-capture-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.sm-capture-lines path {
  fill: none;
  stroke: color-mix(in srgb, var(--spot-gold, #e8c04a) 22%, transparent);
  stroke-width: 0.25;
  vector-effect: non-scaling-stroke;
}

.sm-capture-lines .dot {
  fill: var(--spot-gold, #e8c04a);
  animation: sm-flow 3.4s linear infinite;
}

.sm-capture-lines .dp1 { offset-path: path("M 15 12 L 50 58"); animation-delay: 0s; }
.sm-capture-lines .dp2 { offset-path: path("M 50 8 L 50 58"); animation-delay: 0.5s; }
.sm-capture-lines .dp3 { offset-path: path("M 85 12 L 50 58"); animation-delay: 1s; }
.sm-capture-lines .dp4 { offset-path: path("M 9 44 L 50 58"); animation-delay: 1.5s; }
.sm-capture-lines .dp5 { offset-path: path("M 91 44 L 50 58"); animation-delay: 2s; }
.sm-capture-lines .dp6 { offset-path: path("M 24 74 L 50 58"); animation-delay: 2.5s; }
.sm-capture-lines .dp7 { offset-path: path("M 76 74 L 50 58"); animation-delay: 3s; }

@keyframes sm-flow {
  0% { offset-distance: 0%; opacity: 0; }
  12% { opacity: 1; }
  85% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.sm-core-wrap {
  position: absolute;
  left: 50%;
  top: 62%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.sm-core-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--spot-gold, #e8c04a) 16%, transparent);
}

.sm-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--spot-gold, #e8c04a) 50%, transparent);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--spot-gold, #e8c04a) 12%, transparent), var(--bg, #0a0a09) 70%);
  color: var(--spot-gold, #e8c04a);
}

.sm-core svg { width: 1.7rem; height: 1.7rem; }

.sm-capture-caption {
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary, #686560);
  margin-top: 2px;
}

/* funnel zone: note -> skill -> agent.
   The three stages escalate on three axes at once — size, weight and fill
   (outline -> tinted -> solid) — so the ramp reads without relying on color
   alone. One continuous rail runs the whole way down, brightening as it goes;
   stage labels cut into it instead of stacking as free-floating captions. */
.sm-funnel {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 6px;
}

/* rail segment: a hairline that gains brightness and weight each step */
.sm-link {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
}

.sm-link::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  border-radius: 1px;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--spot-gold, #e8c04a) var(--rail-from, 12%), transparent),
    color-mix(in srgb, var(--spot-gold, #e8c04a) var(--rail-to, 40%), transparent)
  );
}

.sm-link-1 { height: 46px; --rail-h: 46px; --rail-from: 10%; --rail-to: 28%; }
.sm-link-2 { height: 46px; --rail-h: 46px; --rail-from: 28%; --rail-to: 62%; }
.sm-link-3 {
  height: 54px;
  --rail-h: 54px;
  --rail-from: 62%;
  --rail-to: 100%;
}

/* stop short of the deck slivers so the rail meets the stack, not through it */
.sm-link-2::before { bottom: 11px; }
.sm-link-3::before { width: 2px; }

.sm-link-label {
  position: relative;
  z-index: 1;
  padding: 0 9px;
  background: var(--surface, #161412);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary, #686560);
}

/* a mote of signal travelling down the rail, echoing the capture dots above */
.sm-link-pulse {
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -1.5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--spot-gold, #e8c04a);
  opacity: 0;
  animation: sm-rail-flow 3.4s linear infinite;
}

.sm-link-1 .sm-link-pulse { animation-delay: 0.2s; }
.sm-link-2 .sm-link-pulse { animation-delay: 0.9s; }
.sm-link-3 .sm-link-pulse { animation-delay: 1.6s; }

@keyframes sm-rail-flow {
  0%   { transform: translateY(0); opacity: 0; }
  15%  { opacity: 0.9; }
  80%  { opacity: 0.9; }
  100% { transform: translateY(var(--rail-h, 40px)); opacity: 0; }
}

.sm-node {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid var(--border, #2a2824);
  background: var(--bg-elevated, #10100e);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.sm-node svg { flex: none; }

/* 1 — outline, quiet, smallest */
.sm-node-note {
  min-width: 112px;
  padding: 6px 13px;
  font-size: 11.5px;
  color: var(--text-secondary, #9c9890);
}

.sm-node-note svg { color: var(--text-tertiary, #686560); }

/* 2 — accent outline over a tinted ground, one step up in size */
.sm-node-skill {
  position: relative;
  z-index: 1;
  min-width: 134px;
  padding: 8px 16px;
  font-size: 12.5px;
  color: var(--spot-gold, #e8c04a);
  border-color: color-mix(in srgb, var(--spot-gold, #e8c04a) 45%, transparent);
  background:
    linear-gradient(color-mix(in srgb, var(--spot-gold, #e8c04a) 13%, transparent), transparent),
    var(--bg-elevated, #10100e);
  box-shadow: 0 2px 14px color-mix(in srgb, var(--spot-gold, #e8c04a) 10%, transparent);
}

/* 3 — solid fill: the only filled shape in the frame, so the eye lands here */
.sm-node-agent {
  min-width: 160px;
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 700;
  border-color: transparent;
  color: var(--bg, #0a0a09);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--spot-gold, #e8c04a) 88%, #fff),
    var(--spot-gold, #e8c04a)
  );
  box-shadow: 0 10px 30px color-mix(in srgb, var(--spot-gold, #e8c04a) 22%, transparent);
  outline: 1px solid color-mix(in srgb, var(--spot-gold, #e8c04a) 22%, transparent);
  outline-offset: 6px;
}

/* skill stack: slivers of two more cards peek above Skill, so it reads as a
   deck — many skills bundle into one agent — without drawing a fan of lines
   off a single visible node. */
.sm-skill-stack {
  position: relative;
  display: flex;
  justify-content: center;
}

.sm-skill-ghost {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--spot-gold, #e8c04a) 22%, var(--border-subtle, #1e1c1a));
  background: var(--bg-elevated, #10100e);
}

.sm-skill-ghost-1 { transform: translateY(-5px) scaleX(0.9); }
.sm-skill-ghost-2 { transform: translateY(-10px) scaleX(0.78); opacity: 0.7; }

@media (prefers-reduced-motion: reduce) {
  .sm-capture-lines .dot { animation: none; opacity: 0; }
  .sm-link-pulse { animation: none; opacity: 0; }
}

/* ---------- Sections ---------- */

.landing-section {
  max-width: var(--page-max, 1120px);
  margin: 0 auto;
  padding: 3.5rem var(--page-pad, 1.5rem);
}

.landing-section h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
  font-weight: 650;
}

.landing-section-lead {
  margin: 0.6rem 0 0;
  max-width: 34rem;
  color: var(--text-secondary, #9c9890);
  font-size: 1rem;
  line-height: 1.5;
}

.landing-section-accent {
  max-width: none;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  background: var(--bg-elevated, #10100e);
  border-top: 1px solid var(--border-subtle, #1e1c1a);
  border-bottom: 1px solid var(--border-subtle, #1e1c1a);
}

.landing-section-accent > * {
  max-width: var(--page-max, 1120px);
  margin-left: auto;
  margin-right: auto;
}

.landing-section-accent + .landing-section-accent {
  border-top: none;
}

/* Final CTA gets the brand mark as a quiet watermark, tying the last
   thing a visitor reads back to the identity in the header — not a new
   decorative asset, the same mark reused. */
.landing-section-final {
  position: relative;
  overflow: hidden;
}

.landing-section-final .landing-watermark {
  position: absolute;
  right: -3rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16rem;
  height: 16rem;
  color: var(--spot-gold, #e8c04a);
  opacity: 0.05;
  pointer-events: none;
}

.landing-steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  position: relative;
}

@media (min-width: 800px) {
  .landing-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }

  .landing-steps li {
    padding-top: 1.1rem;
    border-top: 1px solid var(--border-subtle, #1e1c1a);
  }
}

.landing-steps li {
  display: grid;
  gap: 0.35rem;
  padding-top: 0.35rem;
}

.landing-step-num {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.75rem;
  color: var(--spot-gold, #e8c04a);
  letter-spacing: 0.06em;
}

.landing-steps strong {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.landing-steps span:last-child {
  color: var(--text-secondary, #9c9890);
  font-size: 0.92rem;
  line-height: 1.45;
}

.landing-features {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .landing-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.landing-features li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.3rem;
  padding: 1.1rem 1.2rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border-subtle, #1e1c1a);
  background: var(--surface, #161412);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.landing-features li:hover {
  border-color: var(--border, #2a2824);
  transform: translateY(-2px);
}

.landing-feature-icon {
  grid-row: 1 / 3;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--spot-gold-soft, rgba(232, 192, 74, 0.1));
  color: var(--spot-gold, #e8c04a);
}

.landing-feature-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.landing-features strong {
  align-self: end;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.landing-features span {
  color: var(--text-secondary, #9c9890);
  font-size: 0.92rem;
  line-height: 1.5;
}

.landing-features a {
  color: var(--spot-gold, #e8c04a);
}

.landing-pricing-card {
  margin-top: 2rem;
  max-width: 26rem;
  padding: 1.75rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(232, 192, 74, 0.28);
  background:
    linear-gradient(160deg, rgba(232, 192, 74, 0.07), transparent 55%),
    var(--surface, #161412);
}

.landing-pricing-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.landing-pricing-plan {
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--text-secondary, #9c9890);
  text-transform: uppercase;
}

.landing-pricing-amount {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--spot-gold, #e8c04a);
}

.landing-pricing-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary, #9c9890);
}

.landing-pricing-trial {
  margin: 0.5rem 0 0;
  font-size: 0.86rem;
  color: var(--text-secondary, #9c9890);
}

.landing-pricing-features {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.landing-pricing-features li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.92rem;
  color: var(--text, #edeae4);
  line-height: 1.4;
}

.landing-pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--spot-gold, #e8c04a);
  opacity: 0.85;
}

.landing-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  padding: 1.5rem var(--page-pad, 1.5rem) calc(var(--safe-bottom, 0px) + 1.75rem);
  max-width: var(--page-max, 1120px);
  margin: 0 auto;
  border-top: 1px solid var(--border-subtle, #1e1c1a);
  font-size: 0.82rem;
  color: var(--text-tertiary, #686560);
}

.landing-footer a {
  color: var(--text-secondary, #9c9890);
  text-decoration: none;
}

.landing-footer a:hover {
  color: var(--spot-gold, #e8c04a);
}

@media (max-width: 640px) {
  .landing-nav a:not(.landing-nav-cta) {
    display: none;
  }

  .landing-nav-cta {
    padding: 0.42rem 0.7rem;
    font-size: 0.85rem;
  }

  .landing-header {
    gap: 0.5rem;
  }
}
