/* ─── LendLeap — Main Stylesheet ──────────────────── */

/* ── Skip Link ── */
.skip-link { position: absolute; top: -100%; left: 16px; background: var(--accent); color: #fff; padding: 10px 20px; border-radius: 0 0 8px 8px; font-size: 0.85rem; font-weight: 600; text-decoration: none; z-index: 10001; transition: top 0.2s; }
.skip-link:focus { top: 0; }

:root {
  --bg:           #040e2e;
  --bg-section:   #060f30;
  --accent:       #3898EC;
  --accent-rgb:   56, 152, 236;
  --accent-light: #6db8f5;
  --text:         #f0f4ff;
  --text-muted:   rgba(240,244,255,0.75);
  --border:       rgba(56,152,236,0.12);
  --glass-bg:     rgba(7,30,96,0.72);
  --font-head:    'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;
  --radius:       20px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 18px; line-height: 1.6; overflow-x: hidden; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--accent), var(--accent-light)); border-radius: 3px; }

/* ── Scroll Progress ── */
#scrollProgress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-light)); z-index: 10000; transition: width 0.1s linear; }

/* ── Starscape ── */
#starscape { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.55; }

/* ── Loader ── */
#loader { position: fixed; inset: 0; background: var(--bg); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity 0.6s ease; }
.loader-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.loader-logo img { width: 140px; filter: brightness(0) invert(1); }
.loader-text { font-family: var(--font-head); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 4px; color: var(--text-muted); }
.loader-bar-track { width: 200px; height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.loader-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-light)); border-radius: 2px; transition: width 0.3s ease; }

/* ── Navbar ── */
#navbar { position: fixed; top: 12px; left: 0; right: 0; z-index: 1000; display: flex; justify-content: center; transition: all 0.4s cubic-bezier(0.16,1,0.3,1); }
.nav-inner { width: 100%; padding: 14px 40px; display: flex; justify-content: space-between; align-items: center; transition: all 0.4s cubic-bezier(0.16,1,0.3,1); }
#navbar.nav-scrolled .nav-inner { max-width: 920px; background: rgba(4,14,46,0.88); border: 1px solid var(--border); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 100px; padding: 10px 28px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 28px; filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta { background: var(--accent); color: #fff; padding: 8px 20px; border-radius: 100px; font-weight: 700; box-shadow: 0 0 16px rgba(var(--accent-rgb),0.3); transition: box-shadow 0.3s, transform 0.2s; }
.nav-links a.nav-cta:hover { box-shadow: 0 0 28px rgba(var(--accent-rgb),0.5); transform: translateY(-1px); }

/* Language toggle */
.lang-toggle { display: flex; align-items: center; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 100px; padding: 3px; gap: 0; margin-left: 12px; }
.lang-btn { padding: 4px 13px; border-radius: 100px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px; cursor: pointer; border: none; background: transparent; color: var(--text-muted); transition: all 0.2s; font-family: var(--font-head); }
.lang-btn.active { background: var(--accent); color: #fff; box-shadow: 0 0 8px rgba(var(--accent-rgb),0.4); }
.lang-btn:hover:not(.active) { color: var(--text); }

/* ── Mobile hamburger ── */
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-hamburger span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; transition: all 0.3s; border-radius: 1px; }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(3px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(3px, -5px); }
.nav-mobile-menu { display: none; position: fixed; top: 56px; left: 0; right: 0; background: var(--glass-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid var(--border); padding: 24px 32px; z-index: 999; flex-direction: column; gap: 16px; text-align: center; }
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a { color: var(--text-muted); text-decoration: none; font-size: 1rem; font-weight: 500; padding: 8px 0; transition: color 0.2s; }
.nav-mobile-menu a:hover { color: var(--text); }
.nav-mobile-menu .nav-cta { display: inline-block; margin-top: 8px; background: var(--accent); color: #fff; padding: 8px 20px; border-radius: 100px; font-weight: 700; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-inner { padding: 10px 24px; }
  .nav-hamburger { display: block; }
  .scroll-animation, #loader { display: none !important; }
  #starscape { opacity: 0.3; }
  .hero-content { padding: 100px 16px 60px; width: 100%; box-sizing: border-box; }
  .hero-title { font-size: 1.6rem; overflow-wrap: break-word; }
  .hero-subtitle { max-width: 100%; font-size: 0.88rem; overflow-wrap: break-word; }
  .hero-bullets { flex-direction: column; align-items: center; gap: 14px; }
  .hero-bullet { font-size: 0.82rem; }
  .hero-trusted { overflow: hidden; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn-primary, .hero-buttons .btn-secondary { width: 100%; text-align: center; padding: 14px 24px; }
  .hero-trusted-logos { gap: 28px; }
  .hero-trusted-logos img { height: 24px; }
  .section-subtitle { font-size: 0.95rem; }
  .scroll-hint { display: none; }
  .proof-card { padding: 24px 20px; }
  .faq-q { padding: 14px 16px; }
  .faq-q-text { font-size: 0.88rem; }
  .faq-a-inner { padding: 0 16px 16px; font-size: 0.84rem; }
  footer { padding: 48px 20px 32px; }
  .footer-links { gap: 16px; }
}

/* ── Hero ── */
#hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; z-index: 1; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.18; }
.orb-1 { width: 600px; height: 600px; background: var(--accent); top: -200px; right: -150px; }
.orb-2 { width: 450px; height: 450px; background: #1a56c4; bottom: -180px; left: -120px; opacity: 0.12; }
.orb-3 { width: 300px; height: 300px; background: var(--accent); top: 40%; left: 50%; transform: translate(-50%,-50%); opacity: 0.06; }
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(56,152,236,0.04) 1px,transparent 1px), linear-gradient(90deg,rgba(56,152,236,0.04) 1px,transparent 1px); background-size: 60px 60px; }
.hero-content { position: relative; z-index: 2; max-width: 820px; padding: 120px 32px 80px; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(56,152,236,0.1); border: 1px solid rgba(56,152,236,0.25); border-radius: 100px; padding: 6px 16px; font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-bottom: 28px; letter-spacing: 0.5px; text-transform: uppercase; }
.hero-tag-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(0.7); } }
.hero-title { font-family: var(--font-head); font-size: clamp(2.4rem,5vw,4rem); font-weight: 800; line-height: 1.1; margin-bottom: 24px; letter-spacing: -0.02em; }
.hero-title span { background: linear-gradient(135deg,var(--accent) 0%,var(--accent-light) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 580px; margin: 0 auto 36px; line-height: 1.7; }
.hero-bullets { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-bullet { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-muted); }
.bullet-check { width: 18px; height: 18px; background: rgba(56,152,236,0.15); border: 1px solid rgba(56,152,236,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bullet-check::after { content: '\2713'; font-size: 0.6rem; color: var(--accent); }
.hero-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }
.btn-primary { background: var(--accent); color: #fff; padding: 15px 36px; border-radius: 100px; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; text-decoration: none; box-shadow: 0 0 24px rgba(var(--accent-rgb),0.35); transition: box-shadow 0.3s, transform 0.2s; display: inline-block; }
.btn-primary:hover { box-shadow: 0 0 40px rgba(var(--accent-rgb),0.55); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--text); padding: 15px 36px; border: 1px solid rgba(255,255,255,0.2); border-radius: 100px; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: border-color 0.3s, background 0.3s; display: inline-block; }
.btn-secondary:hover { border-color: rgba(var(--accent-rgb),0.4); background: rgba(var(--accent-rgb),0.05); }
.scroll-hint { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; }
.scroll-arrow { width: 20px; height: 20px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); animation: bounce-arrow 2s infinite; }
@keyframes bounce-arrow { 0%,100% { transform:rotate(45deg) translateY(0); opacity:0.5; } 50% { transform:rotate(45deg) translateY(5px); opacity:1; } }

/* ── Scroll Animation ── */
.scroll-animation { height: 380vh; position: relative; z-index: 1; }
.scroll-sticky { position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden; background: #efefef; }
#frameCanvas { position: absolute; top: 0; left: 0; }
@media (max-width: 1024px) { .scroll-animation { height: 300vh; } }
@media (max-width: 768px)  { .scroll-animation { height: 250vh; } }

/* ── Shared Section Styles ── */
.section-label { font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: var(--accent); margin-bottom: 14px; }
.section-title { font-family: var(--font-head); font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 800; line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.02em; }
.section-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; line-height: 1.7; margin: 0 auto 60px; }

/* ── Trusted By (in hero) ── */
.hero-trusted { margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(240,244,255,0.08); text-align: center; }
.hero-trusted-label { font-family: var(--font-head); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2.5px; color: var(--text-muted); margin-bottom: 20px; }
.hero-trusted-track { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.hero-trusted-logos { display: flex; align-items: center; gap: 48px; justify-content: center; width: max-content; animation: trusted-scroll 20s linear infinite; animation-play-state: paused; }
.hero-trusted-logos img { height: 32px; opacity: 0.6; transition: opacity 0.3s; filter: brightness(0) invert(1); flex-shrink: 0; }
.hero-trusted-logos img:hover { opacity: 1; }
.hero-trusted-logos.has-scroll { animation-play-state: running; }
.hero-trusted-logos.has-scroll:hover { animation-play-state: paused; }
@keyframes trusted-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── Specs ── */
#specs { position: relative; z-index: 1; background: var(--bg-section); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.specs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; max-width: 1000px; margin: 0 auto; padding: 100px 32px; text-align: center; }
.spec-number { font-family: var(--font-head); font-size: 3.2rem; font-weight: 800; display: block; color: var(--accent); line-height: 1; }
.spec-number.counting { text-shadow: 0 0 24px rgba(var(--accent-rgb),0.5); }
.spec-label { font-size: 0.88rem; color: var(--text-muted); margin-top: 10px; display: block; line-height: 1.4; }
@media (max-width: 768px) { .specs-grid { grid-template-columns: repeat(2,1fr); gap: 32px; padding: 60px 24px; } .spec-number { font-size: 2.4rem; } }

/* ── Features ── */
#features { position: relative; z-index: 1; padding: 100px 32px; max-width: 1200px; margin: 0 auto; text-align: center; }
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; text-align: left; }
.feature-card { background: rgba(56,152,236,0.04); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 32px; transition: transform 0.3s, border-color 0.3s, background 0.3s; }
.feature-card:is(:hover,.touch-active) { transform: translateY(-5px); border-color: rgba(var(--accent-rgb),0.3); background: rgba(56,152,236,0.07); }
.feature-icon { display: none; }
.feat-demo { width: 100%; height: 140px; margin-bottom: 22px; border-radius: 12px; background: rgba(56,152,236,0.03); border: 1px solid rgba(56,152,236,0.08); overflow: hidden; position: relative; padding: 14px; font-family: var(--font-body); }
.feature-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ── Feature Demo: shared ── */
.fd-label { font-size: 0.55rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); font-weight: 700; margin-bottom: 8px; }
.fd-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.fd-pill { font-size: 0.6rem; padding: 2px 8px; border-radius: 100px; font-weight: 600; white-space: nowrap; }
.fd-pill--blue { background: rgba(56,152,236,0.15); color: var(--accent); border: 1px solid rgba(56,152,236,0.25); }
.fd-pill--green { background: rgba(34,197,94,0.12); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.fd-pill--amber { background: rgba(251,191,36,0.12); color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }
.fd-line-placeholder { height: 4px; border-radius: 2px; background: rgba(240,244,255,0.06); }
.fd-minicard { background: rgba(56,152,236,0.06); border: 1px solid rgba(56,152,236,0.12); border-radius: 8px; padding: 8px 10px; font-size: 0.62rem; color: var(--text-muted); }

/* ── 1 · API — data flow between systems ── */
.fd-flow { display: flex; align-items: center; justify-content: center; gap: 0; }
.fd-system { background: rgba(56,152,236,0.08); border: 1px solid rgba(56,152,236,0.18); border-radius: 8px; padding: 8px 10px; text-align: center; min-width: 58px; }
.fd-system-name { font-size: 0.55rem; font-weight: 700; color: var(--text); letter-spacing: 0.5px; }
.fd-system-sub { font-size: 0.48rem; color: var(--text-muted); margin-top: 2px; }
.fd-arrow { display: flex; align-items: center; width: 36px; position: relative; height: 2px; }
.fd-arrow::before { content: ''; position: absolute; top: 0; left: 0; right: 8px; height: 2px; background: rgba(56,152,236,0.2); }
.fd-arrow::after { content: ''; position: absolute; right: 4px; top: -3px; width: 0; height: 0; border-left: 6px solid rgba(56,152,236,0.3); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.fd-pulse { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); top: -2px; left: 0; opacity: 0; will-change: transform, opacity; }
.feature-card:is(:hover,.touch-active) .fd-pulse { animation: fd-data-flow 1s ease-in-out infinite; }
.feature-card:is(:hover,.touch-active) .fd-arrow:nth-child(4) .fd-pulse { animation-delay: 0.3s; }
@keyframes fd-data-flow { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 12px); opacity: 0; } }
.fd-api-layout { display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: center; gap: 0; }
.fd-api-top { display: flex; gap: 16px; justify-content: center; }
.fd-cat-pill { font-size: 0.5rem; padding: 3px 10px; border-radius: 100px; background: rgba(56,152,236,0.1); border: 1px solid rgba(56,152,236,0.2); color: var(--accent); font-weight: 600; letter-spacing: 0.3px; }
.fd-api-connectors { display: flex; gap: 40px; justify-content: center; height: 14px; }
.fd-connector { width: 1px; height: 100%; background: rgba(56,152,236,0.25); position: relative; }
.fd-connector::after { content: ''; position: absolute; bottom: -2px; left: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0; }
.feature-card:is(:hover,.touch-active) .fd-connector::after { animation: fd-conn-pulse 1.2s ease-in-out infinite; }
@keyframes fd-conn-pulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ── 2 · AI — document extraction ── */
.fd-doc { display: flex; gap: 10px; height: 100%; }
.fd-doc-page { flex: 1; background: rgba(240,244,255,0.04); border: 1px solid rgba(240,244,255,0.08); border-radius: 6px; padding: 10px; display: flex; flex-direction: column; gap: 5px; position: relative; overflow: hidden; }
.fd-doc-line { height: 3px; border-radius: 1.5px; background: rgba(240,244,255,0.08); }
.fd-doc-line:nth-child(2) { width: 75%; }
.fd-doc-line:nth-child(4) { width: 60%; }
.fd-extracted { flex: 1; display: flex; flex-direction: column; gap: 5px; justify-content: center; position: relative; }
.fd-scanbar { position: absolute; left: 0; right: 0; height: 2px; background: var(--accent); opacity: 0; top: 0; box-shadow: 0 0 8px rgba(56,152,236,0.4); z-index: 2; }
.feature-card:is(:hover,.touch-active) .fd-scanbar { animation: fd-scanbar 0.8s ease-in-out forwards; }
@keyframes fd-scanbar { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.fd-thinking { display: flex; align-items: center; justify-content: center; gap: 4px; position: absolute; inset: 0; opacity: 0; transition: opacity 0.2s; }
.fd-thinking-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: fd-think-pulse 1s ease-in-out infinite; }
.fd-thinking-dot:nth-child(2) { animation-delay: 0.15s; }
.fd-thinking-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes fd-think-pulse { 0%,100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.1); } }
.feature-card:is(:hover,.touch-active) .fd-thinking { opacity: 1; transition-delay: 0.7s; }
.feature-card:is(:hover,.touch-active) .fd-thinking.fd-thinking-hide { opacity: 0; transition-delay: 1.3s; }
.fd-ext-row { display: flex; align-items: center; gap: 6px; opacity: 0; transform: translateX(10px); will-change: transform, opacity; transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1); }
.fd-extracted > .fd-ext-row:nth-of-type(1) { transition-delay: 0s; }
.fd-extracted > .fd-ext-row:nth-of-type(2) { transition-delay: 0s; }
.fd-extracted > .fd-ext-row:nth-of-type(3) { transition-delay: 0s; }
.fd-extracted > .fd-ext-row:nth-of-type(4) { transition-delay: 0s; }
.feature-card:is(:hover,.touch-active) .fd-ext-row:nth-of-type(1) { opacity: 1; transform: translateX(0); transition-delay: 1.4s; }
.feature-card:is(:hover,.touch-active) .fd-ext-row:nth-of-type(2) { opacity: 1; transform: translateX(0); transition-delay: 1.55s; }
.feature-card:is(:hover,.touch-active) .fd-ext-row:nth-of-type(3) { opacity: 1; transform: translateX(0); transition-delay: 1.7s; }
.feature-card:is(:hover,.touch-active) .fd-ext-row:nth-of-type(4) { opacity: 1; transform: translateX(0); transition-delay: 1.85s; }
.fd-ext-key { font-size: 0.52rem; color: var(--text-muted); min-width: 42px; }
.fd-ext-val { font-size: 0.58rem; color: var(--text); font-weight: 600; }
.fd-ext-check { color: #4ade80; font-size: 0.6rem; margin-left: auto; }

/* ── 3 · Config — toggle rules ── */
.fd-rules { display: flex; flex-direction: column; gap: 6px; height: 100%; justify-content: center; }
.fd-rule { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; border-radius: 8px; background: rgba(56,152,236,0.04); border: 1px solid rgba(56,152,236,0.08); }
.fd-rule-name { font-size: 0.58rem; color: var(--text-muted); }
.fd-toggle { width: 28px; height: 16px; border-radius: 8px; background: rgba(240,244,255,0.1); position: relative; transition: background 0.3s; cursor: pointer; }
.fd-toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: rgba(240,244,255,0.4); transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1); }
.fd-toggle::before { content: ''; position: absolute; inset: -14px -8px; }
.fd-toggle.on { background: rgba(56,152,236,0.3); }
.fd-toggle.on::after { left: 14px; background: var(--accent); }
.fd-rule-input-group { display: flex; align-items: center; gap: 3px; }
.fd-rule-input { width: 32px; padding: 2px 4px; border-radius: 4px; border: 1px solid rgba(56,152,236,0.25); background: rgba(56,152,236,0.08); color: var(--text); font-size: 0.52rem; font-family: var(--font-body); text-align: center; outline: none; transition: border-color 0.2s; }
.fd-rule-input:focus { border-color: var(--accent); }
.fd-rule-unit { font-size: 0.5rem; color: var(--text-muted); font-weight: 600; }
.fd-rule-save { font-size: 0.45rem; padding: 6px 10px; border-radius: 4px; background: rgba(56,152,236,0.15); border: 1px solid rgba(56,152,236,0.25); color: var(--accent); font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: var(--font-body); min-height: 28px; }
.fd-rule-save:hover { background: rgba(56,152,236,0.25); border-color: rgba(56,152,236,0.4); }
.fd-rule-btn { font-size: 0.5rem; padding: 6px 12px; border-radius: 6px; background: rgba(56,152,236,0.12); border: 1px solid rgba(56,152,236,0.25); color: var(--accent); font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: var(--font-body); letter-spacing: 0.3px; min-height: 28px; }
.fd-rule-btn:hover { background: rgba(56,152,236,0.22); border-color: rgba(56,152,236,0.4); }

/* ── 4 · Notifications — alert cards ── */
.fd-notifs { display: flex; flex-direction: column; gap: 6px; height: 100%; justify-content: center; }
.fd-notif { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(56,152,236,0.04); border: 1px solid rgba(56,152,236,0.1); opacity: 0; transform: translateY(0); will-change: transform, opacity; transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1); }
.fd-notif:first-child { opacity: 1; }
.feature-card:is(:hover,.touch-active) .fd-notif:nth-child(1) { opacity: 1; transform: translateY(-2px); transition-delay: 0.05s; }
.feature-card:is(:hover,.touch-active) .fd-notif:nth-child(2) { opacity: 1; transform: translateY(-2px); transition-delay: 0.15s; }
.feature-card:is(:hover,.touch-active) .fd-notif:nth-child(3) { opacity: 1; transform: translateY(-2px); transition-delay: 0.25s; }
.fd-notif-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.fd-notif-dot--green { background: #4ade80; box-shadow: 0 0 6px rgba(34,197,94,0.4); }
.fd-notif-dot--amber { background: #fbbf24; box-shadow: 0 0 6px rgba(251,191,36,0.4); }
.fd-notif-dot--red { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.4); }
.fd-notif-text { font-size: 0.56rem; color: var(--text-muted); flex: 1; }
.fd-notif-time { font-size: 0.48rem; color: rgba(240,244,255,0.25); white-space: nowrap; }

/* ── 5 · Analytics — mini dashboard ── */
.fd-dash { display: flex; gap: 8px; height: 100%; }
.fd-dash-metrics { display: flex; flex-direction: column; gap: 6px; flex: 1; justify-content: center; }
.fd-metric { padding: 6px 8px; border-radius: 6px; background: rgba(56,152,236,0.04); border: 1px solid rgba(56,152,236,0.08); }
.fd-metric-val { font-size: 0.72rem; font-weight: 800; font-family: var(--font-head); color: var(--text); }
.fd-metric-label { font-size: 0.46rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.fd-dash-chart { flex: 1.3; display: flex; align-items: flex-end; gap: 3px; padding: 8px 4px; }
.fd-dash-bar { flex: 1; border-radius: 3px 3px 0 0; background: rgba(56,152,236,0.2); transform-origin: bottom; transform: scaleY(0); will-change: transform; transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1); }
.fd-dash-bar:nth-child(5) { background: var(--accent); }
.feature-card:is(:hover,.touch-active) .fd-dash-bar:nth-child(1) { transform: scaleY(1); transition-delay: 0s; }
.feature-card:is(:hover,.touch-active) .fd-dash-bar:nth-child(2) { transform: scaleY(1); transition-delay: 0.06s; }
.feature-card:is(:hover,.touch-active) .fd-dash-bar:nth-child(3) { transform: scaleY(1); transition-delay: 0.12s; }
.feature-card:is(:hover,.touch-active) .fd-dash-bar:nth-child(4) { transform: scaleY(1); transition-delay: 0.18s; }
.feature-card:is(:hover,.touch-active) .fd-dash-bar:nth-child(5) { transform: scaleY(1); transition-delay: 0.24s; }
.feature-card:is(:hover,.touch-active) .fd-dash-bar:nth-child(6) { transform: scaleY(1); transition-delay: 0.30s; }
.feature-card:is(:hover,.touch-active) .fd-dash-bar:nth-child(7) { transform: scaleY(1); transition-delay: 0.36s; }

/* ── 6 · Security — compliance checklist ── */
.fd-checks { display: flex; flex-direction: column; gap: 6px; height: 100%; justify-content: center; }
.fd-check-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; background: rgba(56,152,236,0.04); border: 1px solid rgba(56,152,236,0.08); }
.fd-check-box { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid rgba(56,152,236,0.25); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.3s; }
.fd-check-box svg { opacity: 0; transform: scale(0.5); transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.feature-card:is(:hover,.touch-active) .fd-check-1 .fd-check-box svg { opacity: 1; transform: scale(1); transition-delay: 0.15s; }
.feature-card:is(:hover,.touch-active) .fd-check-2 .fd-check-box svg { opacity: 1; transform: scale(1); transition-delay: 0.3s; }
.feature-card:is(:hover,.touch-active) .fd-check-1 .fd-check-box { border-color: #4ade80; background: rgba(34,197,94,0.1); transition-delay: 0.15s; }
.feature-card:is(:hover,.touch-active) .fd-check-2 .fd-check-box { border-color: #4ade80; background: rgba(34,197,94,0.1); transition-delay: 0.3s; }
.fd-check-label { font-size: 0.58rem; color: var(--text-muted); }
@media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } #features { padding: 60px 20px; } }

/* ── Who It's For ── */
#who { position: relative; z-index: 1; padding: 100px 32px; background: var(--bg-section); border-top: 1px solid var(--border); }
.who-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.who-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 60px; text-align: left; }
.who-grid .who-card { width: calc(33.333% - 16px); }
.who-card { background: rgba(7,30,96,0.4); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 32px; transition: transform 0.3s, border-color 0.3s; }
.who-card:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb),0.3); }
.who-card-icon { width: 48px; height: 48px; background: rgba(56,152,236,0.12); border: 1px solid rgba(56,152,236,0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--accent); }
.who-card-tag { display: inline-block; background: rgba(56,152,236,0.1); border: 1px solid rgba(56,152,236,0.2); border-radius: 100px; padding: 4px 12px; font-size: 0.78rem; font-weight: 700; color: var(--accent); margin-bottom: 18px; letter-spacing: 0.5px; }
.who-card h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.who-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 900px) { .who-grid .who-card { width: calc(50% - 12px); } }
@media (max-width: 600px) { .who-grid .who-card { width: 100%; } }

/* ── News Preview ── */
#news-preview { position: relative; z-index: 1; padding: 100px 32px; max-width: 1200px; margin: 0 auto; text-align: center; }
.news-preview-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; text-align: left; margin-top: 48px; }
.np-card { background: rgba(56,152,236,0.04); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s, border-color 0.3s, background 0.3s; text-decoration: none; color: var(--text); }
.np-card-img { aspect-ratio: 16/9; overflow: hidden; }
.np-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.np-card:hover .np-card-img img { transform: scale(1.04); }
.np-card-visual { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; background: linear-gradient(135deg, rgba(56,152,236,0.1), rgba(7,30,96,0.5)); position: relative; overflow: hidden; }
.np-card-visual-glow { position: absolute; width: 120px; height: 120px; background: var(--accent); filter: blur(40px); opacity: 0.12; border-radius: 50%; }
.np-card:hover { transform: translateY(-5px); border-color: rgba(var(--accent-rgb),0.3); background: rgba(56,152,236,0.07); }
.np-card-body { padding: 28px 28px 24px; flex: 1; display: flex; flex-direction: column; }
.np-card-date { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; }
.np-card-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.np-card-excerpt { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.np-card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 700; color: var(--accent); font-family: var(--font-head); margin-top: auto; }
.np-card-link-arrow { transition: transform 0.2s; }
.np-card:hover .np-card-link-arrow { transform: translateX(3px); }
.np-viewall { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; color: var(--accent); font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; text-decoration: none; transition: gap 0.2s; }
.np-viewall:hover { gap: 12px; }
@media (max-width: 1024px) { .news-preview-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .news-preview-grid { grid-template-columns: 1fr; } #news-preview { padding: 60px 20px; } }

/* ── Contact Section ── */
#contact { position: relative; z-index: 1; padding: 100px 32px; border-top: 1px solid var(--border); }
.contact-inner { max-width: 1100px; margin: 0 auto; }
#contact .section-subtitle { margin: 0 0 60px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-top: 60px; }
.contact-methods { display: flex; flex-direction: column; gap: 16px; }
.contact-method { display: flex; align-items: center; gap: 18px; background: rgba(56,152,236,0.04); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; text-decoration: none; color: var(--text); transition: border-color 0.3s, background 0.3s, transform 0.2s; }
.contact-method:hover { border-color: rgba(var(--accent-rgb),0.3); background: rgba(56,152,236,0.08); transform: translateX(4px); }
.contact-method-icon { width: 44px; height: 44px; background: rgba(56,152,236,0.12); border: 1px solid rgba(56,152,236,0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-method-body {}
.contact-method-label { font-size: 0.78rem; font-weight: 700; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; display: block; margin-bottom: 3px; }
.contact-method-value { font-family: var(--font-head); font-size: 1rem; font-weight: 600; }

/* Contact Form */
.contact-form { background: rgba(56,152,236,0.04); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.form-group:last-child { margin-bottom: 0; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.5px; }
.form-input { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 12px 16px; color: var(--text); font-family: var(--font-body); font-size: 0.95rem; transition: border-color 0.2s, background 0.2s; outline: none; width: 100%; }
.form-input:focus { border-color: rgba(var(--accent-rgb),0.5); background: rgba(56,152,236,0.07); }
.form-input::placeholder { color: rgba(240,244,255,0.3); }
textarea.form-input { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; margin-top: 8px; border: none; cursor: pointer; font-family: var(--font-head); }
.form-select { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 12px 16px; color: var(--text); font-family: var(--font-body); font-size: 0.95rem; transition: border-color 0.2s, background 0.2s; outline: none; width: 100%; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23f0f4ff' opacity='0.4' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; cursor: pointer; }
.form-select:focus { border-color: rgba(var(--accent-rgb),0.5); background-color: rgba(56,152,236,0.07); }
.form-select option { background: #0f1523; color: var(--text); }
.form-feedback { font-size: 0.78rem; margin-top: 4px; display: none; }
.form-feedback.error { color: #e74c3c; display: block; }
.form-feedback.warning { color: #f39c12; display: block; }
.form-feedback.match { color: #2ecc71; display: block; }
.form-input.input-error { border-color: #e74c3c; }
.form-input.input-warning { border-color: #f39c12; }
.form-success { display: none; text-align: center; color: var(--accent); font-size: 0.9rem; margin-top: 12px; padding: 10px; background: rgba(56,152,236,0.08); border-radius: 8px; border: 1px solid rgba(56,152,236,0.2); }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } .contact-form { padding: 24px; } }

/* ── CTA ── */
#cta { position: relative; z-index: 1; text-align: center; padding: 120px 32px; overflow: hidden; border-top: 1px solid var(--border); background: var(--bg-section); }
.cta-orb { position: absolute; width: 700px; height: 700px; border-radius: 50%; background: var(--accent); filter: blur(130px); opacity: 0.08; top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.cta-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.cta-content h2 { font-family: var(--font-head); font-size: clamp(2rem,4vw,3.2rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; letter-spacing: -0.02em; }
.cta-content p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 40px; line-height: 1.7; }
.btn-large { font-size: 1.05rem; padding: 18px 52px; }

/* ── Footer ── */
footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 60px 32px 40px; text-align: center; background: var(--bg); }
.footer-logo img { height: 32px; filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer-tagline { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 32px; }
.footer-links { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-bottom: 32px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-badges { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.footer-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(56,152,236,0.06); border: 1px solid var(--border); border-radius: 8px; padding: 6px 14px; font-size: 0.78rem; color: var(--text-muted); }
.footer-badge-dot { width: 6px; height: 6px; background: #22c55e; border-radius: 50%; }
.footer-newsletter { max-width: 440px; margin: 0 auto 32px; }
.footer-newsletter-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; }
.footer-newsletter-form { display: flex; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.footer-newsletter-input { flex: 1; padding: 10px 14px; background: rgba(56,152,236,0.04); border: none; outline: none; color: var(--text); font-size: 0.85rem; font-family: var(--font-body); }
.footer-newsletter-input::placeholder { color: rgba(240,244,255,0.3); }
.footer-newsletter-btn { padding: 10px 20px; background: var(--accent); color: #fff; border: none; font-size: 0.85rem; font-weight: 600; font-family: var(--font-body); cursor: pointer; transition: background 0.2s; }
.footer-newsletter-btn:hover { background: #2080d0; }
.footer-copy { color: rgba(240,244,255,0.3); font-size: 0.8rem; }

/* ── Social Proof ── */
#proof { position: relative; z-index: 1; padding: 100px 32px; background: var(--bg); border-top: 1px solid var(--border); }
.proof-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.proof-grid { display: flex; gap: 24px; margin-top: 48px; justify-content: center; flex-wrap: wrap; }
.proof-card { flex: 1; min-width: 280px; max-width: 360px; background: rgba(7,30,96,0.4); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; text-align: left; position: relative; }
.proof-quote-icon { font-size: 2.5rem; line-height: 1; color: var(--accent); opacity: 0.3; font-family: Georgia, serif; margin-bottom: 8px; }
.proof-text { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.proof-author { display: flex; align-items: center; gap: 12px; }
.proof-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(56,152,236,0.15); border: 1px solid rgba(56,152,236,0.25); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: var(--accent); }
.proof-author-info { display: flex; flex-direction: column; }
.proof-author-name { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.proof-author-role { font-size: 0.72rem; color: var(--text-muted); }
@media (max-width: 768px) { .proof-grid { flex-direction: column; align-items: center; } .proof-card { max-width: 100%; } }

/* ── FAQ ── */
#faq { position: relative; z-index: 1; padding: 100px 32px; background: var(--bg); border-top: 1px solid var(--border); }
.faq-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.faq-list { margin-top: 48px; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: rgba(56,152,236,0.04); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color 0.3s; }
.faq-item.open { border-color: rgba(56,152,236,0.25); }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; cursor: pointer; gap: 16px; width: 100%; background: none; border: none; color: inherit; font: inherit; text-align: left; }
.faq-q-text { font-size: 0.95rem; font-weight: 600; color: var(--text); font-family: var(--font-head); }
.faq-q-icon { width: 20px; height: 20px; flex-shrink: 0; position: relative; }
.faq-q-icon::before, .faq-q-icon::after { content: ''; position: absolute; background: var(--text-muted); border-radius: 1px; transition: transform 0.3s; }
.faq-q-icon::before { width: 14px; height: 2px; top: 9px; left: 3px; }
.faq-q-icon::after { width: 2px; height: 14px; top: 3px; left: 9px; }
.faq-item.open .faq-q-icon::after { transform: rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1); }
.faq-a-inner { padding: 0 22px 20px; font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-a { max-height: 300px; }

/* ── Accessibility ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .fd-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  #starscape { opacity: 0.25; }
  .hero-trusted-logos { animation: none !important; }
}
