/* Swivel SaaS Design System — Faithfully Preserving Prototype UI/UX */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}

:root {
  --primary: #5146E5;
  --primary-hover: #4338CA;
  --primary-light: #EEEDFD;
  --dark: #17172B;
  --cyan: #22D3EE;
  --purple: #8B5CF6;
  --bg: #F8F8FC;
  --card-bg: #FFFFFF;
  --border: #E7E7F2;
  --border-input: #D9D9EA;
  --text-primary: #17172B;
  --text-muted: #5B5F77;
  --text-light: #8A8EA6;
  --danger: #EF4444;
  --success: #10B981;
  --warning: #F59E0B;
}

* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select {
  font-family: inherit;
}

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

/* Core Buttons from Prototype */
.b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  gap: 8px;
}
.b:hover {
  text-decoration: none;
}
.b:disabled {
  opacity: 0.65;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
}

/* Button Loading Spinner Animation */
@keyframes sw-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.sw-btn-spinner {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  animation: sw-spin 0.75s linear infinite;
  margin-right: 6px;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  box-sizing: border-box;
}

button:disabled, .b:disabled {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
}

.bp {
  background: var(--primary);
  color: #FFFFFF;
}
.bp:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.bs {
  background: #FFFFFF;
  color: var(--dark);
  border: 1px solid var(--border-input);
}
.bs:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: #FAFAFF;
}

.bd {
  background: #FEE2E2;
  color: var(--danger);
  border: 1px solid #FECACA;
}
.bd:hover:not(:disabled) {
  background: var(--danger);
  color: #FFFFFF;
}

/* Prototype Cards */
.c {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}

/* Navigation Buttons */
.nv {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 0;
  background: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  gap: 10px;
}
.nv:hover {
  background: #F1F0FB;
  color: var(--dark);
  text-decoration: none;
}
.nv.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

/* Inputs & Form Elements */
.in {
  width: 100%;
  border: 1px solid var(--border-input);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary);
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.in:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(81, 70, 229, 0.12);
}
textarea.in {
  resize: vertical;
}

.lb {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 14px 0 6px;
  display: block;
}

/* Pill Selectors from Prototype */
.pl {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-input);
  background: #FFFFFF;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.pl:hover {
  border-color: var(--primary);
}
.pl.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

/* App Layout Grid */
.app-container,
.app-layout {
  width: 100%;
  min-height: 100vh;
  display: flex;
  background: var(--bg);
  color: var(--text-primary);
  box-sizing: border-box;
}

.app-sidebar {
  flex: 0 0 240px;
  width: 240px;
  background: #FFFFFF;
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.app-main {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.app-content {
  padding: 36px 40px;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Full-width Responsive Editor Layout */
.editor-layout {
  display: flex;
  flex-direction: column;
  width: 100vw;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #EEEDF7;
  box-sizing: border-box;
}

.editor-body {
  display: flex;
  flex: 1 1 0%;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.editor-thumbnails {
  flex: 0 0 170px;
  width: 170px;
  background: #FFFFFF;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  box-sizing: border-box;
  z-index: 10;
}

.editor-stage-viewport {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: auto;
  background: #EEEDF7;
  box-sizing: border-box;
}

.editor-inspector {
  flex: 0 0 340px;
  width: 340px;
  padding: 16px 18px;
  background: #FFFFFF;
  border-left: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: transform 0.2s ease, width 0.2s ease, margin-right 0.2s ease;
  z-index: 10;
}

.editor-inspector.collapsed {
  display: none !important;
}

/* Brand Logo */
.brand-logo {
  font-weight: 800;
  font-size: 20px;
  padding: 0 14px 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--dark);
  text-decoration: none;
}
.brand-logo:hover {
  text-decoration: none;
}
.brand-logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Sidebar Plan Box */
.sidebar-plan {
  margin-top: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: var(--bg);
}

.sidebar-user {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 6px 0;
  border-top: 1px solid var(--border);
  margin-top: 10px;
}
.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--purple);
  color: #FFFFFF;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--dark);
  color: #FFFFFF;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.25s ease;
  max-width: 380px;
}
.toast.success { background: #065F46; color: #ECFDF5; border: 1px solid #059669; }
.toast.error { background: #7F1D1D; color: #FEF2F2; border: 1px solid #DC2626; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal Window */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 23, 43, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 28px;
  max-width: 580px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
  max-height: 90vh;
  overflow-y: auto;
}

/* Color Circle Picker */
.color-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-input);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.color-dot:hover {
  transform: scale(1.1);
}
.color-dot.active {
  border: 3px solid var(--primary);
  transform: scale(1.05);
}

/* Mobile Navigation Bar & Slide-in Drawers (hidden on desktop) */
.mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 900;
  box-sizing: border-box;
}
.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-input);
  background: #FFFFFF;
  color: var(--dark);
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-menu-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.sidebar-close-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-input);
  background: #FFFFFF;
  color: var(--dark);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.sidebar-backdrop,
.editor-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(2px);
  z-index: 1150;
}
.sidebar-backdrop.open,
.editor-drawer-backdrop.open {
  display: block;
}
.editor-mobile-only {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .app-container,
  .app-layout {
    flex-direction: column;
  }
  .mobile-topbar {
    display: flex;
  }
  .sidebar-close-btn {
    display: inline-flex;
  }
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 272px;
    max-width: 84vw;
    height: 100vh;
    height: 100dvh;
    z-index: 1200;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
    display: flex !important;
  }
  .app-sidebar.sidebar-open {
    transform: translateX(0);
  }
  .app-content {
    padding: 18px 14px;
    max-width: 100%;
    overflow-x: hidden;
  }
  .app-content table {
    max-width: 100%;
  }
  .app-content .c:has(> table),
  .app-content .c:has(> .table-responsive) {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .app-content [style*="grid-template-columns"]:not(.kpi-grid) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* Responsive Carousel Editor */
  .editor-mobile-only {
    display: inline-flex !important;
  }
  .editor-topbar {
    padding: 8px 10px !important;
    gap: 6px !important;
  }
  .editor-topbar .editor-brand-name,
  .editor-topbar .editor-divider,
  .editor-topbar #save-status {
    display: none !important;
  }
  .editor-topbar #project-title {
    flex: 1 1 130px !important;
    width: auto !important;
    min-width: 110px !important;
    height: 34px !important;
    font-size: 13px !important;
    padding: 6px 10px !important;
  }
  .editor-topbar .b {
    min-height: 34px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }
  .editor-thumbnails {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: 224px !important;
    max-width: 80vw;
    height: 100vh;
    height: 100dvh;
    z-index: 1200 !important;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.24);
  }
  .editor-thumbnails.drawer-open {
    transform: translateX(0);
  }
  .editor-inspector {
    position: fixed !important;
    top: 0;
    right: 0;
    bottom: 0;
    width: 340px !important;
    max-width: 90vw;
    height: 100vh;
    height: 100dvh;
    z-index: 1200 !important;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.22);
    display: flex !important;
  }
  .editor-inspector.drawer-open {
    transform: translateX(0);
  }
  .editor-inspector.collapsed {
    display: flex !important;
    transform: translateX(100%);
    pointer-events: none;
  }
  .editor-stage-viewport {
    padding: 12px 10px !important;
  }
}

/* ========================================================================== */
/* Modern SaaS Premium Animations, Micro-Interactions & Ambient Visual System */
/* ========================================================================== */

/* Lustrous Button Sweep & Tactical Elevation */
.bp {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, background-color 0.2s ease;
}
.bp::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -130%;
  width: 65%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: rotate(25deg);
  pointer-events: none;
  transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.bp:hover:not(:disabled)::after {
  left: 160%;
}
.bp:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(81, 70, 229, 0.38);
}
.bp:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 12px -2px rgba(81, 70, 229, 0.3);
}

.bs {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.bs:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08);
}
.bs:active:not(:disabled) {
  transform: translateY(0);
}

/* Ambient Glow & Mesh Lighting */
.ambient-mesh {
  position: absolute;
  width: 780px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(81, 70, 229, 0.16) 0%, rgba(139, 92, 246, 0.09) 38%, rgba(34, 211, 238, 0.05) 65%, transparent 75%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  animation: ambientFloat 9s ease-in-out infinite alternate;
}
@keyframes ambientFloat {
  0% { transform: translate(-50%, 0) scale(0.96); opacity: 0.75; }
  50% { transform: translate(-50%, -18px) scale(1.06); opacity: 0.95; }
  100% { transform: translate(-50%, 10px) scale(1.02); opacity: 0.85; }
}

/* Hero Staggered Entrance Animations */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-anim-1 { animation: heroFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both; }
.hero-anim-2 { animation: heroFadeUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
.hero-anim-3 { animation: heroFadeUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both; }
.hero-anim-4 { animation: heroFadeUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both; }
.hero-anim-box { animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both; }

/* Floating Badge Keyframe */
@keyframes floatBadgeAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.floating-badge {
  animation: floatBadgeAnim 3.8s ease-in-out infinite;
  will-change: transform;
}

/* Interactive Card Elevations */
.interactive-hover {
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.26s ease, border-color 0.26s ease;
}
.interactive-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -6px rgba(81, 70, 229, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  border-color: rgba(81, 70, 229, 0.3);
}

.hero-slide-preview {
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s ease, border-color 0.3s ease;
}
.hero-slide-preview:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 22px 42px -6px rgba(15, 23, 42, 0.28) !important;
  border-color: rgba(81, 70, 229, 0.4) !important;
}

/* Feature Cards Modern Glow & Border Accent */
.feature-card-glow {
  border: 1px solid #33335A;
  border-radius: 16px;
  padding: 22px;
  background: #1F1F38;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
  position: relative;
}
.feature-card-glow:hover {
  transform: translateY(-4px);
  border-color: #22D3EE;
  box-shadow: 0 14px 32px rgba(34, 211, 238, 0.14);
}
.feature-card-glow:hover .f-dot {
  box-shadow: 0 0 12px #22D3EE;
  transform: scale(1.25);
}
.f-dot {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Template Showcase Cards */
.tpl-showcase-card {
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}
.tpl-showcase-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 48px -8px rgba(81, 70, 229, 0.18), 0 8px 18px rgba(0, 0, 0, 0.06) !important;
  border-color: var(--primary, #5146E5) !important;
}
.tpl-showcase-card .tpl-cta-btn {
  transition: transform 0.22s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.tpl-showcase-card:hover .tpl-cta-btn {
  transform: translateX(3px);
}

/* Pricing Card States */
.pricing-card-recommended {
  border: 2px solid var(--primary, #5146E5) !important;
  box-shadow: 0 18px 40px -8px rgba(81, 70, 229, 0.22), 0 0 0 1px rgba(81, 70, 229, 0.15) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.pricing-card-recommended:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 54px -10px rgba(81, 70, 229, 0.32), 0 0 0 1px rgba(81, 70, 229, 0.25) !important;
}
.pricing-card-standard {
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.26s ease, border-color 0.26s ease;
}
.pricing-card-standard:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -6px rgba(15, 23, 42, 0.08);
  border-color: #D1D5DB;
}

/* Demo Video Glassmorphic Wrapper */
.demo-video-wrapper {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.demo-video-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px -8px rgba(15, 23, 42, 0.24) !important;
  border-color: rgba(81, 70, 229, 0.4) !important;
}

/* Modern FAQ Accordion with Rotating Indicator & Smooth Slide-down */
details.faq-item {
  background: #FFFFFF;
  border: 1px solid #E7E7F2;
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
details.faq-item:hover {
  border-color: #CBD5E1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}
details.faq-item[open] {
  border-color: var(--primary, #5146E5);
  background: #FAFAFF;
  box-shadow: 0 10px 24px -4px rgba(81, 70, 229, 0.1);
}
details.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  color: #17172B;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
details.faq-item summary::-webkit-details-marker {
  display: none;
}
details.faq-item summary .faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #EEEDFD;
  color: var(--primary, #5146E5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  margin-left: 12px;
}
details.faq-item[open] summary .faq-icon {
  transform: rotate(45deg);
  background: var(--primary, #5146E5);
  color: #FFFFFF;
}
details.faq-item .faq-body {
  color: #5B5F77;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
  animation: faqSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes faqSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll-Triggered Reveal Classes */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.scroll-reveal.is-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-anim-1, .hero-anim-2, .hero-anim-3, .hero-anim-4, .hero-anim-box,
  .ambient-mesh, .floating-badge, .scroll-reveal, details.faq-item .faq-body {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .bp::after { display: none !important; }
}
