/**
 * Formgrid marketing design system
 * Shared tokens for public landing pages (Linear / Vercel / Stripe-caliber restraint).
 * Preserve black / white / zinc identity. Prefer Geist; Inter remains a fallback.
 */

@import url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/style.min.css');

:root {
  --fg-ink: #09090b;
  --fg-ink-soft: #18181b;
  --fg-muted: #71717a;
  --fg-muted-2: #52525b;
  --fg-border: #e4e4e7;
  --fg-border-soft: rgba(24, 24, 27, 0.08);
  --fg-bg: #fafafa;
  --fg-bg-elevated: #ffffff;
  --fg-bg-subtle: #f4f4f5;
  --fg-radius-sm: 0.5rem;
  --fg-radius-md: 0.75rem;
  --fg-radius-lg: 1rem;
  --fg-shadow-product: 0 1px 2px rgba(0, 0, 0, 0.04), 0 24px 48px -28px rgba(0, 0, 0, 0.28);
  --fg-container: 80rem;
  --fg-section-y: clamp(4.5rem, 8vw, 7.5rem);
  --fg-hero-pt: clamp(6.5rem, 12vw, 9rem);
  --fg-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fg-font: 'Geist Sans', Geist, Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --fg-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

html {
  font-family: var(--fg-font);
  scroll-behavior: smooth;
}

body {
  font-family: var(--fg-font);
  color: var(--fg-ink);
  background-color: var(--fg-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Soften historically oversized / over-bold marketing headings */
.font-extrabold {
  font-weight: 600;
}

.tracking-tighter {
  letter-spacing: -0.03em;
}

/* Display / hero */
.fg-hero-title,
h1.fg-hero-title {
  font-family: var(--fg-font);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--fg-ink);
  text-wrap: balance;
  font-size: clamp(2.125rem, 4.2vw, 3.75rem); /* ~34–60px */
}

.fg-section-title,
h2.fg-section-title {
  font-family: var(--fg-font);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--fg-ink);
  text-wrap: balance;
  font-size: clamp(1.75rem, 2.8vw, 2.75rem); /* ~28–44px */
}

.fg-lede {
  font-size: clamp(1.05rem, 1.4vw, 1.175rem);
  line-height: 1.65;
  font-weight: 400;
  color: var(--fg-muted-2);
  text-wrap: pretty;
}

.fg-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.fg-nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #3f3f46;
  transition: color 160ms var(--fg-ease);
}

.fg-nav-link:hover {
  color: var(--fg-ink);
}

/* Buttons */
.fg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--fg-radius-md);
  font-size: 0.9375rem;
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 160ms var(--fg-ease),
    border-color 160ms var(--fg-ease),
    color 160ms var(--fg-ease),
    box-shadow 160ms var(--fg-ease),
    transform 160ms var(--fg-ease);
  cursor: pointer;
}

.fg-btn:focus-visible {
  outline: 2px solid var(--fg-ink);
  outline-offset: 3px;
}

.fg-btn-primary {
  background: var(--fg-ink);
  color: #fff;
  border: 1px solid var(--fg-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.fg-btn-primary:hover {
  background: #18181b;
}

.fg-btn-secondary {
  background: #fff;
  color: var(--fg-ink);
  border: 1px solid #d4d4d8;
}

.fg-btn-secondary:hover {
  background: #fafafa;
  border-color: #a1a1aa;
}

/* Hero surface */
.hero-backdrop {
  background-color: var(--fg-bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(0, 0, 0, 0.05), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--fg-bg) 42%, var(--fg-bg-subtle) 100%),
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 4.5rem 4.5rem, 4.5rem 4.5rem;
  background-position: center, center, center, center;
}

.fg-product-frame {
  overflow: hidden;
  border: 1px solid var(--fg-border);
  border-radius: calc(var(--fg-radius-lg) + 0.15rem);
  background: #fff;
  box-shadow: var(--fg-shadow-product);
}

.fg-section {
  padding-top: var(--fg-section-y);
  padding-bottom: var(--fg-section-y);
}

.fg-reveal {
  animation: fg-fade-up 700ms var(--fg-ease) both;
}

@keyframes fg-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fg-reveal,
  .landing-feature-card,
  .fg-btn {
    animation: none !important;
    transition: none !important;
  }
}

/* Feature card hover — restrained */
.landing-feature-card {
  transition:
    box-shadow 220ms var(--fg-ease),
    border-color 220ms var(--fg-ease),
    transform 220ms var(--fg-ease);
}

.landing-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.22);
  border-color: #d4d4d8;
}
