/* ============================================================
   FORM DESIGNER PAGE — formdesigner.css
   Design system tokens inherited from shared components.
   All fd-* prefixed classes are local to this page.
   Accent: Orange #8B5CF6
   ============================================================ */

/* ── Font faces ── */
@font-face {
  font-family: 'Aeonik Pro';
  src: url('Aeonik/AeonikPro-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Aeonik Pro';
  src: url('Aeonik/AeonikPro-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Aeonik Pro';
  src: url('Aeonik/AeonikPro-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ── Design tokens ── */
:root {
  --primary: #0060FF;
  --primary-hover: #0050DD;
  --accent-mint: #00D4AA;
  --fd-accent: #8B5CF6;
  --fd-accent-hover: #7C3AED;
  --fd-accent-dim: rgba(139, 92, 246, 0.12);
  --dark-bg: #0A0A0F;
  --dark-elevated: #111118;
  --dark-card: #1A1A24;
  --surface: #FAFAFA;
  --surface-card: #FFFFFF;
  --surface-muted: #F4F4F8;
  --text-primary: #0A0A0F;
  --text-secondary: #6B7280;
  --text-on-dark: #F0F0F5;
  --text-muted-on-dark: #9CA3AF;
  --border: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.08);
  --font-display: 'Aeonik Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Aeonik Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Aeonik Mono', 'SF Mono', monospace;
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 32px;
  --sp-5: 48px; --sp-6: 64px; --sp-7: 96px; --sp-8: 128px;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px;
  --radius-xl: 20px; --radius-pill: 99px;
  --max-w: 1280px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(0, 96, 255, 0.15);
  --shadow-glow-orange: 0 0 40px rgba(139, 92, 246, 0.25);
  --transition: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --nav-height: 58px;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01' on, 'cv01' on, 'cv11' on;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

/* ── Shared section typography ── */
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fd-accent);
  margin-bottom: var(--sp-2);
}
.eyebrow--light { color: rgba(139, 92, 246, 0.75); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-primary);
  margin: 0 0 var(--sp-2);
}
.section-title--light { color: var(--text-on-dark); }

.section-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 560px;
}
.section-sub--light { color: var(--text-muted-on-dark); }

.section-header--center { text-align: center; }
.section-header--center .section-sub { margin: 0 auto; }

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: 0.08s; }
.reveal--delay-2 { transition-delay: 0.16s; }
.reveal--delay-3 { transition-delay: 0.24s; }
.reveal--delay-4 { transition-delay: 0.32s; }
.reveal--delay-5 { transition-delay: 0.40s; }

/* ── Shared buttons ── */
.fd-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: var(--fd-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow-glow-orange);
  white-space: nowrap;
}
.fd-btn-primary:hover {
  background: var(--fd-accent-hover);
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.35);
  transform: translateY(-1px);
}
.fd-btn-primary--lg { padding: 16px 36px; font-size: 16px; }
.fd-btn-primary--inverted {
  background: #fff;
  color: var(--fd-accent);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}
.fd-btn-primary--inverted:hover {
  background: #fff7ed;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

.fd-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.fd-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* ============================================================
   S1 — HERO
   ============================================================ */
.fd-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #0D0818;
  padding-bottom: var(--sp-8);
}

/* Background image — full bleed with subtle drift */
.fd-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.fd-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
  transform: scale(1.04);
  animation: fd-hero-drift 22s ease-in-out infinite alternate;
}
@keyframes fd-hero-drift {
  from { transform: scale(1.04) translateX(0px); }
  to   { transform: scale(1.08) translateX(-24px); }
}

/* Multi-layer overlay — deep purple fade from bottom + left glow */
.fd-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(13, 8, 24, 0.4) 0%,
      rgba(13, 8, 24, 0.15) 28%,
      rgba(13, 8, 24, 0.65) 65%,
      rgba(13, 8, 24, 0.98) 100%),
    radial-gradient(ellipse 80% 60% at 18% 55%, rgba(139, 92, 246, 0.2) 0%, transparent 65%);
}
.fd-hero-overlay-bottom {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 45% 35% at 72% 18%, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
}

.fd-hero-noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

/* 2-col layout — copy left, feature cards right */
.fd-hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--sp-6);
  align-items: flex-end;
  padding-top: calc(var(--nav-height) + var(--sp-7));
  padding-bottom: var(--sp-6);
}

.fd-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
}

/* Icon + badge row */
.fd-hero-top-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.fd-hero-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}
.fd-hero-icon img { width: 32px; height: 32px; object-fit: contain; }

.fd-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: rgba(180, 150, 255, 0.95);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background var(--transition), border-color var(--transition);
  backdrop-filter: blur(8px);
}
.fd-hero-badge:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
}
.fd-hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fd-accent);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.8);
  animation: fd-pulse 2s ease-in-out infinite;
}
@keyframes fd-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.fd-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 6.5vw, 88px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.0;
  color: #fff;
  max-width: 680px;
}
.fd-hero-headline-em {
  background: linear-gradient(135deg, #C4B5FD 0%, #8B5CF6 50%, #A78BFA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fd-hero-sub {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  max-width: 500px;
}

.fd-hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.fd-hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.32);
  flex-wrap: wrap;
}
.fd-hero-note svg { color: var(--fd-accent); opacity: 0.7; flex-shrink: 0; }

/* Feature cards — right column */
.fd-hero-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 4px;
}

.fd-hero-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(13, 8, 24, 0.65);
  border: 1px solid rgba(139, 92, 246, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform var(--transition-smooth), border-color var(--transition), background var(--transition);
}
.fd-hero-card:hover {
  transform: translateX(-6px);
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.1);
}

.fd-hero-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #C4B5FD;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fd-hero-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fd-hero-card-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.9);
}
.fd-hero-card-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.4;
}

/* Staggered card entrance */
.fd-hero-card--1 { animation: fd-card-in 0.7s 0.3s cubic-bezier(0.16,1,0.3,1) both; }
.fd-hero-card--2 { animation: fd-card-in 0.7s 0.44s cubic-bezier(0.16,1,0.3,1) both; }
.fd-hero-card--3 { animation: fd-card-in 0.7s 0.58s cubic-bezier(0.16,1,0.3,1) both; }
.fd-hero-card--4 { animation: fd-card-in 0.7s 0.72s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes fd-card-in {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Scroll hint */
.fd-hero-scroll {
  position: absolute;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 22px;
  height: 36px;
  border-radius: 11px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.fd-hero-scroll-bar {
  width: 3px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.45);
  animation: fd-scroll-bob 1.8s ease-in-out infinite;
}
@keyframes fd-scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.35; }
}

/* Hero responsive */
@media (max-width: 960px) {
  .fd-hero-inner {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .fd-hero-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .fd-hero-card:hover { transform: translateY(-3px); }
}
@media (max-width: 600px) {
  .fd-hero-cards { grid-template-columns: 1fr; }
  .fd-hero-ctas { flex-direction: column; width: 100%; }
  .fd-hero-ctas .fd-btn-primary,
  .fd-hero-ctas .fd-btn-ghost { width: 100%; justify-content: center; }
  .fd-hero-headline { font-size: clamp(42px, 12vw, 64px); }
}

/* ============================================================
   S2 — STATS BAR
   ============================================================ */
.fd-stats {
  background: var(--surface-card);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-5) 0;
}
.fd-stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.fd-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.fd-stat-n {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
}
.fd-stat-plus {
  font-size: 14px;
  font-weight: 500;
  color: var(--fd-accent);
  letter-spacing: -0.01em;
}
.fd-stat-l {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 180px;
  line-height: 1.4;
}
.fd-stat-div {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ============================================================
   S3 — BENTO GRID
   ============================================================ */
.fd-bento {
  padding: var(--sp-8) 0;
  background: var(--surface);
}
.fd-bento-header {
  margin-bottom: var(--sp-6);
}
.fd-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

/* Top 3 hero cards */
.fd-bento-card--hero {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.fd-bento-card--hero:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Wide card bottom-left */
.fd-bento-card--wide {
  grid-column: span 2;
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.fd-bento-card--wide:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.fd-bento-card-content {
  padding: var(--sp-4);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--sp-1);
}
.fd-bento-card-visual-img {
  width: 55%;
  flex-shrink: 0;
  overflow: hidden;
}
.fd-bento-card-visual-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark card bottom-right */
.fd-bento-card--dark {
  background: var(--dark-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-dark);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--sp-1);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.fd-bento-card--dark:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* Bento card visuals */
.fd-bento-visual {
  height: 160px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
.fd-bento-visual--form { background: linear-gradient(135deg, #fff7ed, #fef3c7); }
.fd-bento-visual--grid { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.fd-bento-visual--integrations { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }

.fd-bento-body { padding: var(--sp-3); }

/* Form demo inside bento */
.fd-form-demo {
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}
.fd-form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fd-form-field label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.fd-form-input {
  padding: 8px 10px;
  border-radius: 6px;
  background: white;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono);
}
.fd-form-input--focused {
  border-color: var(--fd-accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}
.fd-cursor {
  display: inline-block;
  width: 1.5px;
  height: 12px;
  background: var(--fd-accent);
  margin-left: 1px;
  vertical-align: middle;
  animation: fd-blink 1s step-end infinite;
}
@keyframes fd-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.fd-form-textarea {
  height: 40px;
  border-radius: 6px;
  background: white;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
}
.fd-form-btn {
  padding: 8px 14px;
  border-radius: 99px;
  background: var(--fd-accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

/* Grid demo inside bento */
.fd-grid-demo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 180px;
  padding: 16px;
}
.fd-grid-cell {
  height: 32px;
  border-radius: 5px;
  background: rgba(0, 96, 255, 0.12);
}
.fd-grid-cell--span2 { grid-column: span 2; }
.fd-grid-cell--accent { background: rgba(139, 92, 246, 0.25); }
.fd-grid-cell--muted { background: rgba(0, 0, 0, 0.06); }

/* Integrations demo inside bento */
.fd-integrations-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.fd-integration-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 8px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 12px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.fd-integration-badge--center {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.25);
  color: var(--fd-accent);
}
.fd-integration-line {
  width: 1.5px;
  height: 12px;
  background: rgba(0, 0, 0, 0.12);
}

/* Bento card body details */
.fd-bento-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-1);
}
.fd-bento-icon--orange { background: rgba(139, 92, 246, 0.12); color: var(--fd-accent); }
.fd-bento-icon--blue   { background: rgba(0, 96, 255, 0.1); color: var(--primary); }
.fd-bento-icon--mint   { background: rgba(0, 212, 170, 0.1); color: var(--accent-mint); }
.fd-bento-icon--purple { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.fd-bento-icon--white  { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.9); }

.fd-bento-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.fd-bento-title--light { color: var(--text-on-dark); }

.fd-bento-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.fd-bento-desc--light { color: var(--text-muted-on-dark); }

.fd-bento-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--fd-accent-dim);
  color: var(--fd-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.fd-bento-tag--light {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   S4 — DESIGN CONTROLS (feature tabs)
   ============================================================ */
.fd-feat-section {
  padding: var(--sp-8) 0;
}
.fd-feat-section--light {
  background: var(--surface-muted);
}
.fd-feat-section--dark {
  background: var(--dark-bg);
}
.fd-feat-header {
  margin-bottom: var(--sp-6);
}

.fd-feat-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--sp-5);
  align-items: start;
}

.fd-feat-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fd-feat-tab {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  text-align: left;
  transition: background var(--transition), border-color var(--transition);
  cursor: pointer;
  background: transparent;
  position: relative;
  overflow: hidden;
}
.fd-feat-tab::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--fd-accent);
  border-radius: 0 3px 3px 0;
  opacity: 0;
  transition: opacity var(--transition);
}
.fd-feat-tab:hover {
  background: rgba(139, 92, 246, 0.04);
  border-color: rgba(139, 92, 246, 0.1);
}
.fd-feat-tab--active {
  background: rgba(139, 92, 246, 0.06);
  border-color: rgba(139, 92, 246, 0.2);
}
.fd-feat-tab--active::before { opacity: 1; }

.fd-feat-tab-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.1);
  color: var(--fd-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.fd-feat-tab--active .fd-feat-tab-icon,
.fd-feat-tab:hover .fd-feat-tab-icon {
  background: rgba(139, 92, 246, 0.18);
}

.fd-feat-tab-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.fd-feat-tab-eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fd-accent);
  opacity: 0.8;
}
.fd-feat-tab-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.fd-feat-tab-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 280px;
}

/* Screenshot player */
.fd-feat-player {
  position: sticky;
  top: calc(var(--nav-height) + var(--sp-3));
}
.fd-feat-player-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.12);
  background: var(--surface-card);
}
.fd-feat-img {
  width: 100%;
  display: block;
  transition: opacity 0.3s ease;
}
.fd-feat-player-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* ============================================================
   S5 — GOOGLE FORMS INTEGRATION (dark)
   ============================================================ */
.fd-integration-section {
  padding: var(--sp-8) 0;
}

.fd-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--sp-4);
  align-items: center;
  margin: var(--sp-6) 0;
}
.fd-comparison-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-dark);
}
.fd-comparison-card img {
  width: 100%;
  display: block;
}
.fd-comparison-label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
}
.fd-comparison-label--bad {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}
.fd-comparison-label--good {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}
.fd-comparison-caption {
  padding: 12px 14px;
  font-size: 12px;
  font-style: italic;
  color: var(--text-muted-on-dark);
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.02);
}

.fd-comparison-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--fd-accent);
}
.fd-comparison-arrow span {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.fd-integrations-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-5);
}
.fd-int-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.fd-int-item svg { color: var(--fd-accent); }
.fd-int-item:hover {
  background: rgba(139, 92, 246, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   S6 — ALTERNATING FEATURES
   ============================================================ */
.fd-features-alt {
  padding: var(--sp-8) 0;
  background: var(--surface-card);
}
.fd-alt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--border);
}
.fd-alt-row:last-child { border-bottom: none; }
.fd-alt-row--reversed { direction: rtl; }
.fd-alt-row--reversed > * { direction: ltr; }

.fd-alt-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fd-accent);
  margin-bottom: var(--sp-1);
}
.fd-alt-title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}
.fd-alt-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: var(--sp-3);
}
.fd-alt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fd-alt-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}
.fd-alt-list svg { color: var(--fd-accent); flex-shrink: 0; }

.fd-screenshot-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--border),
    0 20px 60px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.fd-screenshot-frame:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 0 0 1px var(--border),
    0 32px 80px rgba(0, 0, 0, 0.15);
}
.fd-screenshot-frame--dark {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 20px 60px rgba(0, 0, 0, 0.25);
}
.fd-screenshot-frame img {
  width: 100%;
  display: block;
}

/* ============================================================
   S7 — GALLERY
   ============================================================ */
.fd-gallery {
  padding: var(--sp-8) 0;
  background: var(--surface-muted);
}
.fd-gallery-header {
  margin-bottom: var(--sp-6);
}
.fd-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.fd-gallery-item { border-radius: var(--radius-lg); overflow: hidden; }
.fd-gallery-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  border: 1px solid var(--border);
}
.fd-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.fd-gallery-thumb:hover img { transform: scale(1.05); }

.fd-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.fd-gallery-thumb:hover .fd-gallery-overlay { opacity: 1; }
.fd-gallery-overlay span {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  line-height: 1.4;
}

/* ============================================================
   S8 — PRICING
   ============================================================ */
.fd-pricing {
  position: relative;
  padding: var(--sp-8) 0;
  background: var(--dark-bg);
  overflow: hidden;
}
.fd-pricing-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
}
.fd-pricing-header { margin-bottom: var(--sp-6); }

.fd-pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  max-width: 860px;
  margin: 0 auto;
}

.fd-price-card {
  background: var(--dark-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-dark);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.fd-price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.fd-price-card--featured {
  border-color: rgba(139, 92, 246, 0.35);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), var(--dark-card));
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.08);
}

.fd-price-card-top { display: flex; flex-direction: column; gap: var(--sp-1); }
.fd-price-icon { width: 44px; height: 44px; }
.fd-price-icon img { width: 44px; height: 44px; object-fit: contain; }
.fd-price-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
}
.fd-price-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--fd-accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: fit-content;
}
.fd-price-desc {
  font-size: 14px;
  color: var(--text-muted-on-dark);
  line-height: 1.5;
}
.fd-price-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.fd-price-num {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--text-on-dark);
  line-height: 1;
}
.fd-price-label {
  font-size: 14px;
  color: var(--text-muted-on-dark);
}
.fd-price-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  text-align: center;
}
.fd-price-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: var(--sp-2);
  border-top: 1px solid var(--border-dark);
}
.fd-price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted-on-dark);
}
.fd-price-features svg { color: var(--fd-accent); flex-shrink: 0; }
.fd-price-features li.fd-feat-muted { color: rgba(156, 163, 175, 0.5); }
.fd-price-features li.fd-feat-muted svg { color: rgba(139, 92, 246, 0.35); }

/* ============================================================
   S9 — CTA FINAL
   ============================================================ */
.fd-cta-section {
  padding: var(--sp-8) 0 var(--sp-7);
  background: var(--dark-bg);
  border-top: 1px solid var(--border-dark);
  text-align: center;
}
.fd-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}
.fd-cta-glow {
  position: absolute;
  width: 600px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
  left: 50%;
  transform: translateX(-50%);
}
.fd-cta-section .section-title {
  max-width: 560px;
  margin: 0 auto var(--sp-1);
}
.fd-cta-sub {
  font-size: 17px;
  color: var(--text-muted-on-dark);
  max-width: 480px;
  line-height: 1.6;
}
.fd-cta-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  justify-content: center;
}
.fd-cta-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition);
}
.fd-cta-link:hover { color: rgba(255, 255, 255, 0.75); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .fd-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fd-bento-card--wide {
    grid-column: span 2;
  }
  .fd-feat-layout {
    grid-template-columns: 300px 1fr;
    gap: var(--sp-4);
  }
}

@media (max-width: 768px) {
  .fd-hero-float--2,
  .fd-hero-float--3 { display: none; }

  .fd-hero-headline { font-size: clamp(36px, 10vw, 56px); }

  .fd-stats-inner {
    gap: var(--sp-4);
    padding: 0 var(--sp-2);
  }
  .fd-stat-div { display: none; }

  .fd-bento-grid {
    grid-template-columns: 1fr;
  }
  .fd-bento-card--wide {
    grid-column: span 1;
    flex-direction: column;
  }
  .fd-bento-card-visual-img { width: 100%; height: 200px; }

  .fd-feat-layout {
    grid-template-columns: 1fr;
  }
  .fd-feat-player { position: static; }

  .fd-comparison {
    grid-template-columns: 1fr;
  }
  .fd-comparison-arrow { flex-direction: row; padding: var(--sp-2) 0; }

  .fd-alt-row {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
  .fd-alt-row--reversed { direction: ltr; }

  .fd-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fd-pricing-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .fd-hero-ctas { flex-direction: column; width: 100%; }
  .fd-btn-primary, .fd-btn-ghost { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .fd-gallery-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRICING — extra elements
   ============================================================ */
.fd-price-popular-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--fd-accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: fit-content;
}

.fd-btn-featured {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  background: var(--fd-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-glow-orange);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  text-align: center;
}
.fd-btn-featured:hover {
  background: var(--fd-accent-hover);
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.35);
  transform: translateY(-1px);
}

.fd-pricing-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--sp-4);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}
.fd-pricing-note svg { color: var(--fd-accent); opacity: 0.7; flex-shrink: 0; }

/* ============================================================
   S9 — FINAL CTA
   ============================================================ */
.fd-final-cta {
  position: relative;
  padding: var(--sp-8) 0;
  background: var(--dark-bg);
  border-top: 1px solid var(--border-dark);
  text-align: center;
  overflow: hidden;
}
.fd-final-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
}
.fd-final-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  max-width: 640px;
  margin: 0 auto;
}
.fd-final-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fd-final-inner h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-on-dark);
}
.fd-final-inner p {
  font-size: 17px;
  color: var(--text-muted-on-dark);
  line-height: 1.6;
}
.fd-final-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--sp-1);
}

@media (max-width: 480px) {
  .fd-final-actions { flex-direction: column; width: 100%; }
  .fd-final-actions .fd-btn-primary,
  .fd-final-actions .fd-btn-ghost { width: 100%; justify-content: center; }
}
