/*
 * marketing_site.css
 *
 * Figma-redesigned marketing stylesheet (PR after #136).  Covers the
 * shared shell (nav / footer / body) AND the visual treatment of every
 * content-class pattern the existing marketing pages render through —
 * .page-hero, .content-section, .split-section, .callout-section,
 * .card-grid, .feature-card, .product-card, .compact-card, .demo-card,
 * .timeline-card, .metric-card, .signal-card, .workspace-*, .form-*,
 * .button, etc.  Pages keep their existing class names and template
 * bodies; the look comes from this file.
 *
 * Design tokens lifted from the SourcePath Labs Figma Make export
 * (`SourcePath Labs Website.make` 2026-05-19).
 *
 *   bg            #0A0F1E   very dark navy
 *   surface       #111827   slightly lighter (cards, callout strips, alt sections)
 *   surface-strong #1A2238  raised surface for nested cards / form panels
 *   accent        #00F0FF   neon cyan
 *   text-primary  #FFFFFF
 *   text-body     #C4D0FF   light periwinkle
 *   text-muted    #A5B4FC   dimmer periwinkle
 *   border        rgba(255,255,255,0.10)
 *   border-strong rgba(255,255,255,0.18)
 *
 * Type:
 *   body     Inter
 *   heading  Space Grotesk, semibold, letter-spacing -0.02em
 */

:root {
  /* palette */
  --fh-bg: #0A0F1E;
  --fh-surface: #111827;
  --fh-surface-strong: #1A2238;
  --fh-accent: #00F0FF;
  --fh-accent-hover: #00E0EE;
  --fh-text-primary: #FFFFFF;
  --fh-text-body: #C4D0FF;
  --fh-text-muted: #A5B4FC;
  --fh-border: rgba(255, 255, 255, 0.10);
  --fh-border-strong: rgba(255, 255, 255, 0.18);

  /* shape */
  --fh-radius-lg: 24px;
  --fh-radius-md: 16px;
  --fh-radius-sm: 8px;

  /* layout */
  --fh-container: 1280px;
  --fh-section-py: 96px;
  --fh-section-px: 32px;

  /* glow */
  --fh-glow: 0 0 24px rgba(0, 240, 255, 0.40);
  --fh-glow-soft: 0 0 24px rgba(0, 240, 255, 0.15);
  --fh-cta-glow: 0 0 32px #00F0FF;

  /* legacy aliases — preserves variable names the existing JS / older
     CSS rules may still reference. Same values, different name. */
  --bg: var(--fh-bg);
  --ink: var(--fh-text-primary);
  --accent: var(--fh-accent);
  --line: var(--fh-border);
  --radius-lg: var(--fh-radius-lg);
  --radius-md: var(--fh-radius-md);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--fh-bg);
  color: var(--fh-text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

/* shared eyebrow / lede helpers used across pages */
.eyebrow,
.fh-eyebrow {
  color: var(--fh-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 16px 0;
}

.lede,
.fh-hero-lede {
  font-size: 1.125rem;
  color: var(--fh-text-body);
  line-height: 1.6;
  margin: 16px 0 0 0;
}

.fh-heading {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

/* ====================================================================
   Shared shell: site nav + footer
   ==================================================================== */

.fh-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10, 15, 30, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fh-border);
}

.fh-nav-inner {
  display: flex;
  align-items: center;
  height: 80px;
}

.fh-nav-brand {
  display: flex;
  align-items: center;
  padding: 0 32px;
  height: 100%;
  border-right: 1px solid var(--fh-border);
  text-decoration: none;
}

.fh-nav-brand img {
  height: 56px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 16px rgba(0, 240, 255, 0.40));
}

.fh-nav-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 24px;
}

.fh-nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.fh-nav-links a,
.fh-nav-action {
  color: var(--fh-text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: color 0.2s ease;
}

.fh-nav-links a:hover,
.fh-nav-links a.is-active,
.fh-nav-action:hover {
  color: var(--fh-accent);
}

/* Codename link (Alexander) — visually distinct so it reads as preview /
   internal-only without being garish. */
.fh-nav-link-codename {
  position: relative;
  padding: 4px 10px !important;
  border: 1px dashed rgba(0, 240, 255, 0.40);
  border-radius: 999px;
  color: var(--fh-accent) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.4px;
}

.fh-nav-link-codename:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--fh-accent);
}

.fh-nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.fh-nav-action-button {
  /* secondary text-button styling for the logout case */
  font-size: 0.95rem;
}

/* Push main content below the fixed nav. */
.fh-page-main {
  padding-top: 80px;
}

@media (max-width: 768px) {
  .fh-nav-links { display: none; }
  .fh-nav-body { justify-content: flex-end; }
}

.fh-footer {
  border-top: 1px solid var(--fh-border);
  padding: 48px 32px;
  color: var(--fh-text-muted);
  font-size: 0.875rem;
  margin-top: 96px;
}

.fh-footer-inner {
  max-width: var(--fh-container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.fh-footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.fh-footer-links a {
  color: var(--fh-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.fh-footer-links a:hover {
  color: var(--fh-accent);
}

/* ====================================================================
   Layout primitives used by both fh-* and the legacy class names
   ==================================================================== */

.fh-container {
  max-width: var(--fh-container);
  margin: 0 auto;
  padding: 0 var(--fh-section-px);
  width: 100%;
}

.fh-section {
  padding: var(--fh-section-py) 0;
}

.fh-section.fh-surface {
  background: var(--fh-surface);
}

.fh-section-head {
  text-align: center;
  margin-bottom: 64px;
}

.fh-section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 16px;
}

.fh-image-frame {
  position: relative;
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius-lg);
  overflow: hidden;
  box-shadow: var(--fh-glow);
}

.fh-image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Stacked, labeled device screenshots (e.g. Grokestrator hero: Mac + iPad,
   each scaled to the same column width). */
.fh-hero-visual {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.fh-device-shot {
  margin: 0;
}

.fh-device-label {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fh-text-muted);
  margin: 0 0 10px 2px;
}

/* ====================================================================
   Home-page-specific sections (kept compatible with PR #136 markup)
   ==================================================================== */

.fh-hero {
  padding-top: 0;
  padding-bottom: 96px;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.fh-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.fh-hero-text { max-width: 560px; }

.fh-hero-text h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
}

.fh-hero-tagline {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.15;
  color: var(--fh-text-body);
  margin: 16px 0 0 0;
}

.fh-hero-lede {
  margin-top: 32px;
  font-size: 1.125rem;
  color: var(--fh-text-muted);
  max-width: 28rem;
}

.fh-hero-lede strong {
  color: var(--fh-text-primary);
  font-weight: 500;
}

/* Longer secondary hero paragraph — uses the full text column width
   rather than the narrow lede cap, and a slightly smaller body size. */
.fh-hero-detail {
  max-width: none;
  font-size: 1rem;
  margin-top: 20px;
}

/* Release announcement pill (e.g. Grokestrator hero) */
.fh-release-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px 0;
  padding: 8px 16px;
  border: 1px solid var(--fh-border-strong);
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.06);
  color: var(--fh-text-body);
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.fh-release-badge:hover {
  border-color: var(--fh-accent);
  background: rgba(0, 240, 255, 0.10);
  transform: translateY(-1px);
}

.fh-release-badge strong {
  color: var(--fh-text-primary);
  font-weight: 600;
}

.fh-release-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fh-accent);
  box-shadow: var(--fh-glow);
}

.fh-release-arrow {
  color: var(--fh-accent);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .fh-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .fh-hero { min-height: auto; }
}

.fh-problem-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
}

.fh-problem-left h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-top: 12px;
}

.fh-problem-lede {
  font-size: 1.125rem;
  color: var(--fh-text-body);
  margin: 0 0 32px 0;
}

.fh-question-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  font-size: 1.125rem;
}

.fh-question-grid > div {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fh-question {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.fh-check {
  color: var(--fh-accent);
  flex-shrink: 0;
  margin-top: 4px;
  width: 20px;
  height: 20px;
}

.fh-quote-card {
  margin-top: 40px;
  padding: 32px;
  background: var(--fh-surface);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius-lg);
}

.fh-quote-card p {
  color: var(--fh-text-body);
  font-style: italic;
}

@media (max-width: 900px) {
  .fh-problem-grid { grid-template-columns: 1fr; }
  .fh-question-grid { grid-template-columns: 1fr; }
}

.fh-solution-image {
  max-width: 1100px;
  margin: 0 auto 64px auto;
  padding: 0 32px;
}

.fh-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.fh-pillar {
  background: var(--fh-bg);
  padding: 32px;
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius-lg);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fh-pillar:hover {
  transform: translateY(-8px);
  box-shadow: var(--fh-glow-soft);
}

.fh-pillar-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 240, 255, 0.10);
  border-radius: var(--fh-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--fh-accent);
}

.fh-pillar h3 {
  font-size: 1.5rem;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.fh-pillar p {
  color: var(--fh-text-body);
}

@media (max-width: 900px) {
  .fh-pillars { grid-template-columns: 1fr; }
}

.fh-curate {
  max-width: 900px;
  margin: 0 auto;
}

.fh-curate h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 32px;
  text-align: center;
}

.fh-curate-body p {
  font-size: 1.125rem;
  color: var(--fh-text-body);
  margin: 0 0 24px 0;
  line-height: 1.6;
}

.fh-loop-line {
  color: var(--fh-text-primary);
  font-weight: 500;
  font-size: 1.25rem;
  text-align: center;
  padding-top: 24px;
}

.fh-domains-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.fh-domain-card {
  background: var(--fh-surface);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fh-domain-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--fh-glow-soft);
}

.fh-domain-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 24px auto;
  color: var(--fh-accent);
}

.fh-domain-card .fh-domain-label {
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 1024px) {
  .fh-domains-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .fh-domains-grid { grid-template-columns: repeat(2, 1fr); }
}

.fh-cta {
  padding: 96px 0;
  text-align: center;
}

.fh-cta h2 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.fh-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

.fh-trust {
  margin-top: 32px;
  color: var(--fh-text-muted);
  font-size: 0.875rem;
}

/* ====================================================================
   Buttons — both .fh-button-* (home page) and the legacy .button.*
   tokens used by every other page.
   ==================================================================== */

.fh-button-primary,
.button.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: var(--fh-accent);
  color: var(--fh-bg);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--fh-radius-lg);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: var(--fh-cta-glow);
  font-family: inherit;
}

.fh-button-primary {
  padding: 18px 44px;
  font-size: 1.25rem;
}

.fh-button-primary:hover,
.button.button-primary:hover {
  background: var(--fh-accent-hover);
  transform: scale(1.02);
}

.fh-button-secondary,
.button.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  background: transparent;
  color: var(--fh-text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--fh-border-strong);
  border-radius: var(--fh-radius-lg);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  font-family: inherit;
}

.fh-button-secondary:hover,
.button.button-secondary:hover {
  color: var(--fh-accent);
  border-color: var(--fh-accent);
}

.button.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: transparent;
  color: var(--fh-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--fh-radius-lg);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: inherit;
}

.button.button-ghost:hover {
  color: var(--fh-accent);
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ====================================================================
   Legacy content-section patterns (products, contact, demo, login,
   workspace) — restyled to the Figma look without renaming classes.
   ==================================================================== */

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 64px;
  align-items: center;
  padding: 80px var(--fh-section-px);
  max-width: var(--fh-container);
  margin: 0 auto;
}

.page-hero > div:first-child h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 24px;
}

.page-hero-media {
  position: relative;
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius-lg);
  overflow: hidden;
  box-shadow: var(--fh-glow-soft);
  background: var(--fh-surface);
}

.page-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  /* The page-hero SVGs are currently optimized for the previous
     cream palette.  Knock them back a bit so they don't fight the
     dark backdrop until they get redrawn for the new look. */
  opacity: 0.92;
  mix-blend-mode: screen;
}

@media (max-width: 960px) {
  .page-hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.content-section {
  max-width: var(--fh-container);
  margin: 0 auto;
  padding: var(--fh-section-py) var(--fh-section-px);
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px auto;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-top: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  max-width: var(--fh-container);
  margin: 0 auto;
  padding: var(--fh-section-py) var(--fh-section-px);
}

.split-copy h2,
.split-copy h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 24px;
}

.split-media {
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius-lg);
  overflow: hidden;
  box-shadow: var(--fh-glow-soft);
  background: var(--fh-surface);
}

.split-media img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.92;
  mix-blend-mode: screen;
}

@media (max-width: 960px) {
  .split-section { grid-template-columns: 1fr; gap: 48px; }
}

.callout-section {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  max-width: var(--fh-container);
  margin: 0 auto;
  padding: 64px var(--fh-section-px);
  background: var(--fh-surface);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius-lg);
}

.callout-section.reveal {
  margin-top: var(--fh-section-py);
  margin-bottom: var(--fh-section-py);
  /* this section is a card, not full-bleed — keep room around it */
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 2 * var(--fh-section-px));
}

.callout-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.callout-copy p {
  color: var(--fh-text-body);
}

.callout-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

@media (max-width: 800px) {
  .callout-section { grid-template-columns: 1fr; }
  .callout-actions { align-items: flex-start; }
}

/* ====================================================================
   Card grids + card variants
   ==================================================================== */

.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid.one-up { grid-template-columns: 1fr; }
.card-grid.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .card-grid.three-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .card-grid.two-up,
  .card-grid.three-up { grid-template-columns: 1fr; }
}

.feature-card,
.product-card,
.compact-card,
.demo-card,
.timeline-card {
  background: var(--fh-surface);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius-lg);
  padding: 32px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover,
.product-card:hover,
.compact-card:hover,
.demo-card:hover,
.timeline-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--fh-glow-soft);
}

.feature-card h2,
.feature-card h3,
.product-card h2,
.product-card h3,
.compact-card h2,
.compact-card h3,
.demo-card h2,
.timeline-card h3 {
  font-size: 1.5rem;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.feature-card p,
.product-card p,
.compact-card p,
.demo-card p,
.timeline-card p {
  color: var(--fh-text-body);
  line-height: 1.6;
}

.compact-grid {
  margin-top: 24px;
}

.compact-card {
  padding: 24px;
}

.compact-card h3 {
  font-size: 1.125rem;
}

.product-card .product-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--fh-accent);
  background: rgba(0, 240, 255, 0.10);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 16px;
}

.feature-list {
  margin: 16px 0 24px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  color: var(--fh-text-body);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--fh-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .timeline-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .timeline-grid { grid-template-columns: 1fr; }
}

.timeline-card span {
  display: inline-block;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fh-accent);
  margin-bottom: 12px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.metric-card {
  background: var(--fh-surface);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-card strong {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fh-text-primary);
}

.metric-card span {
  font-size: 0.875rem;
  color: var(--fh-text-muted);
  line-height: 1.4;
}

@media (max-width: 720px) {
  .metric-strip { grid-template-columns: 1fr; }
}

.signal-card {
  background: var(--fh-surface);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius-lg);
  padding: 20px 24px;
  margin-bottom: 16px;
}

.signal-card:last-child {
  margin-bottom: 0;
}

.signal-card h3 {
  font-size: 1.125rem;
  margin: 4px 0 8px 0;
}

.signal-card p {
  color: var(--fh-text-body);
  font-size: 0.95rem;
}

.signal-kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--fh-accent);
}

/* ====================================================================
   Forms (contact, login)
   ==================================================================== */

.form-shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-card {
  background: var(--fh-surface);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-card.is-muted {
  background: var(--fh-surface-strong);
}

.form-card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fh-text-body);
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  background: var(--fh-bg);
  color: var(--fh-text-primary);
  border: 1px solid var(--fh-border-strong);
  border-radius: var(--fh-radius-md);
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-card input::placeholder,
.form-card textarea::placeholder {
  color: var(--fh-text-muted);
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--fh-accent);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.18);
}

.form-card button[type="submit"] {
  margin-top: 8px;
}

.form-status {
  font-size: 0.875rem;
  color: var(--fh-text-muted);
  min-height: 1.25rem;
}

.form-status.is-error { color: #ff8290; }
.form-status.is-ok { color: var(--fh-accent); }

.form-note {
  font-size: 0.875rem;
  color: var(--fh-text-muted);
  line-height: 1.5;
  margin: 0;
}

.demo-code-shell {
  margin-top: 12px;
  padding: 16px;
  border: 1px dashed rgba(0, 240, 255, 0.35);
  border-radius: var(--fh-radius-md);
  text-align: center;
}

.demo-code-shell.hidden { display: none; }

.demo-code-shell strong {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.18em;
  color: var(--fh-accent);
}

/* ====================================================================
   Workspace surfaces
   ==================================================================== */

.workspace-hero .page-hero-media {
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workspace-hero .page-hero-media img {
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius-lg);
  box-shadow: var(--fh-glow-soft);
}

.workspace-sidecar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workspace-panel {
  background: var(--fh-surface);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius-lg);
  padding: 24px;
}

.workspace-panel h2 {
  font-size: 1.25rem;
  margin: 4px 0 8px 0;
}

.workspace-panel p {
  color: var(--fh-text-body);
  font-size: 0.95rem;
}

.workspace-flow-list {
  margin: 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--fh-text-body);
}

.workspace-launch-card,
.workspace-stack-card {
  background: var(--fh-surface);
}

.workspace-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.workspace-chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fh-text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--fh-border);
  border-radius: 999px;
  padding: 6px 10px;
}

.workspace-inline-stats {
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--fh-text-muted);
  margin: 12px 0 16px 0;
}

.workspace-empty {
  background: var(--fh-surface);
  border: 1px dashed var(--fh-border-strong);
  border-radius: var(--fh-radius-lg);
  padding: 32px;
  text-align: center;
  color: var(--fh-text-muted);
}

/* ====================================================================
   Reveal-on-scroll opacity hook (used by marketing_site.js)
   ==================================================================== */

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-pending {
  opacity: 0;
  transform: translateY(12px);
}

/* ====================================================================
   Home-page nav-aware: home page sections need to clear the fixed nav
   on initial paint.  The base layout adds `padding-top: 80px` to
   main, but the home's hero needs full viewport height MINUS the nav.
   ==================================================================== */
