/* 
   ChartMatrix AI Terminal — Official Brand Guidelines
   Premium Landing Page System — Dark Edition
*/

:root {
  --bg-main: #03030b;
  --bg-card: rgba(13, 13, 30, 0.6);
  --bg-glass: rgba(5, 5, 15, 0.85);
  --bg-white: #ffffff;
  
  --orange: #ff5722;
  --orange-glow: rgba(255, 87, 34, 0.25);
  --purple: #9c27b0;
  --purple-glow: rgba(156, 39, 176, 0.20);
  --green: #00ff88;
  --red: #ff3e3e;
  --yellow: #ffc312;
  
  --text-1: #ffffff;
  --text-2: #94a3b8;
  --text-3: #64748b;
  
  --font-main: 'Outfit', 'Inter', sans-serif;
  --transition: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --border: 1px solid rgba(255, 255, 255, 0.08);
}

* {
  margin: 0; padding: 0; box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

body {
  background-color: var(--bg-main);
  color: var(--text-1);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-2);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Base Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Glass Header */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: rgba(5, 5, 15, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

header.scrolled {
  height: 64px;
  background: rgba(3, 3, 11, 0.95);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

.mobile-menu-btn {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  color: white;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.logo-area img {
  height: 45px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-2);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--orange);
}

.btn-cta {
  background: linear-gradient(135deg, var(--orange), var(--purple));
  color: white;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(255, 87, 34, 0.2);
  border: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  white-space: nowrap;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 87, 34, 0.4);
  filter: brightness(1.1);
}

/* Nav Actions & Language Switcher */
.nav-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  z-index: 2002;
  flex-shrink: 0;
}

.lang-switcher {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 9999px !important;
  padding: 3px 4px !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: all 0.25s ease !important;
  user-select: none !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

.lang-switcher:hover {
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.09) !important;
}

.lang-btn {
  background: transparent !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.65) !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 0.5px !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  line-height: 1 !important;
  display: inline-block !important;
  outline: none !important;
  box-shadow: none !important;
}

.lang-btn:hover {
  color: #ffffff !important;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--orange), #ff784e) !important;
  color: #050510 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 12px rgba(255, 87, 34, 0.5) !important;
}

.lang-divider {
  width: 1px !important;
  height: 12px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  margin: 0 2px !important;
  display: inline-block !important;
}

/* Hero Section */
.hero {
  padding: 120px 20px 80px;
  position: relative;
  text-align: center;
  width: 100%;
}

@keyframes auroraGlow {
  0% {
    transform: translate(-50%, -20%) scale(1) rotate(0deg);
    opacity: 0.55;
    filter: blur(80px);
  }
  50% {
    transform: translate(-48%, -24%) scale(1.18) rotate(15deg);
    opacity: 0.8;
    filter: blur(100px);
  }
  100% {
    transform: translate(-50%, -20%) scale(1) rotate(0deg);
    opacity: 0.55;
    filter: blur(80px);
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 100vw; height: 650px;
  max-width: 1100px;
  background: radial-gradient(circle at 40% 40%, rgba(255, 87, 34, 0.35) 0%, rgba(156, 39, 176, 0.25) 45%, transparent 70%);
  transform: translate(-50%, -20%);
  z-index: -1;
  pointer-events: none;
  animation: auroraGlow 12s ease-in-out infinite;
  will-change: transform, opacity;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 72px);
  line-height: 1.1;
  margin-bottom: 24px;
  color: white;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero p {
  font-size: clamp(16px, 3vw, 22px);
  color: var(--text-2);
  max-width: 700px;
  margin: 0 auto 48px;
}

/* Sections */
.section-title {
  text-align: center;
  margin-bottom: 80px;
}

.section-spacer {
  padding: 100px 24px;
}

.disclaimer-section {
  padding: 60px 24px;
  text-align: center;
  opacity: 0.4;
  font-size: 11px;
  border-top: var(--border);
}

/* ------- Ecosystem Section ------- */
.ecosystem-section {
  padding: 40px 0;
  border-top: var(--border);
  border-bottom: var(--border);
  background: rgba(255,255,255,0.01);
  text-align: center;
  width: 100%;
}

.ecosystem-label {
  color: var(--text-3);
  margin-bottom: 24px;
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 10px;
  text-transform: uppercase;
  display: block;
}

.ecosystem-logos {
  display: flex;
  justify-content: center;
  gap: 32px;
  opacity: 0.6;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 24px;
}

.ecosystem-logos span {
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 14px;
  color: #fff;
  font-family: 'Inter', sans-serif;
}

@media (max-width: 768px) {
  .section-spacer {
    padding: 60px 24px;
  }
  .disclaimer-section {
    padding: 40px 24px;
  }
  .ecosystem-logos {
    gap: 20px;
  }
  .ecosystem-logos span {
    font-size: 12px;
  }
}

.section-title h2 {
  font-size: 42px;
  margin-bottom: 16px;
}

/* Cards & Grids */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Feature image containers (Responsive & Mockup friendly) */
.feature-image {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-image:hover {
  transform: translateY(-6px);
}

.feature-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 18px;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.65));
  transition: filter 0.3s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-image:hover img {
  filter: drop-shadow(0 25px 60px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 30px rgba(255, 87, 34, 0.25));
  transform: scale(1.02);
}

.hero-mockup-wrapper {
  margin: 40px auto;
  max-width: 1000px;
  border-radius: 24px;
  overflow-x: auto;
  box-shadow: 0 30px 100px rgba(0,0,0,0.5);
  border: var(--border);
}
.hero-mockup-wrapper::-webkit-scrollbar {
  height: 6px;
}
.hero-mockup-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 87, 34, 0.5);
  border-radius: 3px;
}

.feat-card {
  background: var(--bg-card);
  padding: 48px;
  border-radius: 24px;
  border: var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feat-card::before, .glass-panel::before, .price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  background: radial-gradient(
    500px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(255, 87, 34, 0.15),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.feat-card:hover::before, .glass-panel:hover::before, .price-card:hover::before {
  opacity: 1;
}

.feat-card:hover {
  border-color: var(--orange-glow);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: rgba(13, 13, 40, 0.8);
}

.feat-card h3 {
  color: var(--orange);
  margin-bottom: 20px;
  font-size: 24px;
}

/* Glass Panels */
.glass-panel {
  background: var(--bg-glass);
  border: var(--border);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

/* ============================================================
   LIVE CONFLUENCES MARQUEE TICKER
   ============================================================ */
.live-ticker-wrap {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: rgba(10, 10, 25, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  display: block;
}

.live-ticker-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  gap: 36px;
  animation: tickerScroll 45s linear infinite;
  align-items: center;
  will-change: transform;
}

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

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

.ticker-item {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-shrink: 0 !important;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap !important;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.2px;
}

.ticker-item strong {
  color: #ffffff;
  font-weight: 700;
}

.ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.ticker-dot.green { background: #00ff88; box-shadow: 0 0 10px #00ff88; }
.ticker-dot.cyan { background: #00e5ff; box-shadow: 0 0 10px #00e5ff; }
.ticker-dot.orange { background: #ff5722; box-shadow: 0 0 10px #ff5722; }
.ticker-dot.purple { background: #ba68c8; box-shadow: 0 0 10px #ba68c8; }

.badge-conf {
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: #00ff88;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate {
  opacity: 0;
}

.animate-visible {
  animation: fadeInUp 1s cubic-bezier(0.21, 0.6, 0.35, 1) forwards;
}

/* ================================================================
   RESPONSIVE — Tablet (≤ 1024px)
   ================================================================ */
@media (max-width: 1024px) {
  .hero h1 { font-size: 56px; }
  .hero p { font-size: 20px; }
  
  .section-title h2 { font-size: 36px; }
  .split-grid { gap: 50px; }
  .footer-grid { gap: 40px; }
}

/* ================================================================
   RESPONSIVE — Mobile (≤ 768px)
   ================================================================ */
@media (max-width: 768px) {
  .container {
    padding: 0 24px; /* Essential side padding to avoid text touching edges */
  }

  /* ------- Header & Nav ------- */
  header { 
    height: 70px; 
  }
  
  header .container {
    padding: 0 20px; /* Specific padding for header components */
  }

  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
  }
  
  .logo-area {
    display: flex;
    align-items: center;
  }
  
  .logo-area img {
    height: 32px;
  }

  .mobile-menu-btn { 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    cursor: pointer;
    gap: 4px;
    transition: var(--transition);
    z-index: 2001;
  }
  
  .mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Hamburger Animation */
  .mobile-menu-btn.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
  .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    height: calc(100vh - 70px);
    background: rgba(1, 1, 5, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    padding: 60px 24px;
    gap: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    clip-path: circle(0% at 90% 0%);
    transition: clip-path 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 2000;
    pointer-events: none;
    text-align: center;
    overflow-y: auto;
  }
  
  .nav-links.active {
    clip-path: circle(150% at 90% 0%);
    pointer-events: auto;
  }

  .nav-links li { opacity: 0; transform: translateY(20px); transition: all 0.4s ease; width: 100%; }
  .nav-links.active li { opacity: 1; transform: translateY(0); }

  /* Stagger links */
  .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
  .nav-links.active li:nth-child(6) { transition-delay: 0.35s; }

  .nav-links a { font-size: 20px; font-weight: 600; color: var(--text-2); display: block; padding: 10px; }
  .nav-links a.active { color: var(--orange); }
  .nav-links a.btn-cta { margin-top: 10px; padding: 16px; font-size: 16px; border-radius: 12px; width: 100%; }

  nav > .btn-cta, .nav-actions .nav-cta-desktop { display: none !important; }
  .nav-actions { gap: 10px; }
  .lang-btn { padding: 4px 8px; font-size: 11px; }
  .nav-links .mobile-cta { display: block !important; }

  /* ------- Hero ------- */
  .hero {
    padding: 100px 20px 60px; /* Force side padding to avoid text touching edges */
    text-align: center;
  }
  
  .hero {
    padding: 100px 24px 40px !important;
    width: 100%;
    box-sizing: border-box;
  }

  .hero h1 { 
    font-size: clamp(26px, 8vw, 38px) !important; 
    line-height: 1.25;
    margin-bottom: 20px !important;
    color: #ffffff;
    width: 100%;
    max-width: 20ch; /* Limit width to improve wrapping on mobile */
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero p { 
    font-size: 15px !important; 
    line-height: 1.6;
    margin-bottom: 32px !important;
    max-width: 320px; /* Force a more narrow, mobile-friendly width */
    margin-left: auto;
    margin-right: auto;
    color: #cbd5e1 !important;
    padding: 0;
  }

  .hero-mockup-wrapper {
    margin: 30px 0 0;
    width: 100%;
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mockup-container {
    min-width: auto;
    height: 300px !important;
  }

  /* ------- Sections ------- */
  .section-title h2 { font-size: clamp(26px, 7vw, 36px) !important; }
  
  .features-grid { 
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  
  .footer-grid { 
    grid-template-columns: 1fr !important; 
    gap: 40px; 
    text-align: center;
  }

  .split-grid { 
    grid-template-columns: 1fr !important; 
    gap: 40px; 
  }
  
  /* ------- Cards ------- */
  .feat-card {
    padding: 32px;
    border-radius: 20px;
    text-align: center; /* Center text on mobile */
  }
  
  .feat-card > div {
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  .feat-card:hover {
    transform: translateY(-4px);
  }
  
  .feat-card h3 {
    font-size: 20px;
    margin-bottom: 14px;
  }
  
  /* ------- Glass Panel ------- */
  .glass-panel {
    padding: 24px;
    border-radius: 18px;
  }
  
  /* ------- Footer ------- */
  /* ------- Pricing & Download ------- */
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .price-card { padding: 40px 24px !important; border-radius: 24px !important; }
  .price-card.featured { transform: none !important; border-color: var(--orange) !important; box-shadow: 0 0 40px var(--orange-glow) !important; }
  .price-tag { font-size: 40px !important; }
  
  .req-row { flex-direction: column !important; align-items: flex-start !important; gap: 4px !important; padding: 12px 0 !important; }
  .req-value { text-align: left !important; font-size: 14px !important; }

  /* ------- Footer ------- */
  footer {
    padding: 60px 0 !important;
    text-align: center;
  }
  
  .footer-grid { 
    grid-template-columns: 1fr !important; 
    gap: 32px;
    text-align: center;
  }
  
  .footer-grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-grid ul {
    padding: 0;
  }
  
  /* ------- Toasts ------- */
  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
    font-size: 14px;
  }

  .hide-mobile {
    display: none !important;
  }
}

/* ================================================================
   RESPONSIVE — Small Mobile (≤ 480px)
   ================================================================ */
@media (max-width: 480px) {
  .container {
    padding: 0 24px;
  }
  
  section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  header { height: 64px; }
  .nav-links { top: 64px; }
  .logo-area img { height: 28px; }
  
  .hero {
    padding: 100px 0 40px !important;
  }
  
  .hero h1 { 
    font-size: 30px !important; 
    line-height: 1.15;
    text-align: center;
  }
  
  .hero p { 
    font-size: 15px !important; 
    margin-bottom: 24px !important;
    text-align: center;
  }
  
  .section-title h2 { font-size: 24px !important; text-align: center; }
  .section-title { margin-bottom: 32px; text-align: center; }
  
  .feat-card {
    padding: 24px;
    border-radius: 16px;
  }
  
  .glass-panel {
    padding: 20px;
    border-radius: 14px;
  }
  
  .btn-cta {
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* ================================================================
   Desktop: hide mobile-only CTA in nav-links
   ================================================================ */
@media (min-width: 769px) {
  .nav-links .mobile-cta { display: none !important; }
}

/* Toasts */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 16px 24px;
  border-radius: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--orange);
  color: white;
  transform: translateY(100px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2000;
  backdrop-filter: blur(10px);
}
.toast.show { transform: translateY(0); }
.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }

/* Community Floating Widget */
.community-widget {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999999;
  transform: translateZ(0);
}

.community-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cw-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  text-decoration: none;
}

.cw-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.cw-wa {
  background: #25D366;
}
.cw-wa:hover {
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.cw-tg {
  background: #0088cc;
}
.cw-tg:hover {
  box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
}

@media (max-width: 768px) {
  .community-widget {
    bottom: 20px;
    left: 20px;
  }
  .cw-btn {
    width: 45px;
    height: 45px;
  }
}

/* ============================================================
   MOBILE APP SHOWCASE SECTION
   ============================================================ */
.mobile-showcase-section {
  padding: 100px 0;
  position: relative;
}

.mobile-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.mobile-showcase-phones {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  position: relative;
}

.phone-mockup {
  position: relative;
  width: 250px;
  background: #050510;
  border-radius: 38px;
  padding: 10px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 87, 34, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.phone-mockup:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(255, 87, 34, 0.3);
}

.phone-mockup.phone-offset {
  margin-top: 50px;
}

.phone-screen {
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #03030b;
}

.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
}

.phone-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--orange), #ff784e);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
  letter-spacing: 0.5px;
}

.phone-badge.badge-purple {
  background: linear-gradient(135deg, var(--purple), #ba68c8);
  box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4);
}

.mobile-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.mobile-feat-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 22px;
  border-radius: 18px;
  transition: all 0.3s ease;
}

.mobile-feat-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 87, 34, 0.3);
  transform: translateX(6px);
}

.mobile-feat-icon {
  font-size: 26px;
  flex-shrink: 0;
  line-height: 1;
}

@media (max-width: 900px) {
  .mobile-showcase-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  .mobile-showcase-phones {
    gap: 16px;
  }
  .phone-mockup {
    width: 175px;
    border-radius: 26px;
    padding: 6px;
  }
  .phone-screen {
    border-radius: 20px;
  }
  .phone-mockup.phone-offset {
    margin-top: 25px;
  }
  .mobile-features-list {
    text-align: left;
  }
}

/* ============================================================
   HERO TERMINAL MOCKUP (REAL SCREEN)
   ============================================================ */
.hero-mockup-wrapper {
  margin: 50px auto 0;
  max-width: 1100px;
  position: relative;
}

.terminal-mockup-container {
  background: #060614;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 60px rgba(255, 87, 34, 0.15);
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.terminal-mockup-container::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 87, 34, 0.7) 48%,
    rgba(156, 39, 176, 0.7) 54%,
    transparent 65%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  background-size: 200% 100%;
  animation: borderBeam 7s linear infinite;
}

@keyframes borderBeam {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.terminal-mockup-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.95), 0 0 80px rgba(255, 87, 34, 0.25);
  border-color: rgba(255, 87, 34, 0.35);
}

.terminal-bar {
  height: 44px;
  background: rgba(13, 13, 30, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.dot-red { background: #ff5f56; box-shadow: 0 0 8px rgba(255, 95, 86, 0.4); }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; box-shadow: 0 0 8px rgba(39, 201, 63, 0.4); }

.terminal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.5px;
}

.terminal-icon {
  height: 18px;
}

.terminal-status-live {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.terminal-screen-wrapper {
  position: relative;
  width: 100%;
  background: #03030b;
}

.terminal-screen-img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .terminal-bar {
    height: 36px;
    padding: 0 12px;
  }
  .terminal-title {
    font-size: 10px;
  }
  .terminal-status-live {
    font-size: 9px;
    padding: 2px 6px;
  }
}
