/* =========================================
   FastFundAPP – Main Stylesheet
   ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #91e774;
  --green-dark: #6dc156;
  --green-light: #e6fcd9;
  --green-bg: #f2fded;
  --dark: #0d1117;
  --dark-2: #1a2332;
  --text: #111832;
  --text-2: #374151;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --card-bg: #f8fafc;
  --white: #ffffff;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --transition: 0.18s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

blockquote, q {
  font-family: Georgia, serif;
}

code, pre, kbd, samp {
  font-family: Menlo, 'Courier New', Courier, monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; display: block; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--green {
  background: var(--green);
  color: var(--text);
  border-color: var(--green);
}
.btn--green:hover {
  background: #8ce070;
  border-color: #8ce070;
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.btn--outline-dark {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--outline-dark:hover {
  border-color: var(--text-muted);
}

.btn--lg {
  padding: 14px 30px;
  font-size: 1rem;
}

.btn--sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav__logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.nav__logo-mark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo-text {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__login {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--transition);
}
.nav__login:hover { color: var(--text); }

/* --- Hero --- */
.hero {
  background: radial-gradient(ellipse 120% 80% at 60% -10%, #d4f5be 0%, #f5fef0 40%, #ffffff 75%);
  color: var(--text);
  text-align: center;
  padding: 80px 0 72px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(145,231,116,0.15);
  border: 1px solid rgba(145,231,116,0.5);
  color: #3a7a1a;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero__h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 820px;
  margin: 0 auto 20px;
}

.hero__sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero__stat {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  color: var(--text-2);
}

.hero__stat-icon {
  flex-shrink: 0;
  display: block;
  color: var(--green);
}

/* --- Section commons --- */
.section {
  padding: 88px 0;
}

.section--alt {
  background: #fafafa;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-bg);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

.section__sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* --- Three Steps --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__number-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.step__icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.step__badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.step__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.step__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow);
  border-color: #d1d5db;
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--green-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.125rem;
  color: var(--green);
}

.feature-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- Commission Examples --- */
.commission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.commission-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: box-shadow var(--transition);
}

.commission-card:hover {
  box-shadow: var(--shadow);
}

.commission-card__deal {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.commission-card__amount {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}

.commission-card__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.commission-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --- Target Audience Grid --- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.audience-card {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.audience-card:nth-child(4n) {
  border-right: none;
}

.audience-card:nth-last-child(-n+4) {
  border-bottom: none;
}

.audience-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--text-2);
}

.audience-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.audience-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--green-bg);
  border-top: 1px solid var(--green-light);
  border-bottom: 1px solid var(--green-light);
  padding: 72px 0;
  text-align: center;
}

.cta-banner__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

.cta-banner__sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 32px;
}

/* --- FAQ --- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

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

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  user-select: none;
  gap: 16px;
}

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

.faq-item summary .faq-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.22s ease, color 0.18s ease;
}

.faq-item[open] summary .faq-icon {
  transform: rotate(180deg);
  color: var(--green-dark);
}

.faq-item[open] summary {
  color: var(--green-dark);
}

.faq-answer {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 0 0 20px;
  max-width: 660px;
}

/* --- Final CTA --- */
.final-cta {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 88px 0;
}

.final-cta__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.final-cta__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* --- CTA Trust Row --- */
.cta-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.cta-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

.cta-trust-item svg {
  flex-shrink: 0;
  color: var(--green);
}

/* --- Footer --- */
.footer {
  background: var(--dark-2);
  color: rgba(255,255,255,0.65);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
}

.footer__logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.footer__logo-mark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer__copy {
  font-size: 0.8125rem;
}

.footer__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer__link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__link:hover { color: var(--white); }

/* --- Legal Pages --- */
.legal-hero {
  background: var(--dark);
  color: var(--white);
  padding: 56px 0 48px;
}

.legal-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.legal-hero__date {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

.legal-content {
  padding: 64px 0 80px;
  max-width: 820px;
  margin: 0 auto;
}

.legal-content .container {
  max-width: 820px;
}

.legal-notice {
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.875rem;
  color: #713f12;
  line-height: 1.6;
  margin-bottom: 40px;
  font-weight: 500;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.legal-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 10px;
}

.legal-section p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-section ul, .legal-section ol {
  margin: 10px 0 14px 22px;
}

.legal-section li {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 6px;
}

.legal-section strong {
  color: var(--text);
  font-weight: 600;
}

.legal-contact-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-top: 12px;
}

.legal-contact-box p {
  margin-bottom: 8px !important;
}

/* --- Stats Bar --- */
.stats-bar {
  background: linear-gradient(180deg, #f5fef0 0%, #ffffff 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stats-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stats-bar__icon {
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.stats-bar__value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.stats-bar__label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Hero CTA note --- */
.hero__cta-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  align-self: center;
}

/* --- Funding Solutions Grid --- */
.funding-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.funding-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow var(--transition), border-color var(--transition);
  position: relative;
}

.funding-card:hover {
  box-shadow: var(--shadow);
  border-color: #d1d5db;
}

.funding-card--featured {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

.funding-card--featured .funding-card__title {
  color: var(--white);
}

.funding-card--featured .funding-card__list li {
  color: rgba(255,255,255,0.75);
}

.funding-card--featured .funding-card__list li::before {
  background: var(--green);
}

.funding-card--cta {
  background: var(--green-bg);
  border-color: var(--green-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.funding-card__badge {
  display: inline-block;
  background: var(--green);
  color: var(--dark);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.funding-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.funding-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.funding-card__list li {
  font-size: 0.875rem;
  color: var(--text-2);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.funding-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-dark);
}

/* --- Industry Grid --- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.industry-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
}

.industry-item:nth-last-child(-n+4) {
  border-bottom: none;
}

.industry-item__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
}

.industry-item__label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.4;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 52px; }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .steps-grid::before { display: none; }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .commission-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .audience-card:nth-child(4n) {
    border-right: 1px solid var(--border);
  }

  .audience-card:nth-child(2n) {
    border-right: none;
  }

  .audience-card:nth-last-child(-n+4) {
    border-bottom: 1px solid var(--border);
  }

  .audience-card:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .funding-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

  .industry-item:nth-last-child(-n+4) {
    border-bottom: 1px solid var(--border);
  }

  .industry-item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__nav {
    gap: 8px 16px;
  }
}

@media (max-width: 560px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .audience-grid {
    grid-template-columns: 1fr;
  }
  .audience-card {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .audience-card:last-child {
    border-bottom: none !important;
  }
  .funding-grid {
    grid-template-columns: 1fr;
  }
  .nav__logo-img {
    height: 24px;
  }
  .hero__stat {
    padding: 0 16px;
  }
}
