/* ==========================================================================
   FairwayAPI Public Site — Theme
   Replicates the NextJS (faiway-api-preview) design system using the same
   oklch color tokens, Geist fonts, radii and animations. Works alongside
   Bootstrap 5 (overrides its CSS variables) and adds custom utility classes.
   ========================================================================== */

/* ---------- Theme tokens (light) ---------- */
:root {
  color-scheme: light;
  --background: oklch(0.99 0.005 150);
  --foreground: oklch(0.24 0.02 160);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.24 0.02 160);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.24 0.02 160);
  --primary: oklch(0.52 0.13 152);
  --primary-foreground: oklch(0.99 0.01 150);
  --secondary: oklch(0.96 0.015 155);
  --secondary-foreground: oklch(0.3 0.03 160);
  --muted: oklch(0.965 0.01 155);
  --muted-foreground: oklch(0.52 0.02 160);
  --accent: oklch(0.62 0.11 240);
  --accent-foreground: oklch(0.99 0.01 240);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.9 0.012 155);
  --input: oklch(0.9 0.012 155);
  --ring: oklch(0.52 0.13 152);
  --chart-1: oklch(0.52 0.13 152);
  --chart-2: oklch(0.62 0.11 240);
  --chart-3: oklch(0.68 0.14 155);
  --chart-4: oklch(0.45 0.1 160);
  --chart-5: oklch(0.72 0.1 200);
  --radius: 0.75rem;

  /* Geist fonts (loaded from Google Fonts in _Layout.cshtml) */
  --font-sans: "Geist", "Geist Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", "Geist Mono Fallback", ui-monospace, monospace;

  /* Bootstrap 5 variable overrides so existing components match the theme */
  --bs-body-bg: var(--background);
  --bs-body-color: var(--foreground);
  --bs-body-font-family: var(--font-sans);
  --bs-primary: var(--primary);
  --bs-primary-rgb: 46, 125, 50;
  --bs-success: var(--primary);
  --bs-success-rgb: 46, 125, 50;
  --bs-secondary: var(--secondary);
  --bs-secondary-color: var(--muted-foreground);
  --bs-border-color: var(--border);
  --bs-link-color: var(--primary);
  --bs-link-hover-color: var(--primary);
  --bs-card-bg: var(--card);
  --bs-card-border-color: var(--border);
  --bs-body-color-rgb: 38, 50, 44;
}

/* ---------- Theme tokens (dark) ---------- */
.dark {
  color-scheme: dark;
  --background: oklch(0.16 0.015 165);
  --foreground: oklch(0.95 0.01 150);
  --card: oklch(0.2 0.018 165);
  --card-foreground: oklch(0.95 0.01 150);
  --popover: oklch(0.2 0.018 165);
  --popover-foreground: oklch(0.95 0.01 150);
  --primary: oklch(0.68 0.14 152);
  --primary-foreground: oklch(0.16 0.02 165);
  --secondary: oklch(0.26 0.02 165);
  --secondary-foreground: oklch(0.95 0.01 150);
  --muted: oklch(0.24 0.018 165);
  --muted-foreground: oklch(0.68 0.015 155);
  --accent: oklch(0.68 0.11 235);
  --accent-foreground: oklch(0.16 0.02 235);
  --destructive: oklch(0.704 0.191 22.216);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.68 0.14 152);
  --chart-1: oklch(0.68 0.14 152);
  --chart-2: oklch(0.68 0.11 235);
  --chart-3: oklch(0.75 0.13 155);
  --chart-4: oklch(0.6 0.1 160);
  --chart-5: oklch(0.78 0.1 200);

  --bs-body-bg: var(--background);
  --bs-body-color: var(--foreground);
  --bs-primary: var(--primary);
  --bs-primary-rgb: 122, 200, 130;
  --bs-success: var(--primary);
  --bs-success-rgb: 122, 200, 130;
  --bs-secondary: var(--secondary);
  --bs-secondary-color: var(--muted-foreground);
  --bs-border-color: var(--border);
  --bs-link-color: var(--primary);
  --bs-link-hover-color: var(--primary);
  --bs-card-bg: var(--card);
  --bs-card-border-color: var(--border);
  --bs-body-color-rgb: 240, 245, 240;
}

/* ---------- Base ---------- */
* {
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  min-height: 100vh;
}

/* Smooth color transition when switching themes */
body,
body * {
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary);
}

/* ---------- Layout containers ---------- */
.fw-container {
  width: 100%;
  max-width: 72rem; /* max-w-6xl */
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .fw-container {
    padding-inline: 1.5rem;
  }
}

.fw-section {
  border-top: 1px solid var(--border);
}

.fw-section-pad {
  padding-block: 5rem;
}

@media (min-width: 768px) {
  .fw-section-pad {
    padding-block: 7rem;
  }
}

.fw-section-tinted {
  background-color: color-mix(in oklab, var(--secondary) 40%, transparent);
}

/* ---------- Typography ---------- */
.fw-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.fw-h1 {
  margin-top: 1.25rem;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--foreground);
  text-wrap: balance;
}

@media (min-width: 640px) {
  .fw-h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .fw-h1 {
    font-size: 3.75rem;
  }
}

.fw-h2 {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--foreground);
  text-wrap: balance;
}

@media (min-width: 640px) {
  .fw-h2 {
    font-size: 2.25rem;
  }
}

.fw-lead {
  margin-top: 1rem;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.fw-muted {
  color: var(--muted-foreground);
}

.fw-primary-text {
  color: var(--primary);
}

.fw-center {
  text-align: center;
}

.fw-max-w-2xl {
  max-width: 42rem;
}

.min-h-screen {
  min-height: 100vh;
}

.fw-lead-lg {
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.625;
}

@media (min-width: 640px) {
  .fw-lead-lg {
    font-size: 1.125rem;
  }
}

/* ---------- Buttons ---------- */
.fw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  height: 2rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1;
  user-select: none;
}

.fw-btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  pointer-events: none;
}

.fw-btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fw-btn-primary:hover {
  background-color: color-mix(in oklab, var(--primary) 80%, transparent);
  color: var(--primary-foreground);
}

.fw-btn-outline {
  border-color: var(--border);
  background-color: var(--background);
  color: var(--foreground);
}

.fw-btn-outline:hover {
  background-color: var(--muted);
  color: var(--foreground);
}

.fw-btn-ghost {
  background-color: transparent;
  color: var(--foreground);
}

.fw-btn-ghost:hover {
  background-color: var(--muted);
  color: var(--foreground);
}

.fw-btn-lg {
  height: 2.75rem;
  padding-inline: 1.25rem;
  font-size: 0.875rem;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.fw-btn-icon {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 0.5rem;
}

.fw-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- Badges / pills ---------- */
.fw-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fw-badge-soon {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background-color: var(--muted);
  padding: 0.125rem 0.375rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--muted-foreground);
}

.fw-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: var(--primary);
}

/* ---------- Cards ---------- */
.fw-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fw-card-hover {
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.fw-card-hover:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--primary) 40%, transparent);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.35);
}

.fw-icon-tile {
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-color: color-mix(in oklab, var(--primary) 10%, transparent);
  color: var(--primary);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.fw-icon-tile svg {
  width: 1.25rem;
  height: 1.25rem;
}

.fw-card-hover:hover .fw-icon-tile {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.fw-card-header {
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

/* ---------- Header / Nav ---------- */
.fw-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.fw-header.scrolled {
  border-color: var(--border);
  background-color: color-mix(in oklab, var(--background) 70%, transparent);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.fw-nav {
  display: flex;
  height: 4rem;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .fw-nav {
    padding-inline: 1.5rem;
  }
}

.fw-nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .fw-nav-links {
    display: flex;
  }
}

.fw-nav-link {
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
  transition: color 0.15s ease;
}

.fw-nav-link:hover {
  color: var(--foreground);
}

.fw-nav-link-disabled {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: color-mix(in oklab, var(--muted-foreground) 70%, transparent);
  cursor: not-allowed;
}

.fw-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fw-nav-cta {
  display: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
  .fw-nav-cta {
    display: inline-flex;
  }
}

.fw-mobile-toggle {
  display: inline-flex;
  border-color: var(--border);
  background-color: var(--background);
  color: var(--foreground);
}

@media (min-width: 768px) {
  .fw-mobile-toggle {
    display: none;
  }
}

.fw-mobile-menu {
  overflow: hidden;
  border-color: var(--border);
  background-color: color-mix(in oklab, var(--background) 95%, transparent);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  max-height: 0;
  transition: max-height 0.3s ease-out;
}

.fw-mobile-menu.open {
  max-height: 20rem;
  border-bottom: 1px solid var(--border);
}

.fw-mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding: 1rem;
}

@media (min-width: 640px) {
  .fw-mobile-menu-inner {
    padding-inline: 1.5rem;
  }
}

.fw-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: color-mix(in oklab, var(--foreground) 90%, transparent);
}

.fw-mobile-link:hover {
  background-color: var(--muted);
  color: var(--foreground);
}

.fw-mobile-link-disabled {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: color-mix(in oklab, var(--muted-foreground) 70%, transparent);
  cursor: not-allowed;
}

.fw-mobile-cta {
  margin-top: 0.5rem;
  width: 100%;
}

/* ---------- Logo ---------- */
.fw-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
}

.fw-logo-mark {
  display: flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fw-logo-mark svg {
  width: 1.25rem;
  height: 1.25rem;
}

.fw-logo-text {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

/* ---------- Theme toggle ---------- */
.fw-theme-toggle {
  position: relative;
  overflow: hidden;
}

.fw-theme-icon {
  width: 1rem;
  height: 1rem;
  transition: all 0.5s ease;
}

.fw-theme-icon.hidden {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
  position: absolute;
}

.fw-theme-icon.visible {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* ---------- Hero ---------- */
.fw-hero {
  position: relative;
  overflow: hidden;
}

.fw-hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    60% 50% at 50% 0%,
    color-mix(in oklab, var(--primary) 8%, transparent),
    transparent 70%
  );
}

.fw-hero-grid {
  display: grid;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  align-items: center;
  gap: 3rem;
  padding: 3.5rem 1rem 4rem;
}

@media (min-width: 640px) {
  .fw-hero-grid {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 768px) {
  .fw-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: 5rem 6rem;
  }
}

.fw-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .fw-hero-actions {
    flex-direction: row;
  }
}

.fw-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2rem;
  margin-top: 2.5rem;
}

.fw-stat-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.fw-stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ---------- Features ---------- */
.fw-features-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 3.5rem;
}

@media (min-width: 640px) {
  .fw-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .fw-features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.fw-feature-card {
  padding: 1.5rem;
}

.fw-feature-title {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.fw-feature-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* ---------- API example ---------- */
.fw-api-grid {
  display: grid;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  align-items: center;
  gap: 3rem;
  padding: 5rem 1rem;
}

@media (min-width: 640px) {
  .fw-api-grid {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 768px) {
  .fw-api-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: 7rem;
  }
}

.fw-check-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}

.fw-check-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--foreground);
}

.fw-check-badge {
  display: flex;
  width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: color-mix(in oklab, var(--primary) 10%, transparent);
  color: var(--primary);
}

.fw-check-badge svg {
  width: 0.75rem;
  height: 0.75rem;
}

.fw-code-card {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.5);
}

.fw-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background-color: color-mix(in oklab, var(--muted) 50%, transparent);
  padding: 0.625rem 1rem;
}

.fw-code-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.fw-code-title svg {
  width: 0.875rem;
  height: 0.875rem;
}

.fw-code-path {
  font-family: var(--font-mono);
}

.fw-code-body {
  overflow-x: auto;
  padding: 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.625;
}

.fw-code-body pre {
  margin: 0;
  font-family: var(--font-mono);
  color: var(--foreground);
  background: transparent;
}

.fw-code-body code {
  font-family: var(--font-mono);
}

/* JSON syntax colors */
.fw-json-key {
  color: var(--accent);
}
.fw-json-string {
  color: var(--primary);
}
.fw-json-number {
  color: var(--chart-5);
}
.fw-json-bool {
  color: var(--chart-2);
}
.fw-json-punct {
  color: color-mix(in oklab, var(--muted-foreground) 70%, transparent);
}
.fw-json-plain {
  color: var(--muted-foreground);
}

/* ---------- Why section ---------- */
.fw-why-grid {
  display: grid;
  max-width: 56rem;
  margin: 3.5rem auto 0;
  gap: 2rem;
}

@media (min-width: 640px) {
  .fw-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fw-reason {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.fw-reason-icon {
  margin-top: 0.125rem;
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-color: color-mix(in oklab, var(--primary) 10%, transparent);
  color: var(--primary);
}

.fw-reason-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.fw-reason-title {
  font-weight: 600;
  color: var(--foreground);
}

.fw-reason-desc {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* ---------- Waitlist ---------- */
.fw-waitlist-wrap {
  width: 100%;
  max-width: 48rem;
  margin-inline: auto;
  padding: 5rem 1rem;
}

@media (min-width: 640px) {
  .fw-waitlist-wrap {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 768px) {
  .fw-waitlist-wrap {
    padding-block: 7rem;
  }
}

.fw-waitlist-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 2rem;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.5);
}

@media (min-width: 640px) {
  .fw-waitlist-card {
    padding: 3rem;
  }
}

.fw-waitlist-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    70% 60% at 50% 0%,
    color-mix(in oklab, var(--primary) 10%, transparent),
    transparent 70%
  );
}

.fw-waitlist-inner {
  position: relative;
}

.fw-waitlist-icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background-color: color-mix(in oklab, var(--primary) 10%, transparent);
  color: var(--primary);
}

.fw-waitlist-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.fw-waitlist-form {
  margin: 2rem auto 0;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fw-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  text-align: left;
}

.fw-field-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.fw-field-optional {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted-foreground);
}

.fw-field-required {
  color: var(--primary);
}

.fw-input {
  height: 2.75rem;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--input);
  background-color: var(--background);
  padding: 0 0.875rem;
  font-size: 0.875rem;
  color: var(--foreground);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  outline: none;
  transition: border-color 0.15s ease;
}

.fw-input::placeholder {
  color: var(--muted-foreground);
}

.fw-input:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 40%, transparent);
}

.fw-field-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .fw-field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fw-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--input);
  background-color: color-mix(in oklab, var(--background) 60%, transparent);
  padding: 0.875rem;
  text-align: left;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.fw-consent:hover {
  border-color: color-mix(in oklab, var(--ring) 60%, transparent);
}

.fw-consent input {
  margin-top: 0.125rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.fw-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in oklab, var(--destructive) 40%, transparent);
  background-color: color-mix(in oklab, var(--destructive) 10%, transparent);
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--destructive);
}

.fw-alert svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.fw-success-card {
  margin: 2rem auto 0;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent);
  background-color: color-mix(in oklab, var(--primary) 5%, transparent);
  padding: 2rem;
  text-align: center;
}

.fw-success-card svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary);
}

.fw-success-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.fw-success-sub {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.fw-form-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ---------- FAQ ---------- */
.fw-faq-wrap {
  width: 100%;
  max-width: 48rem;
  margin-inline: auto;
  padding: 5rem 1rem;
}

@media (min-width: 640px) {
  .fw-faq-wrap {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 768px) {
  .fw-faq-wrap {
    padding-block: 7rem;
  }
}

.fw-faq-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fw-faq-item {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  transition: border-color 0.15s ease;
}

.fw-faq-item.open {
  border-color: color-mix(in oklab, var(--primary) 40%, transparent);
}

.fw-faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--foreground);
  outline: none;
}

.fw-faq-question:focus-visible {
  box-shadow: 0 0 0 2px var(--ring);
  border-radius: 1rem;
}

.fw-faq-chevron {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--muted-foreground);
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.fw-faq-item.open .fw-faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.fw-faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.3s ease-out,
    opacity 0.3s ease-out;
}

.fw-faq-item.open .fw-faq-answer-wrap {
  grid-template-rows: 1fr;
  opacity: 1;
}

.fw-faq-answer-inner {
  overflow: hidden;
}

.fw-faq-answer {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* ---------- Footer ---------- */
.fw-footer {
  border-top: 1px solid var(--border);
  background-color: color-mix(in oklab, var(--secondary) 30%, transparent);
}

.fw-footer-inner {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding: 3.5rem 1rem;
}

@media (min-width: 640px) {
  .fw-footer-inner {
    padding-inline: 1.5rem;
  }
}

.fw-footer-top {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .fw-footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
}

.fw-footer-brand {
  max-width: 20rem;
}

.fw-footer-tagline {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.fw-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .fw-footer-links {
    gap: 4rem;
  }
}

.fw-footer-col-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.fw-footer-col-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}

.fw-footer-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--muted-foreground) 70%, transparent);
  cursor: not-allowed;
}

.fw-footer-bottom {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

@media (min-width: 640px) {
  .fw-footer-bottom {
    flex-direction: row;
  }
}

.fw-footer-copy {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.fw-footer-made {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

/* ---------- Animations ---------- */
@keyframes fairway-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fairway-dash {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fairway-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes fairway-pulse-node {
  0%,
  100% {
    opacity: 0.4;
    r: 3;
  }
  50% {
    opacity: 1;
    r: 5;
  }
}

.animate-fade-up {
  animation: fairway-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-delay-150 {
  animation-delay: 150ms;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .animate-fade-up,
  [style*="fairway-"] {
    animation: none !important;
  }
}

/* ---------- Hero illustration ---------- */
.fw-illustration {
  position: relative;
  margin-inline: auto;
  width: 100%;
  max-width: 32.5rem;
  aspect-ratio: 1;
  user-select: none;
}

.fw-illustration-backdrop {
  position: absolute;
  inset: 1.5rem;
  border-radius: 2rem;
  border: 1px solid var(--border);
  background-color: color-mix(in oklab, var(--card) 60%, transparent);
  box-shadow: 0 20px 60px -25px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.fw-illustration-gradient {
  position: absolute;
  inset: 1.5rem;
  border-radius: 2rem;
  background: linear-gradient(
    to bottom right,
    color-mix(in oklab, var(--primary) 8%, transparent),
    color-mix(in oklab, var(--accent) 8%, transparent)
  );
}

.fw-illustration svg {
  position: relative;
  height: 100%;
  width: 100%;
}

.fw-api-node {
  position: absolute;
  left: 72%;
  top: 56%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent);
  background-color: var(--card);
  padding: 0.75rem 1rem;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  animation: fairway-float 5s ease-in-out infinite;
}

.fw-api-node-icon {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.fw-api-node-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.fw-api-node-path {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--foreground);
}

.fw-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.fw-chip svg {
  width: 0.875rem;
  height: 0.875rem;
}

.fw-chip-accent svg {
  color: var(--accent);
}

.fw-chip-primary svg {
  color: var(--primary);
}

.fw-chip-float-1 {
  animation: fairway-float 6s ease-in-out 0.6s infinite;
}
.fw-chip-float-2 {
  animation: fairway-float 5.5s ease-in-out 1.1s infinite;
}
.fw-chip-float-3 {
  animation: fairway-float 6.5s ease-in-out 0.3s infinite;
}
.fw-chip-float-4 {
  animation: fairway-float 5.8s ease-in-out 0.9s infinite;
}

.fw-chip-mono {
  border-radius: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

.fw-chip-mono-label {
  color: var(--muted-foreground);
}

.fw-chip-mono-value {
  font-weight: 600;
}

.fw-chip-mono-value-primary {
  color: var(--primary);
}
.fw-chip-mono-value-accent {
  color: var(--accent);
}

/* ---------- Bootstrap overrides for inner pages ---------- */
.fw-page {
  padding-block: 3rem;
}

.fw-page h1 {
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.fw-page .lead {
  color: var(--muted-foreground);
}

.fw-page .card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.fw-page .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.fw-page .btn-success {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.fw-page .btn-success:hover {
  background-color: color-mix(in oklab, var(--primary) 80%, transparent);
  border-color: color-mix(in oklab, var(--primary) 80%, transparent);
}

.fw-page .btn-outline-success {
  color: var(--primary);
  border-color: var(--primary);
}

.fw-page .btn-outline-success:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.fw-page .table {
  --bs-table-bg: transparent;
  color: var(--foreground);
}

.fw-page .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: color-mix(in oklab, var(--muted) 50%, transparent);
  color: var(--foreground);
}

.fw-page .alert {
  border-radius: 0.75rem;
}

.fw-page .alert-info {
  background-color: color-mix(in oklab, var(--accent) 10%, transparent);
  border-color: color-mix(in oklab, var(--accent) 30%, transparent);
  color: var(--foreground);
}

.fw-page .alert-danger {
  background-color: color-mix(in oklab, var(--destructive) 10%, transparent);
  border-color: color-mix(in oklab, var(--destructive) 40%, transparent);
  color: var(--destructive);
}

.fw-page .alert-success {
  background-color: color-mix(in oklab, var(--primary) 10%, transparent);
  border-color: color-mix(in oklab, var(--primary) 30%, transparent);
  color: var(--foreground);
}

.fw-page .form-control,
.fw-page .form-select {
  border-radius: 0.75rem;
  border: 1px solid var(--input);
  background-color: var(--background);
  color: var(--foreground);
}

.fw-page .form-control:focus,
.fw-page .form-select:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 0.25rem color-mix(in oklab, var(--ring) 25%, transparent);
}

.fw-page .form-label {
  color: var(--foreground);
  font-weight: 500;
}

.fw-page .text-muted {
  color: var(--muted-foreground) !important;
}

.fw-page .bg-light {
  background-color: var(--muted) !important;
}

.fw-page .bg-success {
  background-color: var(--primary) !important;
}

.fw-page .text-success {
  color: var(--primary) !important;
}

.fw-page .border-success {
  border-color: var(--primary) !important;
}

.fw-page .list-group-item {
  background-color: var(--card);
  border-color: var(--border);
  color: var(--foreground);
}

.fw-page .list-group-item-action:hover {
  background-color: var(--muted);
  color: var(--foreground);
}

.fw-page .accordion-item {
  background-color: var(--card);
  border-color: var(--border);
  color: var(--foreground);
}

.fw-page .accordion-button {
  background-color: var(--card);
  color: var(--foreground);
}

.fw-page .accordion-button:not(.collapsed) {
  background-color: color-mix(in oklab, var(--primary) 8%, transparent);
  color: var(--foreground);
}

.fw-page .accordion-body {
  color: var(--muted-foreground);
}

.fw-page .spinner-border.text-success {
  color: var(--primary) !important;
}

.fw-page .badge.bg-success {
  background-color: var(--primary) !important;
  color: var(--primary-foreground);
}

.fw-page code {
  color: var(--accent);
}

.fw-page pre {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  color: var(--foreground);
}

/* ---------- Scroll margin for anchored sections ---------- */
.fw-scroll-mt {
  scroll-margin-top: 5rem;
}
