:root {
  --fl-bg: #080a0d;
  --fl-bg-card: #0d1318;
  --fl-bg-header: transparent;
  --fl-border: #212e3e;
  --fl-text-primary: rgba(238, 244, 255, 0.88);
  --fl-text-secondary: #999999;
  --fl-accent: #f15025;
  --fl-accent-hover: #feb104;
  --fl-font-body: Inter, sans-serif;
  --fl-font-display: "Lazare Grotesk Trial", Inter, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body.fl-subpage {
  margin: 0;
  padding: 0;
  background: var(--fl-bg);
  color: var(--fl-text-primary);
  font-family: var(--fl-font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── BACKGROUND ── */
.fl-bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.fl-bg-layer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
  background: url("background.webp") 50% center / cover no-repeat lightgray;
  mix-blend-mode: difference;
}

/* ── WRAPPER ── */
.fl-page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── HEADER ── */
.fl-header {
  display: flex;
  align-items: center;
  padding: 24px 64px 0;
  background: transparent;
}

.fl-header-logo {
  margin-right: 64px;
  padding: 6px 4px;
  flex-shrink: 0;
}

.fl-header-logo img {
  height: 28px;
  display: block;
}

.fl-header-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.fl-header-nav a {
  font-family: var(--fl-font-display);
  font-size: 16px;
  line-height: 24px;
  color: #a6a0bb;
  text-decoration: none;
  margin-right: 24px;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.fl-header-nav a:hover,
.fl-header-nav a.fl-nav-active {
  color: rgba(238, 244, 255, 0.88);
  border-bottom-color: var(--fl-accent);
}

.fl-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
}

@media (max-width: 1024px) {
  .fl-header {
    padding: 16px 20px 0;
  }

  .fl-header-logo {
    margin-right: 0;
  }

  .fl-header-nav {
    display: none;
  }
}

/* ── MAIN CONTENT ── */
.fl-main {
  flex: 1;
  padding: 44px 80px 64px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .fl-main {
    padding: 32px 20px 48px;
  }
}

/* ── TYPOGRAPHY ── */
.fl-main h1 {
  font-family: var(--fl-font-display);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  color: rgba(238, 244, 255, 0.88);
  margin: 0 0 12px 0;
}

.fl-main h2 {
  font-family: var(--fl-font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.25;
  color: rgba(238, 244, 255, 0.88);
  margin: 48px 0 16px 0;
}

.fl-main h3 {
  font-family: var(--fl-font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(238, 244, 255, 0.88);
  margin: 24px 0 8px 0;
}

.fl-main p {
  color: var(--fl-text-primary);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 16px 0;
}

.fl-main a {
  color: var(--fl-accent);
  text-decoration: none;
  transition: color 0.2s;
}

.fl-main a:hover {
  color: var(--fl-accent-hover);
}

.fl-main ul,
.fl-main ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.fl-main li {
  margin-bottom: 6px;
  line-height: 1.65;
  color: var(--fl-text-primary);
}

.fl-page-intro {
  max-width: 720px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--fl-border);
  padding-bottom: 32px;
}

.fl-page-intro p {
  color: var(--fl-text-secondary);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

/* ── SECTION CARD ── */
.fl-section {
  margin-bottom: 40px;
}

.fl-card {
  background: var(--fl-bg-card);
  border: 1px solid var(--fl-border);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

@media (max-width: 1024px) {
  .fl-card {
    padding: 20px;
  }
}

/* ── FAQ ACCORDION ── */
.fl-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fl-faq-item {
  border-bottom: 1px solid var(--fl-border);
}

.fl-faq-item:first-child {
  border-top: 1px solid var(--fl-border);
}

.fl-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 20px 0;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.fl-faq-question h3 {
  font-family: var(--fl-font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(238, 244, 255, 0.88);
  margin: 0;
  flex: 1;
  transition: color 0.2s;
}

.fl-faq-question:hover h3 {
  color: #ffffff;
}

.fl-faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 100%;
  background: rgba(13, 19, 24, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fl-text-secondary);
  transition: transform 0.25s ease, color 0.2s;
}

.fl-faq-icon svg {
  display: block;
}

.fl-faq-item.fl-faq-open .fl-faq-icon {
  transform: rotate(180deg);
  color: var(--fl-accent);
}

.fl-faq-item.fl-faq-open .fl-faq-question h3 {
  color: rgba(238, 244, 255, 0.88);
}

.fl-faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.25s ease;
  padding: 0 0 0 0;
}

.fl-faq-item.fl-faq-open .fl-faq-answer {
  max-height: 600px;
  padding-bottom: 20px;
}

.fl-faq-answer p {
  color: var(--fl-text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.fl-faq-answer p + p {
  margin-top: 10px;
}

/* ── CONTENT SECTIONS (project page) ── */
.fl-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.fl-feature-item {
  background: var(--fl-bg-card);
  border: 1px solid var(--fl-border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s;
}

.fl-feature-item:hover {
  border-color: #2d4460;
}

.fl-feature-item h3 {
  font-family: var(--fl-font-display);
  font-size: 15px;
  font-weight: 500;
  color: rgba(238, 244, 255, 0.88);
  margin: 0 0 8px 0;
}

.fl-feature-item p {
  color: var(--fl-text-secondary);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

/* ── STAT BOXES ── */
.fl-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}

.fl-stat-box {
  flex: 1 1 160px;
  background: var(--fl-bg-card);
  border: 1px solid var(--fl-border);
  border-radius: 8px;
  padding: 24px 20px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.fl-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--fl-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.fl-stat-value {
  font-family: var(--fl-font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(238, 244, 255, 0.88);
}

/* ── BUTTONS ── */
.fl-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: var(--fl-font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: rgba(238, 244, 255, 0.88);
  background-image: linear-gradient(89deg, #f15025 84.42%, #feb104 105.46%);
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: opacity 0.2s;
}

.fl-btn-primary::before {
  position: absolute;
  content: "";
  inset: 0;
  border-radius: 8px;
  z-index: -1;
  transition: opacity 0.3s linear;
  opacity: 0;
  background-image: linear-gradient(89deg, #f15025 16.6%, #feb104 105.46%);
}

.fl-btn-primary:hover::before {
  opacity: 1;
}

.fl-btn-primary:hover {
  color: rgba(238, 244, 255, 0.88);
}

.fl-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 8px;
  border: 1px solid var(--fl-border);
  outline: none;
  cursor: pointer;
  font-family: var(--fl-font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--fl-accent);
  background: transparent;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.fl-btn-secondary:hover {
  color: var(--fl-accent-hover);
  border-color: #2d4460;
}

.fl-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ── INTERNAL LINK PILL ── */
.fl-inline-link {
  color: var(--fl-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.fl-inline-link:hover {
  color: var(--fl-accent-hover);
  border-bottom-color: var(--fl-accent-hover);
}

/* ── BREADCRUMB ── */
.fl-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--fl-text-secondary);
}

.fl-breadcrumb a {
  color: var(--fl-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.fl-breadcrumb a:hover {
  color: var(--fl-accent);
}

.fl-breadcrumb-sep {
  opacity: 0.5;
}

.fl-breadcrumb-current {
  color: rgba(238, 244, 255, 0.6);
}

/* ── DIVIDER ── */
.fl-divider {
  border: none;
  border-top: 1px solid var(--fl-border);
  margin: 40px 0;
}

/* ── FOOTER ── */
.fl-footer {
  border-top: 1px solid var(--fl-border);
  padding: 0 40px 60px;
  color: var(--fl-text-secondary);
}

.fl-footer-top {
  padding: 24px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fl-footer-logo img {
  height: 22px;
  display: block;
}

.fl-footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fl-footer-social a {
  display: inline-flex;
  align-items: center;
  height: 20px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.fl-footer-social a:hover {
  opacity: 1;
}

.fl-footer-social img {
  height: 20px;
  display: block;
}

.fl-footer-nav {
  display: flex;
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--fl-border);
  margin-bottom: 0;
}

.fl-footer-nav a {
  font-family: var(--fl-font-display);
  font-size: 14px;
  color: var(--fl-text-secondary);
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.2s;
}

.fl-footer-nav a:hover {
  color: rgba(238, 244, 255, 0.88);
}

.fl-footer-legal {
  padding: 32px 0 0;
}

.fl-footer-legal p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--fl-text-secondary);
  margin: 0 0 8px 0;
}

.fl-footer-legal p:last-child {
  margin-bottom: 0;
}

.fl-footer-legal a {
  color: var(--fl-accent);
  text-decoration: none;
  transition: color 0.2s;
}

.fl-footer-legal a:hover {
  color: var(--fl-accent-hover);
}

.fl-copyright {
  font-size: 13px;
  color: var(--fl-text-secondary);
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .fl-footer {
    padding: 0 20px 48px;
  }

  .fl-footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .fl-footer-nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .fl-stats-row {
    flex-direction: column;
  }

  .fl-stat-box {
    flex: 1 1 100%;
  }

  .fl-main h1 {
    font-size: 28px;
  }

  .fl-main h2 {
    font-size: 20px;
  }
}

/* ── MOBILE HEADER ── */
.fl-header-mobile {
  display: none;
  height: 60px;
  background: transparent;
  padding: 10px 12px;
  align-items: center;
  position: relative;
}

@media (max-width: 1024px) {
  .fl-header {
    display: none;
  }

  .fl-header-mobile {
    display: flex;
  }
}

.fl-header-mobile-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.fl-header-mobile-logo img {
  height: 24px;
  display: block;
}

/* ── HIGHLIGHT TEXT ── */
.fl-accent-text {
  color: var(--fl-accent);
}

/* ── TAG / BADGE ── */
.fl-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(241, 80, 37, 0.12);
  border: 1px solid rgba(241, 80, 37, 0.3);
  color: var(--fl-accent);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 8px;
  vertical-align: middle;
}

/* ── NOTICE BOX ── */
.fl-notice {
  background: rgba(241, 80, 37, 0.06);
  border: 1px solid rgba(241, 80, 37, 0.2);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--fl-text-secondary);
  line-height: 1.65;
}

.fl-notice a {
  color: var(--fl-accent);
  text-decoration: none;
}

.fl-notice a:hover {
  color: var(--fl-accent-hover);
}