/* ==========================================
   LANDING V2 — RoundCircle redesign
   ========================================== */

/* disable CSS smooth-scroll — GSAP ScrollTrigger normalizeScroll handles it */
html {
  scroll-behavior: auto !important;
}

:root {
  --lv2-gold: #f5a623;
  --lv2-gold-dark: #d4871b;
  --lv2-dark: #0a0f1c;
  --lv2-dark-2: #111827;
  --lv2-dark-card: #151d2e;
  --lv2-border: rgba(255, 255, 255, 0.08);
  --lv2-text-muted: #9ca3af;
  --lv2-green: #10b981;
  --lv2-blue: #3b82f6;
  --lv2-purple: #8b5cf6;
  --lv2-accent: rgba(245, 166, 35, 0.12);

  /* Override frontend.css font variables so all sections share one stack */
  --default-font: 'Inter', system-ui, sans-serif;
  --heading-font: 'Poppins', sans-serif;
  --nav-font: 'Inter', sans-serif;
}

body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #1f2937;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
}

/* ==========================================
   HEADER / NAVBAR
   ========================================== */

.lv2-header {
  background: rgba(10, 15, 28, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--lv2-border);
  height: 70px;
  z-index: 9999;
  transition: all 0.3s ease;
}

.lv2-logo img {
  height: 38px;
}

.navmenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navmenu ul li a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.navmenu ul li a:hover,
.navmenu ul li a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta-login {
  background: var(--lv2-gold) !important;
  color: #000 !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: 20px !important;
  margin-left: 8px;
}

.nav-cta-login:hover {
  background: var(--lv2-gold-dark) !important;
  color: #000 !important;
}

.mobile-nav-toggle {
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: none;
}

@media (max-width: 1200px) {
  .mobile-nav-toggle {
    display: block;
  }
  .navmenu {
    display: none;
  }
  .navmenu.active {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--lv2-dark);
    padding: 20px;
    border-top: 1px solid var(--lv2-border);
  }
  .navmenu.active ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .navmenu.active ul li a {
    display: block;
    padding: 10px 16px;
  }
}

/* ==========================================
   HERO
   ========================================== */

.lv2-hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, #0a0f1c 0%, #0f1a2e 50%, #0a0f1c 100%);
  position: relative;
  overflow: hidden;
}

.lv2-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.lv2-hero::after {
  display: none;
}

/* Aurora orb divs — animated by GSAP parallax */
.lv2-hero-orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  pointer-events: none;
  z-index: 0;
}

.lv2-hero-orb--1 {
  width: 620px;
  height: 620px;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.32) 0%,
    transparent 70%
  );
  filter: blur(90px);
  top: -200px;
  right: -120px;
}

.lv2-hero-orb--2 {
  width: 460px;
  height: 460px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.22) 0%,
    transparent 70%
  );
  filter: blur(90px);
  bottom: -130px;
  left: -80px;
}

.lv2-hero-orb--3 {
  width: 360px;
  height: 360px;
  background: radial-gradient(
    circle,
    rgba(245, 166, 35, 0.1) 0%,
    transparent 70%
  );
  filter: blur(70px);
  top: 30%;
  left: 38%;
}

/* Hero container above orbs and canvas */
.lv2-hero .container {
  position: relative;
  z-index: 2;
}

/* Hero title: overflow hidden enables the yPercent slide-up reveal */
#hero-title {
  overflow: hidden;
  padding-bottom: 4px;
}

.hl {
  display: block;
}

.lv2-hero-row {
  gap: 40px 0;
}

.lv2-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.3);
  color: var(--lv2-gold);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lv2-hero-text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}

.lv2-gradient {
  background: linear-gradient(135deg, var(--lv2-gold), #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lv2-hero-sub {
  font-size: 17px;
  color: var(--lv2-text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
}

.lv2-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.lv2-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lv2-gold);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 24px rgba(245, 166, 35, 0.3);
}

.lv2-btn-primary:hover {
  background: var(--lv2-gold-dark);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245, 166, 35, 0.4);
}

.lv2-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: all 0.2s ease;
}

.lv2-btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.lv2-trust-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.lv2-trust-item {
  display: flex;
  flex-direction: column;
}

.lv2-trust-num {
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lv2-trust-lbl {
  font-size: 12px;
  color: var(--lv2-text-muted);
  margin-top: 2px;
}

.lv2-trust-divider {
  width: 1px;
  height: 36px;
  background: var(--lv2-border);
}

/* Hero visual card stack */
.lv2-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.lv2-card-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 400px;
}

.lv2-hcard {
  background: var(--lv2-dark-card);
  border: 1px solid var(--lv2-border);
  will-change: transform;
  border-radius: 12px;
  padding: 18px 20px;
}

.lv2-hcard--main {
  border-color: rgba(245, 166, 35, 0.2);
}

.lv2-hcard-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--lv2-text-muted);
  font-size: 13px;
}

.lv2-hcard-header i {
  color: var(--lv2-gold);
  font-size: 16px;
}

.lv2-hcard-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.lv2-hcard-label {
  display: block;
  font-size: 12px;
  color: var(--lv2-text-muted);
  margin-bottom: 12px;
}

.lv2-hcard-bar {
  background: rgba(255, 255, 255, 0.08);
  height: 4px;
  border-radius: 4px;
  overflow: hidden;
}

.lv2-hcard-progress {
  background: linear-gradient(90deg, var(--lv2-gold), #ff8c42);
  height: 100%;
  border-radius: 4px;
}

.lv2-hcard--loan {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.lv2-hcard--loan i {
  color: var(--lv2-green);
  font-size: 18px;
  flex-shrink: 0;
}

.lv2-hcard--mpesa {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  flex-wrap: wrap;
}

.lv2-hcard--mpesa i {
  color: var(--lv2-blue);
  font-size: 18px;
  flex-shrink: 0;
}

.lv2-hcard-auto {
  margin-left: auto;
  background: rgba(16, 185, 129, 0.15);
  color: var(--lv2-green);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

/* ==========================================
   EYEBROW + SECTION TITLES
   ========================================== */

.lv2-eyebrow {
  display: inline-block;
  background: var(--lv2-accent);
  color: var(--lv2-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.lv2-eyebrow--light {
  background: rgba(245, 166, 35, 0.15);
}

.lv2-section-h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 16px;
}

.lv2-section-h2--light {
  color: #fff;
}

.lv2-section-sub {
  font-size: 17px;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==========================================
   PROBLEM SECTION
   ========================================== */

/* override section { overflow: clip } so pinned cards can fly in from off-screen */
#problem.lv2-problem,
#how-it-works.lv2-how {
  overflow: visible;
}

.lv2-problem {
  background: #f9fafb;
}

.lv2-problem-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px 28px;
  height: 100%;
  will-change: transform;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.lv2-problem-card:hover {
  border-color: var(--lv2-gold);
  box-shadow: 0 8px 32px rgba(245, 166, 35, 0.1);
}

.lv2-problem-icon {
  width: 52px;
  height: 52px;
  background: rgba(245, 166, 35, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.lv2-problem-icon i {
  font-size: 24px;
  color: var(--lv2-gold);
}

.lv2-problem-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
}

.lv2-problem-card p {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================
   FEATURES
   ========================================== */

.lv2-features {
  background: #fff;
}

.lv2-feat-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  height: 100%;
  will-change: transform;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.lv2-feat-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.08);
}

.lv2-feat-card--dark {
  background: var(--lv2-dark-2);
  border-color: var(--lv2-border);
  color: #fff;
}

.lv2-feat-card--dark:hover {
  border-color: rgba(245, 166, 35, 0.4);
  box-shadow: 0 12px 48px rgba(245, 166, 35, 0.12);
}

.lv2-feat-card--large {
  padding: 36px;
}

.lv2-feat-card--accent {
  background: linear-gradient(
    135deg,
    rgba(245, 166, 35, 0.05),
    rgba(255, 140, 66, 0.05)
  );
  border-color: rgba(245, 166, 35, 0.2);
}

.lv2-feat-card--accent:hover {
  border-color: rgba(245, 166, 35, 0.4);
  box-shadow: 0 8px 32px rgba(245, 166, 35, 0.1);
}

.lv2-feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--lv2-accent);
}

.lv2-feat-card--dark .lv2-feat-icon {
  background: rgba(245, 166, 35, 0.15);
}

.lv2-feat-icon i {
  font-size: 22px;
  color: var(--lv2-gold);
}

.lv2-feat-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
}

.lv2-feat-card--dark h3 {
  color: #fff;
}

.lv2-feat-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.65;
  margin: 0 0 16px;
}

.lv2-feat-card--dark p {
  color: rgba(255, 255, 255, 0.65);
}

.lv2-feat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--lv2-gold);
  background: rgba(245, 166, 35, 0.12);
  padding: 4px 10px;
  border-radius: 10px;
  letter-spacing: 0.03em;
}

/* ==========================================
   HOW IT WORKS
   ========================================== */

.lv2-how {
  background: #f9fafb;
}

.lv2-step-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 36px 28px;
  height: 100%;
  position: relative;
  will-change: transform;
  transition: box-shadow 0.25s ease;
}

.lv2-step-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.lv2-step-num {
  font-family: 'Poppins', sans-serif;
  font-size: 52px;
  font-weight: 900;
  color: rgba(245, 166, 35, 0.12);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}

.lv2-step-icon {
  width: 52px;
  height: 52px;
  background: var(--lv2-accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.lv2-step-icon i {
  font-size: 24px;
  color: var(--lv2-gold);
}

.lv2-step-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}

.lv2-step-card p {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.7;
  margin: 0;
}

/* ==========================================
   ROLES
   ========================================== */

.lv2-roles {
  background: #fff;
}

.lv2-role-card {
  border-radius: 20px;
  padding: 36px;
  height: 100%;
  will-change: transform;
}

.lv2-role-card--admin {
  background: var(--lv2-dark-2);
  border: 1px solid var(--lv2-border);
}

.lv2-role-card--member {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.lv2-role-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--lv2-border);
}

.lv2-role-card--member .lv2-role-header {
  border-bottom-color: #e5e7eb;
}

.lv2-role-header i {
  font-size: 28px;
  color: var(--lv2-gold);
}

.lv2-role-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.lv2-role-card--member .lv2-role-header h3 {
  color: #111827;
}

.lv2-role-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lv2-role-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.lv2-role-list--light li {
  color: #374151;
}

.lv2-role-list li i {
  color: var(--lv2-green);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ==========================================
   ACCOUNTING CALLOUT
   ========================================== */

.lv2-accounting {
  background: linear-gradient(135deg, var(--lv2-dark) 0%, #0f1a2e 100%);
}

.lv2-acct-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 28px;
}

.lv2-acct-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lv2-acct-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.lv2-acct-point i {
  color: var(--lv2-green);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* GL Preview Widget */
.lv2-gl-preview {
  background: var(--lv2-dark-card);
  border: 1px solid var(--lv2-border);
  border-radius: 16px;
  overflow: hidden;
  font-size: 12px;
}

.lv2-gl-row {
  display: grid;
  grid-template-columns: 60px 80px 1fr 70px 70px;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--lv2-border);
  color: rgba(255, 255, 255, 0.7);
  align-items: center;
}

.lv2-gl-row:last-of-type {
  border-bottom: none;
}

.lv2-gl-header {
  background: rgba(255, 255, 255, 0.04);
  color: var(--lv2-text-muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lv2-gl-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--lv2-green);
  background: rgba(16, 185, 129, 0.08);
  border-top: 1px solid var(--lv2-border);
}

/* ==========================================
   FOOTER
   ========================================== */

.lv2-footer-top {
  padding-top: 60px;
  padding-bottom: 40px;
}

.lv2-footer-logo {
  height: 36px;
  margin-bottom: 16px;
  display: block;
}

.lv2-footer-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 20px;
}

.lv2-footer-heading {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.lv2-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lv2-footer-links li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.lv2-footer-links li a:hover {
  color: var(--lv2-gold);
}

.lv2-footer-contact {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.lv2-footer-contact i {
  color: var(--lv2-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.lv2-footer-bottom {
  border-top: 1px solid var(--lv2-border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.lv2-footer-bottom .copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.lv2-footer-bottom .credits {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.lv2-footer-bottom .credits a {
  color: var(--lv2-gold);
  text-decoration: none;
}

/* Social links */
.social-links {
  gap: 10px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--lv2-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s ease;
}

.social-links a:hover {
  border-color: var(--lv2-gold);
  color: var(--lv2-gold);
  background: var(--lv2-accent);
}

/* ==========================================
   SECTION SPACING
   ========================================== */

.lv2-problem,
.lv2-features,
.lv2-how,
.lv2-roles,
.lv2-accounting {
  padding: 80px 0;
}

/* ==========================================
   DARK BACKGROUND UTILITY
   ========================================== */

.dark-background .lv2-section-h2 {
  color: #fff;
}

/* ==========================================
   SCROLL TOP
   ========================================== */

.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  background: var(--lv2-gold);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: all 0.3s ease;
  color: #000;
  font-size: 20px;
  text-decoration: none;
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

.scroll-top:hover {
  background: var(--lv2-gold-dark);
  color: #000;
  transform: translateY(-3px);
}

/* ==========================================
   PRELOADER
   ========================================== */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--lv2-dark);
  transition: opacity 0.6s ease;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
  .lv2-hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .lv2-trust-bar {
    gap: 16px;
  }

  .lv2-trust-divider {
    display: none;
  }

  .lv2-role-card--admin,
  .lv2-role-card--member {
    padding: 24px;
  }

  .lv2-gl-row {
    grid-template-columns: 50px 70px 1fr 60px 60px;
    font-size: 11px;
  }

  .lv2-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .lv2-hero-actions {
    flex-direction: column;
  }

  .lv2-btn-primary,
  .lv2-btn-outline {
    text-align: center;
    justify-content: center;
  }

  .lv2-gl-row {
    grid-template-columns: 45px 65px 1fr 55px;
  }

  .lv2-gl-row span:last-child {
    display: none;
  }
}
