/* ─────────────────────────────────────────────────────────────
   Flint Engine microsite — isolated stylesheet
   Scoped under the `.fe` root / `.fe-*` class prefixes so it can
   never collide with the main Flint Digital marketing stylesheet.

   Phase 10 — visual redesign. Modern ecommerce / product aesthetic:
   clean surfaces, strong typography, restrained brand color, subtle
   borders + shadows, consistent radius, polished hover states.
   ───────────────────────────────────────────────────────────── */

/* 1. Design tokens ─────────────────────────────────────────── */
:root {
  --fe-accent: #4231d0;
  --fe-accent-strong: #3323b8;
  --fe-accent-ink: #241a86;
  --fe-accent-soft: #eeecfb;
  --fe-accent-soft-2: #f5f4fe;
  --fe-accent-line: rgba(66, 49, 208, 0.22);
  --fe-accent-glow: rgba(66, 49, 208, 0.28);

  --fe-ink: #0d1020;
  --fe-ink-2: #141830;
  --fe-ink-3: #1c2244;

  --fe-surface: #ffffff;
  --fe-surface-soft: #f7f8fc;
  --fe-surface-soft-2: #f1f2f9;
  --fe-surface-line: #e7e9f2;
  --fe-surface-line-strong: #d8dbe9;

  --fe-text: #101223;
  --fe-text-muted: #5b6178;
  --fe-text-faint: #8b90a6;
  --fe-text-on-dark: #f5f6fb;
  --fe-text-on-dark-muted: #a9afc7;

  --fe-success: #1faa6d;
  --fe-success-soft: #e6f7ef;
  --fe-warn: #e8a93a;
  --fe-danger: #e9535a;

  --fe-font-display: "Space Grotesk", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fe-font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fe-radius-xs: 8px;
  --fe-radius-sm: 10px;
  --fe-radius: 14px;
  --fe-radius-lg: 20px;
  --fe-radius-xl: 28px;
  --fe-radius-pill: 999px;

  --fe-shadow-xs: 0 1px 2px rgba(16, 18, 35, 0.05);
  --fe-shadow-sm: 0 2px 10px rgba(16, 18, 35, 0.06);
  --fe-shadow: 0 14px 36px rgba(16, 18, 35, 0.09);
  --fe-shadow-lg: 0 34px 80px rgba(16, 18, 35, 0.18);

  --fe-header-h: 76px;

  --fe-space-xs: 8px;
  --fe-space-sm: 16px;
  --fe-space-md: 24px;
  --fe-space-lg: 40px;
  --fe-space-xl: 64px;
  --fe-space-2xl: 96px;

  --fe-section-y: clamp(64px, 9vw, 112px);
}

/* 2. Base / reset ──────────────────────────────────────────── */
html.fe {
  scroll-behavior: smooth;
}

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

.fe-body {
  margin: 0;
  font-family: var(--fe-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--fe-text);
  background: var(--fe-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.fe img,
.fe svg,
.fe video {
  display: block;
  max-width: 100%;
  height: auto;
}

.fe h1, .fe h2, .fe h3, .fe h4 {
  margin: 0;
  font-family: var(--fe-font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--fe-text);
  text-wrap: balance;
}

.fe p {
  margin: 0;
}

/* Link defaults are scoped with :where() so they carry `.fe` specificity
   only. This lets component anchors (.fe-btn, cards, nav, footer) win
   cleanly regardless of source order. */
.fe :where(a:not(.fe-btn)) {
  color: var(--fe-accent);
  text-decoration: none;
}

.fe :where(a:not(.fe-btn):hover) {
  text-decoration: underline;
}

.fe-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.fe-skip-link {
  position: absolute;
  top: -100%;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--fe-ink);
  color: #fff;
  border-radius: var(--fe-radius-sm);
  font-size: 14px;
  transition: top 0.15s ease;
}

.fe-skip-link:focus {
  top: 12px;
}

/* 2b. Announcement bar ─────────────────────────────────── */
.fe-announce {
  background: var(--fe-ink);
  color: var(--fe-text-on-dark-muted);
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fe-announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  text-align: center;
}

.fe-announce-text {
  margin: 0;
  padding-block: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.fe-announce-text a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.fe-announce-text a:hover {
  text-decoration: none;
  border-color: var(--fe-accent-glow);
  color: #cfc9ff;
}

/* 3. Layout system ─────────────────────────────────────────── */
.fe-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.fe-main {
  overflow-x: clip;
}

.fe-grid {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
}

.fe-grid-cols-3 { grid-template-columns: repeat(1, 1fr); }
.fe-grid-cols-4 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 640px) {
  .fe-grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .fe-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .fe-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* 4. Section system ────────────────────────────────────────── */
.fe-section {
  position: relative;
  padding-block: var(--fe-section-y);
}

.fe-section-tight {
  padding-block: clamp(48px, 6vw, 76px);
}

.fe-section-soft {
  background: var(--fe-surface-soft);
  border-block: 1px solid var(--fe-surface-line);
}

.fe-section-dark {
  position: relative;
  color: var(--fe-text-on-dark);
  background:
    radial-gradient(900px 420px at 82% -20%, rgba(66, 49, 208, 0.28), transparent 62%),
    var(--fe-ink);
}

.fe-section-dark::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.fe-section-dark h1,
.fe-section-dark h2,
.fe-section-dark h3 {
  color: var(--fe-text-on-dark);
}

/* 5. Typography helpers ────────────────────────────────────── */
.fe-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.fe-head--center {
  margin-inline: auto;
  text-align: center;
}

.fe-head .fe-lead {
  margin-top: 18px;
}

.fe-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid var(--fe-accent-line);
  border-radius: var(--fe-radius-pill);
  background: var(--fe-accent-soft);
  color: var(--fe-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fe-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.fe-section-dark .fe-eyebrow {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #cfc9ff;
}

.fe-display {
  font-size: clamp(38px, 5.4vw, 66px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.fe-h2 {
  font-size: clamp(28px, 3.6vw, 42px);
}

.fe-h3 {
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: -0.02em;
}

.fe-lead {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.65;
  color: var(--fe-text-muted);
}

.fe-section-dark .fe-lead {
  color: var(--fe-text-on-dark-muted);
}

/* 6. Buttons & CTA ─────────────────────────────────────────── */
.fe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--fe-radius-sm);
  font-family: var(--fe-font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: var(--fe-text);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.fe-btn:focus-visible {
  outline: 2px solid var(--fe-accent);
  outline-offset: 2px;
}

.fe-btn-primary {
  color: #fff;
  background: var(--fe-accent);
  box-shadow: 0 10px 22px -8px var(--fe-accent-glow);
}

.fe-btn-primary:hover {
  text-decoration: none;
  background: var(--fe-accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -10px var(--fe-accent-glow);
}

.fe-btn-ghost {
  color: var(--fe-text);
  background: var(--fe-surface);
  border-color: var(--fe-surface-line-strong);
}

.fe-btn-ghost:hover {
  text-decoration: none;
  border-color: var(--fe-accent-line);
  color: var(--fe-accent);
}

.fe-btn-dark {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.fe-btn-dark:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
}

.fe-btn-light {
  color: var(--fe-ink);
  background: #fff;
  border-color: #fff;
}

.fe-btn-light:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.5);
}

.fe-btn-sm { padding: 10px 16px; font-size: 14px; }
.fe-btn-lg { padding: 16px 30px; font-size: 16px; }
.fe-btn-block { width: 100%; }
.fe-btn-hide-mobile { display: none; }
@media (min-width: 768px) { .fe-btn-hide-mobile { display: inline-flex; } }

/* 7. Header / navigation ───────────────────────────────────── */
.fe-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--fe-surface-line);
}

.fe-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--fe-header-h);
}

.fe-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  flex-shrink: 0;
}

.fe-brand-mark {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 10px;
  box-shadow: 0 6px 16px -8px var(--fe-accent-glow);
  overflow: hidden;
}

.fe-brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
}

.fe-brand-name {
  font-family: var(--fe-font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fe-text);
}

.fe-brand-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fe-text-faint);
}

.fe-nav {
  display: none;
  align-items: center;
  gap: 2px;
}

.fe-nav-link {
  position: relative;
  padding: 9px 14px;
  border-radius: var(--fe-radius-sm);
  color: var(--fe-text-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none !important;
  transition: color 0.15s ease, background 0.15s ease;
}

.fe-nav-link:hover {
  color: var(--fe-text);
  background: var(--fe-surface-soft);
}

.fe-nav-link:focus-visible,
.fe-nav-toggle:focus-visible {
  outline: 2px solid var(--fe-accent);
  outline-offset: 2px;
}

.fe-header-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.fe-nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--fe-surface-line-strong);
  border-radius: var(--fe-radius-sm);
  background: var(--fe-surface);
  cursor: pointer;
}

.fe-nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--fe-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.fe-nav-toggle--open .fe-nav-toggle-bar:nth-child(2) { opacity: 0; }
.fe-nav-toggle--open .fe-nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fe-nav-toggle--open .fe-nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.fe-nav-mobile {
  display: none;
  border-top: 1px solid var(--fe-surface-line);
  background: var(--fe-surface);
}

.fe-nav-mobile--open { display: block; }

.fe-nav-mobile .fe-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-block: 14px 22px;
}

.fe-nav-mobile .fe-nav-link {
  padding: 13px 12px;
  font-size: 16px;
  border-radius: var(--fe-radius-sm);
}

.fe-nav-mobile .fe-btn { margin-top: 10px; }

@media (min-width: 960px) {
  .fe-nav { display: flex; }
  .fe-header-actions { display: flex; }
  .fe-nav-toggle,
  .fe-nav-mobile { display: none !important; }
}

/* 8. Main content ──────────────────────────────────────────── */
.fe-main {
  min-height: calc(100vh - var(--fe-header-h));
}

/* 9. Hero ──────────────────────────────────────────────────── */
.fe-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(760px 420px at 88% -10%, var(--fe-accent-soft), transparent 62%),
    radial-gradient(600px 360px at 0% 100%, var(--fe-surface-soft), transparent 60%),
    var(--fe-surface);
  border-bottom: 1px solid var(--fe-surface-line);
}

.fe-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(16, 18, 35, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 18, 35, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(600px 460px at 70% 30%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(600px 460px at 70% 30%, #000, transparent 78%);
  pointer-events: none;
}

.fe-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px);
}

@media (min-width: 960px) {
  .fe-hero-inner {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.fe-hero h1 {
  margin-bottom: 22px;
}

.fe-hero .fe-lead {
  max-width: 32em;
  margin-bottom: 32px;
}

.fe-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.fe-hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--fe-text-muted);
  font-size: 14px;
}

.fe-hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.fe-hero-proof .fe-proof-sep {
  color: var(--fe-text-faint);
  font-weight: 700;
}

/* Hero visual — browser + layered panels ─────────────────── */
.fe-hero-visual {
  position: relative;
}

.fe-browser {
  position: relative;
  z-index: 2;
  border-radius: var(--fe-radius-xl);
  background: var(--fe-ink-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--fe-shadow-lg);
  overflow: hidden;
}

.fe-browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fe-browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.fe-browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.fe-browser-dot:nth-child(1) { background: #ff5f57; }
.fe-browser-dot:nth-child(2) { background: #febc2e; }
.fe-browser-dot:nth-child(3) { background: #28c840; }

.fe-browser-url {
  flex: 1;
  max-width: 320px;
  margin-inline: auto;
  padding: 6px 14px;
  border-radius: var(--fe-radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--fe-text-on-dark-muted);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fe-browser-body {
  padding: clamp(14px, 2vw, 22px);
}

/* Dashboard mock */
.fe-dash {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
}

.fe-dash-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 10px;
  border-radius: var(--fe-radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fe-dash-logo {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--fe-accent);
  box-shadow: 0 6px 14px -6px var(--fe-accent-glow);
}

.fe-dash-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.fe-dash-nav-item {
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.11);
}

.fe-dash-nav-item--active { background: var(--fe-accent); }
.fe-dash-nav-item--short { width: 60%; }

.fe-dash-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.fe-dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fe-dash-title {
  font-family: var(--fe-font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--fe-text-on-dark);
}

.fe-dash-search {
  width: 118px;
  height: 26px;
  border-radius: var(--fe-radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.fe-visual-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 420px) {
  .fe-visual-stats { grid-template-columns: repeat(2, 1fr); }
  .fe-visual-stat:last-child { grid-column: 1 / -1; }
}

.fe-visual-stat {
  padding: 12px;
  border-radius: var(--fe-radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fe-visual-stat-label {
  color: var(--fe-text-on-dark-muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fe-visual-stat-value {
  color: var(--fe-text-on-dark);
  font-family: var(--fe-font-display);
  font-size: 15px;
  font-weight: 700;
}

.fe-visual-stat-delta {
  font-size: 11px;
  font-weight: 600;
}

.fe-visual-stat-delta.fe-up { color: #48d699; }
.fe-visual-stat-delta.fe-down { color: #f2c46b; }

.fe-dash-panels {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
}

@media (max-width: 480px) {
  .fe-dash-panels { grid-template-columns: 1fr; }
}

.fe-visual-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 96px;
  padding: 12px;
  border-radius: var(--fe-radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fe-bar {
  flex: 1;
  height: var(--h, 50%);
  min-height: 8%;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(124, 107, 255, 0.95), rgba(66, 49, 208, 0.5));
}

.fe-bar:nth-child(even) {
  background: rgba(255, 255, 255, 0.22);
}

.fe-dash-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fe-dash-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--fe-radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--fe-text-on-dark-muted);
  font-size: 11px;
}

.fe-dash-list-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fe-success);
  flex-shrink: 0;
}

/* Floating panels */
.fe-float {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 16px;
  border-radius: var(--fe-radius);
  background: #fff;
  border: 1px solid var(--fe-surface-line);
  box-shadow: var(--fe-shadow-lg);
}

.fe-float--order {
  left: -20px;
  bottom: 46px;
}

.fe-float--stat {
  right: -18px;
  top: 56px;
}

.fe-float-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fe-text-faint);
}

.fe-float-value {
  font-family: var(--fe-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fe-text);
}

.fe-float-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--fe-success);
}

@media (max-width: 1080px) {
  .fe-float { display: none; }
}

/* 10. Cards ────────────────────────────────────────────────── */
.fe-card {
  position: relative;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--fe-surface-line);
  border-radius: var(--fe-radius-lg);
  background: var(--fe-surface);
  box-shadow: var(--fe-shadow-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.fe-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fe-shadow);
  border-color: var(--fe-accent-line);
}

.fe-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: var(--fe-radius);
  background: var(--fe-accent-soft);
  color: var(--fe-accent);
  border: 1px solid var(--fe-accent-line);
}

.fe-section-dark .fe-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.fe-section-dark .fe-card:hover {
  border-color: rgba(124, 107, 255, 0.6);
  background: rgba(255, 255, 255, 0.07);
}

.fe-section-dark .fe-card-icon {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #cfc9ff;
}

.fe-card h3 { margin-bottom: 8px; }
.fe-card p { color: var(--fe-text-muted); }
.fe-section-dark .fe-card p { color: var(--fe-text-on-dark-muted); }

/* 10b. Problem → Solution ──────────────────────────────── */
.fe-problem-lead {
  max-width: 40em;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.fe-problem-grid {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.fe-problem-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  border-radius: var(--fe-radius-lg) var(--fe-radius-lg) 0 0;
  background: linear-gradient(90deg, var(--fe-accent), transparent);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.fe-problem-card:hover::before { opacity: 1; }

.fe-solution {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--fe-accent-line);
  border-radius: var(--fe-radius-xl);
  background: var(--fe-accent-soft-2);
  overflow: hidden;
}

@media (min-width: 768px) {
  .fe-solution {
    grid-template-columns: 58px 1fr auto;
  }
}

.fe-solution-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: var(--fe-radius);
  background: var(--fe-accent);
  color: #fff;
  box-shadow: 0 14px 30px -12px var(--fe-accent-glow);
}

.fe-solution-copy .fe-eyebrow { margin-bottom: 10px; }
.fe-solution-copy h3 { margin-bottom: 8px; }
.fe-solution-copy p { color: var(--fe-text-muted); }

/* 11. Core value proposition ─────────────────────────── */
.fe-value {
  background: var(--fe-surface-soft);
  border-block: 1px solid var(--fe-surface-line);
}

.fe-value-grid {
  margin-top: clamp(36px, 5vw, 56px);
}

/* 12. Core features ───────────────────────────────────────── */
.fe-features-grid {
  margin-top: clamp(36px, 5vw, 56px);
}

.fe-feature-card {
  display: flex;
  flex-direction: column;
}

.fe-feature-card .fe-card-icon {
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.fe-feature-card:hover .fe-card-icon {
  transform: translateY(-2px);
  background: var(--fe-accent);
  color: #fff;
  border-color: var(--fe-accent);
}

/* 13. Product ecosystem flow (dark) ─────────────────────── */
.fe-ecosystem-lead {
  max-width: 40em;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.fe-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.fe-flow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--fe-radius);
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.fe-flow-step:hover {
  border-color: rgba(124, 107, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.fe-flow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--fe-radius-xs);
  background: rgba(124, 107, 255, 0.16);
  color: #cfc9ff;
  flex-shrink: 0;
}

.fe-flow-label {
  font-family: var(--fe-font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--fe-text-on-dark);
}

.fe-flow-step--final {
  border-color: rgba(124, 107, 255, 0.55);
  background: rgba(124, 107, 255, 0.16);
}

.fe-flow-step--final .fe-flow-icon {
  background: var(--fe-accent);
  color: #fff;
}

.fe-flow-arrow {
  display: inline-flex;
  color: rgba(124, 107, 255, 0.75);
}

@media (max-width: 720px) {
  .fe-flow { gap: 6px; }
  .fe-flow-arrow { transform: rotate(90deg); }
  .fe-flow-arrow svg { width: 14px; height: 14px; }
}

/* 14. Product UI showcase ────────────────────────────────── */
.fe-tour {
  display: flex;
  flex-direction: column;
  gap: clamp(52px, 8vw, 100px);
}

.fe-tour-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
}

@media (min-width: 960px) {
  .fe-tour-item {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .fe-tour-item--reverse .fe-tour-shot { order: 2; }
  .fe-tour-item--reverse .fe-tour-copy { order: 1; }
}

.fe-tour-shot {
  position: relative;
  width: 100%;
}

.fe-tour-shot::before {
  content: "";
  position: absolute;
  inset: 26px -16px -16px 26px;
  border-radius: var(--fe-radius-lg);
  background: var(--fe-accent-soft);
  border: 1px solid var(--fe-accent-line);
  z-index: 0;
}

.fe-tour-copy {
  max-width: 34em;
}

.fe-tour-tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: var(--fe-radius-pill);
  background: var(--fe-accent-soft);
  border: 1px solid var(--fe-accent-line);
  color: var(--fe-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fe-tour-copy h3 { margin-bottom: 10px; }
.fe-tour-copy p { color: var(--fe-text-muted); }

/* App window mockup shell */
.fe-shot {
  position: relative;
  z-index: 1;
  border-radius: var(--fe-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--fe-ink-2);
  box-shadow: var(--fe-shadow-lg);
  overflow: hidden;
  width: 100%;
}

.fe-shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fe-shot-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.fe-shot-dot:nth-child(1) { background: #ff5f57; }
.fe-shot-dot:nth-child(2) { background: #febc2e; }
.fe-shot-dot:nth-child(3) { background: #28c840; }

.fe-shot-title {
  margin-left: 8px;
  color: var(--fe-text-on-dark-muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fe-shot-body {
  padding: 16px;
}

/* Mockup table (products / orders) */
.fe-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fe-trow {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr 0.9fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--fe-radius-xs);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--fe-text-on-dark-muted);
  font-size: 12px;
}

.fe-trow-head {
  background: rgba(255, 255, 255, 0.07);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fe-text-on-dark-muted);
}

.fe-trow-head span:last-child, .fe-trow-end { text-align: right; }

.fe-cell-strong {
  color: var(--fe-text-on-dark);
  font-weight: 600;
}

.fe-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  padding: 3px 10px;
  border-radius: var(--fe-radius-pill);
  font-size: 10px;
  font-weight: 700;
}

.fe-chip-ok { background: rgba(31, 170, 109, 0.16); color: #48d699; }
.fe-chip-warn { background: rgba(232, 169, 58, 0.16); color: #f2c46b; }
.fe-chip-mut { background: rgba(255, 255, 255, 0.08); color: var(--fe-text-on-dark-muted); }

/* Mockup customer grid */
.fe-customer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.fe-customer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px;
  border-radius: var(--fe-radius-xs);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.fe-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.fe-avatar-a { background: linear-gradient(135deg, #8b5cf6, #4231d0); }
.fe-avatar-b { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.fe-avatar-c { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.fe-avatar-d { background: linear-gradient(135deg, #ec4899, #8b5cf6); }

.fe-customer-name {
  color: var(--fe-text-on-dark);
  font-size: 12px;
  font-weight: 600;
}

.fe-customer-meta {
  color: var(--fe-text-on-dark-muted);
  font-size: 11px;
}

/* Mockup landing page builder */
.fe-builder {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  min-height: 150px;
}

.fe-builder-palette {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: var(--fe-radius-xs);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.fe-builder-block {
  height: 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.fe-builder-block--h { background: var(--fe-accent); }
.fe-builder-block--cta { background: rgba(31, 170, 109, 0.55); }
.fe-builder-block--bill { background: rgba(232, 169, 58, 0.55); }

.fe-builder-canvas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: var(--fe-radius-xs);
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.16);
}

.fe-builder-skel {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
}

.fe-builder-skel--title { width: 55%; height: 14px; background: rgba(255, 255, 255, 0.22); }
.fe-builder-skel--line { width: 80%; }

.fe-builder-cta {
  align-self: flex-start;
  margin-top: 4px;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--fe-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* Mockup marketing */
.fe-campaigns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fe-campaign {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name pct" "bar bar";
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--fe-radius-xs);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.fe-campaign-name {
  grid-area: name;
  color: var(--fe-text-on-dark);
  font-size: 12px;
  font-weight: 600;
}

.fe-campaign-pct {
  grid-area: pct;
  color: var(--fe-text-on-dark-muted);
  font-size: 11px;
  font-weight: 600;
}

.fe-progress {
  grid-area: bar;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.fe-progress-fill {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  border-radius: 4px;
  background: linear-gradient(90deg, var(--fe-accent), #7c6bff);
}

/* 15. Landing page builder section ───────────────────────── */
.fe-builder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

@media (min-width: 960px) {
  .fe-builder-grid { grid-template-columns: 1fr 1fr; }
}

.fe-checklist {
  list-style: none;
  margin: 28px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fe-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fe-text-on-dark-muted);
  font-size: 15px;
}

.fe-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(31, 170, 109, 0.18);
  color: #48d699;
  flex-shrink: 0;
}

.fe-builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fe-builder-visual {
  position: relative;
}

.fe-builder-window {
  position: relative;
  z-index: 1;
  border-radius: var(--fe-radius-lg);
  background: var(--fe-ink-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--fe-shadow-lg);
  overflow: hidden;
}

.fe-builder-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fe-builder-window-body {
  padding: 16px;
}

.fe-flow-builder {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.fe-flow-builder-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--fe-radius);
  background: rgba(255, 255, 255, 0.04);
}

.fe-flow-builder-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--fe-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.fe-flow-builder-block {
  flex: 1;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.fe-flow-builder-block--hero { background: rgba(66, 49, 208, 0.6); }
.fe-flow-builder-block--sheet { background: rgba(255, 255, 255, 0.18); }
.fe-flow-builder-block--cart { background: rgba(31, 170, 109, 0.5); }

.fe-flow-builder-label {
  width: 84px;
  font-family: var(--fe-font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--fe-text-on-dark);
  text-align: left;
}

.fe-flow-builder-arrow {
  display: inline-flex;
  justify-content: center;
  color: rgba(124, 107, 255, 0.75);
}

/* 16. Who it's for ────────────────────────────────────────── */
.fe-audience-grid {
  margin-top: clamp(36px, 5vw, 56px);
}

/* 17. Use cases ───────────────────────────────────────────── */
.fe-usecase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 720px) {
  .fe-usecase-grid { grid-template-columns: 1fr 1fr; }
}

.fe-usecase-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(18px, 2.5vw, 26px);
}

.fe-usecase-item--wide {
  grid-column: 1 / -1;
}

.fe-usecase-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--fe-radius-xs);
  background: var(--fe-accent-soft);
  border: 1px solid var(--fe-accent-line);
  color: var(--fe-accent);
  font-family: var(--fe-font-display);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.fe-usecase-item h3 { margin-bottom: 6px; }
.fe-usecase-item p { color: var(--fe-text-muted); }

/* 18. Why Flint Engine (dark) ─────────────────────────────── */
.fe-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 720px) {
  .fe-why-grid { grid-template-columns: 1fr 1fr; }
}

.fe-why-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.fe-why-card--wide {
  grid-column: 1 / -1;
}

.fe-why-card h3 { color: var(--fe-text-on-dark); }
.fe-why-card p { color: var(--fe-text-on-dark-muted); }

/* 19. Commerce workflow — connected steps ─────────────────── */
.fe-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 12px;
}

@media (min-width: 720px) {
  .fe-steps { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1040px) {
  .fe-steps { grid-template-columns: repeat(8, 1fr); gap: 18px 10px; }
}

.fe-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding-top: 6px;
}

.fe-step-node {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--fe-surface);
  border: 1px solid var(--fe-surface-line-strong);
  color: var(--fe-accent);
  box-shadow: var(--fe-shadow-xs);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.fe-step:hover .fe-step-node {
  transform: translateY(-3px);
  border-color: var(--fe-accent);
  background: var(--fe-accent);
  color: #fff;
  box-shadow: 0 14px 26px -12px var(--fe-accent-glow);
}

.fe-step-label {
  font-family: var(--fe-font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--fe-text);
}

/* connector line (desktop) */
@media (min-width: 1040px) {
  .fe-step::after {
    content: "";
    position: absolute;
    top: 31px;
    left: calc(50% + 30px);
    width: calc(100% - 60px);
    height: 2px;
    background: linear-gradient(90deg, var(--fe-surface-line-strong), var(--fe-accent-line));
  }
  .fe-step:last-child::after { display: none; }
}

.fe-step--final .fe-step-node {
  background: var(--fe-accent);
  border-color: var(--fe-accent);
  color: #fff;
  box-shadow: 0 14px 26px -12px var(--fe-accent-glow);
}

/* 20. Trust / proof ───────────────────────────────────────── */
.fe-proof-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
}

@media (min-width: 720px) {
  .fe-proof-metrics { grid-template-columns: repeat(4, 1fr); }
}

.fe-proof-metric {
  padding: 24px;
  border: 1px solid var(--fe-surface-line);
  border-radius: var(--fe-radius-lg);
  background: var(--fe-surface);
  box-shadow: var(--fe-shadow-xs);
  text-align: center;
}

.fe-proof-metric strong {
  display: block;
  font-family: var(--fe-font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--fe-accent);
}

.fe-proof-metric span {
  display: block;
  margin-top: 6px;
  color: var(--fe-text-muted);
  font-size: 13px;
}

.fe-proof-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  margin: 28px 0;
}

.fe-proof-logo {
  font-family: var(--fe-font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fe-text-muted);
}

.fe-proof-testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 28px 0;
}

@media (min-width: 960px) {
  .fe-proof-testimonials { grid-template-columns: repeat(3, 1fr); }
}

.fe-proof-testimonial {
  margin: 0;
  padding: 26px;
  border: 1px solid var(--fe-surface-line);
  border-radius: var(--fe-radius-lg);
  background: var(--fe-surface);
  box-shadow: var(--fe-shadow-xs);
}

.fe-proof-testimonial blockquote {
  margin: 0 0 16px;
  color: var(--fe-text);
  font-size: 15px;
  line-height: 1.6;
}

.fe-proof-testimonial figcaption {
  display: flex;
  flex-direction: column;
}

.fe-proof-testimonial figcaption strong {
  font-size: 14px;
}

.fe-proof-testimonial figcaption span {
  color: var(--fe-text-muted);
  font-size: 13px;
}

.fe-proof-cases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 28px 0 0;
}

@media (min-width: 960px) {
  .fe-proof-cases { grid-template-columns: repeat(3, 1fr); }
}

.fe-proof-case {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px;
  border: 1px solid var(--fe-surface-line);
  border-radius: var(--fe-radius-lg);
  background: var(--fe-surface);
  box-shadow: var(--fe-shadow-xs);
  text-decoration: none !important;
  color: var(--fe-text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.fe-proof-case:hover {
  transform: translateY(-3px);
  box-shadow: var(--fe-shadow);
  border-color: var(--fe-accent-line);
}

.fe-proof-case strong {
  font-family: var(--fe-font-display);
  font-size: 16px;
}

.fe-proof-case span {
  color: var(--fe-text-muted);
  font-size: 14px;
}

/* Anchor scroll offset — accounts for the sticky header. */
[id] {
  scroll-margin-top: calc(var(--fe-header-h) + 40px);
}

/* 21. Pricing ─────────────────────────────────────────────── */
.fe-pricing {
  background:
    radial-gradient(700px 360px at 100% 0%, var(--fe-accent-soft), transparent 62%),
    var(--fe-surface);
}

.fe-pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 28px);
  margin-top: 8px;
}

@media (min-width: 900px) {
  .fe-pricing-grid {
    grid-template-columns: 1.35fr 1fr;
    align-items: stretch;
  }
}

.fe-pricing-card {
  padding: clamp(26px, 4vw, 42px);
  border: 1.5px solid var(--fe-accent-line);
  border-radius: var(--fe-radius-xl);
  box-shadow: var(--fe-shadow);
}

.fe-pricing-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  border-radius: var(--fe-radius-xl) var(--fe-radius-xl) 0 0;
  background: linear-gradient(90deg, var(--fe-accent), #7c6bff);
}

.fe-pricing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--fe-surface-line);
}

.fe-pricing-plan {
  display: block;
  font-family: var(--fe-font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fe-pricing-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: var(--fe-radius-pill);
  background: var(--fe-accent-soft);
  border: 1px solid var(--fe-accent-line);
  color: var(--fe-accent);
  font-size: 12px;
  font-weight: 600;
}

.fe-pricing-price-wrap {
  text-align: right;
}

.fe-price-old {
  display: block;
  color: var(--fe-text-muted);
  font-size: 16px;
}

.fe-price-current {
  display: block;
  font-family: var(--fe-font-display);
  font-size: clamp(38px, 5vw, 50px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--fe-text);
}

.fe-price-save {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: var(--fe-radius-xs);
  background: var(--fe-success-soft);
  color: var(--fe-success);
  font-size: 12px;
  font-weight: 700;
}

.fe-pricing-features {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.fe-pricing-features li {
  position: relative;
  padding-left: 32px;
  color: var(--fe-text-muted);
}

.fe-pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--fe-accent-soft);
  border: 1px solid var(--fe-accent-line);
}

.fe-pricing-features li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 6px;
  height: 9px;
  border: solid var(--fe-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.fe-pricing-features code {
  font-size: 13px;
  background: var(--fe-surface-soft);
  border: 1px solid var(--fe-surface-line);
  border-radius: 5px;
  padding: 1px 6px;
}

.fe-pricing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fe-pricing-fine {
  margin-top: 20px;
  color: var(--fe-text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.fe-pricing-note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--fe-surface-line);
  border-radius: var(--fe-radius-xl);
  background: var(--fe-surface-soft);
}

.fe-pricing-note p {
  color: var(--fe-text-muted);
}

/* 22. FAQ ─────────────────────────────────────────────── */
.fe-faq {
  background: var(--fe-surface-soft);
  border-block: 1px solid var(--fe-surface-line);
}

.fe-faq-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  max-width: 860px;
}

.fe-faq-item {
  border: 1px solid var(--fe-surface-line);
  border-radius: var(--fe-radius);
  background: var(--fe-surface);
  box-shadow: var(--fe-shadow-xs);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.fe-faq-item:hover {
  border-color: var(--fe-surface-line-strong);
  box-shadow: var(--fe-shadow-sm);
}

.fe-faq-item[open] {
  border-color: var(--fe-accent-line);
  box-shadow: var(--fe-shadow-sm);
}

.fe-faq-item summary {
  position: relative;
  cursor: pointer;
  padding: 20px 58px 20px 22px;
  font-family: var(--fe-font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  user-select: none;
}

.fe-faq-item summary::-webkit-details-marker {
  display: none;
}

.fe-faq-item summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2.5px solid var(--fe-accent);
  border-bottom: 2.5px solid var(--fe-accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.18s ease;
}

.fe-faq-item[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.fe-faq-item summary:focus-visible {
  outline: 2px solid var(--fe-accent);
  outline-offset: -2px;
  border-radius: var(--fe-radius);
}

.fe-faq-item p {
  padding: 0 58px 22px 22px;
  color: var(--fe-text-muted);
}

.fe-faq-item p a {
  font-weight: 600;
}

/* 23. Final CTA ────────────────────────────────────────── */
.fe-cta {
  text-align: center;
}

.fe-cta-inner {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 7vw, 80px) clamp(24px, 5vw, 64px);
  border-radius: var(--fe-radius-xl);
  background:
    radial-gradient(760px 340px at 82% 0%, rgba(66, 49, 208, 0.5), transparent 62%),
    linear-gradient(155deg, #1c2244, #0d1020);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fe-cta-inner .fe-eyebrow {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #cfc9ff;
}

.fe-cta-inner h2 {
  color: var(--fe-text-on-dark);
  margin-bottom: 14px;
}

.fe-cta-inner p {
  color: var(--fe-text-on-dark-muted);
  max-width: 34em;
  margin: 0 auto 30px;
}

.fe-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.fe-cta-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-top: 28px;
  color: var(--fe-text-on-dark-muted);
  font-size: 13px;
}

.fe-cta-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* 24. Resource links ──────────────────────────────────── */
.fe-resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .fe-resources-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1040px) {
  .fe-resources-grid { grid-template-columns: repeat(5, 1fr); }
}

.fe-resource-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--fe-surface-line);
  border-radius: var(--fe-radius-lg);
  background: var(--fe-surface);
  box-shadow: var(--fe-shadow-xs);
  color: var(--fe-text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.fe-resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--fe-shadow);
  border-color: var(--fe-accent-line);
  text-decoration: none;
}

.fe-resource-card .fe-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
}

.fe-resource-card strong {
  font-family: var(--fe-font-display);
  font-size: 16px;
}

.fe-resource-card > span:last-child {
  color: var(--fe-text-muted);
  font-size: 13px;
}

/* 25. Resource placeholder page ───────────────────────── */
.fe-resource-page {
  text-align: center;
}

.fe-resource-page .fe-h2 {
  margin-bottom: 12px;
}

.fe-resource-nav {
  margin-top: 28px;
}

.fe-resource-link {
  display: inline-block;
  font-weight: 600;
}

.fe-resource-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

/* 26. Footer ───────────────────────────────────────────────── */
.fe-footer {
  padding-block: clamp(44px, 6vw, 76px) 26px;
  background: var(--fe-ink);
  color: var(--fe-text-on-dark-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fe-footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .fe-footer-inner {
    grid-template-columns: 1.3fr 2.4fr;
  }
}

@media (min-width: 1080px) {
  .fe-footer-inner {
    grid-template-columns: 1.1fr 2.4fr;
  }
}

.fe-footer-brand .fe-brand-name {
  color: var(--fe-text-on-dark);
}

.fe-footer-note {
  margin-top: 16px;
  max-width: 30em;
  font-size: 14px;
  line-height: 1.6;
}

.fe-footer-product-of {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 12px;
  border-radius: var(--fe-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--fe-text-on-dark);
}

.fe-footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 24px;
}

.fe-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fe-footer-heading {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fe-text-on-dark);
}

.fe-footer-link {
  color: var(--fe-text-on-dark-muted);
  font-size: 14px;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.fe-footer-link:hover { color: #fff; }

.fe-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: var(--fe-text-faint);
}

.fe-footer-copy {
  margin: 0;
}

/* 27. Documentation hero ────────────────────────────────────── */
/* ── Docs Hero ─────────────────────────────────────────────── */
.fe-docs-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 112px);
  color: var(--fe-text-on-dark);
  background: var(--fe-ink);
}

/* Animated glow orbs */
.fe-docs-hero-glow {
  position: absolute;
  width: 680px;
  height: 680px;
  top: -220px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 49, 208, 0.45) 0%, rgba(66, 49, 208, 0.08) 50%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: fe-hero-glow-drift 8s ease-in-out infinite alternate;
}

.fe-docs-hero-glow--secondary {
  width: 420px;
  height: 420px;
  top: auto;
  bottom: -140px;
  right: auto;
  left: -80px;
  background: radial-gradient(circle, rgba(99, 88, 232, 0.25) 0%, rgba(99, 88, 232, 0.05) 50%, transparent 70%);
  animation: fe-hero-glow-drift 10s ease-in-out 1s infinite alternate-reverse;
}

@keyframes fe-hero-glow-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 20px) scale(1.08); }
}

/* Grid overlay */
.fe-docs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(700px 500px at 65% 40%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(700px 500px at 65% 40%, #000, transparent 72%);
  pointer-events: none;
}

.fe-docs-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(13, 16, 32, 0.4) 100%);
  pointer-events: none;
}

.fe-docs-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

/* ── Hero two-column layout ─────────────────────────────────── */
.fe-docs-hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

@media (min-width: 960px) {
  .fe-docs-hero-layout {
    grid-template-columns: 1fr 1fr;
  }
  .fe-docs-hero-inner {
    max-width: none;
  }
}

/* ── Hero badge ─────────────────────────────────────────────── */
.fe-docs-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--fe-radius-pill);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fe-docs-hero-badge svg {
  color: var(--fe-accent);
  flex-shrink: 0;
}

.fe-docs-hero-badge-version {
  padding: 2px 8px;
  margin-left: 4px;
  border-radius: var(--fe-radius-xs);
  background: rgba(66, 49, 208, 0.2);
  border: 1px solid rgba(66, 49, 208, 0.3);
  color: #cfc9ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ── Hero title ─────────────────────────────────────────────── */
.fe-docs-hero-title {
  font-size: clamp(38px, 5.5vw, 62px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 20px;
}

.fe-docs-hero-title-accent {
  background: linear-gradient(135deg, #a594ff 0%, var(--fe-accent) 40%, #6358e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fe-docs-hero-title-gradient {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(200,195,255,0.85) 50%, rgba(165,148,255,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Dashboard mockup ───────────────────────────────────────── */
.fe-docs-hero-mockup {
  position: relative;
  z-index: 1;
  display: none;
}

@media (min-width: 960px) {
  .fe-docs-hero-mockup {
    display: block;
  }
}

.fe-mockup-window {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 22, 40, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 120px rgba(66, 49, 208, 0.08);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.fe-mockup-window:hover {
  transform: perspective(1200px) rotateY(-1deg) rotateX(1deg);
}

.fe-mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fe-mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.fe-mockup-dot:first-child { background: rgba(255, 95, 86, 0.7); }
.fe-mockup-dot:nth-child(2) { background: rgba(255, 189, 46, 0.7); }
.fe-mockup-dot:nth-child(3) { background: rgba(39, 201, 63, 0.7); }

.fe-mockup-titlebar-text {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
}

.fe-mockup-body {
  display: flex;
  min-height: 280px;
}

.fe-mockup-sidebar {
  width: 52px;
  padding: 12px 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.fe-mockup-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.fe-mockup-nav-item--active {
  background: rgba(66, 49, 208, 0.15);
}

.fe-mockup-nav-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.fe-mockup-nav-item--active .fe-mockup-nav-icon {
  background: var(--fe-accent);
}

.fe-mockup-nav-label {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.fe-mockup-nav-item--active .fe-mockup-nav-label {
  background: rgba(255, 255, 255, 0.2);
}

.fe-mockup-content {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fe-mockup-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fe-mockup-topbar-label {
  width: 80px;
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
}

.fe-mockup-topbar-search {
  flex: 1;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fe-mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.fe-mockup-stat-card {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fe-mockup-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  font-family: var(--fe-font-heading);
  letter-spacing: -0.02em;
}

.fe-mockup-stat-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fe-mockup-stat-bar {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: rgba(66, 49, 208, 0.2);
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}

.fe-mockup-stat-card:first-child .fe-mockup-stat-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 72%;
  border-radius: 2px;
  background: var(--fe-accent);
}

.fe-mockup-stat-card:nth-child(2) .fe-mockup-stat-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 58%;
  border-radius: 2px;
  background: rgba(66, 49, 208, 0.6);
}

.fe-mockup-stat-card:nth-child(3) .fe-mockup-stat-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 84%;
  border-radius: 2px;
  background: rgba(66, 49, 208, 0.45);
}

.fe-mockup-chart {
  height: 80px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}

.fe-mockup-chart-line {
  width: 100%;
  height: 100%;
}

.fe-mockup-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fe-mockup-table-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.fe-mockup-table-cell {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.fe-mockup-table-cell--long {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  width: auto;
}

.fe-mockup-table-cell--badge {
  width: 40px;
  height: 16px;
  border-radius: 10px;
  background: rgba(66, 49, 208, 0.15);
}

/* ── Hero description ───────────────────────────────────────── */
.fe-docs-hero-desc {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 34em;
  margin-bottom: 36px;
}

/* ── Hero actions row (search + CTA) ────────────────────────── */
.fe-docs-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.fe-docs-hero-actions .fe-docs-search {
  flex: 1;
  max-width: 480px;
  margin-bottom: 0;
}

.fe-docs-hero-cta {
  flex-shrink: 0;
  white-space: nowrap;
  gap: 8px;
}

.fe-docs-hero-cta svg {
  transition: transform 0.2s ease;
}

.fe-docs-hero-cta:hover svg {
  transform: translateX(3px);
}

/* ── Search bar ─────────────────────────────────────────────── */
.fe-docs-search {
  position: relative;
  max-width: 560px;
}

.fe-docs-search-input {
  width: 100%;
  padding: 14px 80px 14px 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--fe-radius);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-family: var(--fe-font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.fe-docs-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.fe-docs-search-input:focus {
  border-color: rgba(66, 49, 208, 0.6);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(66, 49, 208, 0.2), 0 8px 32px rgba(0, 0, 0, 0.2);
}

.fe-docs-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  transition: color 0.2s ease;
}

.fe-docs-search-input:focus ~ .fe-docs-search-icon,
.fe-docs-search:focus-within .fe-docs-search-icon {
  color: var(--fe-accent);
}

.fe-docs-search-kbd {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.fe-docs-search-input:focus ~ .fe-docs-search-kbd {
  opacity: 0;
}

.fe-docs-search-kbd kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--fe-font-body);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

/* ── Popular links ──────────────────────────────────────────── */
.fe-docs-hero-popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.fe-docs-hero-popular-label {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  margin-right: 4px;
}

.fe-docs-hero-popular-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--fe-radius-pill);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.fe-docs-hero-popular-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
}

.fe-docs-hero-popular-link svg:first-child {
  opacity: 0.45;
  flex-shrink: 0;
  transition: opacity 0.18s ease;
}

.fe-docs-hero-popular-link:hover svg:first-child {
  opacity: 0.8;
}

.fe-docs-hero-popular-arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  flex-shrink: 0;
}

.fe-docs-hero-popular-link:hover .fe-docs-hero-popular-arrow {
  opacity: 0.7;
  transform: translateX(0);
}

/* ── Hero stats ─────────────────────────────────────────────── */
.fe-docs-hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fe-docs-hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-weight: 500;
}

.fe-docs-hero-stat:first-child {
  padding-left: 0;
}

.fe-docs-hero-stat strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}

.fe-docs-hero-stat-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

/* ── Entrance animations ────────────────────────────────────── */
[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(20px);
  animation: fe-hero-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

[data-animate="fade-up"][data-delay="1"] { animation-delay: 0.1s; }
[data-animate="fade-up"][data-delay="2"] { animation-delay: 0.2s; }
[data-animate="fade-up"][data-delay="3"] { animation-delay: 0.3s; }
[data-animate="fade-up"][data-delay="4"] { animation-delay: 0.4s; }
[data-animate="fade-up"][data-delay="5"] { animation-delay: 0.5s; }

@keyframes fe-hero-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Docs sidebar ─────────────────────────────────────────── */
.fe-docs-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: var(--fe-header-h, 76px);
    height: calc(100vh - var(--fe-header-h, 76px));
    overflow-y: auto;
    border-right: 1px solid var(--fe-surface-line);
    background: var(--fe-surface);
    z-index: 150;
    scrollbar-width: thin;
    scrollbar-color: var(--fe-surface-line) transparent;
}

.fe-docs-sidebar::-webkit-scrollbar {
    width: 4px;
}

.fe-docs-sidebar::-webkit-scrollbar-thumb {
    background: var(--fe-surface-line);
    border-radius: 4px;
}

.fe-docs-sidebar-header {
    padding: 20px 16px 16px;
    border-bottom: 1px solid var(--fe-surface-line);
}

.fe-docs-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fe-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.15s ease;
}

.fe-docs-sidebar-brand:hover {
    color: var(--fe-accent);
}

.fe-docs-sidebar-brand svg {
    color: var(--fe-accent);
    flex-shrink: 0;
}

.fe-docs-sidebar-nav {
    padding: 12px 8px 32px;
}

.fe-docs-nav-group {
    margin-bottom: 2px;
}

.fe-docs-nav-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--fe-text);
    font-family: var(--fe-font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    text-align: left;
}

.fe-docs-nav-group-toggle:hover {
    background: var(--fe-surface-soft);
}

.fe-docs-nav-group.is-active > .fe-docs-nav-group-toggle {
    color: var(--fe-accent);
}

.fe-docs-nav-group-chevron {
    flex-shrink: 0;
    color: var(--fe-text-faint);
    transition: transform 0.2s ease, color 0.15s ease;
}

.fe-docs-nav-group-toggle[aria-expanded="true"] .fe-docs-nav-group-chevron {
    transform: rotate(0deg);
}

.fe-docs-nav-group-toggle[aria-expanded="false"] .fe-docs-nav-group-chevron {
    transform: rotate(-90deg);
}

.fe-docs-nav-group.is-active > .fe-docs-nav-group-toggle .fe-docs-nav-group-chevron {
    color: var(--fe-accent);
}

.fe-docs-nav-group-list {
    list-style: none;
    padding: 2px 0 6px;
    margin: 0;
}

.fe-docs-nav-group-item {
    margin-bottom: 1px;
}

.fe-docs-nav-group-link {
    display: block;
    padding: 6px 10px 6px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--fe-text-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.12s ease, color 0.12s ease;
    line-height: 1.4;
}

.fe-docs-nav-group-link:hover {
    background: var(--fe-surface-soft);
    color: var(--fe-text);
}

.fe-docs-nav-group-link.is-active {
    background: var(--fe-accent);
    color: #fff;
    font-weight: 600;
}

/* Docs shell — max-width constraint */
.fe-docs-shell {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-left: 1px solid var(--fe-surface-line);
    border-right: 1px solid var(--fe-surface-line);
    min-height: calc(100vh - var(--fe-header-h, 76px));
}

/* Mobile sidebar */
@media (max-width: 960px) {
    .fe-docs-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
        box-shadow: none;
    }

    .fe-docs-sidebar.is-open {
        transform: translateX(0);
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.15);
    }
}

@media (min-width: 961px) {
    .fe-docs-sidebar.is-open {
        transform: none;
    }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .fe-docs-hero-glow,
  .fe-docs-hero-glow--secondary {
    animation: none;
  }
  [data-animate="fade-up"] {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .fe-mockup-window {
    transform: none;
  }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 959px) {
  .fe-docs-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .fe-docs-hero-actions .fe-docs-search {
    max-width: 100%;
  }
  .fe-docs-hero-cta {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .fe-docs-hero-popular {
    gap: 6px;
  }
  .fe-docs-hero-popular-link {
    padding: 5px 10px;
    font-size: 12px;
  }
  .fe-docs-hero-stat {
    padding: 0 12px;
    font-size: 12px;
  }
  .fe-docs-hero-stat-divider {
    height: 10px;
  }
}

/* 29. Docs section header ───────────────────────────────────── */
.fe-docs-sec-head {
  max-width: 640px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.fe-docs-sec-head--center {
  margin-inline: auto;
  text-align: center;
}

.fe-docs-sec-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fe-text);
  margin-bottom: 12px;
}

.fe-docs-sec-desc {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65;
  color: var(--fe-text-muted);
}

/* 30. Category cards ────────────────────────────────────────── */
.fe-docs-categories {
  padding-block: clamp(48px, 7vw, 88px);
  background: var(--fe-surface-soft);
  border-block: 1px solid var(--fe-surface-line);
}

.fe-docs-categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .fe-docs-categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .fe-docs-categories-grid { grid-template-columns: repeat(3, 1fr); }
}

.fe-docs-category-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--fe-surface-line);
  border-radius: var(--fe-radius-lg);
  background: var(--fe-surface);
  box-shadow: var(--fe-shadow-xs);
  color: var(--fe-text);
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.fe-docs-category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--fe-shadow);
  border-color: var(--fe-accent-line);
}

.fe-docs-category-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--fe-radius);
  background: var(--fe-accent-soft);
  border: 1px solid var(--fe-accent-line);
  color: var(--fe-accent);
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.fe-docs-category-card:hover .fe-docs-category-card-icon {
  background: var(--fe-accent);
  border-color: var(--fe-accent);
  color: #fff;
}

.fe-docs-category-card-body {
  flex: 1;
  min-width: 0;
}

.fe-docs-category-card-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fe-text);
  margin-bottom: 6px;
  transition: color 0.18s ease;
}

.fe-docs-category-card:hover .fe-docs-category-card-title {
  color: var(--fe-accent);
}

.fe-docs-category-card-description {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fe-text-muted);
}

.fe-docs-category-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fe-surface-soft);
  color: var(--fe-text-faint);
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.fe-docs-category-card:hover .fe-docs-category-card-arrow {
  background: var(--fe-accent-soft);
  color: var(--fe-accent);
  transform: translateX(3px);
}

/* 31. Feature cards ─────────────────────────────────────────── */
.fe-docs-features {
  padding-block: clamp(48px, 7vw, 88px);
}

.fe-docs-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

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

@media (min-width: 960px) {
  .fe-docs-features-grid { grid-template-columns: repeat(4, 1fr); }
}

.fe-docs-feature-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--fe-surface-line);
  border-radius: var(--fe-radius-lg);
  background: var(--fe-surface);
  box-shadow: var(--fe-shadow-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.fe-docs-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fe-shadow);
  border-color: var(--fe-accent-line);
}

.fe-docs-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: var(--fe-radius);
  background: var(--fe-accent-soft);
  border: 1px solid var(--fe-accent-line);
  color: var(--fe-accent);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.fe-docs-feature-card:hover .fe-docs-feature-icon {
  background: var(--fe-accent);
  border-color: var(--fe-accent);
  color: #fff;
  transform: translateY(-2px);
}

.fe-docs-feature-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fe-text);
  margin-bottom: 10px;
}

.fe-docs-feature-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fe-text-muted);
  margin-bottom: 20px;
  flex: 1;
}

.fe-docs-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fe-accent);
  transition: gap 0.18s ease;
}

.fe-docs-feature-card:hover .fe-docs-feature-link {
  gap: 10px;
}

/* 32. Quick access ──────────────────────────────────────────── */
.fe-docs-quick {
  padding-block: clamp(48px, 7vw, 88px);
  background: var(--fe-surface-soft);
  border-block: 1px solid var(--fe-surface-line);
}

.fe-docs-quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 720px) {
  .fe-docs-quick-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.fe-docs-quick-col {
  padding: 28px;
  border: 1px solid var(--fe-surface-line);
  border-radius: var(--fe-radius-lg);
  background: var(--fe-surface);
  box-shadow: var(--fe-shadow-xs);
}

.fe-docs-quick-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--fe-surface-line);
}

.fe-docs-quick-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--fe-radius-xs);
  background: var(--fe-accent-soft);
  border: 1px solid var(--fe-accent-line);
  color: var(--fe-accent);
  flex-shrink: 0;
}

.fe-docs-quick-icon--warn {
  background: rgba(232, 169, 58, 0.1);
  border-color: rgba(232, 169, 58, 0.22);
  color: var(--fe-warn);
}

.fe-docs-quick-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fe-text);
}

.fe-docs-quick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fe-docs-quick-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--fe-radius-sm);
  color: var(--fe-text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.fe-docs-quick-list li a:hover {
  background: var(--fe-surface-soft);
  color: var(--fe-accent);
}

.fe-docs-quick-list li a svg:first-child {
  color: var(--fe-text-faint);
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.fe-docs-quick-list li a:hover svg:first-child {
  color: var(--fe-accent);
}

.fe-docs-quick-list li a span {
  flex: 1;
}

.fe-docs-quick-arrow {
  color: var(--fe-text-faint);
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.fe-docs-quick-list li a:hover .fe-docs-quick-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--fe-accent);
}

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