/* Core Theme Variables */
:root {
  /* Dark theme (default) */
  --bg-dark: #050505;
  --bg-panel: #0d0f14;
  --bg-gradient: radial-gradient(circle at 30% 30%, #0d2831, #050505 60%);
  /* FinTech trust palette */
  --primary: #00b5d8;
  --primary-rgb: 0,181,216;
  --secondary: #43e7a3;
  --accent: #ffbd3d;
  --danger: #ff4d61;
  --success: #35e28a;
  --warning: #ffb347;
  --info: #3da5ff;
  --text-main: #ffffff;
  --text-muted: #8b9bb4;
  --text-faint: #627089;
  --glass: rgba(255,255,255,0.04);
  --glass-strong: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.12);
  --focus-ring: 0 0 0 3px rgba(0,243,255,0.4);
  --shadow-elevate: 0 8px 28px -6px rgba(0,0,0,0.5), 0 2px 8px -2px rgba(0,0,0,0.4);
  --transition-fast: .18s cubic-bezier(.4,.2,.2,1);
  /* Marquee animation speeds */
  --marquee-speed: 22s;
  --marquee-speed-slow: 32s;
  --marquee-speed-fast: 12s;
  /* UI enhancement variables */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --gradient-card: linear-gradient(135deg, rgba(var(--primary-rgb),0.18) 0%, rgba(188,19,254,0.22) 55%, rgba(var(--primary-rgb),0.10) 100%);
  --glow-primary: 0 0 0 2px rgba(var(--primary-rgb),0.35), 0 0 18px -4px rgba(var(--primary-rgb),0.75);
}

/* Reset & Base */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg-gradient), var(--bg-dark);
  color: var(--text-main);
  line-height:1.5;
  -webkit-font-smoothing: antialiased;
}
/* Layout Container & Hybrid Padding */
.container { width:min(1200px,100%); margin-inline:auto; }
main section > .container { padding:0 60px; }
#hero > .container { padding:0; }
@media (max-width:1100px){ main section > .container { padding:0 48px; } }
@media (max-width:900px){ main section > .container { padding:0 40px; } }
@media (max-width:700px){ main section > .container { padding:0 30px; } }
@media (max-width:520px){ main section > .container { padding:0 22px; } }
body:focus-visible { outline:none; }
body:not(.keyboard-navigation) { cursor:none; }
img { max-width:100%; display:block; }

/* Typography */
h1,h2,h3 { font-family: 'Orbitron', sans-serif; font-weight:700; line-height:1.1; }
p { font-size:1.05rem; }

/* Skip Link */
.skip-link { position:absolute; left:-999px; top:0; background:#000; color:#fff; padding:8px 14px; z-index:2000; }
.skip-link:focus { left:10px; box-shadow: var(--focus-ring); }

/* Header / Nav */
header { position:fixed; top:0; left:0; width:100%; z-index:1000; backdrop-filter: blur(10px); border-bottom:1px solid var(--glass-border); }
.navbar { display:flex; align-items:center; justify-content:space-between; padding:18px 48px; }
.logo { font-size:1.6rem; font-weight:900; letter-spacing:2px; text-decoration:none; color:#fff; text-transform:uppercase; }
.logo span { color:var(--primary); }
nav ul { list-style:none; display:flex; gap:40px; }
nav a { text-decoration:none; color:var(--text-muted); font-size:.9rem; letter-spacing:1px; position:relative; text-transform:uppercase; font-weight:600; }
nav a:focus-visible { outline:none; box-shadow: var(--focus-ring); border-radius:3px; }
nav a:hover, nav a:focus { color:#fff; }
nav a::after { content:''; position:absolute; left:0; bottom:-6px; width:0; height:2px; background:var(--primary); transition:.4s cubic-bezier(.6,.2,.2,1); box-shadow:0 0 10px -2px rgba(var(--primary-rgb),0.8); }
nav a:hover::after, nav a:focus::after { width:100%; }
nav a:hover { text-shadow:0 0 8px rgba(var(--primary-rgb),0.6); }
/* Removed high-contrast toggle button styling */
nav a::after { content:''; position:absolute; left:0; bottom:-6px; width:0; height:2px; background:var(--primary); transition:.3s; }
nav a:hover::after, nav a:focus::after { width:100%; }


/* Hero */
.hero { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:140px 24px 80px; text-align:center; position:relative; }
.hero::before { content:''; position:absolute; inset:0; background: radial-gradient(circle at 30% 40%, rgba(var(--primary-rgb),0.12), transparent 60%), radial-gradient(circle at 70% 60%, rgba(188,19,254,0.10), transparent 65%); opacity:.45; animation:heroGlow 14s linear infinite; pointer-events:none; }
@keyframes heroGlow { 0%{filter:hue-rotate(0deg);} 50%{filter:hue-rotate(25deg);} 100%{filter:hue-rotate(0deg);} }
  .hero-tag { display:inline-block; color:var(--primary); border:1px solid var(--primary); padding:8px 18px; font-size:.75rem; letter-spacing:3px; margin-bottom:26px; background:rgba(var(--primary-rgb),0.12); }
  .hero-title { font-size:clamp(2.6rem,7vw,4.6rem); margin-bottom:24px; text-transform:uppercase; letter-spacing:1px; }
  .hero-subtitle { max-width:760px; margin:0 auto 40px; color:var(--text-muted); font-size:1.15rem; line-height:1.4; }
/* Hero panel removed per user feedback */

/* Glitch (reduced motion respects preference) */
.glitch { position:relative; display:inline-block; }
.glitch::before, .glitch::after { content:attr(data-text); position:absolute; top:0; left:0; width:100%; height:100%; background:var(--bg-dark); }
@media (prefers-reduced-motion: no-preference) {
  .glitch::before { left:2px; text-shadow:-2px 0 var(--secondary); clip:rect(10px,9999px,30px,0); animation:glitch-a 3s infinite linear alternate-reverse; }
  .glitch::after { left:-2px; text-shadow:-2px 0 var(--primary); clip:rect(60px,9999px,90px,0); animation:glitch-b 2.8s infinite linear alternate-reverse; }
  @keyframes glitch-a { 0%{clip:rect(10px,9999px,30px,0);} 50%{clip:rect(70px,9999px,95px,0);} 100%{clip:rect(40px,9999px,65px,0);} }
  @keyframes glitch-b { 0%{clip:rect(60px,9999px,90px,0);} 50%{clip:rect(15px,9999px,50px,0);} 100%{clip:rect(120px,9999px,140px,0);} }
}

/* Buttons */
.btn { display:inline-block; padding:18px 46px; border:1px solid var(--primary); background:linear-gradient(90deg, rgba(var(--primary-rgb),0.05), rgba(var(--primary-rgb),0.15)); color:var(--primary); font-family:'Orbitron', sans-serif; letter-spacing:2px; text-transform:uppercase; font-size:.95rem; position:relative; overflow:hidden; text-decoration:none; transition:.5s cubic-bezier(.5,.2,.2,1); isolation:isolate; backdrop-filter:blur(4px); }
.btn:focus-visible { outline:none; box-shadow: var(--focus-ring); }
.btn::before { content:''; position:absolute; inset:0; background:linear-gradient(90deg, rgba(var(--primary-rgb),0.15), rgba(var(--primary-rgb),0.55)); transform:translateX(-100%); transition:transform .55s cubic-bezier(.6,.2,.2,1); z-index:-1; }
.btn:hover { color:var(--primary); box-shadow:0 0 0 2px rgba(var(--primary-rgb),0.3), 0 0 22px -6px rgba(var(--primary-rgb),0.9); transform:translateY(-3px); }
.btn:hover::before { transform:translateX(0); }
.btn-solid { color:#000; }
.btn-solid::before { background:linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); }
.btn-solid:hover { color:#000; }

/* Sections */
main section { padding:100px 0; position:relative; }
.section-header { margin-bottom:70px; }
.section-title { font-size:2.8rem; border-left:4px solid var(--primary); padding-left:20px; }

/* Services Grid */
.services-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:32px; }
.service-card { background:var(--glass); border:1px solid var(--glass-border); padding:38px; border-radius:var(--radius-lg); transition:.5s cubic-bezier(.25,.4,.2,1); position:relative; overflow:hidden; }
.service-card::before { content:''; position:absolute; inset:0; background:var(--gradient-card); opacity:0; transition:.6s; pointer-events:none; }
.service-card:focus-visible { outline:none; box-shadow: var(--focus-ring), var(--glow-primary); }
  .service-card:hover { border-color:var(--primary); box-shadow:0 8px 28px -6px rgba(var(--primary-rgb),0.45), 0 0 0 1px rgba(var(--primary-rgb),0.35); transform:translateY(-6px); }
.service-card:hover::before { opacity:1; }
.service-icon { width:2.4rem; height:2.4rem; fill:var(--primary); margin-bottom:20px; display:block; }
.service-card h3 { margin-bottom:14px; font-size:1.5rem; }
.service-card p { color:var(--text-muted); }
/* Use Cases */
.usecases { padding:100px 0; }
.usecase-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:32px; }
.usecase-card { background:var(--glass); border:1px solid var(--glass-border); padding:30px 32px; border-radius:var(--radius-lg); position:relative; transition:.45s; }
.usecase-card:hover { border-color:var(--primary); box-shadow:0 6px 26px -8px rgba(var(--primary-rgb),0.5); transform:translateY(-6px); }
.usecase-card h3 { margin-bottom:14px; font-size:1.25rem; letter-spacing:.5px; }
.usecase-card p { color:var(--text-muted); font-size:.95rem; line-height:1.5; }
.usecase-badge { display:inline-block; background:rgba(var(--primary-rgb),0.12); color:var(--primary); border:1px solid rgba(var(--primary-rgb),0.4); padding:4px 10px; font-size:.55rem; letter-spacing:1px; border-radius:14px; margin-right:6px; margin-bottom:10px; font-weight:600; }


/* Logo grid */
.logos { padding:90px 0; background:#050a0d; }
.logo-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:30px; align-items:center; }
.logo-item { background:#0d1f26; border:1px solid #12333d; border-radius:10px; height:70px; display:flex; align-items:center; justify-content:center; color:var(--text-muted); font-size:.65rem; letter-spacing:1px; position:relative; overflow:hidden; }
.logo-item::before { content:''; position:absolute; inset:0; background:linear-gradient(135deg, rgba(var(--primary-rgb),0.08), rgba(var(--primary-rgb),0)); opacity:0; transition:.5s; }
.logo-item:hover::before { opacity:1; }

@media (max-width:800px){
  main section { padding:80px 0; }
  .logos { padding:70px 0; }
}


/* Screen reader only utility */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* Simplified Tech Marquee (icons only) */
.tech-marquee { background:linear-gradient(135deg,#050505 0%, #0d2831 55%, #050505 100%); border-top:1px solid var(--glass-border); border-bottom:1px solid var(--glass-border); padding:60px 0 54px; overflow:hidden; position:relative; }
.marquee-track { display:flex; width:200%; animation:marquee var(--marquee-speed) linear infinite; filter:drop-shadow(0 4px 12px rgba(0,0,0,0.6)); }
.marquee-track svg { width:3.2rem; height:3.2rem; margin:0 50px; fill:var(--primary); opacity:.85; transition:.4s; filter:drop-shadow(0 0 10px rgba(var(--primary-rgb),0.35)); }
.marquee-track svg:hover { opacity:1; fill:var(--secondary); filter:drop-shadow(0 0 18px rgba(var(--primary-rgb),0.9)); transform:scale(1.12); }
@keyframes marquee { 0%{transform:translateX(0);} 100%{transform:translateX(-50%);} }

/* Contact */
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:start; }
.contact-info h2 { font-size:2.8rem; margin-bottom:26px; }
.info-item { display:flex; align-items:flex-start; margin-bottom:28px; }
.contact-icon { width:1.4rem; height:1.4rem; fill:var(--secondary); margin-right:18px; flex-shrink:0; }
.info-item span { color:var(--text-muted); }
.info-item strong { display:block; font-size:.8rem; letter-spacing:1px; opacity:.65; margin-bottom:6px; }
.form-panel { background:var(--glass); border:1px solid var(--glass-border); padding:46px; border-radius:20px; }
.form-group { position:relative; margin-bottom:30px; }
label { display:block; font-size:.8rem; letter-spacing:1px; margin-bottom:6px; color:var(--text-muted); text-transform:uppercase; }
input[type=text], input[type=email] { width:100%; padding:14px 0; background:transparent; border:none; border-bottom:2px solid #333; color:#fff; font-size:1.05rem; font-family:'Rajdhani', sans-serif; transition:.3s; }
input[type=text]:focus, input[type=email]:focus { outline:none; border-bottom-color:var(--primary); }
input[type=text]:focus-visible, input[type=email]:focus-visible { box-shadow: var(--focus-ring); }
.error-msg { font-size:.75rem; color:var(--danger); margin-top:6px; }
.error-visible { position:static !important; width:auto !important; height:auto !important; margin:6px 0 0 !important; clip:auto !important; white-space:normal !important; }
.form-group input[aria-invalid="true"] { border-bottom-color: var(--danger); }

/* Footer */
footer { background:#020202; padding:60px 50px 28px; border-top:1px solid #111; text-align:center; }
.footer-logo { font-size:1.9rem; margin-bottom:16px; display:inline-block; text-decoration:none; color:#fff; }
.footer-logo span { color:var(--primary); }
.copyright { color:#555; font-size:.85rem; margin-top:40px; }

/* Reveals */
.reveal { opacity:0; transform:translateY(50px); transition:1s ease; }
.reveal.active { opacity:1; transform:translateY(0); }

/* Canvas */
#network-canvas { position:fixed; top:0; left:0; width:100%; height:100%; z-index:-1; opacity:.45; }

/* Utility Color Badges */
.badge { display:inline-block; padding:4px 10px; border-radius:14px; font-size:.65rem; letter-spacing:1px; font-weight:600; text-transform:uppercase; background:var(--glass); border:1px solid var(--glass-border); }
.badge-accent { background:var(--accent); color:#181818; }
.badge-danger { background:var(--danger); color:#fff; }
  .badge-success { background:var(--success); color:#032a1b; }
.metrics { background:#071218; border-top:1px solid var(--glass-border); border-bottom:1px solid var(--glass-border); padding:38px 0; }
.metrics-list { list-style:none; display:flex; flex-wrap:wrap; gap:48px; justify-content:center; margin:0; }
.metrics-item { text-align:center; min-width:140px; }
.metric-value { display:block; font-family:'Orbitron',sans-serif; font-size:2rem; font-weight:700; color:var(--primary); letter-spacing:1px; }
.metric-label { display:block; font-size:.7rem; letter-spacing:2px; color:var(--text-muted); margin-top:6px; text-transform:uppercase; }
@media (max-width:760px){ .metric-value{font-size:1.6rem;} }

/* New: Trust / Compliance section */
.trust { padding:100px 0; background:linear-gradient(135deg,#050607,#071218 65%, #050607); }

/* Section Bands (Hybrid Visual Separation) */
.services-band { background:linear-gradient(135deg,#060a0d,#091821 65%,#060a0d); }
.usecases-band { background:#050a0d; }
.contact-band { background:linear-gradient(135deg,#050607,#091318 70%,#050607); }

/* Decorative subtle top edge for banded sections */
.services-band::before, .usecases-band::before, .contact-band::before { content:''; position:absolute; top:0; left:0; width:100%; height:2px; background:linear-gradient(90deg,rgba(var(--primary-rgb),0.4),rgba(var(--primary-rgb),0)); }
.trust-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:34px; }
.trust-card { background:var(--glass); border:1px solid var(--glass-border); padding:26px 28px; border-radius:var(--radius-md); position:relative; transition:.4s; }
.trust-card:hover { border-color:var(--primary); box-shadow:0 6px 24px -6px rgba(var(--primary-rgb),0.45); }
.trust-card h3 { font-size:1.1rem; margin-bottom:12px; letter-spacing:1px; }
.trust-badge-row { display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.badge-outline { border:1px solid var(--primary); color:var(--primary); background:rgba(var(--primary-rgb),0.08); padding:4px 10px; font-size:.55rem; letter-spacing:1px; border-radius:20px; font-weight:600; }

/* Code snippet */
.code-block { background:#0d1f26; border:1px solid #12333d; padding:16px 20px; font-family:monospace; font-size:.8rem; color:#c8e6ee; border-radius:10px; overflow-x:auto; line-height:1.4; }
.code-block span.key { color:#43e7a3; }
.code-block span.val { color:#00b5d8; }
.badge-warning { background:var(--warning); color:#321e00; }
.badge-info { background:var(--info); color:#021b2d; }

/* Utility text & spacing helpers (for CSP-safe removal of inline styles) */
.text-primary { color:var(--primary) !important; }
.text-muted { color:var(--text-muted) !important; }
.text-dim { color:#666 !important; }
.mb-34 { margin-bottom:34px !important; }
.w-100 { width:100% !important; }
.btn-active { background:var(--primary); color:#000; }

/* Gradient Divider */
.divider { height:2px; width:100%; background:linear-gradient(90deg, var(--secondary), var(--primary)); border:none; margin:50px 0; }

/* Custom Cursor */
.cursor-dot, .cursor-outline { position:fixed; top:0; left:0; transform:translate(-50%, -50%); border-radius:50%; z-index:1500; pointer-events:none; }
.cursor-dot { width:8px; height:8px; background:var(--primary); }
.cursor-outline { width:44px; height:44px; border:1px solid var(--primary); transition:width .25s, height .25s, background-color .25s; }
.cursor-outline.hovered { width:60px; height:60px; background:rgba(0,243,255,0.12); }
/* Removed high-contrast theme overrides */

/* Media Queries */
@media (max-width:960px) {
  .navbar { padding:18px 24px; }
  nav ul { display:none; }
  .contact-grid { grid-template-columns:1fr; }
  .section-title { font-size:2.2rem; }
  .hero-title { font-size:3.2rem; }
}

/* Enhanced mobile breakpoints */
@media (max-width:700px) {
  .services-grid,
  .usecase-grid,
  .trust-grid,
  .logo-grid {
    grid-template-columns:1fr;
    gap:22px;
  }
  .service-card,
  .usecase-card,
  .trust-card {
    padding:18px 14px;
  }
  .logo-item {
    height:54px;
    font-size:.6rem;
  }
  .contact-grid {
    grid-template-columns:1fr;
    gap:32px;
  }
  .form-panel {
    padding:22px;
    max-width:100%;
  }
  main section > .container {
    padding:0 14px;
  }
  .section-title {
    font-size:1.5rem;
    padding-left:10px;
    border-left-width:2px;
  }
  .hero-title {
    font-size:2.1rem;
  }
  .hero-tag {
    font-size:.65rem;
    padding:6px 10px;
  }
  .metrics-list {
    gap:22px;
  }
}

@media (max-width:520px) {
  .navbar {
    padding:12px 8px;
    flex-direction:column;
    gap:8px;
  }
  .logo {
    font-size:1.1rem;
  }
  .footer-logo {
    font-size:1.2rem;
  }
  footer {
    padding:28px 8px 14px;
  }
  .copyright {
    font-size:.7rem;
    margin-top:18px;
  }
  .hero {
    padding:80px 8px 40px;
  }
  .section-header {
    margin-bottom:34px;
  }
  .service-card,
  .usecase-card,
  .trust-card {
    padding:12px 6px;
    font-size:.95rem;
  }
  .logo-item {
    height:38px;
    font-size:.5rem;
  }
  .metrics-item {
    min-width:90px;
  }
  .metric-value {
    font-size:1.1rem;
  }
  .form-panel {
    padding:10px;
  }
  label {
    font-size:.7rem;
  }
  input[type=text], input[type=email] {
    font-size:.95rem;
    padding:10px 0;
  }
  .btn {
    padding:12px 18px;
    font-size:.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition:none; }
  .marquee-track { animation:none !important; }
}
