/* Shared structure for index1..index5. Themes override the tokens below and add signature styling. */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, .1);
  --on-primary: #ffffff;
  --secondary: #0f172a;
  --background: #ffffff;
  --surface: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;

  --header-bg: #ffffff;
  --header-text: #0f172a;
  --footer-bg: #0f172a;
  --footer-text: #cbd5e1;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --btn-radius: 999px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .05);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, .08);

  --font-body: 'Inter', system-ui, sans-serif;
  --font-heading: 'Poppins', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--background);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: inherit; }
a { text-decoration: none; color: var(--primary); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

.container { width: 90%; max-width: 90%; padding-left: 12px; padding-right: 12px; }

.section { padding: 88px 0; }
.section.light-background { background: var(--surface); }
.section-title { text-align: center; margin: 0 auto 48px; max-width: 640px; }
.section-eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 10px;
}
.section-title h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 10px; }
.section-subtitle { color: var(--muted); margin: 0; }

/* Buttons */
.btn { border-radius: var(--btn-radius); font-weight: 600; padding: .6rem 1.4rem; transition: all .2s ease; }
.btn-lg { padding: .85rem 1.8rem; font-size: 1rem; }
.btn-sm { padding: .45rem 1rem; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--on-primary); }
.btn-outline-primary { color: var(--primary); border: 1.5px solid var(--primary); background: transparent; }
.btn-outline-primary:hover { background: var(--primary); color: var(--on-primary); }
.btn-ghost { border: 1.5px solid var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.link-arrow { font-weight: 600; color: var(--text); }
.link-arrow:hover { color: var(--primary); }

/* Topbar */
.topbar { background: var(--secondary); color: rgba(255, 255, 255, .8); font-size: .85rem; padding: 8px 0; }
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: #fff; }
.topbar i { margin-right: 6px; }

/* Header / navbar */
.header { background: var(--header-bg); color: var(--header-text); z-index: 997; transition: box-shadow .2s ease; }
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { min-height: 76px; }
.logo img { height: 48px; width: auto; max-width: 200px; object-fit: contain; }
.logo .sitename { font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; color: var(--header-text); }
.navmenu ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 2px; }
.navmenu a { display: block; padding: 10px 14px; color: var(--header-text); font-weight: 500; font-size: .95rem; white-space: nowrap; }
.navmenu a:hover { color: var(--primary); }
.navmenu .nav-cta { margin-left: 10px; }
.navmenu .nav-cta .btn { color: var(--on-primary); padding: .55rem 1.3rem; }
.mobile-nav-toggle { display: none; border: 0; background: none; font-size: 1.8rem; color: var(--header-text); line-height: 1; padding: 4px; }

@media (max-width: 1199px) {
  .mobile-nav-toggle { display: block; }
  .navmenu ul {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--header-bg); padding: 12px 16px 20px; box-shadow: var(--shadow-md);
    display: none;
  }
  .navmenu.nav-open ul { display: flex; }
  .navmenu a { padding: 12px 6px; border-bottom: 1px solid var(--border); }
  .navmenu .nav-cta { margin: 12px 0 0; }
  .navmenu .nav-cta .btn { width: 100%; text-align: center; border-bottom: 0; }
}

/* Hero (shared bits) */
.hero { position: relative; padding: 96px 0 88px; overflow: hidden; }
.hero-title { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.1; margin-bottom: 18px; }
.hero-subtitle { color: var(--muted); font-size: 1.12rem; line-height: 1.7; max-width: 620px; margin-bottom: 30px; }
.hero-eyebrow { display: inline-block; font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 16px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: .85rem; margin-bottom: 22px;
}
.hero-checklist li { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; color: var(--text); }
.hero-checklist i { color: var(--primary); }
.hero-checklist { margin-bottom: 30px; }

/* Corporate hero frame */
.hero-frame { position: relative; background: var(--card); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-md); }
.hero-float {
  position: absolute; left: -18px; bottom: 28px; display: flex; gap: 12px; align-items: center;
  background: var(--card); border-radius: var(--radius-md); padding: 14px 18px; box-shadow: var(--shadow-md);
}
.hero-float i { font-size: 1.6rem; color: var(--primary); }
.hero-float strong { display: block; font-size: .95rem; }
.hero-float small { color: var(--muted); }

/* SaaS app window */
.app-window { max-width: 900px; margin-top: 56px; background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; border: 1px solid var(--border); }
.app-window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
.app-window-bar > span { width: 11px; height: 11px; border-radius: 50%; background: #e2e8f0; }
.app-window-bar > span:nth-child(1) { background: #f87171; }
.app-window-bar > span:nth-child(2) { background: #fbbf24; }
.app-window-bar > span:nth-child(3) { background: #34d399; }
.app-window-url { margin-left: 14px; flex: 1; max-width: 340px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; font-size: .78rem; color: var(--muted); padding: 3px 14px; text-align: left; }
.app-window-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 22px; }
.app-tile { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--radius-md); background: var(--surface); text-align: left; font-weight: 600; font-size: .92rem; }
.app-tile i { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 1.15rem; }

/* Fintech overview panel */
.security-badges { margin-top: 30px; }
.security-badges li { display: flex; align-items: center; gap: 8px; font-size: .9rem; padding: 8px 14px; border-radius: var(--radius-sm); }
.overview-panel { border-radius: var(--radius-lg); padding: 26px; }
.overview-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 20px; }
.overview-live { font-size: .8rem; display: inline-flex; align-items: center; gap: 6px; }
.overview-live i { font-size: .5rem; }
.overview-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 20px; }
.overview-stats > div { border-radius: var(--radius-md); padding: 18px; }
.overview-stats small { display: block; font-size: .8rem; opacity: .75; margin-bottom: 4px; }
.overview-stats strong { font-size: 1.7rem; font-family: var(--font-heading); }
.overview-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.overview-list i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.overview-list span { flex: 1; font-weight: 500; }
.overview-list em { font-style: normal; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }

/* Premium hero line */
.hero-service-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 56px 0 0; font-size: .9rem; }
.hero-service-line li { position: relative; }

/* Trust strip */
.trust-strip { padding: 22px 0; border-bottom: 1px solid var(--border); background: var(--card); }
.trust-strip li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; color: var(--text); }
.trust-strip i { color: var(--primary); font-size: 1.25rem; }

/* Statistics */
.statistics { padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; max-width: 760px; margin: 0 auto; }
.stats-card { display: flex; align-items: center; gap: 18px; justify-content: center; }
.stats-card i { font-size: 2.2rem; color: var(--primary); }
.stats-number { font-family: var(--font-heading); font-size: 2.3rem; font-weight: 800; line-height: 1.1; }
.stats-label { color: var(--muted); font-size: .92rem; }

/* Service cards (cards / tiles / numbered) */
.service-card {
  position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 1.45rem; }
.service-name { font-size: 1.08rem; font-weight: 600; margin: 4px 0 0; }
.service-description { color: var(--muted); font-size: .92rem; flex-grow: 1; margin: 0; }
.service-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.service-price { font-weight: 700; font-size: .92rem; }
.service-category { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.service-btn { align-self: flex-start; }
.service-num { position: absolute; top: 22px; right: 26px; font-family: var(--font-heading); font-size: 1.9rem; font-weight: 700; opacity: .18; }

/* Service list (minimal) */
.service-list { border-top: 1px solid var(--text); }
.service-row {
  display: grid; grid-template-columns: 60px 1.1fr 1.6fr auto; gap: 24px; align-items: center;
  padding: 26px 4px; border-bottom: 1px solid var(--border); color: var(--text); transition: background .2s ease, padding .2s ease;
}
.service-row:hover { background: var(--surface); padding-left: 16px; color: var(--text); }
.service-row-num { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.service-row-name { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; }
.service-row-desc { color: var(--muted); }
.service-row-cta { font-weight: 600; font-size: .9rem; white-space: nowrap; }
.service-row.is-disabled, .txn-row.is-disabled { pointer-events: none; opacity: .55; }

/* Service rows (fintech) */
.service-group { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; height: 100%; }
.service-group-title { display: flex; justify-content: space-between; align-items: center; font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.service-group-title span { font-size: .75rem; padding: 2px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.txn-row { display: flex; align-items: center; gap: 14px; padding: 14px 10px; border-radius: var(--radius-md); color: var(--text); transition: background .2s ease; }
.txn-row + .txn-row { border-top: 1px dashed var(--border); }
.txn-row:hover { background: var(--surface); color: var(--text); }
.txn-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 1.2rem; }
.txn-body { flex: 1; min-width: 0; }
.txn-body strong { display: block; font-size: .98rem; }
.txn-body small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; }

/* Badges */
.badge { border-radius: 999px; padding: 5px 12px; font-weight: 600; font-size: .72rem; }
.status-live, .status-available { background: #dcfce7; color: #15803d; }
.status-coming_soon { background: #fef3c7; color: #b45309; }
.status-maintenance, .status-unavailable { background: #fee2e2; color: #b91c1c; }

/* Pricing */
.pricing-card {
  position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px; display: flex; flex-direction: column; gap: 14px;
}
.pricing-card-highlight { border: 2px solid var(--primary); box-shadow: var(--shadow-md); }
.pricing-badge { position: absolute; top: -13px; left: 34px; }
.pricing-name { font-weight: 700; font-size: 1.25rem; margin: 0; }
.pricing-price { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; }
.pricing-price-note { color: var(--muted); font-size: .8rem; font-weight: 600; margin: -2px 0 2px; }
.pricing-card-highlight .pricing-price-note { color: inherit; opacity: .75; }
.pricing-tagline { color: var(--muted); margin: -6px 0 6px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.pricing-card-highlight .pricing-tagline { color: inherit; opacity: .75; border-bottom-color: rgba(255, 255, 255, .15); }
.pricing-features { flex-grow: 1; margin: 0; }
.pricing-features li { padding: 7px 0; color: var(--muted); display: flex; gap: 10px; }
.pricing-features i { color: var(--primary); }

/* Features */
.feature-box { gap: 14px; padding: 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); height: 100%; }
.feature-box i { font-size: 1.5rem; color: var(--primary); }
.feature-box h3 { font-size: 1rem; font-weight: 600; margin: 0; }

/* How it works */
.how-it-works .row { justify-content: center; }
.step-card { position: relative; padding: 10px 8px; text-align: center; }
.step-number { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 700; font-family: var(--font-heading); }
.step-card h3 { font-size: 1rem; font-weight: 600; }
.step-card p { color: var(--muted); font-size: .88rem; margin: 0; }

/* FAQ */
.faq-container { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-header { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: 0; text-align: left; padding: 20px 4px; color: var(--text); }
.faq-header h3 { font-size: 1.02rem; font-weight: 600; margin: 0; }
.faq-toggle { transition: transform .2s ease; flex-shrink: 0; }
.faq-item.faq-active .faq-toggle { transform: rotate(90deg); color: var(--primary); }
.faq-content { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.faq-active .faq-content { max-height: 300px; }
.faq-content p { color: var(--muted); padding: 0 4px 20px; margin: 0; }

/* Contact */
.contact-card { gap: 16px; padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text); height: 100%; transition: border-color .2s ease, transform .2s ease; }
.contact-card:hover { border-color: var(--primary); transform: translateY(-3px); color: var(--text); }
.contact-card i { font-size: 1.6rem; color: var(--primary); }
.contact-card h3 { font-size: 1rem; font-weight: 600; margin: 0 0 2px; }
.contact-card p { margin: 0; color: var(--muted); word-break: break-word; }

/* CTA */
.call-to-action { background: var(--secondary); color: #fff; }
.call-to-action h2 { color: #fff; font-weight: 700; }
.call-to-action p { color: rgba(255, 255, 255, .75); margin-bottom: 26px; }
.call-to-action .btn-outline-primary { color: #fff; border-color: rgba(255, 255, 255, .5); }
.call-to-action .btn-outline-primary:hover { background: #fff; color: var(--secondary); }

/* Footer */
.footer { background: var(--footer-bg); color: var(--footer-text); padding: 64px 0 26px; }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.3rem; }
.footer-text { color: var(--footer-text); }
.footer-heading { color: #fff; font-size: .95rem; font-weight: 600; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; color: var(--footer-text); }
.footer-links i { margin-right: 6px; }
.footer-links a { color: var(--footer-text); }
.footer-links a:hover { color: #fff; }
.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 36px; padding-top: 22px; font-size: .88rem; opacity: .8; }
.copyright p { margin: 0; }

/* Back to top */
.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--on-primary); opacity: 0; visibility: hidden; transition: all .3s ease; z-index: 998; }
.back-to-top:hover { color: var(--on-primary); background: var(--primary-dark); }
.back-to-top.show { opacity: 1; visibility: visible; }

@media (max-width: 991px) {
  .section { padding: 64px 0; }
  .hero { padding: 64px 0; }
  .hero-float { left: 12px; bottom: 12px; }
  .app-window-body { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 44px 1fr auto; }
  .service-row-desc { display: none; }
}

@media (max-width: 575px) {
  .app-window-body { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr auto; gap: 12px; }
  .service-row-num { display: none; }
  .service-row-cta { font-size: 0; }
  .service-row-cta i { font-size: 1.1rem; }
  .overview-stats { grid-template-columns: 1fr 1fr; }
  .overview-stats strong { font-size: 1.35rem; }
  .trust-strip ul { justify-content: flex-start !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
