/* ==========================================================================
   SwapnoPay — Modern Fintech Typography & Design System
   Fonts: Plus Jakarta Sans / Inter (English) + Hind Siliguri (Bangla)
   ========================================================================== */

:root {
  --sp-font-sans: 'Plus Jakarta Sans', 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sp-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --sp-ink: #000000;
  --sp-slate-dark: #000000;
  --sp-muted: #000000;
  --sp-line: #cbd5e1;
  --sp-line-dark: rgba(0, 0, 0, 0.12);
  --sp-paper: #ffffff;
  --sp-card: #ffffff;
  --sp-card-dark: #ffffff;
  
  /* Luxury Gold & Amber Palette */
  --sp-gold-light: #fde68a;
  --sp-gold-primary: #fbbf24;
  --sp-gold-bright: #f59e0b;
  --sp-gold-deep: #d97706;
  --sp-gold-dark: #92400e;
  
  /* Secondary Accents */
  --sp-teal: #059669;
  --sp-teal-bright: #10b981;
  --sp-blue: #2563eb;
  --sp-purple: #7c3aed;
  
  /* Shadows & Elevation */
  --sp-shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
  --sp-shadow-md: 0 12px 32px -4px rgba(15, 23, 42, 0.08);
  --sp-shadow-lg: 0 24px 60px -12px rgba(15, 23, 42, 0.12);
  --sp-shadow-gold: 0 16px 40px -8px rgba(245, 158, 11, 0.28);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d97706 0%, #78350f 100%);
  border-radius: 999px;
  border: 2px solid #f1f5f9;
}
::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

html {
  scroll-padding-top: 96px;
  scroll-behavior: smooth;
}

body {
  color: var(--sp-ink);
  background: var(--sp-paper);
  font-family: var(--sp-font-sans);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body, main > section { position: relative; }
main > section:not(.premium-strip) {
  padding-top: clamp(3.5rem, 6.5vw, 5rem);
  padding-bottom: clamp(3.5rem, 6.5vw, 5rem);
}
section[id] { scroll-margin-top: 96px; }

/* ── Typography Scale & Weights ─────────────────────────────────────── */
h1, .hero-title, #home h1 {
  font-family: var(--sp-font-sans) !important;
  font-size: clamp(2.4rem, 4.8vw, 3.85rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.035em !important;
  color: var(--sp-ink);
}

h2, section h2 {
  font-family: var(--sp-font-sans) !important;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem) !important;
  font-weight: 750 !important;
  line-height: 1.22 !important;
  letter-spacing: -0.03em !important;
  color: var(--sp-ink);
}

h3, section h3 {
  font-family: var(--sp-font-sans) !important;
  font-size: clamp(1.15rem, 1.8vw, 1.38rem) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.02em !important;
  color: var(--sp-ink);
}

h4, section h4 {
  font-family: var(--sp-font-sans) !important;
  font-size: 0.98rem !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
  letter-spacing: -0.015em !important;
  color: var(--sp-ink);
}

p, .hero-copy > p, section > .text-center > p {
  font-family: var(--sp-font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  color: #000000;
  letter-spacing: -0.01em;
}

/* Normalize overly heavy font utility classes */
.font-black {
  font-weight: 750 !important;
}
.font-extrabold {
  font-weight: 700 !important;
}
.font-heading {
  font-family: var(--sp-font-sans) !important;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #d97706 0%, #b45309 35%, #f59e0b 70%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* ── Top Navigation Bar ─────────────────────────────────────────────── */
.site-nav {
  padding-top: 14px;
}
.site-nav > div {
  max-width: 1240px;
  min-height: 68px;
  padding: 8px 20px;
  border: 1px solid #cbd5e1;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-anchor > div:first-child { width: 44px; height: 44px; }
.brand-copy > div > span { color: #000000; font-weight: 800; letter-spacing: 0.06em; }
.brand-copy p { color: var(--sp-gold-deep); letter-spacing: 0.1em; font-weight: 700; }
#nav-links { gap: clamp(1rem, 2vw, 1.85rem); color: #000000; font-size: 13.5px; font-weight: 700; }
.nav-item {
  padding: 4px 0;
  position: relative;
  color: #000000;
  transition: color 0.2s ease;
}
.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  border-radius: 999px;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-item:hover, .nav-item:focus-visible {
  color: var(--sp-gold-deep) !important;
}
.nav-item:hover::after, .nav-item.active-nav::after {
  width: 100%;
}
.nav-item.active-nav {
  color: var(--sp-gold-deep) !important;
  font-weight: 700;
}

.menu-toggle {
  min-width: 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--sp-line);
  background: #f8fafc;
  color: #000000;
  transition: all 0.2s ease;
}
.menu-toggle:hover {
  border-color: var(--sp-gold-bright);
  color: var(--sp-gold-deep);
  transform: translateY(-1px);
}

#lang-btn {
  min-height: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--sp-line);
  color: #000000;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}
#lang-btn:hover {
  border-color: var(--sp-gold-bright);
  color: var(--sp-gold-deep);
  transform: translateY(-1px);
}

/* ── Luxury Buttons ─────────────────────────────────────────────────── */
.gold-gradient-btn {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%) !important;
  color: #000000 !important;
  font-weight: 750;
  border: 1px solid rgba(251, 191, 36, 0.5) !important;
  box-shadow: 0 10px 24px -6px rgba(245, 158, 11, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.3) inset !important;
  position: relative;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.gold-gradient-btn:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 16px 32px -6px rgba(245, 158, 11, 0.48) !important;
}
.gold-gradient-btn:active {
  transform: translateY(0) scale(0.98) !important;
}

/* ── Hero Section ───────────────────────────────────────────────────── */
.hero-section {
  min-height: 720px !important;
  background-color: #f8fafc !important;
  background-image:
    radial-gradient(ellipse 55% 50% at 82% 45%, rgba(251, 191, 36, 0.16) 0%, transparent 70%),
    radial-gradient(ellipse 35% 35% at 18% 55%, rgba(16, 185, 129, 0.05) 0%, transparent 60%),
    linear-gradient(90deg, #f8fafc 0%, rgba(248, 250, 252, 0.96) 28%, rgba(248, 250, 252, 0.68) 42%, rgba(248, 250, 252, 0.12) 56%, rgba(248, 250, 252, 0) 72%),
    url('../assets/hero-bg.jpg') !important;
  background-size: cover !important;
  background-position: center right !important;
  background-repeat: no-repeat !important;
}
.hero-overlay { display: none !important; }
.hero-section > .relative { min-height: 720px !important; }
#home { max-width: 1240px; padding: 130px 32px 68px; }
#home > .max-w-4xl { max-width: none; width: 100%; margin: 0; }
#home .relative.z-10.w-full.flex.justify-center { justify-content: flex-start; }
#home .enterprise-shell {
  width: min(100%, 650px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
#home .enterprise-shell::before { display: none; }

.hero-copy { align-items: flex-start; text-align: left; gap: 1.25rem; }
.hero-copy > .glass-panel {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(255, 251, 235, 0.95);
  color: #000000;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero-actions { justify-content: flex-start; gap: 12px; padding-top: 4px; }
.hero-actions > a, .hero-actions > button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
}
.hero-actions > button {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #000000;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-actions > button:hover {
  border-color: var(--sp-gold-bright);
  color: var(--sp-gold-deep);
  transform: translateY(-2px);
}

.hero-status {
  justify-content: flex-start;
  max-width: 560px;
  color: #000000 !important;
  font-size: 12px;
  font-weight: 700;
}
.hero-status > span:first-child {
  width: 8px;
  height: 8px;
  background: var(--sp-teal) !important;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.16);
}

/* Floating Metric Badges in Hero */
.floating-metric {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 18px !important;
  padding: 12px 16px !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
  z-index: 20;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.floating-metric:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: var(--sp-shadow-gold) !important;
}
.floating-metric .metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--sp-gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.floating-metric .metric-label { color: #000000 !important; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.floating-metric .metric-value { color: #000000 !important; font-size: 13.5px; font-weight: 800; }
.floating-metric--one { left: auto !important; right: 4% !important; top: 20% !important; }
.floating-metric--two { left: auto !important; right: 8% !important; bottom: 18% !important; }

/* ── Trust / Highlights Strip ───────────────────────────────────────── */
.premium-strip {
  margin: 0 auto;
  padding: 16px 20px;
  border: 0;
  border-top: 1px solid var(--sp-line);
  border-bottom: 1px solid var(--sp-line);
  background: #ffffff;
}
.premium-strip::before { display: none; }
.premium-strip > div {
  gap: 14px 32px;
  color: #000000;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.premium-strip svg, .premium-strip .text-amber-500 {
  color: var(--sp-gold-deep) !important;
}

/* ── Premium Card Design ────────────────────────────────────────────── */
.premium-card, .professional-card, .showcase-panel, .ui-card, .pricing-compare, .bento-card {
  border: 1px solid var(--sp-line) !important;
  border-radius: 22px !important;
  background: var(--sp-card) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.premium-card:hover, .professional-card:hover, .ui-card:hover, .bento-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--sp-shadow-md) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}

/* ── On-Scroll Reveal & Stagger Animation System ────────────────────── */
.reveal, [data-reveal], .reveal-pending {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.visible, [data-reveal].visible, .reveal-pending.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-grid .stagger-item,
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--stagger-idx, 0) * 80ms);
}
.stagger-grid.visible .stagger-item,
.visible .stagger-item,
.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Stylish Animated Flowchart ─────────────────────────────────────── */
.stylish-flowchart-wrap {
  position: relative;
  overflow: hidden;
}

.flowchart-rail-line {
  position: absolute;
  top: 50%;
  left: 4%;
  right: 4%;
  height: 3px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.7) 45%, rgba(16, 185, 129, 0.8) 100%);
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 999px;
  pointer-events: none;
}

.flowchart-rail-line::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 36px;
  height: 11px;
  border-radius: 999px;
  background: radial-gradient(circle, #fbbf24 0%, rgba(245, 158, 11, 0) 70%);
  box-shadow: 0 0 14px #fbbf24, 0 0 24px #f59e0b;
  animation: spFlowPulse 3.5s infinite linear;
}

@keyframes spFlowPulse {
  0% { left: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.flowchart-node-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--sp-line);
  border-radius: 20px;
  padding: 20px 14px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.flowchart-node-card:hover, .flowchart-node-card.active-flow {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--sp-gold-bright) !important;
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.18) !important;
}

.flowchart-step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  font-size: 10px;
  font-weight: 750;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--sp-gold-dark);
  border: 1px solid rgba(245, 158, 11, 0.3);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

/* Multi-Shape Geometry Styles */
.icon-shape-hex {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.icon-shape-diamond {
  transform: rotate(45deg);
}
.icon-shape-diamond > * {
  transform: rotate(-45deg);
}
.icon-shape-octagon {
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}
.icon-shape-arch {
  border-radius: 24px 24px 8px 8px;
}
.icon-shape-blob {
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
}

/* ── Realistic 3D Mobile Phone Bezel Frames ─────────────────────────── */
.three-d-carousel {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 0;
}

.carousel-track {
  display: flex !important;
  gap: 2rem !important;
  overflow-x: auto !important;
  padding: 2.2rem 1.5rem 1.8rem !important;
  scroll-behavior: smooth !important;
  scrollbar-width: none !important;
  align-items: flex-start !important;
}
.carousel-track::-webkit-scrollbar { display: none; }

.mobile-showcase-card {
  position: relative;
  padding: 14px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  width: 256px !important;
  min-width: 256px !important;
  max-width: 256px !important;
  flex: 0 0 256px !important;
}
.mobile-showcase-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.mobile-phone-bezel {
  position: relative;
  width: 240px;
  height: 480px;
  background: #090d16;
  border-radius: 38px;
  padding: 10px;
  box-shadow:
    0 26px 55px -12px rgba(0, 0, 0, 0.45),
    0 0 0 2px #334155,
    0 0 0 4.5px #1e293b,
    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.mobile-notch-pill {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 14px;
  background: #000000;
  border-radius: 999px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.mobile-notch-pill::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1e293b;
}

.mobile-screen-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #f8fafc;
  display: block;
}

.mobile-screen-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 28px;
  z-index: 1;
}

.mobile-screen-statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 750;
  color: #ffffff;
  z-index: 5;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.mobile-screen-viewport .screen-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #cbd5e1;
  color: #000000;
  font-size: 9.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 10;
}

.mobile-home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  z-index: 6;
  pointer-events: none;
}

.mobile-glare-effect {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 35%, transparent 60%);
  pointer-events: none;
  z-index: 8;
  border-radius: 28px;
}

/* 5 Dynamic Geometric Backdrop Shapes */
.geo-shape-blob {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.06) 60%, transparent 80%);
  border-radius: 54% 46% 62% 38% / 48% 58% 42% 52%;
  filter: blur(14px);
  z-index: 1;
  animation: geoMorph 8s ease-in-out infinite alternate;
}

.geo-shape-diamond {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 220px;
  height: 220px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.05) 70%, transparent 100%);
  border: 2px solid rgba(16, 185, 129, 0.22);
  border-radius: 36px;
  z-index: 1;
}

.geo-shape-arch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 380px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.22) 0%, rgba(180, 83, 9, 0.04) 100%);
  border-radius: 120px 120px 20px 20px;
  border: 1.5px dashed rgba(245, 158, 11, 0.35);
  z-index: 1;
}

.geo-shape-octagon {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.24) 0%, rgba(99, 102, 241, 0.05) 70%, transparent 100%);
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  z-index: 1;
}

.geo-shape-orbit {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 2px dashed rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.12);
  z-index: 1;
  animation: geoSpin 20s linear infinite;
}

@keyframes geoMorph {
  0% { border-radius: 54% 46% 62% 38% / 48% 58% 42% 52%; }
  100% { border-radius: 40% 60% 35% 65% / 60% 35% 65% 40%; }
}

@keyframes geoSpin {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

/* ── Pricing Luxury Highlights ──────────────────────────────────────── */
.pricing-compare { overflow: hidden; }
.pricing-pro {
  border: 2px solid var(--sp-gold-bright) !important;
  box-shadow: var(--sp-shadow-gold) !important;
}
.compare-feature-row.header { background: #f8fafc; border-color: var(--sp-line); }
.compare-feature-row { border-color: var(--sp-line); }
.compare-feature-row > div:first-child { color: var(--sp-ink); font-weight: 700; }

/* ── Footer ─────────────────────────────────────────────────────────── */
footer {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #cbd5e1 !important;
}
footer a:hover { color: #d97706 !important; }
#video-modal { backdrop-filter: blur(12px); }

/* ── Dark Mode Luxury Overrides ──────────────────────────────────────── */
.dark body { color: #f1f5f9; background: #08090d; }
.dark .site-nav > div {
  background: rgba(15, 20, 32, 0.94);
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.dark .brand-copy > div > span, .dark section h2, .dark section h3, .dark section h4 { color: #f8fafc; }
.dark #nav-links { color: #cbd5e1; }
.dark #lang-btn, .dark .theme-toggle, .dark .menu-toggle {
  background: #151d2d;
  border-color: #263346;
  color: #fbbf24;
}
.dark .gold-gradient-text {
  background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 45%, #f59e0b 80%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.dark .hero-section {
  background-color: #08090d !important;
  background-image:
    radial-gradient(ellipse 60% 50% at 75% 40%, rgba(245, 158, 11, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 60%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
    linear-gradient(90deg, #08090d 0%, rgba(8, 9, 13, 0.98) 40%, rgba(15, 20, 32, 0.85) 65%, rgba(15, 20, 32, 0.35) 100%),
    url('../assets/hero-bg.jpg') !important;
}
.dark #home h1 { color: #f8fafc; }
.dark .hero-copy > .glass-panel { background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.4); color: #fbbf24; }
.dark .hero-actions > button { background: #151d2d; border-color: #263346; color: #f1f5f9; }
.dark .hero-actions > button:hover { border-color: #fbbf24; color: #fbbf24; }
.dark .hero-copy > p { color: #cbd5e1 !important; }
.dark .hero-status { color: #34d399 !important; }

.dark .floating-metric {
  background: rgba(15, 23, 42, 0.92) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5) !important;
}
.dark .floating-metric .metric-label { color: #94a3b8 !important; }
.dark .floating-metric .metric-value { color: #f8fafc !important; }

.dark .premium-strip { background: #0c1018; border-color: #1e293b; }
.dark .premium-strip > div { color: #cbd5e1; }

.dark .premium-card, .dark .professional-card, .dark .showcase-panel, .dark .ui-card, .dark .pricing-compare, .dark .bento-card {
  background: #0f1422 !important;
  border-color: #1e293b !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45) !important;
}
.dark .pricing-pro { border: 2px solid #f59e0b !important; }
.dark .flowchart-node-card {
  background: rgba(15, 20, 34, 0.95);
  border-color: #1e293b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.dark .flowchart-step-pill {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.4);
}
.dark .layout-nav-dock, .dark .compare-feature-row.header { background: #151d2d; border-color: #263346; }
.dark .layout-tab-btn { color: #94a3b8; }
.dark .layout-tab-btn:hover:not(.active) { color: #fbbf24; }
.dark .compare-feature-row { border-color: #1e293b; }
.dark .compare-feature-row > div:first-child { color: #e2e8f0; }

/* ── Responsive Refinements ─────────────────────────────────────────── */
@media (max-width: 1023px) {
  .site-nav { padding: max(10px, env(safe-area-inset-top)) 16px 0; }
  .site-nav > div { min-height: 62px; border-radius: 18px; }
  .brand-anchor > div:first-child { width: 42px; height: 42px; }
  .mobile-menu-wrap { inset: calc(78px + env(safe-area-inset-top)) 16px auto; }
  .mobile-menu-panel { background: #ffffff; border: 1px solid var(--sp-line); border-radius: 20px; box-shadow: var(--sp-shadow-lg); }
  .dark .mobile-menu-panel { background: #0f1422; border-color: #263346; color: #f8fafc; }
  .mobile-menu a:hover { background: rgba(245, 158, 11, 0.12); color: var(--sp-gold-deep); }
  .dark .mobile-menu a:hover { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
  
  .hero-section, .hero-section > .relative { min-height: 0 !important; }
  .hero-section {
    padding-top: calc(84px + env(safe-area-inset-top)) !important;
    background-image:
      radial-gradient(circle at 85% 12%, rgba(251, 191, 36, 0.15) 0%, transparent 55%),
      linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
  }
  .dark .hero-section {
    background-color: #08090d !important;
    background-image: linear-gradient(180deg, rgba(8, 9, 13, 0.94), rgba(15, 20, 32, 0.98)), url('../assets/hero-bg.jpg') !important;
  }
  #home { padding: 32px 20px 48px; }
  #home h1 { font-size: clamp(2.2rem, 6.5vw, 3.4rem) !important; }
  #home .enterprise-shell { width: 100% !important; max-width: 100% !important; }
  .mobile-hero-visual { display: block !important; width: 100% !important; }

  /* Radymate Studio Mobile Grid Fix (Single Column Stack) */
  .radymate-launch-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.75rem !important;
  }
  .radymate-card {
    width: 100% !important;
    max-width: 100% !important;
  }
  .radymate-screen {
    width: 100% !important;
  }
  .radymate-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)) !important;
  }
}

@media (max-width: 767px) {
  main > section:not(.premium-strip) { padding: 44px 18px; }
  #home { padding: 24px 16px 40px; }
  #home h1 { font-size: clamp(2rem, 8.5vw, 2.8rem) !important; line-height: 1.12 !important; }
  .hero-copy { gap: 1rem; width: 100%; }
  .hero-copy > p { font-size: 14.5px; }
  .hero-actions { width: 100%; flex-direction: row; }
  .hero-actions > a, .hero-actions > button { flex: 1 1 0; width: auto; min-height: 46px; padding: 0 12px; font-size: 13px; }
  .hero-actions svg { width: 18px; height: 18px; }
  .hero-status { max-width: 100%; font-size: 11px; }
  .premium-strip { padding: 16px 18px; }
  .premium-strip > div { grid-template-columns: repeat(2, minmax(0, 1fr)); display: grid; gap: 12px; font-size: 9.5px; }
  .flowchart-rail-line { display: none; }
  
  /* Flowchart node cards on mobile */
  .flowchart-node-card {
    padding: 14px 8px !important;
    border-radius: 16px !important;
  }
  .flowchart-step-pill {
    padding: 1px 8px !important;
    font-size: 8.5px !important;
    margin-bottom: 4px !important;
  }
  
  /* 3D App Gallery on mobile */
  .three-d-carousel { padding: 0.5rem 0; }
  .carousel-track {
    gap: 0.85rem;
    padding: 0.75rem 0.25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .carousel-card {
    flex: 0 0 260px !important;
    height: 380px !important;
    scroll-snap-align: center;
    transform: none !important;
  }
  .carousel-card:nth-child(2n) {
    transform: none !important;
  }
  .carousel-screen {
    height: 270px !important;
  }
  #gallery button[aria-label^="Scroll gallery"] {
    width: 38px !important;
    height: 38px !important;
    font-size: 14px !important;
  }
  #gallery button[aria-label="Scroll gallery left"] {
    left: 4px !important;
  }
  #gallery button[aria-label="Scroll gallery right"] {
    right: 4px !important;
  }

  /* Solutions 4 cards */
  #solutions > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  footer > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  #download > div { padding: 24px 18px; }
}

@media (max-width: 480px) {
  #solutions > .grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }
  .compare-pill {
    width: 100%;
    justify-content: center;
  }
  .compare-pill button {
    flex: 1;
    font-size: 9px !important;
    padding: 6px 8px !important;
  }
}

@media (max-width: 390px) {
  .site-nav { padding-inline: 10px; }
  .site-nav > div { padding-inline: 10px; gap: 8px; }
  .brand-copy p { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions > a, .hero-actions > button { width: 100%; flex: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
