/* ProspectEngine — marketing landing
   Tokens imported verbatim from the ProspectEngine Design System
   (tokens/colors.css, tokens/typography.css, tokens/spacing.css, tokens/fonts.css).
   Layout adapted from ui_kits/marketing/index.html, restyled on app brand tokens. */

/* ── Webfonts (self-hosted, OFL — see assets/fonts/*-OFL.txt) ── */
@font-face {
  font-family: 'Outfit';
  src: url('assets/fonts/Outfit-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('assets/fonts/DMMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('assets/fonts/DMMono-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens (source of truth: design-system tokens/*.css) ────── */
:root {
  /* Base surfaces */
  --bg: #0a0a0c;
  --fg: #f4f2ee;
  --surface-card: #121214;
  --surface-popover: #16161a;
  --surface-2: #1a1a1e;
  --surface-3: #212026;
  --border: #262630;
  --input: #262630;
  --fg-muted: #8c8a93;

  /* Brand */
  --brand: #ff5a1f;
  --brand-fg: #0a0a0c;
  --brand-dim: rgba(255, 90, 31, 0.08);
  --brand-15: rgba(255, 90, 31, 0.15);
  --brand-30: rgba(255, 90, 31, 0.30);
  --brand-40: rgba(255, 90, 31, 0.40);
  --ring: #ff5a1f;
  --gradient-button: linear-gradient(180deg, #ff7a45 0%, #f0430a 100%);
  --destructive: #ef4444;
  --destructive-fg: #ffffff;

  /* Semantic */
  --success: #34d399;
  --warning: #fbbf24;
  --error: #f87171;
  --info: #60a5fa;
  --purple: #c084fc;

  /* Lead heat tiers */
  --heat-hot: #fb923c;
  --heat-warm: #fbbf24;
  --heat-cool: #38bdf8;

  /* Lead dimension scores */
  --dim-fit: #60a5fa;
  --dim-pain: #fb923c;
  --dim-reach: #34d399;
  --dim-size: #c084fc;

  /* Type */
  --font-sans: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;
  --tracking-tight: -0.025em;
  --tracking-label: 0.08em;
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* Shadows & glows */
  --shadow-modal: 0 25px 50px -12px rgb(0 0 0 / 0.6);
  --shadow-brand-glow: 0 2px 12px -2px rgba(255, 90, 31, 0.6);
  --shadow-card-hover: 0 8px 24px -6px rgba(255, 90, 31, 0.3);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 0.2s;

  --selection: rgba(255, 90, 31, 0.35);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--leading-normal);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--selection); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.07); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.14); }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--surface-popover);
  color: var(--fg);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Mono micro-label — uppercase, tracked (design-system label recipe) */
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg-muted);
}

.section-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 16px;
}
.section-tag::before { content: ''; width: 24px; height: 1px; background: var(--brand); }

.section-title {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  margin: 0 0 14px;
}
.section-title .accent { color: var(--brand); }

.section-sub {
  color: var(--fg-muted);
  font-size: 16px;
  max-width: 560px;
  margin: 0 0 48px;
}

section { padding: 88px 0; border-top: 1px solid var(--border); }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), border-color var(--duration-fast), background var(--duration-fast), color var(--duration-fast);
}
.btn-primary {
  background: var(--gradient-button);
  color: #ffffff;
  border-color: var(--brand-40);
  box-shadow: var(--shadow-brand-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-card-hover); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ── Nav ──────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-brand img { width: 28px; height: 28px; display: block; }
.wordmark {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
}
.wordmark span { color: var(--brand); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color var(--duration-fast);
}
.nav-links a:hover { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  border-top: none;
  padding: clamp(64px, 9vh, 110px) 0 72px;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--brand-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--brand-dim) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--brand);
  border: 1px solid var(--brand-30);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  margin-bottom: 28px;
  width: fit-content;
}
.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-tag::before { animation: pulse 2s infinite; }
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

.hero h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  line-height: 1.02;
  margin: 0 0 20px;
}
.hero h1 .accent { color: var(--brand); }
.hero-sub {
  color: var(--fg-muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 0 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Hero visual — CSS lead-card mock (design-system LeadCard / heat tiers) */
.hero-visual { position: relative; min-height: 380px; }
.lead-card {
  position: absolute;
  width: min(340px, 100%);
  border-radius: var(--radius-xl);
  border: 1px solid;
  background: var(--surface-card);
  overflow: hidden;
  padding: 16px;
}
.lead-card-back {
  top: 44px;
  right: 0;
  transform: rotate(4deg);
  border-color: color-mix(in srgb, var(--heat-cool) 25%, transparent);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--heat-cool) 10%, transparent), var(--surface-card) 55%);
  opacity: 0.55;
}
.lead-card-front {
  top: 0;
  left: 0;
  transform: rotate(-2deg);
  border-color: color-mix(in srgb, var(--heat-hot) 32%, transparent);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--heat-hot) 16%, transparent), var(--surface-card) 45%);
  box-shadow: var(--shadow-modal);
}
.lead-top { display: flex; justify-content: space-between; align-items: flex-start; }
.lead-score {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--heat-hot);
  display: block;
}
.lead-card-back .lead-score { color: var(--heat-cool); }
.lead-tier {
  display: block;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--fg-muted);
  margin-top: 4px;
}
.lead-flags { text-align: right; }
.lead-flags .stars { font-size: 11px; color: var(--warning); display: block; }
.lead-flags .lang {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  color: var(--fg-muted);
}
.lead-biz { display: flex; align-items: center; gap: 10px; margin: 14px 0 12px; }
.lead-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--brand-15);
  border: 1px solid color-mix(in srgb, var(--heat-hot) 50%, transparent);
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lead-name { font-size: 15px; font-weight: 600; margin: 0; line-height: 1.2; }
.lead-city { font-size: 12px; color: var(--fg-muted); margin: 2px 0 0; }
.lead-note {
  border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  padding: 10px 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fg);
}
.lead-note .label { display: block; font-size: 9px; margin-bottom: 4px; }
.lead-dims {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  padding-top: 12px;
  text-align: center;
}
.lead-dims b {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  display: block;
}
.lead-dims span {
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  display: block;
  margin-top: 2px;
}
.dim-fit { color: var(--dim-fit); }
.dim-pain { color: var(--dim-pain); }
.dim-reach { color: var(--dim-reach); }
.dim-size { color: var(--dim-size); }

/* ── Stat strip ───────────────────────────────────────────────── */
.stats { padding: 40px 0; background: var(--surface-card); }
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--brand);
}
.stat-divider { width: 1px; height: 44px; background: var(--border); }

/* ── How it works ─────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.step { background: var(--surface-card); padding: 32px 28px; transition: background var(--duration-fast); }
.step:hover { background: var(--surface-2); }
.step-num {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 500;
  color: var(--brand-30);
  line-height: 1;
  margin-bottom: 18px;
  display: block;
}
.step-icon { color: var(--brand); margin-bottom: 14px; }
.step h3 { font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.step p { font-size: 14px; color: var(--fg-muted); line-height: 1.65; margin: 0; }

/* ── Feature grid ─────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: border-color var(--duration-fast), transform var(--duration-fast) var(--ease-out);
}
.feature:hover { border-color: var(--brand-40); transform: translateY(-2px); }
.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-lg);
  background: var(--brand-dim);
  border: 1px solid var(--brand-15);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feature p { font-size: 13.5px; color: var(--fg-muted); line-height: 1.6; margin: 0; }
.badge-soon {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-dim);
  border: 1px solid var(--brand-30);
  border-radius: var(--radius-full);
  padding: 3px 8px;
}
.mini-kanban { display: flex; gap: 3px; margin-top: 14px; }
.mini-kanban i {
  flex: 1;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
}
.mini-kanban i.on { background: var(--brand); }

/* ── Plans ────────────────────────────────────────────────────── */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 880px;
}
.plan {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--duration-fast), transform var(--duration-fast) var(--ease-out);
}
.plan:hover { border-color: var(--brand-40); transform: translateY(-3px); }
.plan-featured { border-color: var(--brand); background: linear-gradient(to bottom, var(--brand-dim), var(--surface-card) 50%); }
.plan-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  background: var(--gradient-button);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 5px 12px;
}
.plan-tier { margin-bottom: 14px; }
.plan h3 { font-size: 26px; font-weight: 700; letter-spacing: var(--tracking-tight); margin: 0 0 10px; }
.plan-price {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--brand);
}
.plan-period { font-size: 13px; color: var(--fg-muted); margin: 8px 0 26px; }
.plan ul { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan li { font-size: 14px; color: var(--fg-muted); display: flex; gap: 10px; line-height: 1.45; }
.plan li::before { content: '→'; color: var(--brand); flex-shrink: 0; font-family: var(--font-mono); }
.plan li.hl { color: var(--fg); font-weight: 500; }

/* ── Request access ───────────────────────────────────────────── */
.request { position: relative; overflow: hidden; }
.request-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, var(--brand-dim), transparent);
  pointer-events: none;
}
.request-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.form-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 7px;
}
.field input,
.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color var(--duration-fast);
}
.field input::placeholder { color: var(--fg-muted); }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px var(--brand-15);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238c8a93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 38px;
}
.form-note { font-size: 12.5px; color: var(--fg-muted); margin: 14px 0 0; text-align: center; }
.form-error {
  background: color-mix(in srgb, var(--error) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--error) 35%, transparent);
  border-radius: var(--radius-md);
  color: var(--error);
  font-size: 13.5px;
  padding: 10px 14px;
  margin: 0 0 16px;
}
.form-success { text-align: center; padding: 28px 8px; }
.form-success .check {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--success) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--success) 40%, transparent);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.form-success p { font-size: 14px; color: var(--fg-muted); margin: 0; }

/* ── Footer ───────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand img { width: 20px; height: 20px; }
.footer .label a { color: var(--fg-muted); text-decoration: none; }
.footer .label a:hover { color: var(--fg); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 880px) {
  section { padding: 64px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { min-height: 360px; max-width: 380px; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  .request-inner { grid-template-columns: 1fr; gap: 40px; }
  .stat-divider { display: none; }
  .stats-inner { justify-content: flex-start; gap: 36px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .features { grid-template-columns: 1fr; }
  .wrap { padding: 0 18px; }
  .hero { padding-top: 48px; }
  .hero-actions .btn { width: 100%; }
  .lead-card-back { display: none; }
  .lead-card { position: relative; transform: none; width: 100%; }
  .hero-visual { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
