/* ============================================================
       FRANCHISEE PAGE — SCOPED STYLES
       All classes prefixed with .fq- to avoid collision with
       the existing style__2_.css file.
       Inherits CSS variables from the parent stylesheet.
    ============================================================ */

/* Fallback variables in case page is opened standalone */
 :root {
      --primary: #00d4ff;
      --primary-dark: #1A3865;
      --secondary: #10b981;
      --accent: #0f172a;
      --card-radius: 16px;
      --neon: #39ff88;
      --bg-main: #f1f5f9;
      --glass-bg: rgba(255,255,255,0.65);
      --glass-border: rgba(255,255,255,0.45);
      --glass-shadow: 0 8px 32px 0 rgba(148,163,184,0.18);
      --text-primary: #1e293b;
      --text-secondary: #475569;
      --text-light: #ffffff;
      --font-family: "Inter", sans-serif;
      --font-display: "Inter", sans-serif;
      --card-bg: #ffffff;
      --card-shadow: 0 2px 20px rgba(0,0,0,0.07);
      --teal: #3dbcb0;
      --cta-gradient: linear-gradient(90deg, #00d4ff 0%, #00a8ff 100%);
      --primary-gradient: linear-gradient(90deg, #1A3865 0%, #0865A9 100%);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } 

.fq-page {
  font-family: var(--font-family);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ── Shared utilities ── */
.fq-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.fq-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.fq-tag-chip {
  display: inline-block;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--neon);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

/* ============================================================
       SECTION 1 — HERO: THE OPPORTUNITY BEFORE YOU
    ============================================================ */
.fq-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary-gradient);
  overflow: hidden;
}

.fq-hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
}

.fq-hero__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.18) 0%,
    transparent 70%
  );
  top: -100px;
  right: -100px;
  z-index: 0;
  pointer-events: none;
}

.fq-hero__glow2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(57, 255, 136, 0.1) 0%,
    transparent 70%
  );
  bottom: -80px;
  left: 5%;
  z-index: 0;
}

.fq-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 120px 24px 80px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.fq-hero__content h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--text-light);
  line-height: 1.1;
  margin-bottom: 20px;
}

.fq-hero__content h1 span {
  color: var(--primary);
}

.fq-hero__sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
  font-style: italic;
}

.fq-hero__desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}

.fq-hero__cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.fq-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.fq-btn--primary {
  background: var(--cta-gradient);
  color: #fff;
}

.fq-btn--primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.fq-btn--outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.fq-btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Stats table panel */
.fq-hero__stats-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(12px);
}

.fq-hero__stats-panel h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.25);
}

.fq-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 16px;
}

.fq-stat-row:last-child {
  border-bottom: none;
}

.fq-stat-row__label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  flex: 1;
  line-height: 1.4;
}

.fq-stat-row__val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-light);
  text-align: right;
  white-space: nowrap;
}

.fq-stat-row__val.fq-highlight {
  color: var(--neon);
}

.fq-hero__footnote {
  margin-top: 20px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  font-style: italic;
}

@media (max-width: 900px) {
  .fq-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 100px;
  }
}

/* ============================================================
       SECTION 2 — WHERE THE GRID FALLS SHORT: 4 CRACKS
    ============================================================ */
.fq-cracks {
  background: #f8fafc;
  padding: 96px 0;
}

.fq-cracks__head {
  text-align: center;
  margin-bottom: 64px;
}

.fq-cracks__head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.fq-cracks__head h2 span {
  color: var(--primary);
}

.fq-cracks__head p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.fq-cracks__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.fq-crack-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--card-shadow);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.fq-crack-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(26, 56, 101, 0.12);
}

.fq-crack-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--cta-gradient);
  border-radius: 20px 20px 0 0;
}

.fq-crack-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(26, 56, 101, 0.1),
    rgba(0, 212, 255, 0.1)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.fq-crack-card__num {
  position: absolute;
  top: 22px;
  right: 28px;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(26, 56, 101, 0.06);
  line-height: 1;
}

.fq-crack-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.fq-crack-card p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

@media (max-width: 640px) {
  .fq-cracks__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
       SECTION 3 — THE QUANTRO GRID 120 KW ADVANTAGE
    ============================================================ */
.fq-advantage {
  background: var(--primary-dark);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.fq-advantage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.fq-advantage__inner {
  position: relative;
  z-index: 2;
}

.fq-advantage__head {
  text-align: center;
  margin-bottom: 60px;
}

.fq-advantage__head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--text-light);
  margin-bottom: 10px;
}

.fq-advantage__head h2 span {
  color: var(--primary);
}

.fq-advantage__sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  margin-bottom: 8px;
}

.fq-advantage__tagline {
  font-size: 0.95rem;
  color: var(--neon);
  font-style: italic;
}

.fq-advantage__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fq-feat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 30px 26px;
  transition:
    background 0.3s,
    border-color 0.3s,
    transform 0.3s;
}

.fq-feat-card:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-4px);
}

.fq-feat-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.fq-feat-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.fq-feat-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .fq-advantage__features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .fq-advantage__features {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
       SECTION 4 — TERRITORY PARTNERSHIP MODEL
    ============================================================ */
.fq-territory {
     background: var(--btn-gradient);
  padding: 96px 0;
}

.fq-territory__head {
  text-align: center;
  margin-bottom: 56px;
}

.fq-territory__head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 10px;
}

.fq-territory__head h2 span {
  color: var(--primary-dark);
}

.fq-territory__head .fq-sub {
  font-size: 1.05rem;
  color: var(--neon);
  margin-bottom: 6px;
  font-style: italic;
}

.fq-territory__head p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Pyramid tiers */
.fq-tiers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 44px;
}

.fq-tier {
  width: 100%;
  max-width: 680px;
  border-radius: 14px;
  padding: 28px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: -4px;
  position: relative;
  transition: transform 0.3s;
}

.fq-tier:hover {
  transform: scale(1.015);
  z-index: 2;
}

.fq-tier--1 {
  background: linear-gradient(90deg, #1a3865, #0865a9);
  color: #fff;
  clip-path: polygon(5% 0%, 95% 0%, 100% 100%, 0% 100%);
  padding-top: 36px;
}

.fq-tier--2 {
  background: linear-gradient(90deg, #0865a9, #0ea5d4);
  color: #fff;
  clip-path: polygon(3% 0%, 97% 0%, 100% 100%, 0% 100%);
}

.fq-tier--3 {
  background: linear-gradient(90deg, #0ea5d4, #3dbcb0);
  color: #fff;
  clip-path: polygon(1% 0%, 99% 0%, 100% 100%, 0% 100%);
  margin-bottom: 0;
}

.fq-tier__label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.fq-tier__invest {
  text-align: right;
}

.fq-tier__invest .fq-amount {
  font-size: 1.5rem;
  font-weight: 900;
  display: block;
  line-height: 1;
}

.fq-tier__install {
  font-size: 0.82rem;
  opacity: 0.8;
  margin-top: 2px;
}

.fq-territory__note {
  background: #f8fafc;
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 18px 24px;
  max-width: 680px;
  margin: 0 auto;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.fq-territory__note strong {
  color: var(--primary-dark);
}

@media (max-width: 560px) {
  .fq-tier {
    flex-direction: column;
    text-align: center;
    clip-path: none !important;
    border-radius: 14px;
    margin-bottom: 12px;
  }
  .fq-tier__invest {
    text-align: center;
  }
}

/* ============================================================
       SECTION 5 — YOUR COMPETITIVE MOATS
    ============================================================ */
.fq-moats {
  background: var(--primary-medium);
  padding: 96px 0;
}

.fq-moats__head {
  text-align: center;
  margin-bottom: 60px;
}

.fq-moats__head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 10px;
}

.fq-moats__head h2 span {
  color: var(--primary);
}

.fq-moats__head p {
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

.fq-moats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.fq-moat-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--card-shadow);
  border: 1px solid #e2e8f0;
  position: relative;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fq-moat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(26, 56, 101, 0.12);
  border-color: var(--primary);
}

.fq-moat-card__num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fq-moat-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.fq-moat-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.fq-moat-card__profit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(57, 255, 136, 0.1);
  border: 1px solid rgba(57, 255, 136, 0.3);
  color: #059669;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  margin-top: 4px;
}

/* ============================================================
       SECTION 6 — JOIN THE REVOLUTION / CTA
    ============================================================ */
.fq-cta-section {
  background: var(--primary-gradient);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.fq-cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.07) 1px, transparent 1px);
  background-size: 52px 52px;
}

.fq-cta-section__glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.15) 0%,
    transparent 65%
  );
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.fq-cta-section__inner {
  position: relative;
  z-index: 2;
}

/* 3 Steps */
.fq-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 64px;
}

.fq-step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 40px 28px;
  text-align: center;
  position: relative;
  transition: background 0.3s;
}

.fq-step:first-child {
  border-radius: 20px 0 0 20px;
}
.fq-step:last-child {
  border-radius: 0 20px 20px 0;
}

.fq-step:hover {
  background: rgba(255, 255, 255, 0.09);
}

.fq-step__icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}

.fq-step__action {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
  display: block;
}

.fq-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.fq-step p {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.6;
}

.fq-step__reward {
  margin-top: 16px;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--neon);
  background: rgba(57, 255, 136, 0.12);
  border: 1px solid rgba(57, 255, 136, 0.25);
  padding: 5px 14px;
  border-radius: 50px;
}

.fq-step__divider {
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--neon);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2);
}

.fq-step:last-child .fq-step__divider {
  display: none;
}

/* CTA block */
.fq-cta-block {
  text-align: center;
}

.fq-cta-block h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.fq-cta-block h2 span {
  color: var(--primary);
}

.fq-cta-block p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.fq-cta-block__btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.fq-btn--white {
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
}

.fq-btn--white:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.fq-role-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.fq-role-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  transition: background 0.3s;
}

.fq-role-card:hover {
  background: rgba(255, 255, 255, 0.12);
}

.fq-role-card__icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.fq-role-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.fq-role-card p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .fq-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .fq-step {
    border-radius: 16px !important;
  }
  .fq-step__divider {
    display: none !important;
  }
  .fq-role-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 640px) {
  .fq-cta-section {
    padding: 70px 0;
  }
}

/* ============================================================
       SCROLL ANIMATIONS
    ============================================================ */
.fq-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.fq-reveal.fq-visible {
  opacity: 1;
  transform: translateY(0);
}

.fq-reveal-d1 {
  transition-delay: 0.1s;
}
.fq-reveal-d2 {
  transition-delay: 0.2s;
}
.fq-reveal-d3 {
  transition-delay: 0.3s;
}
.fq-reveal-d4 {
  transition-delay: 0.4s;
}
.fq-reveal-d5 {
  transition-delay: 0.5s;
}
.fq-reveal-d6 {
  transition-delay: 0.6s;
}

@media (prefers-reduced-motion: reduce) {
  .fq-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Section divider wave ── */
.fq-wave {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.fq-wave svg {
  display: block;
  width: 100%;
}

/* ── Responsive tweaks shared ── */
@media (max-width: 768px) {
  .fq-container {
    padding: 0 16px;
  }
  .fq-hero__inner {
    padding: 90px 16px 60px;
  }
}
