/* ═══════════════════════════════════════════════════════════════
   PaisaTrack — Bespoke Fintech Visual Architecture
   Deep Obsidian & Electric Emerald System
   Crafted specifically for PaisaTrack (Aarvix Technologies)
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Baseline ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Surface Layers (Deep Obsidian & Cyber Slate) */
  --bg-deep:        #070A0F;
  --bg-surface:     #0D121D;
  --bg-surface-elevated: #131A29;
  --bg-card:        rgba(17, 24, 39, 0.75);
  --bg-card-hover:  rgba(24, 33, 53, 0.85);

  /* Signature Financial Palette */
  --mint:           #00F59B;
  --mint-glow:      rgba(0, 245, 155, 0.25);
  --emerald:        #10B981;
  --emerald-soft:   rgba(16, 185, 129, 0.12);
  --cyan:           #06B6D4;
  --cyan-soft:      rgba(6, 182, 212, 0.12);
  --indigo:         #6366F1;
  --indigo-soft:    rgba(99, 102, 241, 0.12);
  --gold:           #F59E0B;
  --gold-soft:      rgba(245, 158, 11, 0.12);

  /* Typography & Borders */
  --text-primary:   #F9FAFB;
  --text-secondary: #94A3B8;
  --text-muted:     #64748B;
  --border-subtle:  rgba(255, 255, 255, 0.08);
  --border-active:  rgba(0, 245, 155, 0.4);
  --border-cyan:    rgba(6, 182, 212, 0.4);

  /* Border Radii */
  --radius-sm:      0.5rem;
  --radius-md:      0.875rem;
  --radius-lg:      1.25rem;
  --radius-xl:      1.75rem;

  /* Motion */
  --ease-spring:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth:    cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

body.drawer-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.2;
}

/* ── Mesh & Radiant Atmosphere ── */
.fintech-mesh {
  position: relative;
  overflow: hidden;
}

.fintech-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 600px at 15% 20%, rgba(0, 245, 155, 0.08) 0%, transparent 70%),
    radial-gradient(circle 500px at 85% 15%, rgba(6, 182, 212, 0.07) 0%, transparent 70%),
    radial-gradient(circle 700px at 50% 85%, rgba(99, 102, 241, 0.06) 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.fintech-mesh > * {
  position: relative;
  z-index: 1;
}

/* ── Glassmorphism 2.0 ── */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  transition: all 300ms var(--ease-spring);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.glass-mint {
  border-color: rgba(0, 245, 155, 0.2);
  background: linear-gradient(180deg, rgba(0, 245, 155, 0.06) 0%, rgba(13, 18, 29, 0.8) 100%);
}

.glass-mint:hover {
  border-color: var(--mint);
  box-shadow: 0 0 35px rgba(0, 245, 155, 0.15);
}

.glass-cyan {
  border-color: rgba(6, 182, 212, 0.2);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.06) 0%, rgba(13, 18, 29, 0.8) 100%);
}

.glass-cyan:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.15);
}

/* ── Gradients & Highlights ── */
.text-gradient-mint {
  background: linear-gradient(135deg, #00F59B 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Buttons ── */
.btn-fintech-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #00F59B 0%, #059669 100%);
  color: #052316;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 25px rgba(0, 245, 155, 0.35);
  transition: transform 200ms var(--ease-spring), box-shadow 200ms var(--ease-smooth);
}

.btn-fintech-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 35px rgba(0, 245, 155, 0.55);
}

.btn-fintech-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 200ms var(--ease-smooth);
}

.btn-fintech-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ── Badges & Status Pills ── */
.telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(0, 245, 155, 0.08);
  border: 1px solid rgba(0, 245, 155, 0.25);
  color: #34D399;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 300ms var(--ease-smooth), border-color 300ms var(--ease-smooth);
}

.header.scrolled {
  background: rgba(7, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

/* ── Floating Mockup Frame ── */
.mockup-frame {
  position: relative;
  border-radius: 2.5rem;
  padding: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(0, 245, 155, 0.08), rgba(6, 182, 212, 0.05));
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}

.mockup-frame img {
  border-radius: 2rem;
  display: block;
}

.ambient-glow-mint {
  position: absolute;
  inset: -15%;
  background: radial-gradient(circle, rgba(0, 245, 155, 0.15) 0%, transparent 65%);
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}

.ambient-glow-cyan {
  position: absolute;
  inset: -15%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 65%);
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}

/* ── Interactive Live Parser Widget ── */
.simulator-box {
  background: rgba(13, 18, 29, 0.9);
  border: 1px solid rgba(0, 245, 155, 0.25);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
}

.sms-pill-tab {
  padding: 0.6rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.82rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 200ms var(--ease-smooth);
}

.sms-pill-tab:hover, .sms-pill-tab.active {
  background: rgba(0, 245, 155, 0.12);
  border-color: var(--mint);
  color: #FFFFFF;
}

/* ── Bento Grid ── */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bento-span-2 {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .bento-span-2 {
    grid-column: span 2;
  }
}

.bento-card {
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

/* ── Pricing Cards ── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 300ms var(--ease-spring);
}

.pricing-card:hover {
  transform: translateY(-6px);
}

.pricing-featured {
  background: linear-gradient(180deg, rgba(0, 245, 155, 0.08) 0%, rgba(13, 18, 29, 0.95) 100%);
  border: 1px solid var(--mint);
  box-shadow: 0 0 45px rgba(0, 245, 155, 0.2);
}

/* ── Mobile Hamburger & Drawer ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 300ms var(--ease-spring), opacity 200ms var(--ease-smooth);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px) {
  .hamburger { display: flex; }
  .nav-desktop { display: none !important; }
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-smooth);
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: rgba(10, 14, 22, 0.96);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  border-left: 1px solid var(--border-subtle);
  z-index: 95;
  transform: translateX(100%);
  transition: transform 350ms var(--ease-spring);
  padding: 5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-drawer a {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
  transition: all 200ms var(--ease-smooth);
}

.mobile-drawer a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

/* ── FAQ Details ── */
details {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(12px);
  transition: border-color 200ms var(--ease-smooth);
}

details:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

details summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 200ms var(--ease-smooth);
}

details summary:hover {
  color: var(--mint);
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--mint);
  transition: transform 300ms var(--ease-spring);
}

details[open] summary::after {
  transform: rotate(45deg);
}

details > div {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Prose & Policy Document Layout ── */
.prose {
  max-width: 54rem;
  margin: 0 auto;
}

.prose h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); margin-bottom: 1rem; color: #FFFFFF; }
.prose h2 { font-size: 1.35rem; margin-top: 2.25rem; margin-bottom: 0.85rem; color: var(--mint); border-bottom: 1px solid var(--border-subtle); padding-bottom: 0.5rem; }
.prose p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1rem; }
.prose ul { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose li { color: var(--text-secondary); margin-bottom: 0.5rem; }
.prose a { color: var(--mint); text-decoration: none; }
.prose a:hover { text-decoration: underline; }

.badge-compliance {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 245, 155, 0.1);
  color: var(--mint);
  border: 1px solid rgba(0, 245, 155, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ── Footer ── */
.fintech-footer {
  border-top: 1px solid rgba(0, 245, 155, 0.2);
  background: var(--bg-surface);
}
