/* ==========================================================================
   MacQBot — Premium Deep Black Dark Theme Stylesheet
   Modern FinTech SaaS UI with Ambient Glows & Precision Typography
   ========================================================================== */

:root {
  /* Deep Black Palette */
  --bg-pitch: #000000;
  --bg-deep: #030306;
  --bg-surface: #08080e;
  --bg-surface-elevated: #0e0f18;
  --bg-card: rgba(12, 13, 22, 0.75);
  --bg-card-hover: rgba(18, 20, 32, 0.9);
  
  /* Glassmorphism & Borders */
  --glass: rgba(255, 255, 255, 0.035);
  --glass-elevated: rgba(255, 255, 255, 0.065);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-highlight: rgba(255, 255, 255, 0.2);
  
  /* Text Colors */
  --tx-primary: #ffffff;
  --tx-secondary: #f1f5f9;
  --tx-muted: #94a3b8;
  --tx-dim: #64748b;
  
  /* Accents & Brand Gradients */
  --c-cyan: #00f2fe;
  --c-cyan-dim: #38bdf8;
  --c-violet: #8b5cf6;
  --c-purple: #a855f7;
  --c-emerald: #10b981;
  --c-emerald-glow: rgba(16, 185, 129, 0.25);
  --c-amber: #f59e0b;
  
  /* Shadows & Glows */
  --glow-cyan: 0 0 35px rgba(0, 242, 254, 0.22);
  --glow-violet: 0 0 35px rgba(139, 92, 246, 0.22);
  --glow-emerald: 0 0 30px rgba(16, 185, 129, 0.25);
  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(255, 255, 255, 0.06);
  --shadow-dropdown: 0 20px 45px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.1);

  /* Layout */
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  
  /* Typography */
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', 'Manrope', sans-serif;
}

/* Base Reset & Smooth Scroll */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background-color: var(--bg-pitch);
  color-scheme: dark;
}

body {
  background-color: var(--bg-pitch);
  background-image: 
    radial-gradient(ellipse 900px 600px at 10% -5%, rgba(0, 242, 254, 0.09), transparent 65%),
    radial-gradient(ellipse 850px 650px at 90% 12%, rgba(139, 92, 246, 0.11), transparent 65%),
    radial-gradient(ellipse 700px 500px at 50% 55%, rgba(16, 185, 129, 0.04), transparent 60%),
    radial-gradient(ellipse 900px 700px at 50% 100%, rgba(56, 189, 248, 0.06), transparent 70%);
  background-attachment: fixed;
  color: var(--tx-secondary);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Background Subtle Cyber Grid Overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(circle at 50% 30%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 40%, transparent 85%);
}

/* Typography Hierarchy */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.028em;
  color: var(--tx-primary);
  font-weight: 700;
}

p {
  color: var(--tx-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* Container */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Glassmorphism Surface Base */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.glass:hover {
  border-color: var(--border-medium);
}

/* Gradient Text */
.grad {
  background: linear-gradient(135deg, var(--c-cyan) 0%, #a78bfa 50%, var(--c-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.grad-emerald {
  background: linear-gradient(135deg, #a7f3d0 0%, var(--c-emerald) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border: 1px solid var(--border-medium);
  background: var(--glass-elevated);
  color: var(--tx-primary);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  user-select: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  color: var(--tx-primary);
}

.btn:active {
  transform: translateY(0);
}

/* Primary Button with Neon FinTech Gradient */
.btn.p {
  background: linear-gradient(135deg, var(--c-cyan) 0%, #6366f1 55%, var(--c-violet) 100%);
  color: #030408;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  font-weight: 800;
}

.btn.p:hover {
  background: linear-gradient(135deg, #38e1ff 0%, #7678ff 55%, #9d6fff 100%);
  box-shadow: 0 12px 36px rgba(0, 242, 254, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-2.5px);
  color: #000000;
}

.btn.outline-cyan {
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: var(--c-cyan);
}

.btn.outline-cyan:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--c-cyan);
  box-shadow: var(--glow-cyan);
  color: #ffffff;
}

.btn svg {
  transition: transform 0.2s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

/* Pill Badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--c-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
  background: rgba(0, 242, 254, 0.07);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.1);
  margin-bottom: 20px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-emerald);
  box-shadow: 0 0 10px var(--c-emerald);
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

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

/* ==========================================================================
   Navigation Bar (Header)
   ========================================================================== */
nav {
  position: sticky;
  top: 14px;
  z-index: 100;
  margin: 14px auto 0;
  max-width: var(--max-width);
  padding: 0 20px;
}

nav .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px 20px;
  border-radius: var(--radius-pill);
  background: rgba(8, 8, 14, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-medium);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tx-primary);
  text-decoration: none;
}

.logo img {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 242, 254, 0.3));
}

.logo b {
  font-family: var(--font-display);
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  color: var(--tx-muted);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--tx-primary);
  background: rgba(255, 255, 255, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  color: var(--tx-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Mobile Navigation Drawer */
.mobile-nav {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 20px;
  right: 20px;
  background: rgba(10, 11, 18, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 20px;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-dropdown);
  z-index: 99;
}

.mobile-nav.open {
  display: flex;
  animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav a {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  color: var(--tx-secondary);
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--c-cyan);
}

.mobile-nav .btn {
  margin-top: 8px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 85px 0 65px;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

h1 {
  font-size: clamp(40px, 5.8vw, 68px);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 22px;
}

.hero p.lead {
  color: var(--tx-muted);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 34px;
}

.cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Hero Stats Bar */
.stats {
  display: flex;
  gap: 32px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.stats div {
  display: flex;
  flex-direction: column;
}

.stats div b {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--tx-primary);
  line-height: 1.1;
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats span {
  font-size: 13px;
  color: var(--tx-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* Hero Mascot / Orb Container */
.orb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 440px;
  margin: auto;
  width: 100%;
}

.orb::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: conic-gradient(from 180deg at 50% 50%, var(--c-cyan) 0deg, var(--c-violet) 180deg, var(--c-emerald) 300deg, var(--c-cyan) 360deg);
  filter: blur(70px);
  opacity: 0.35;
  animation: rotateGlow 18s linear infinite;
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.orb .orb-glass {
  position: relative;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 40px;
  display: grid;
  place-items: center;
  background: rgba(14, 15, 25, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: floatOrb 6s ease-in-out infinite;
}

.orb img {
  width: 72%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 242, 254, 0.35));
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Floating Status Chips around Mascot */
.chip {
  position: absolute;
  background: rgba(10, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 3;
}

.chip-1 {
  top: 10%;
  left: -5%;
  animation: floatOrb 6s ease-in-out infinite 1s;
}

.chip-2 {
  bottom: 12%;
  right: -5%;
  animation: floatOrb 6s ease-in-out infinite 3s;
}

/* Trust Banner */
.trust-banner {
  margin: 30px 0 60px;
  padding: 24px 32px;
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.05), rgba(0, 242, 254, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.2);
}

@media (max-width: 900px) {
  .trust-banner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tx-secondary);
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  display: grid;
  place-items: center;
  color: var(--c-emerald);
  font-size: 18px;
}

/* ==========================================================================
   Sections Common Header
   ========================================================================== */
section {
  padding: 72px 0;
  position: relative;
}

.sh {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 46px;
}

.sh .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-cyan);
  margin-bottom: 12px;
}

.sh h2 {
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 800;
  line-height: 1.15;
}

.sh p {
  color: var(--tx-muted);
  font-size: 17px;
  margin-top: 12px;
}

/* Grids */
.grid {
  display: grid;
  gap: 24px;
}

.g3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ==========================================================================
   Features Cards
   ========================================================================== */
.card {
  padding: 32px 28px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: background 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 242, 254, 0.12);
}

.card:hover::before {
  background: linear-gradient(90deg, transparent, var(--c-cyan), transparent);
}

.card h3 {
  font-size: 20px;
  margin: 20px 0 10px;
  font-weight: 700;
}

.card p {
  color: var(--tx-muted);
  font-size: 15px;
  line-height: 1.6;
}

.ico {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover .ico {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.35);
  border-color: var(--c-cyan);
}

/* ==========================================================================
   How It Works (Steps Flow)
   ========================================================================== */
.steps {
  counter-reset: step-counter;
  position: relative;
}

.step {
  padding: 34px 28px;
  border-radius: var(--radius-xl);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(139, 92, 246, 0.15);
}

.step-num {
  counter-increment: step-counter;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: #030408;
  background: linear-gradient(135deg, var(--c-cyan), var(--c-violet));
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.35);
  margin-bottom: 20px;
}

.step h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.step p {
  color: var(--tx-muted);
  font-size: 15px;
}

/* ==========================================================================
   Profit Calculator (User-Friendly Interface)
   ========================================================================== */
.calc-wrapper {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 28px;
  align-items: stretch;
}

.calc-sidebar {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--tx-secondary);
  margin-bottom: 8px;
}

label .label-tag {
  font-size: 12px;
  color: var(--c-cyan);
  font-weight: 600;
}

/* Quick Amount Presets */
.presets {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.preset-btn {
  flex: 1;
  padding: 7px 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--tx-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--tx-primary);
  border-color: var(--border-medium);
}

.preset-btn.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--c-cyan);
  color: var(--c-cyan);
}

/* Stepper & Slider Controls */
.spin {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}

.spin button {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background: rgba(255, 255, 255, 0.07);
  color: var(--tx-primary);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spin button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--c-cyan);
  color: var(--c-cyan);
}

.spin input {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--tx-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background: rgba(0, 0, 0, 0.65);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
}

.spin input::-webkit-inner-spin-button,
.spin input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.spin input:focus {
  border-color: var(--c-cyan);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.2);
}

/* Range Slider */
.calc-range {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  margin: 12px 0 16px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 10px var(--c-cyan);
  cursor: pointer;
  border: 2px solid #ffffff;
  transition: transform 0.15s ease;
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Quick Period Selector Pills */
.period-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.period-pill {
  padding: 8px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--tx-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.period-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--tx-primary);
}

.period-pill.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--c-violet);
  color: #c4b5fd;
}

/* Month Select Dropdown */
select {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background: rgba(0, 0, 0, 0.65);
  color: var(--tx-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

select:focus {
  border-color: var(--c-cyan);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.2);
}

select option {
  background-color: var(--bg-surface-elevated);
  color: var(--tx-primary);
  padding: 10px;
}

/* Calculator Results Display */
.res {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.res .tot {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12), rgba(139, 92, 246, 0.14));
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 18px 20px;
}

.res .tot b {
  font-size: 32px;
  color: var(--tx-primary);
}

.res div {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
}

.res span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--tx-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.res b {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--tx-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.res div:nth-child(2) b {
  color: var(--c-emerald);
}

.res b small {
  font-size: 0.55em;
  color: var(--tx-muted);
  font-weight: 600;
  margin-left: 5px;
}

.fine {
  font-size: 12px;
  color: var(--tx-dim);
  margin-top: 18px;
  line-height: 1.5;
}

/* Chart Container & Tooltip */
.calc-chart-card {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.chart-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--tx-primary);
}

.chart-legend {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--tx-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-color {
  width: 12px;
  height: 4px;
  border-radius: 2px;
}

.chartbox {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 440px;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.tip {
  position: absolute;
  pointer-events: none;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: rgba(6, 7, 14, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 242, 254, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 242, 254, 0.2);
  font-size: 13px;
  display: none;
  white-space: nowrap;
  color: var(--tx-primary);
  z-index: 10;
  line-height: 1.4;
}

.tip b {
  color: var(--c-cyan);
  font-size: 15px;
  font-family: var(--font-display);
}

/* ==========================================================================
   FAQ Section (Interactive Accordion)
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.2s, background-color 0.2s;
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-question {
  width: 100%;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  color: var(--tx-primary);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  user-select: none;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: rgba(0, 242, 254, 0.15);
  color: var(--c-cyan);
  border-color: var(--c-cyan);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 26px;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 26px 24px;
}

.faq-answer p {
  color: var(--tx-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ==========================================================================
   Download / App Call-to-Action Section
   ========================================================================== */
.dl-card {
  padding: 48px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(8, 9, 16, 0.9), rgba(15, 17, 30, 0.85));
  border: 1px solid var(--border-medium);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 242, 254, 0.08);
  position: relative;
  overflow: hidden;
}

.dl-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15), transparent 70%);
  pointer-events: none;
}

.dl-content {
  max-width: 540px;
  position: relative;
  z-index: 1;
}

.dl-content h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin-bottom: 12px;
}

.dl-content p {
  color: var(--tx-muted);
  font-size: 16px;
  line-height: 1.6;
}

.dl-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.dl-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--tx-dim);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  border-top: 1px solid var(--border-subtle);
  margin-top: 60px;
  padding: 60px 0 35px;
  background: rgba(2, 3, 6, 0.9);
  position: relative;
  z-index: 1;
}

.fg {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

footer h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--tx-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

footer p {
  color: var(--tx-muted);
  font-size: 14px;
  max-width: 320px;
  margin-top: 10px;
  line-height: 1.6;
}

footer a {
  color: var(--tx-muted);
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
  transition: color 0.2s, transform 0.2s;
}

footer a:hover {
  color: var(--c-cyan);
  transform: translateX(3px);
}

.soc {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.soc a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--tx-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
}

.soc a:hover {
  transform: translateY(-3px);
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  box-shadow: var(--glow-cyan);
}

.copy {
  text-align: center;
  color: var(--tx-dim);
  font-size: 13px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   Responsive Design & Breakpoints
   ========================================================================== */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 50px;
    gap: 40px;
  }

  .orb {
    max-width: 320px;
    order: -1;
  }

  .chip-1 { left: 0%; }
  .chip-2 { right: 0%; }

  .g3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .calc-wrapper {
    grid-template-columns: 1fr;
  }

  .fg {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .g3 {
    grid-template-columns: 1fr;
  }

  .trust-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .dl-card {
    padding: 32px 24px;
  }

  .chartbox {
    min-height: 320px;
    height: 320px;
  }

  .fg {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }

  h1 {
    font-size: 34px;
  }

  .stats {
    gap: 20px;
  }

  .cta {
    flex-direction: column;
    width: 100%;
  }

  .cta .btn {
    width: 100%;
  }

  .calc-sidebar {
    padding: 24px 18px;
  }

  .calc-chart-card {
    padding: 24px 16px;
  }

  .res {
    grid-template-columns: 1fr;
  }

  .res .tot {
    grid-column: auto;
  }
}

/* ==========================================================================
   24/7 AI Live Chat Support Widget
   ========================================================================== */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  font-family: var(--font-sans);
}

/* Floating Launcher Button */
.chat-launcher {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f2fe 0%, #6366f1 50%, #8b5cf6 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #030408;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(0, 242, 254, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
  user-select: none;
}

.chat-launcher:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 242, 254, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.chat-launcher:active {
  transform: scale(0.96);
}

.chat-launcher-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: var(--c-emerald);
  color: #030408;
  font-size: 11px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000000;
  box-shadow: 0 0 10px var(--c-emerald);
  animation: pulse-dot 2s infinite ease-in-out;
}

.chat-icon-open,
.chat-icon-close {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.chat-icon-close {
  display: none;
}

.chat-widget.open .chat-icon-open {
  display: none;
}

.chat-widget.open .chat-icon-close {
  display: flex;
}

.chat-widget.open .chat-launcher-badge {
  display: none;
}

/* Friendly Pop-up Greeting Prompt */
.chat-prompt {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 290px;
  background: rgba(10, 12, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 242, 254, 0.15);
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
  animation: promptIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes promptIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-prompt.hidden {
  display: none;
}

.chat-prompt-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  border: 1px solid var(--border-medium);
}

.chat-prompt-avatar img {
  width: 26px;
  height: auto;
}

.chat-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-emerald);
  border: 2px solid #000000;
  box-shadow: 0 0 8px var(--c-emerald);
}

.chat-prompt-content {
  flex: 1;
}

.chat-prompt-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--tx-primary);
}

.chat-prompt-text {
  font-size: 12px;
  color: var(--tx-muted);
  line-height: 1.35;
  margin-top: 2px;
}

.chat-prompt-close {
  background: transparent;
  border: none;
  color: var(--tx-dim);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}

.chat-prompt-close:hover {
  color: var(--tx-primary);
}

/* Chat Window Modal */
.chat-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 580px;
  max-height: calc(100vh - 120px);
  background: rgba(8, 9, 16, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 45px rgba(0, 242, 254, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92) translateY(24px);
  transform-origin: bottom right;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
  z-index: 1001;
}

.chat-widget.open .chat-window {
  opacity: 1;
  pointer-events: all;
  transform: scale(1) translateY(0);
}

/* Chat Header */
.chat-header {
  padding: 16px 20px;
  background: rgba(14, 16, 26, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-agent-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  display: grid;
  place-items: center;
}

.chat-avatar-wrap img {
  width: 28px;
  height: auto;
}

.chat-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-emerald);
  border: 2px solid #000000;
  box-shadow: 0 0 8px var(--c-emerald);
}

.chat-agent-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--tx-primary);
  line-height: 1.2;
}

.chat-status-text {
  font-size: 12px;
  color: var(--c-emerald);
  font-weight: 600;
}

.chat-header-actions {
  display: flex;
  gap: 8px;
}

.chat-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--tx-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--tx-primary);
}

/* Chat Body & Thread */
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

.chat-body::-webkit-scrollbar {
  width: 5px;
}

.chat-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Message Rows */
.chat-msg {
  display: flex;
  gap: 10px;
  max-width: 90%;
  animation: msgFadeIn 0.25s ease forwards;
}

@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
  align-self: flex-start;
}

.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.25);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.chat-msg-avatar img {
  width: 20px;
  height: auto;
}

.chat-msg-content {
  display: flex;
  flex-direction: column;
}

.chat-bubble {
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.5;
  border-radius: 18px;
  position: relative;
  word-break: break-word;
}

.chat-msg.bot .chat-bubble {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--tx-secondary);
  border-top-left-radius: 4px;
}

.chat-msg.bot .chat-bubble strong {
  color: var(--c-cyan);
}

.chat-msg.bot .chat-bubble a {
  color: var(--c-cyan);
  text-decoration: underline;
  font-weight: 600;
}

.chat-msg.user .chat-bubble {
  background: linear-gradient(135deg, var(--c-cyan) 0%, #6366f1 100%);
  color: #030408;
  font-weight: 600;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

.chat-msg-time {
  font-size: 10px;
  color: var(--tx-dim);
  margin-top: 4px;
  padding: 0 4px;
}

.chat-msg.user .chat-msg-time {
  text-align: right;
}

/* Quick Action Help Chips */
.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.chat-chip {
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  color: var(--tx-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.chat-chip:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  transform: translateY(-1px);
}

/* Typing Indicator Animation */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  border-top-left-radius: 4px;
  width: fit-content;
  align-self: flex-start;
  margin-left: 40px;
}

.chat-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-cyan);
  animation: typingBounce 1.2s infinite ease-in-out;
}

.chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

/* Chat Footer & Input Form */
.chat-footer {
  padding: 12px 18px 16px;
  background: rgba(12, 14, 22, 0.95);
  border-top: 1px solid var(--border-subtle);
}

.chat-input-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-medium);
  background: rgba(0, 0, 0, 0.6);
  color: var(--tx-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-input:focus {
  border-color: var(--c-cyan);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.18);
}

.chat-input::placeholder {
  color: var(--tx-dim);
}

.chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--c-cyan), var(--c-violet));
  color: #030408;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.chat-send-btn:active {
  transform: scale(0.94);
}

.chat-footer-note {
  font-size: 11px;
  color: var(--tx-dim);
  text-align: center;
  margin-top: 8px;
}

.chat-footer-note a {
  color: var(--c-emerald);
  font-weight: 600;
}

.chat-footer-note a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .chat-window {
    right: 12px;
    left: 12px;
    bottom: 84px;
    width: auto;
    max-width: none;
    height: calc(100vh - 100px);
  }

  .chat-prompt {
    right: 12px;
    width: calc(100vw - 48px);
  }
}


