/* ============================================================================
   Recon Marketing Site — shared design tokens & components
   Capable-tool tier (Design Constitution / Visual Implementation Standards):
   cool neutrals, functional color only, 4px grid, Inter, minimal animation,
   no warm/editorial decoration borrowed from Velvet/Press.
   Task ref: RECON-MARKETING-SITE-001
   ============================================================================ */

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

:root {
  /* Cool neutrals — matches existing app/landing dark palette, kept consistent
     so the marketing site and product feel like the same company. */
  --bg:          #0a0f1e;
  --bg2:         #111827;
  --bg3:         #1a2438;
  --border:      rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text:        #e8edf8;
  --text-muted:  #8494b8;
  --text-dim:    #5c6c8f;

  /* Functional color only — no decorative use */
  --accent:      #5AC9DA; /* primary action / links / trust */
  --accent-dim:  rgba(90,201,218,0.12);
  --accent-glow: rgba(90,201,218,0.25);
  --accent-border: rgba(90,201,218,0.35);
  --green:       #22c55e; /* verified/live/positive only */
  --green-dim:   rgba(34,197,94,0.12);
  --yellow:      #eab308; /* pending/caution only */
  --yellow-dim:  rgba(234,179,8,0.12);
  --red:         #ef4444; /* error/destructive only */

  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   12px;
  --radius-xl:   16px;

  --max: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── Headings — mandatory letter-spacing/line-height per Visual Standards §4 ── */
h1, h2, h3 {
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  font-weight: 800;
}
h3 { letter-spacing: -0.02em; line-height: 1.2; font-weight: 700; }

p { color: var(--text-muted); line-height: 1.6; }

/* ── Skip link (a11y, no visual cost) ── */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #04222a;
  padding: 8px 16px; border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ── Nav ── */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,15,30,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}

.nav-wordmark {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-right: 20px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav-link:hover  { color: var(--accent); }
.nav-link.active { color: var(--text); border-bottom-color: var(--accent); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

.nav-right { display: flex; align-items: center; gap: 12px; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent-border);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, border-color 0.15s;
}
.nav-cta:hover   { background: var(--accent-dim); border-color: var(--accent); }
.nav-cta:active  { background: rgba(90,201,218,0.2); }

/* ── Buttons — 4 states required (default/hover/active/disabled) ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #04222a;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 32px;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.15s, box-shadow 0.15s, transform 0.1s;
  box-shadow: 0 0 32px var(--accent-glow);
  cursor: pointer;
}
.btn-primary:hover    { opacity: 0.88; }
.btn-primary:active   { transform: translateY(1px); opacity: 0.8; }
.btn-primary:disabled,
.btn-primary[aria-disabled="true"] {
  opacity: 0.45; cursor: not-allowed; box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  cursor: pointer;
}
.btn-secondary:hover   { border-color: var(--border-strong); color: var(--text); }
.btn-secondary:active  { background: rgba(255,255,255,0.04); }
.btn-secondary:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Section scaffolding ── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
  text-align: center;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  text-align: center;
  margin-bottom: 24px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.65;
}

/* ── Cards ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--accent-border); }

/* ── Live-data badge (trust signal, functional green use) ── */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(34,197,94,0.3);
  padding: 8px 16px;
  border-radius: 999px;
}
.live-badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Screenshot-pending placeholder — explicit, honest, never a fake mockup */
.screenshot-frame {
  background: var(--bg2);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.screenshot-frame .pending-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--yellow);
  background: var(--yellow-dim);
  border: 1px solid rgba(234,179,8,0.3);
  padding: 4px 16px;
  border-radius: 999px;
}
.screenshot-frame .pending-note {
  color: var(--text-dim);
  font-size: 0.85rem;
  max-width: 380px;
}
.screenshot-caption {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}

/* ── Data marker (last-verified, per spec §5.2) ── */
.data-marker {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ── Pricing card states ── */
.pricing-card { position: relative; }
.pricing-card-featured {
  border-color: var(--accent-border);
  box-shadow: 0 0 40px rgba(90,201,218,0.08);
}
.pricing-featured-badge {
  display: inline-block;
  background: rgba(90,201,218,0.15);
  color: var(--accent);
  border: 1px solid rgba(90,201,218,0.3);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  margin-bottom: 16px;
}

/* ── Footer ── */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 0.82rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
  border-bottom: 1px solid transparent;
}
.footer-link:hover { color: var(--text); border-bottom-color: var(--border-strong); }

/* ── Shared page shell ── */
.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px 56px;
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); max-width: 760px; }
.page-hero .page-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 640px;
  margin-top: 20px;
  line-height: 1.65;
}

.section { max-width: var(--max); margin: 0 auto; padding: 64px 24px; }
.section-bordered { border-top: 1px solid var(--border); }

/* Grid utilities — 12-col conceptual, real layout via auto-fit */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

/* ── Responsive breakpoints: mobile / tablet / desktop ── */
@media (max-width: 960px) {
  .section, .page-hero { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .page-hero { padding: 48px 20px 40px; }
  .section { padding: 48px 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; }
}

/* Comparison-table-as-cards on mobile (banned-list: no table-as-primary-display
   on mobile) — used by any future /compare pages; defined here for reuse. */
@media (max-width: 640px) {
  table.compare-table { display: none; }
  .compare-cards { display: flex; flex-direction: column; gap: 16px; }
}
@media (min-width: 641px) {
  .compare-cards { display: none; }
}
