/* ========================================================================
   MODEPH — Landing Page Styles
   Requires main.css loaded first for CSS custom properties
   ======================================================================== */

/* ========== Reset for landing page ========== */
.landing-page {
  overflow-x: hidden;
  --font-display: "PP Neue Montreal", -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-mono-landing: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

/* ========== Header — Transparent + Big Logo ========== */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 24px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-header.scrolled {
  padding: 6px 16px;
}

.landing-header-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scrolled: compact glass bar */
.landing-header.scrolled .landing-header-inner {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 8px 16px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.03);
}

/* Logo — huge by default, shrinks on scroll */
.landing-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.landing-logo img {
  height: 140px;
  width: auto;
  object-fit: contain;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
/* On hero (not scrolled): logo blanc via filtre */
.landing-header:not(.scrolled) .landing-logo img {
  filter: brightness(0) invert(1);
}
.landing-header.scrolled .landing-logo img {
  height: 48px;
  filter: none;
}
@media (max-width: 767px) {
  .landing-logo img { height: 90px; }
  .landing-header.scrolled .landing-logo img { height: 40px; }
}
.landing-header.scrolled .landing-logo:hover img {
  filter: brightness(1.03);
}

/* Navigation — clean minimal links (hidden when not scrolled) */
.landing-nav {
  display: none;
  align-items: center;
  gap: 4px;
}
.landing-nav a {
  text-decoration: none;
  color: #71717a;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.landing-nav a:hover {
  color: #18181b;
  background: rgba(0,0,0,0.04);
}

/* On hero (not scrolled), nav links are white */
.landing-header:not(.scrolled) .landing-nav a {
  color: rgba(255,255,255,0.6);
}
.landing-header:not(.scrolled) .landing-nav a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.08);
}

/* Header right group */
.landing-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Language selector — compact */
.landing-lang-bar {
  display: none;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(0,0,0,0.04);
  border-radius: 8px;
}
.landing-header:not(.scrolled) .landing-lang-bar {
  background: rgba(255,255,255,0.08);
}
.landing-lang-btn {
  background: none;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font);
  color: #a1a1aa;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.landing-header:not(.scrolled) .landing-lang-btn {
  color: rgba(255,255,255,0.45);
}
.landing-lang-btn:hover {
  color: #18181b;
}
.landing-header:not(.scrolled) .landing-lang-btn:hover {
  color: #ffffff;
}
.landing-lang-btn.active {
  color: #fff;
  background: #18181b;
}
.landing-header:not(.scrolled) .landing-lang-btn.active {
  background: rgba(255,255,255,0.2);
  color: #ffffff;
}

/* shadcn-style buttons */
.header-btn {
  display: none;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  padding: 9px 18px;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
}
.header-btn--ghost {
  background: transparent;
  color: #71717a;
}
.header-btn--ghost:hover {
  background: rgba(0,0,0,0.04);
  color: #18181b;
}
.landing-header:not(.scrolled) .header-btn--ghost {
  color: rgba(255,255,255,0.6);
}
.landing-header:not(.scrolled) .header-btn--ghost:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.08);
}
.header-btn--primary {
  background: #006bb6;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0,107,182,0.15);
}
.header-btn--primary:hover {
  background: #005a9e;
  box-shadow: 0 4px 12px rgba(0,107,182,0.25);
}
.header-btn--primary svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}
.header-btn--primary:hover svg {
  transform: translateX(2px);
}
.landing-header:not(.scrolled) .header-btn--primary {
  background: #ffffff;
  color: #006bb6;
}
.landing-header:not(.scrolled) .header-btn--primary:hover {
  background: #f0f6ff;
}

/* Hamburger */
.landing-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
}
.landing-hamburger:hover {
  background: rgba(0,0,0,0.04);
}
.landing-header:not(.scrolled) .landing-hamburger:hover {
  background: rgba(255,255,255,0.08);
}
.landing-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #18181b;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.landing-header:not(.scrolled) .landing-hamburger span {
  background: #ffffff;
}
.landing-hamburger.open {
  background: rgba(0,0,0,0.04);
}
.landing-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.landing-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.landing-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu — slide down from header */
.landing-mobile-menu {
  position: fixed;
  top: 84px;
  left: 20px;
  right: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 999;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
}
.landing-mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.landing-mobile-menu a {
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: 12px;
  transition: all 0.2s var(--ease);
  letter-spacing: -0.01em;
}
.landing-mobile-menu a:hover {
  background: var(--accent-light);
  color: var(--accent);
}
.landing-mobile-menu .mobile-lang-bar {
  display: flex;
  gap: 4px;
  padding: 8px;
  margin-top: 4px;
  background: var(--bg-tertiary);
  border-radius: 12px;
}
.landing-mobile-menu .mobile-cta {
  display: block;
  text-align: center;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 12px;
  margin-top: 4px;
  box-shadow: 0 4px 16px rgba(0,107,182,0.2);
  transition: all 0.3s var(--ease);
  text-decoration: none;
}
.landing-mobile-menu .mobile-cta:hover {
  box-shadow: 0 6px 24px rgba(0,107,182,0.35);
  transform: translateY(-1px);
}

/* ========== Hero — Dark Nexus Style ========== */
.landing-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(160deg, #003366 0%, #006bb6 40%, #004785 70%, #001a33 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,107,182,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.04) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.hero-top {
  display: none; /* logo is in the header now */
}
.hero-top-logo {
  display: none;
}

.hero-center {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 850px;
  padding: 0 24px;
  margin-top: 40px;
}

.hero-center h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 2rem;
}

.hero-mono {
  font-family: var(--font-mono-landing);
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  transition: color 0.3s ease;
}
.hero-center:hover .hero-mono {
  color: rgba(255,255,255,0.75);
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
}
.hero-btn--primary {
  background: #ffffff;
  color: #006bb6;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.hero-btn--primary:hover {
  background: #f0f6ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.hero-btn--outline {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.3);
  font-weight: 500;
}
.hero-btn--outline:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.hero-bottom-left {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 10;
  font-family: var(--font-mono-landing);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-label {
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
.hero-email {
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: color 0.3s ease;
}
.hero-email:hover {
  color: #ffffff;
}

.hero-bottom-right {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 10;
  text-align: right;
  font-family: var(--font-mono-landing);
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .hero-center h1 { font-size: 2.2rem; }
  .hero-bottom-left, .hero-bottom-right { display: none; }
  .hero-top { top: 90px; }
}

/* ========== Services Section ========== */
.landing-services {
  padding: 100px 24px;
  background: var(--bg);
}

.landing-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.landing-section-title {
  font-family: var(--font-display);
  text-align: center;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}

.landing-section-subtitle {
  text-align: center;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

.landing-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.landing-service-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.landing-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.landing-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.landing-service-card:hover::before {
  opacity: 1;
}

.landing-service-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: transform 0.4s var(--ease);
}
.landing-service-card:hover .landing-service-icon {
  transform: scale(1.1) rotate(-3deg);
}
.landing-service-icon svg {
  width: 32px;
  height: 32px;
}

.landing-service-icon--loans {
  background: var(--accent-light);
  color: var(--accent);
}
.landing-service-icon--cercles {
  background: var(--success-bg);
  color: var(--success);
}
.landing-service-icon--dashboard {
  background: var(--purple-bg);
  color: var(--purple);
}

.landing-service-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.landing-service-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== About Section ========== */
.landing-about {
  padding: 100px 24px;
  background: var(--bg-tertiary);
}

.landing-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 60px;
}

.landing-about-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.4s var(--ease);
}
.landing-about-card:hover {
  box-shadow: var(--shadow);
  border-color: transparent;
}

.landing-about-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.landing-about-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.landing-about-icon svg {
  width: 24px;
  height: 24px;
}
.landing-about-icon--desc {
  background: var(--accent-light);
  color: var(--accent);
}
.landing-about-icon--mission {
  background: var(--success-bg);
  color: var(--success);
}
.landing-about-icon--vision {
  background: var(--purple-bg);
  color: var(--purple);
}

.landing-about-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.landing-about-card-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ========== Footer ========== */
.landing-footer {
  background: #111111;
  color: #e5e5e5;
  padding: 64px 24px 32px;
}

.landing-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.landing-footer-brand img {
  height: 80px;
  width: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}
.landing-footer-brand p {
  font-size: 14px;
  color: #999;
  line-height: 1.6;
  max-width: 300px;
}

.landing-footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ccc;
  margin-bottom: 16px;
}
.landing-footer-col a {
  display: block;
  text-decoration: none;
  color: #999;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.landing-footer-col a:hover {
  color: #fff;
}
.landing-footer-col p {
  font-size: 14px;
  color: #999;
  line-height: 1.6;
}

.landing-footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 13px;
  color: #666;
}

/* ========== Scroll Reveal Animations ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal.reveal-delay-1 { transition-delay: 0.1s; }
.reveal.reveal-delay-2 { transition-delay: 0.2s; }
.reveal.reveal-delay-3 { transition-delay: 0.3s; }

/* ========== Responsive — Tablet (768px+) ========== */
@media (min-width: 768px) {
  .landing-services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .landing-about-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .landing-footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .landing-lang-bar {
    display: flex;
  }
}

/* ========== Responsive — Desktop (1024px+) ========== */
@media (min-width: 1024px) {
  .landing-nav {
    display: flex;
  }

  .header-btn {
    display: inline-flex;
  }

  .landing-hamburger {
    display: none;
  }

  .landing-services,
  .landing-about {
    padding: 120px 48px;
  }
}

/* ========== Showcase Sections (Loans + Cercle) — Apple-style split layout ========== */
.landing-showcase {
  padding: 100px 24px;
  background: var(--bg-secondary);
}
.landing-showcase--alt {
  background: var(--bg);
}

/* Split layout: text left, visual right */
.showcase-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

/* Label pill */
.showcase-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1e40af;
  background: rgba(30,64,175,0.08);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.showcase-label--green {
  color: var(--accent);
  background: var(--accent-light);
}

.showcase-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 36px;
}

/* Steps — vertical numbered list */
.showcase-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.showcase-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.showcase-step-num {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  background: rgba(30,64,175,0.08);
  color: #1e40af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  transition: all 0.3s var(--ease);
}
.showcase-step-num--green {
  background: var(--accent-light);
  color: var(--accent);
}
.showcase-step:hover .showcase-step-num {
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(30,64,175,0.15);
}
.showcase-step:hover .showcase-step-num--green {
  box-shadow: 0 4px 14px rgba(0,107,182,0.2);
}
.showcase-step h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.showcase-step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Visual side */
.showcase-visual {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

/* ---- Loan demo card ---- */
.demo-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-xl);
  animation: demoFloat 6s ease-in-out infinite;
}
@keyframes demoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.demo-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.demo-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.demo-badge--active { background: var(--success-bg); color: var(--success); }
.demo-credit {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}
.demo-card-amount {
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.demo-card-amount small {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-tertiary);
}
.demo-progress-wrap { margin-bottom: 20px; }
.demo-progress-bar {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}
.demo-progress-fill {
  height: 100%;
  width: 65%;
  background: var(--accent-gradient);
  border-radius: 10px;
  animation: progressGrow 2.5s ease-out forwards;
  transform-origin: left;
}
@keyframes progressGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.demo-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Schedule rows */
.demo-schedule {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.demo-schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.2s ease;
}
.demo-schedule-row:hover { background: var(--bg-tertiary); }
.demo-schedule-row--paid { color: var(--text-tertiary); }
.demo-schedule-row--paid span:first-child { text-decoration: line-through; opacity: 0.6; }
.demo-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.demo-schedule-row--current {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  border-radius: 10px;
}
.demo-due {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-secondary);
  padding: 3px 10px;
  border-radius: 8px;
}
.demo-pending-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

/* ---- Tontine Wheel Visual ---- */
.showcase-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.tontine-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.tontine-wheel {
  position: relative;
  width: 380px;
  height: 380px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto;
}
@media (max-width: 480px) {
  .tontine-wheel { width: 300px; height: 300px; }
}
.tontine-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Tontine members */
.tm {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 3;
  transition: all 0.4s ease;
}
.tm:hover { transform: scale(1.1); z-index: 10; }
.tm:hover .tm-amount { opacity: 1; transform: translateY(0); }

.tm-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  box-shadow: 0 4px 16px rgba(0,107,182,0.2);
  position: relative;
  border: 3px solid #fff;
}
.tm-avatar--blue { background: #3b82f6; box-shadow: 0 4px 16px rgba(59,130,246,0.2); }
.tm-avatar--purple { background: #7c3aed; box-shadow: 0 4px 16px rgba(124,58,237,0.2); }
.tm-avatar--amber { background: #f59e0b; box-shadow: 0 4px 16px rgba(245,158,11,0.2); }
.tm-avatar--red { background: #ef4444; box-shadow: 0 4px 16px rgba(239,68,68,0.2); }
.tm-avatar--pink { background: #ec4899; box-shadow: 0 4px 16px rgba(236,72,153,0.2); }

.tm--beneficiary .tm-avatar {
  background: var(--accent-gradient);
  width: 58px;
  height: 58px;
  font-size: 16px;
  box-shadow: 0 6px 24px rgba(0,107,182,0.35);
  animation: beneficiaryPulse 2s ease-in-out infinite;
}
@keyframes beneficiaryPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(0,107,182,0.35); }
  50% { box-shadow: 0 8px 36px rgba(0,107,182,0.5); }
}

.tm-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

/* Badges */
.tm-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  border: 2.5px solid #ffffff;
  z-index: 4;
}
.tm-badge--star { background: #f59e0b; color: #fff; }
.tm-badge--check { background: #22c55e; color: #fff; }
.tm-badge--wait { background: #f97316; color: #fff; font-size: 9px; }

/* Amount tags */
.tm-amount {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font);
  color: var(--text-tertiary);
  padding: 2px 8px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  opacity: 0.7;
  transform: translateY(4px);
  transition: all 0.3s ease;
}
.tm-amount--receiving {
  color: var(--accent);
  background: rgba(0,107,182,0.08);
  font-size: 13px;
  font-weight: 800;
  opacity: 1;
  transform: translateY(0);
  animation: receivePulse 2s ease-in-out infinite;
}
@keyframes receivePulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.05); }
}

/* Positioning — hexagonal around center */
.tm--1 { top: 0; left: 50%; transform: translateX(-50%); }
.tm--2 { top: 13%; right: 3%; }
.tm--3 { bottom: 13%; right: 3%; }
.tm--4 { bottom: 0; left: 50%; transform: translateX(-50%); }
.tm--5 { bottom: 13%; left: 3%; }
.tm--6 { top: 13%; left: 3%; }

/* Pending members are dimmed */
.tm--pending { opacity: 0.5; }
.tm--pending:hover { opacity: 0.85; }

/* Center hub */
.tm-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e4e4e7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.03);
  z-index: 5;
}
.tm-hub-icon {
  color: var(--accent);
  margin-bottom: 4px;
}
.tm-hub-icon svg { width: 20px; height: 20px; }
.tm-hub-amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  font-family: var(--font);
}
.tm-hub-currency {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tm-hub-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 4px;
  padding: 2px 10px;
  background: #f4f4f5;
  border-radius: 6px;
}

/* Legend */
.tontine-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.tontine-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
.tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.tl-dot--green { background: #22c55e; }
.tl-dot--orange { background: #f97316; }
.tl-dot--star { background: #f59e0b; }

/* ---- Responsive ---- */
@media (min-width: 768px) {
  .showcase-layout {
    flex-direction: row;
    gap: 60px;
  }
  .showcase-layout--reversed {
    flex-direction: row-reverse;
  }
  .showcase-text {
    flex: 1;
  }
  .showcase-visual {
    flex: 1;
    max-width: 440px;
  }
  .cercle-ring-wrap {
    width: 320px;
    height: 320px;
  }
}
@media (min-width: 1024px) {
  .landing-showcase { padding: 140px 48px; }
  .showcase-layout { gap: 80px; }
}

/* ========== Values Section ========== */
.landing-values {
  padding: 100px 24px;
  background: var(--bg);
}

.landing-values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 60px;
}

.landing-value-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.4s var(--ease);
}
.landing-value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.landing-value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease);
}
.landing-value-card:hover .landing-value-icon {
  background: var(--accent);
  color: white;
  transform: scale(1.1);
}
.landing-value-icon svg {
  width: 28px;
  height: 28px;
}

.landing-value-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.landing-value-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== CTA Section ========== */
.landing-cta {
  padding: 120px 24px;
  background: linear-gradient(160deg, #003366 0%, #006bb6 50%, #004785 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.landing-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.landing-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.landing-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.landing-cta p {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 40px;
}

.landing-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.landing-btn--primary {
  background: #ffffff;
  color: #006bb6;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.landing-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.landing-btn--outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.5);
}
.landing-btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.landing-btn--dark {
  background: #ffffff;
  color: #18181b;
  font-weight: 500;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 15px;
}
.landing-btn--dark:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255,255,255,0.1);
}
.landing-btn--dark-outline {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 15px;
}
.landing-btn--dark-outline:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
  transform: translateY(-1px);
}


/* Responsive updates for new sections */
@media (min-width: 768px) {
  .landing-values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .landing-values-grid { grid-template-columns: repeat(4, 1fr); }
  .landing-values { padding: 120px 48px; }
  .landing-cta { padding: 120px 48px; }
}
