/* ==============================================================================
   🏛️ APEX QUANT AI — INSTITUTIONAL DESIGN SYSTEM (2026 COMMERCIAL STANDARD)
   Palette: Deep Space Obsidian, Electric Cyan, Neon Emerald, Crimson, Amber Gold
   Typography: Outfit, Space Grotesk, JetBrains Mono
   ============================================================================== */

:root {
  --bg-primary: #040711;
  --bg-secondary: #080d1a;
  --bg-surface: #0e1526;
  --bg-card: rgba(14, 21, 38, 0.72);
  --bg-card-hover: rgba(20, 30, 55, 0.85);

  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.35);
  --accent-blue: #0284c7;
  --accent-green: #00e676;
  --accent-green-glow: rgba(0, 230, 118, 0.3);
  --accent-amber: #f59e0b;
  --accent-red: #ff1744;
  --accent-purple: #a855f7;

  --border-subtle: rgba(56, 189, 248, 0.12);
  --border-active: rgba(56, 189, 248, 0.45);
  --border-green: rgba(0, 230, 118, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-glow: 0 0 35px -5px rgba(56, 189, 248, 0.25);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.75);
}

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(56, 189, 248, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 25%, rgba(168, 85, 247, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(0, 230, 118, 0.05) 0%, transparent 50%);
}

/* Film Grain Overlay */
.film-grain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Live Streaming Ticker Tape */
.live-ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: #02050e;
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
}

.live-ticker-inner {
  display: flex;
  white-space: nowrap;
  animation: tickerSlide 35s linear infinite;
  gap: 32px;
}

.live-ticker-wrap:hover .live-ticker-inner {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.ticker-sym {
  font-weight: 600;
  color: var(--text-primary);
}

.ticker-up {
  color: var(--accent-green);
}

.ticker-down {
  color: var(--accent-red);
}

.ticker-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  font-weight: 600;
}

@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--accent-cyan-glow);
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(56, 189, 248, 0.4);
  flex-shrink: 0;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #030712;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(56, 189, 248, 0.55);
}

.btn-emerald {
  background: linear-gradient(135deg, #00c853, #00e676);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--accent-green-glow);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 230, 118, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Hero Section */
.hero {
  padding: 70px 0 50px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.hero-pill-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  max-width: 950px;
  margin: 0 auto 24px;
}

.text-gradient {
  background: linear-gradient(135deg, #f8fafc 20%, #38bdf8 65%, #00e676 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-guarantee span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Interactive Canvas Chart Terminal */
.chart-viewport-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  position: relative;
  margin: 0 auto 80px;
  max-width: 1140px;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #090e1c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chart-meta-left {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.chart-asset-pill {
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-timeframe {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
}

.chart-confluence-badge {
  background: rgba(0, 230, 118, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(0, 230, 118, 0.3);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.chart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chart-btn.active, .chart-btn:hover {
  background: var(--accent-cyan);
  color: #000;
  font-weight: 600;
}

.chart-canvas-container {
  position: relative;
  width: 100%;
  height: 480px;
  background: #060913;
}

canvas#tradingViewCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Floating On-Canvas Telemetry HUD */
.hud-telemetry-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(6, 10, 20, 0.88);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  min-width: 270px;
  pointer-events: none;
}

.hud-title {
  color: var(--accent-cyan);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.hud-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.hud-label {
  color: var(--text-muted);
}

.hud-val {
  font-weight: 600;
}

.val-green { color: var(--accent-green); }
.val-amber { color: var(--accent-amber); }
.val-cyan  { color: var(--accent-cyan); }
.val-red   { color: var(--accent-red); }

/* The Chop Comparison Section */
.comparison-section {
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 16px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.compare-card {
  border-radius: var(--radius-md);
  padding: 36px 30px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  position: relative;
  transition: transform 0.3s ease;
}

.compare-card.bad {
  border-color: rgba(255, 23, 68, 0.3);
}

.compare-card.good {
  border-color: rgba(0, 230, 118, 0.45);
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.1);
}

.card-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 18px;
}

.badge-bad {
  background: rgba(255, 23, 68, 0.15);
  color: var(--accent-red);
}

.badge-good {
  background: rgba(0, 230, 118, 0.18);
  color: var(--accent-green);
}

.compare-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 14px;
}

.compare-list {
  list-style: none;
  margin-top: 20px;
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--text-secondary);
}

.compare-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Feature Pillars */
.features-section {
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-box:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(56, 189, 248, 0.15);
}

.feature-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-box:hover::before {
  opacity: 1;
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.feature-box h4 {
  font-family: var(--font-display);
  font-size: 19px;
  margin-bottom: 10px;
  font-weight: 700;
}

.feature-box p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Interactive ROI & Risk Calculator */
.calc-section {
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.calc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  box-shadow: var(--shadow-card);
}

.calc-inputs h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 24px;
}

.calc-group {
  margin-bottom: 20px;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  font-family: var(--font-mono);
}

.calc-slider {
  width: 100%;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.calc-results {
  background: rgba(4, 7, 17, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-row {
  margin-bottom: 16px;
}

.result-caption {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.result-stat {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: -0.5px;
}

.result-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* Pricing Grid */
.pricing-section {
  padding: 90px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-switcher-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.billing-switch-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.billing-switch-btn.active {
  background: var(--accent-cyan);
  color: #000;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.pricing-card.featured {
  background: rgba(14, 25, 48, 0.85);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.2);
  transform: scale(1.03);
}

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

.pricing-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #030712;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.pricing-tier-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-tier-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pricing-amount-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 28px;
}

.price-currency {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-secondary);
}

.price-val {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
}

.price-period {
  color: var(--text-muted);
  font-size: 14px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.check-icon {
  color: var(--accent-green);
  font-weight: 800;
}

/* FAQ Accordion */
.faq-section {
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.faq-content p {
  padding-top: 14px;
}

.faq-item.open .faq-content {
  max-height: 250px;
}

.faq-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
  color: var(--accent-cyan);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* Institutional Compliance & Footer */
.footer {
  background: #02040a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 0 30px;
  font-size: 13px;
  color: var(--text-muted);
}

.disclaimer-box {
  background: rgba(14, 21, 38, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 40px;
  line-height: 1.6;
  font-size: 12px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Checkout Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-glow), 0 25px 60px rgba(0, 0, 0, 0.9);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 22px;
  cursor: pointer;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
  .comparison-grid { grid-template-columns: 1fr; }
  .calc-card { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
}

/* ==============================================================================
   👑 AWWWARDS-GRADE LUXURY ADDITIONS (WEB DEV TEAM STANDARDS)
   ============================================================================== */

/* 1. Authentic Inner Specular Glass Bevels */
.specular-glass {
  background: rgba(14, 21, 38, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
    0 20px 40px -15px rgba(0, 0, 0, 0.75);
}

/* 2. Dynamic Cursor Spotlight Cards */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(56, 189, 248, 0.14), transparent 45%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.spotlight-card:hover::after {
  opacity: 1;
}

/* 3. High-Luminance Rotating Shimmer Sweep on CTAs */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 35%, rgba(255, 255, 255, 0.4) 50%, transparent 65%);
  transform: rotate(25deg) translateX(-150%);
  animation: shimmerSweep 3.5s infinite ease-in-out;
  pointer-events: none;
}

@keyframes shimmerSweep {
  0% { transform: rotate(25deg) translateX(-150%); }
  40% { transform: rotate(25deg) translateX(150%); }
  100% { transform: rotate(25deg) translateX(150%); }
}

/* 4. 3D Spring Tilt Perspective Container */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.15s ease-out;
}

/* 5. Live Social Proof Pulsing Counter */
.social-proof-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 24px;
  background: rgba(14, 21, 38, 0.4);
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: var(--radius-full);
  max-width: 680px;
  margin: 0 auto 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

.proof-avatars {
  display: flex;
  margin-right: -8px;
}

.avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #040711;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #000;
  margin-left: -8px;
}

.avatar-circle:first-child { margin-left: 0; }


/* ==============================================================================
   🏛️ 3D AMBIENT BACKGROUND & INTERACTIVE COMPARISON SLIDER
   ============================================================================== */

#threeBgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.comparison-slider-container {
  position: relative;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  user-select: none;
  aspect-ratio: 16 / 9;
  background: #060913;
  cursor: ew-resize;
}

.comparison-slider-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.comparison-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-right: 2px solid var(--accent-cyan);
  box-shadow: 2px 0 25px rgba(56, 189, 248, 0.7);
  z-index: 2;
}

.comparison-before img {
  width: 1000px;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.comparison-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(14, 21, 38, 0.95);
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  z-index: 3;
  pointer-events: none;
  font-size: 18px;
  font-weight: 800;
  transition: transform 0.1s ease;
}

.comparison-tag {
  position: absolute;
  bottom: 20px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  z-index: 4;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.comparison-tag.tag-before {
  left: 20px;
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.comparison-tag.tag-after {
  right: 20px;
  background: rgba(0, 230, 118, 0.25);
  border: 1px solid rgba(0, 230, 118, 0.5);
  color: #86efac;
}

/* Lucide Icon Alignment */
[data-lucide] {
  vertical-align: middle;
  display: inline-block;
}


/* ==============================================================================
   📱 ADVANCED MULTI-DEVICE RESPONSIVE ENGINE (LAPTOP • TABLET • MOBILE)
   ============================================================================== */

/* Heritage Section Layout */
.heritage-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: center;
}

.heritage-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.badge-metric {
  background: rgba(14, 21, 38, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.badge-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.badge-val {
  font-size: 14px;
  font-weight: 700;
}

/* Mobile Sticky Conversion Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 18px;
  background: rgba(6, 10, 20, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(56, 189, 248, 0.3);
  z-index: 998;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.85);
  transform: translateY(120%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-sticky-bar.visible {
  transform: translateY(0);
}

/* 💻 TABLETS & SMALL LAPTOPS (max-width: 1024px) */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .heritage-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* 📱 MOBILE LANDSCAPE & TABLETS (max-width: 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-links {
    display: none;
  }

  .navbar {
    padding: 12px 0;
  }

  .brand-logo span {
    font-size: 15px;
  }

  .hero {
    padding: 36px 0 24px;
  }

  .hero-pill {
    padding: 6px 12px;
    font-size: 10px;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }

  .hero-title {
    font-size: clamp(26px, 7.5vw, 44px);
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .hero-sub {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 20px !important;
    font-size: 15px !important;
  }

  .hero-guarantee {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    font-size: 12px;
  }

  .social-proof-bar {
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
    text-align: center;
    max-width: 100%;
  }

  /* Interactive Chart Responsiveness */
  .chart-viewport-card {
    padding: 14px 10px;
    border-radius: var(--radius-md);
  }

  .chart-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .chart-controls {
    display: flex;
    width: 100%;
    gap: 6px;
  }

  .chart-btn {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    font-size: 11px;
  }

  .chart-canvas-container {
    height: 340px !important;
  }

  /* Reposition HUD under chart on mobile so candles are 100% visible */
  .hud-telemetry-overlay {
    position: relative;
    top: auto;
    right: auto;
    margin-top: 14px;
    width: 100%;
    min-width: unset;
    padding: 12px 14px;
  }

  /* Sections Stacking */
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .calc-card {
    grid-template-columns: 1fr;
    padding: 24px 16px;
    gap: 28px;
  }

  .calc-results {
    padding: 20px 16px;
  }

  /* Pricing Card Mobile */
  .pricing-card.featured {
    padding: 28px 18px !important;
  }

  .pricing-amount-row {
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
  }

  .price-val {
    font-size: 44px !important;
  }

  /* Modal Mobile Optimization */
  .modal-card {
    padding: 24px 18px;
    width: 94vw;
    max-width: 94vw;
  }

  /* Mobile Form Inputs: prevent iOS auto-zoom */
  input, select, textarea {
    font-size: 16px !important;
  }

  .mobile-sticky-bar {
    display: flex;
  }

  /* Footer Padding to account for sticky bar */
  .footer {
    padding-bottom: 90px;
  }
}

/* 📱 SMALL MOBILE DEVICES (max-width: 480px) */
@media (max-width: 480px) {
  .section-title {
    font-size: 24px;
  }
  .section-sub {
    font-size: 14px;
  }
  .pricing-tier-name {
    font-size: 20px !important;
  }
  .result-stat {
    font-size: 28px;
  }
  .comparison-tag {
    font-size: 10px;
    padding: 4px 10px;
  }
}
