/* ============================================================
   iSoftMoney — Bootstrap 5 theme + animation layer
   ============================================================ */
   :root {
    --ism-bg: #050b14;
    --ism-bg-2: #08121f;
    --ism-surface: rgba(255, 255, 255, 0.04);
    --ism-border: rgba(255, 255, 255, 0.1);
    --ism-primary: #10b981;
    --ism-primary-2: #34d399;
    --ism-accent: #38bdf8;
    --ism-text: #e8f1f8;
    --ism-muted: #93a4b5;
    --ism-radius: 18px;
    --ism-glow: 0 0 0 1px rgba(16, 185, 129, 0.25), 0 22px 60px -25px rgba(16, 185, 129, 0.55);
  }
  
  * { -webkit-tap-highlight-color: transparent; }
  
  html { scroll-behavior: smooth; }
  
  body {
    background: var(--ism-bg);
    color: var(--ism-text);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
  }
  
  /* ---------- background aurora ---------- */
  .aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(58rem 34rem at 12% -8%, rgba(16, 185, 129, 0.22), transparent 60%),
      radial-gradient(48rem 30rem at 92% 4%, rgba(56, 189, 248, 0.18), transparent 60%),
      radial-gradient(44rem 30rem at 50% 108%, rgba(16, 185, 129, 0.14), transparent 60%),
      linear-gradient(180deg, var(--ism-bg), var(--ism-bg-2));
  }
  .aurora::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: radial-gradient(70% 55% at 50% 20%, #000 25%, transparent 100%);
  }
  
  /* ---------- typography ---------- */
  .display-hero {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.02;
    font-size: clamp(2.3rem, 7vw, 4.6rem);
  }
  .text-gradient {
    background: linear-gradient(100deg, var(--ism-primary-2), var(--ism-accent) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .lead-muted { color: var(--ism-muted); font-size: clamp(1rem, 2.4vw, 1.15rem); line-height: 1.7; }
  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ism-primary-2);
    font-weight: 700;
  }
  .section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
  .section-alt { background: rgba(255, 255, 255, 0.02); border-block: 1px solid var(--ism-border); }
  
  /* ---------- glass pieces ---------- */
  .glass {
    background: var(--ism-surface);
    border: 1px solid var(--ism-border);
    border-radius: var(--ism-radius);
    backdrop-filter: blur(14px);
  }
  .chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--ism-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ism-border);
  }
  
  /* ---------- navbar ---------- */
  .navbar-ism {
    background: rgba(5, 11, 20, 0.55);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s, padding 0.3s;
  }
  .navbar-ism.is-stuck {
    background: rgba(5, 11, 20, 0.9);
    border-bottom-color: var(--ism-border);
  }
  .navbar-ism .nav-link { color: var(--ism-muted); font-weight: 600; font-size: 0.94rem; position: relative; }
  .navbar-ism .nav-link::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.15rem;
    height: 2px;
    border-radius: 2px;
    background: var(--ism-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
  }
  .navbar-ism .nav-link:hover,
  .navbar-ism .nav-link.active { color: var(--ism-text); }
  .navbar-ism .nav-link:hover::after,
  .navbar-ism .nav-link.active::after { transform: scaleX(1); }
  .brand-mark {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ism-primary), var(--ism-accent));
    color: #04121a;
    font-size: 1.15rem;
    box-shadow: 0 10px 26px -12px rgba(16, 185, 129, 0.9);
  }
  .navbar-toggler { border-color: var(--ism-border); }
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2393a4b5' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
  
  /* ---------- buttons ---------- */
  .btn-ism {
    --shine: rgba(255, 255, 255, 0.35);
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    padding: 0.8rem 1.6rem;
    font-weight: 700;
    color: #04121a;
    background: linear-gradient(120deg, var(--ism-primary), var(--ism-primary-2));
    box-shadow: 0 16px 40px -18px rgba(16, 185, 129, 0.9);
    transition: transform 0.25s, box-shadow 0.25s;
  }
  .btn-ism:hover { transform: translateY(-2px); color: #04121a; box-shadow: 0 22px 50px -18px rgba(16, 185, 129, 1); }
  .btn-ism::before {
    content: "";
    position: absolute; top: 0; bottom: 0; left: -60%;
    width: 45%;
    background: linear-gradient(100deg, transparent, var(--shine), transparent);
    transform: skewX(-18deg);
    animation: btnShine 3.4s linear infinite;
  }
  @keyframes btnShine { 0% { left: -60%; } 60%, 100% { left: 130%; } }
  .btn-ghost {
    border-radius: 999px;
    padding: 0.8rem 1.6rem;
    font-weight: 700;
    color: var(--ism-text);
    border: 1px solid var(--ism-border);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.25s, transform 0.25s, color 0.25s;
  }
  .btn-ghost:hover { color: var(--ism-text); border-color: var(--ism-primary); transform: translateY(-2px); }
  
  /* ---------- icon tiles ---------- */
  .icon-tile {
    position: relative;
    width: 60px; height: 60px;
    display: grid; place-items: center;
    border-radius: 16px;
    font-size: 1.5rem;
    color: var(--ism-primary-2);
    background: linear-gradient(150deg, rgba(16, 185, 129, 0.2), rgba(56, 189, 248, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.28);
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1);
  }
  .icon-tile::after {
    content: "";
    position: absolute; inset: -6px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    opacity: 0;
    animation: pulseRing 2.6s ease-out infinite;
  }
  @keyframes pulseRing {
    0% { transform: scale(0.85); opacity: 0.75; }
    70%, 100% { transform: scale(1.25); opacity: 0; }
  }
  .icon-tile i { animation: floaty 4.5s ease-in-out infinite; }
  @keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
  
  /* ---------- service cards ---------- */
  .svc-card {
    position: relative;
    height: 100%;
    padding: 1.6rem;
    overflow: hidden;
    transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
  }
  .svc-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(20rem 12rem at var(--mx, 50%) var(--my, 0%), rgba(16, 185, 129, 0.16), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s;
  }
  .svc-card:hover { transform: translateY(-8px); border-color: rgba(16, 185, 129, 0.4); box-shadow: var(--ism-glow); }
  .svc-card:hover::before { opacity: 1; }
  .svc-card:hover .icon-tile { transform: rotate(-8deg) scale(1.08); }
  .svc-card h3 { font-size: 1.12rem; font-weight: 750; margin: 1rem 0 0.5rem; }
  .svc-card p { color: var(--ism-muted); font-size: 0.94rem; margin: 0; }
  .svc-list { list-style: none; padding: 0; margin: 1rem 0 0; }
  .svc-list li {
    display: flex; gap: 0.55rem;
    font-size: 0.87rem; color: var(--ism-muted);
    padding: 0.24rem 0;
  }
  .svc-list i { color: var(--ism-primary); margin-top: 0.2rem; }
  
  /* ---------- flow / how-it-works ---------- */
  .flow-track { position: relative; }
  .flow-line {
    position: absolute; left: 28px; top: 12px; bottom: 12px;
    width: 2px;
    background: repeating-linear-gradient(180deg, rgba(16, 185, 129, 0.9) 0 10px, transparent 10px 20px);
    background-size: 2px 20px;
    animation: flowDash 1s linear infinite;
  }
  @keyframes flowDash { to { background-position-y: 20px; } }
  .flow-step { display: flex; gap: 1.15rem; padding: 0.75rem 0 1.5rem; position: relative; }
  .flow-node {
    flex: 0 0 58px;
    width: 58px; height: 58px;
    display: grid; place-items: center;
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--ism-primary-2);
    background: rgba(8, 18, 31, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 0 0 6px rgba(5, 11, 20, 0.9);
    z-index: 1;
  }
  .flow-step.is-live .flow-node {
    color: #04121a;
    background: linear-gradient(135deg, var(--ism-primary), var(--ism-accent));
    transform: scale(1.06);
    transition: transform 0.4s;
  }
  .flow-step h4 { font-size: 1.02rem; font-weight: 750; margin-bottom: 0.3rem; }
  .flow-step p { color: var(--ism-muted); font-size: 0.92rem; margin: 0; }
  .flow-index { font-size: 0.72rem; letter-spacing: 0.16em; color: var(--ism-primary-2); font-weight: 700; }
  
  /* ---------- product explainer (services page) ---------- */
  .explainer { padding: clamp(1.4rem, 4vw, 2.4rem); }
  .explainer + .explainer { margin-top: 1.75rem; }
  .stage {
    position: relative;
    min-height: 260px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(16, 185, 129, 0.09), rgba(56, 189, 248, 0.05));
    border: 1px solid var(--ism-border);
    display: grid; place-items: center;
  }
  .stage-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 0.7rem 1rem;
    font-size: 0.82rem;
    color: var(--ism-muted);
    background: rgba(5, 11, 20, 0.72);
    border-top: 1px solid var(--ism-border);
  }
  .stage-row { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; justify-content: center; padding: 1.5rem 1rem 3.2rem; }
  .stage-pill {
    display: grid; place-items: center;
    width: 62px; height: 62px;
    border-radius: 16px;
    font-size: 1.35rem;
    color: var(--ism-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ism-border);
    transition: all 0.45s cubic-bezier(0.2, 0.9, 0.2, 1);
  }
  .stage-pill.on {
    color: #04121a;
    background: linear-gradient(135deg, var(--ism-primary), var(--ism-accent));
    border-color: transparent;
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 18px 40px -18px rgba(16, 185, 129, 0.95);
  }
  .stage-arrow { color: rgba(255, 255, 255, 0.22); font-size: 0.9rem; transition: color 0.4s; }
  .stage-arrow.on { color: var(--ism-primary-2); }
  .stage-label { font-size: 0.66rem; text-align: center; color: var(--ism-muted); margin-top: 0.4rem; max-width: 72px; }
  .stage-cell { display: flex; flex-direction: column; align-items: center; }
  
  /* ---------- orbit hero visual ---------- */
  .orbit { position: relative; width: min(420px, 88vw); aspect-ratio: 1; margin-inline: auto; }
  .orbit-ring {
    position: absolute; inset: 8%;
    border-radius: 50%;
    border: 1px dashed rgba(16, 185, 129, 0.28);
    animation: spin 26s linear infinite;
  }
  .orbit-ring.inner { inset: 26%; border-style: solid; border-color: rgba(56, 189, 248, 0.2); animation-duration: 18s; animation-direction: reverse; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .orbit-core {
    position: absolute; inset: 36%;
    border-radius: 50%;
    display: grid; place-items: center;
    text-align: center;
    background: radial-gradient(circle at 30% 25%, rgba(16, 185, 129, 0.45), rgba(5, 11, 20, 0.95));
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: inset 0 0 40px rgba(16, 185, 129, 0.25), 0 20px 60px -25px rgba(16, 185, 129, 0.8);
    animation: breathe 5s ease-in-out infinite;
  }
  @keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
  .orbit-core i { font-size: 1.9rem; color: var(--ism-primary-2); }
  .orbit-core span { display: block; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ism-muted); }
  .orbit-icon {
    position: absolute;
    width: 52px; height: 52px;
    margin: -26px 0 0 -26px;
    display: grid; place-items: center;
    border-radius: 14px;
    font-size: 1.2rem;
    color: var(--ism-primary-2);
    background: rgba(8, 18, 31, 0.9);
    border: 1px solid rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(6px);
    animation: floaty 5s ease-in-out infinite;
  }
  .orbit-icon:hover { color: #04121a; background: linear-gradient(135deg, var(--ism-primary), var(--ism-accent)); }
  
  /* ---------- stats ---------- */
  .stat { text-align: center; padding: 1.4rem 0.6rem; }
  .stat b { display: block; font-size: clamp(1.8rem, 5vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; }
  .stat span { color: var(--ism-muted); font-size: 0.86rem; }
  
  /* ---------- accordion / faq + legal ---------- */
  .accordion-ism .accordion-item {
    background: var(--ism-surface);
    border: 1px solid var(--ism-border);
    border-radius: 14px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
  }
  .accordion-ism .accordion-button {
    background: transparent;
    color: var(--ism-text);
    font-weight: 700;
    box-shadow: none !important;
  }
  .accordion-ism .accordion-button:not(.collapsed) { color: var(--ism-primary-2); }
  .accordion-ism .accordion-button::after {
    filter: invert(1) grayscale(1) brightness(1.6);
  }
  .accordion-ism .accordion-body { color: var(--ism-muted); font-size: 0.94rem; }
  .legal-body h3 { font-size: 1rem; font-weight: 750; margin: 1.4rem 0 0.5rem; color: var(--ism-text); }
  .legal-body ul { padding-left: 1.1rem; }
  .legal-body li { margin-bottom: 0.35rem; }
  .legal-nav .btn { width: 100%; text-align: left; margin-bottom: 0.5rem; }
  
  /* ---------- cta band ---------- */
  .cta-band {
    position: relative;
    overflow: hidden;
    padding: clamp(2.2rem, 6vw, 3.6rem);
    border-radius: 26px;
    background: linear-gradient(120deg, rgba(16, 185, 129, 0.16), rgba(56, 189, 248, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
  }
  .cta-band::after {
    content: "";
    position: absolute; inset: -40% -10%;
    background: conic-gradient(from 0deg, transparent, rgba(16, 185, 129, 0.16), transparent 40%);
    animation: spin 14s linear infinite;
    pointer-events: none;
  }
  
  /* ---------- footer ---------- */
  .footer { border-top: 1px solid var(--ism-border); padding: 3.5rem 0 2rem; background: rgba(255, 255, 255, 0.015); }
  .footer a { color: var(--ism-muted); text-decoration: none; font-size: 0.92rem; display: inline-block; padding: 0.22rem 0; transition: color 0.25s, transform 0.25s; }
  .footer a:hover { color: var(--ism-primary-2); transform: translateX(3px); }
  .footer h6 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ism-text); margin-bottom: 0.9rem; }
  
  /* ---------- reveal on scroll ---------- */
  [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
  }
  [data-reveal].in { opacity: 1; transform: none; }
  
  /* ---------- ticker ---------- */
  .ticker { overflow: hidden; border-block: 1px solid var(--ism-border); padding: 0.85rem 0; }
  .ticker-track { display: flex; gap: 3rem; width: max-content; animation: marquee 26s linear infinite; }
  .ticker-track span { color: var(--ism-muted); font-size: 0.9rem; white-space: nowrap; display: flex; align-items: center; gap: 0.5rem; }
  @keyframes marquee { to { transform: translateX(-50%); } }
  
  /* ---------- back to top ---------- */
  .to-top {
    position: fixed; right: 18px; bottom: 18px; z-index: 60;
    width: 46px; height: 46px;
    border-radius: 50%;
    display: grid; place-items: center;
    color: #04121a;
    background: linear-gradient(135deg, var(--ism-primary), var(--ism-accent));
    border: 0;
    opacity: 0; pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s;
  }
  .to-top.show { opacity: 1; pointer-events: auto; transform: none; }
  
  @media (max-width: 575.98px) {
    .flow-line { left: 24px; }
    .flow-node { flex-basis: 50px; width: 50px; height: 50px; font-size: 1.05rem; }
  }
  
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    [data-reveal] { opacity: 1; transform: none; }
  }
  