@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- DESIGN SYSTEM TOKENS --- */
:root {
  --bg-dark: #070B16;
  --bg-card: #0F162A;
  --bg-card-hover: #19233C;
  --primary: #00B4D8;
  --primary-rgb: 0, 180, 216;
  --primary-dark: #0077B6;
  --accent: #10B981;
  --accent-rgb: 16, 185, 129;
  --coral: #FF7A59;
  --coral-rgb: 255, 122, 89;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --glass-bg: rgba(7, 11, 22, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-title: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

/* --- RESET & ACCESSIBILITY --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page-wrapper {
  overflow-x: hidden;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
}

input:focus, textarea:focus, select:focus {
  outline: none;
}

.visually-hidden {
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

/* --- MODERN SCROLLBAR --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 180, 216, 0.4);
}

/* --- BACKGROUND GLOW GRAPHICS --- */
.ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.glow-hero-1 { top: -100px; left: -100px; }
.glow-hero-2 { top: 300px; right: -200px; background: radial-gradient(circle, rgba(var(--coral-rgb), 0.08) 0%, rgba(0, 0, 0, 0) 70%); }
.glow-showcase { top: 45%; left: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(var(--accent-rgb), 0.07) 0%, rgba(0, 0, 0, 0) 70%); width: 800px; height: 800px; }

/* --- GRID LAYOUT CONTAINER --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- BUTTONS & INTERACTIVE ELEMENTS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-title);
  font-weight: 600;
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.95rem;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.5);
  filter: brightness(1.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.3);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.45);
  filter: brightness(1.1);
}

.btn-coral {
  background: linear-gradient(135deg, var(--coral) 0%, #C83E28 100%);
  box-shadow: 0 4px 20px rgba(var(--coral-rgb), 0.3);
}
.btn-coral:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--coral-rgb), 0.45);
  filter: brightness(1.1);
}

/* --- GLASSMORPHIC STYLES --- */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(12px);
}

/* --- HEADER / NAVIGATION BAR --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 1000;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

/* Shrinking header triggered by scroll-timeline or JS fallback */
.header.shrink {
  height: 65px;
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  height: 48px;
  transition: var(--transition-smooth);
}
.header.shrink .logo-wrapper {
  height: 38px;
}
.logo-img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}
.nav-link {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-smooth);
}
.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* DYNAMIC LANGUAGE SWITCHER */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 4px;
  border-radius: 30px;
  position: relative;
  width: 76px;
  height: 38px;
  cursor: pointer;
  user-select: none;
}
.lang-switcher .lang-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  transition: var(--transition-smooth);
  z-index: 1;
  box-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.4);
}
.lang-switcher.en .lang-knob {
  left: 41px;
}
.lang-switcher .lang-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  z-index: 2;
  transition: var(--transition-smooth);
}
.lang-switcher .lang-label.active {
  color: var(--text-main);
}

/* MOBILE MENU TOGGLE */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1100;
}
.mobile-toggle span {
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-smooth);
}
.mobile-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(11, 19, 43, 0) 40%, rgba(var(--primary-rgb), 0.05) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  color: var(--primary);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.hero-tag svg {
  animation: pulse-teal 2s infinite;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-main) 30%, rgba(255,255,255,0.7) 70%, var(--primary) 100%);
  -webkit-background-clip: text;       /* Safari / older Chrome */
  background-clip: text;               /* Standard — Firefox, Chrome 120+, Edge */
  -webkit-text-fill-color: transparent;
  color: transparent;                  /* Standard fallback */
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 3.5rem;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.avatar-pile {
  display: flex;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--bg-dark);
  margin-left: -12px;
  background: #19233c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.avatar:first-child {
  margin-left: 0;
}
.avatar-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.avatar-text strong {
  color: var(--text-main);
}

/* HERO INTERACTIVE 3D APP MOCKUP */
.hero-mockup {
  position: relative;
  perspective: 1000px;
}

.mockup-wrapper {
  width: 100%;
  height: 420px;
  background: radial-gradient(135deg, rgba(25, 35, 60, 0.9) 0%, rgba(15, 22, 42, 0.95) 100%);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.15);
  transform: rotateY(-8deg) rotateX(4deg);
  transition: var(--transition-smooth);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
}
.hero-mockup:hover .mockup-wrapper {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
  box-shadow: 0 40px 80px rgba(var(--primary-rgb), 0.25);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.8rem;
}
.mockup-dots {
  display: flex;
  gap: 6px;
}
.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.mockup-dot.red { background: #FF5F56; }
.mockup-dot.yellow { background: #FFBD2E; }
.mockup-dot.green { background: #27C93F; }

.mockup-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-title);
  letter-spacing: 1px;
}

.mockup-body {
  flex: 1;
  display: grid;
  grid-template-rows: 1.5fr 2fr;
  gap: 1rem;
}

.mockup-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mockup-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.mockup-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 40px;
  background: var(--primary);
}
.mockup-stat-card.coral::before {
  background: var(--coral);
}
.stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.stat-val {
  font-size: 1.6rem;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.2rem;
}

.mockup-stock-feed {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius-md);
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: hidden;
}

.stock-alert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.6rem 0.8rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  animation: slide-in-alert 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.alert-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(var(--coral-rgb), 0.15);
  color: var(--coral);
}
.alert-badge.success {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
}

/* Floating tech tags in Hero */
.floating-widget {
  position: absolute;
  background: rgba(15, 22, 42, 0.8);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  animation: float 4s ease-in-out infinite;
}
.widget-1 {
  top: 10%;
  left: -40px;
  border-left: 3px solid var(--primary);
}
.widget-2 {
  bottom: 15%;
  right: -30px;
  border-left: 3px solid var(--accent);
  animation-delay: 2s;
}

/* --- SECTION TYPOGRAPHY & HEADER --- */
.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden; /* Clip protruding background glows to guarantee zero mobile horizontal scroll */
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
  z-index: 2;
  position: relative;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* --- BENEFITS SECTION --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.1) 0%, rgba(0, 0, 0, 0) 50%);
  opacity: 0;
  transition: var(--transition-smooth);
}
.benefit-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--primary-rgb), 0.25);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--primary-rgb), 0.1);
}
.benefit-card:hover::before {
  opacity: 1;
}

.benefit-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
  color: var(--primary);
  transition: var(--transition-smooth);
}
.benefit-card:hover .benefit-icon-box {
  background: rgba(var(--primary-rgb), 0.15);
  border-color: var(--primary);
  color: var(--text-main);
  transform: scale(1.05) rotate(5deg);
}

.benefit-card.coral:hover .benefit-icon-box {
  background: rgba(var(--coral-rgb), 0.15);
  border-color: var(--coral);
}
.benefit-card.accent:hover .benefit-icon-box {
  background: rgba(var(--accent-rgb), 0.15);
  border-color: var(--accent);
}

.benefit-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- OUR PLUS (HUMAN DIFFERENTIATOR) --- */
.plus-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #090e1b 100%);
  position: relative;
  overflow: hidden;
}

.plus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.plus-visual {
  position: relative;
}

.plus-phone-frame {
  width: 320px;
  height: 600px;
  background: #000;
  border-radius: 40px;
  border: 10px solid #1a2035;
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.7);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.plus-phone-frame::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 25px;
  background: #000;
  border-radius: 15px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0b0f19;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 40px 1rem 1rem;
  background: #101726;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral) 0%, #D84E2B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(var(--coral-rgb), 0.4);
}
.chat-user-info {
  display: flex;
  flex-direction: column;
}
.chat-name {
  font-size: 0.85rem;
  font-weight: 600;
}
.chat-status {
  font-size: 0.7rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}
.chat-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
}

.chat-body {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.chat-msg {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.8rem;
  line-height: 1.5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  animation: fade-in-msg 0.5s ease both;
}

.chat-msg.agent {
  background: #182035;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--glass-border);
}

.chat-msg.user {
  background: var(--primary-dark);
  color: var(--text-main);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.phone-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 1rem 1.2rem;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  max-width: 220px;
}
.plus-badge-1 {
  top: 15%;
  left: -20px;
  border-left: 4px solid var(--coral);
}
.plus-badge-2 {
  bottom: 20%;
  right: -20px;
  border-left: 4px solid var(--accent);
}

.plus-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.8rem;
}
.plus-bullets {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.plus-bullet {
  display: flex;
  gap: 1.2rem;
}
.plus-icon-container {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
}
.plus-bullet.coral .plus-icon-container {
  background: rgba(var(--coral-rgb), 0.1);
  color: var(--coral);
}
.plus-bullet h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.plus-bullet p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- INTERACTIVE SHOWCASE --- */
.showcase-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: flex-start;
}

.swipe-hint {
  display: none;
}

.showcase-menu {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.showcase-tab-btn {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 1.2rem 1.5rem;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
}
.showcase-tab-btn .tab-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}
.showcase-tab-btn .tab-info {
  display: flex;
  flex-direction: column;
}
.showcase-tab-btn .tab-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}
.showcase-tab-btn .tab-tagline {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
}

.showcase-tab-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}
.showcase-tab-btn:hover .tab-title {
  color: var(--text-main);
}

.showcase-tab-btn.active {
  background: var(--bg-card-hover);
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.showcase-tab-btn.active .tab-icon {
  background: rgba(var(--primary-rgb), 0.15);
  color: var(--primary);
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.1);
}
.showcase-tab-btn.active .tab-title {
  color: var(--text-main);
}

/* SHOWCASE SCREEN PANEL */
.showcase-screen {
  min-height: 480px;
  background: radial-gradient(135deg, #10162b 0%, #0a0d18 100%);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.showcase-content-panel {
  display: none;
  flex-direction: column;
  height: 100%;
  flex: 1;
  animation: fade-in-panel 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.showcase-content-panel.active {
  display: flex;
}

.panel-header {
  margin-bottom: 1.5rem;
}
.panel-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}
.panel-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.panel-body {
  flex: 1;
  position: relative;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- MODULE: SCANNER --- */
.scanner-container {
  position: relative;
  width: 100%;
  height: 250px;
  background: #020202;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.scanner-camera-view {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.scanner-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem;
}
.scanner-laser {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--coral), transparent);
  box-shadow: 0 0 10px var(--coral), 0 0 20px var(--coral);
  animation: scan-loop 2s linear infinite;
  display: none;
}
.scanner-box {
  width: 180px;
  height: 120px;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  position: absolute;
  pointer-events: none;
  display: none;
  border-radius: 4px;
}
.scan-barcode-img {
  width: 120px;
  opacity: 0.25;
  animation: pulse-op 1.5s infinite;
}

/* --- MODULE: QORA AI --- */
.qora-chat-box {
  height: 280px;
  display: flex;
  flex-direction: column;
}
.qora-feed {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.qora-msg {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-md);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 90%;
  animation: slide-in-alert 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.qora-msg.qora {
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.qora-msg.user {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
.qora-suggestions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.qora-suggest-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 0.9rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}
.qora-suggest-btn:hover {
  background: rgba(var(--primary-rgb), 0.15);
  border-color: var(--primary);
  color: var(--text-main);
}

/* --- MODULE: POS INTEGRATION --- */
.pos-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.pos-brands {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.pos-brand-item {
  opacity: 0.5;
  transition: var(--transition-smooth);
  font-weight: 700;
  font-size: 0.95rem;
}
.pos-brand-item.active {
  opacity: 1;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.4);
}
.pos-checkout {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.pos-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}
.pos-pay-btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* --- MODULE: REMOTE INVENTORY --- */
.inventory-grid {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: 250px;
  overflow-y: auto;
}
.inventory-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.8rem 1rem;
  border-radius: var(--border-radius-md);
  font-size: 0.85rem;
}
.inv-stock {
  display: flex;
  align-items: center;
  gap: 10px;
}
.inv-bar {
  width: 60px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}
.inv-fill {
  height: 100%;
  background: var(--accent);
}
.inv-fill.warning {
  background: var(--coral);
}
.inv-action-btn {
  background: rgba(255, 255, 255, 0.05);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition-smooth);
}
.inv-action-btn:hover {
  background: var(--primary);
  color: var(--bg-dark);
}

/* --- MODULE: DEBTS (CUENTAS POR PAGAR) --- */
.ledger-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ledger-header {
  display: flex;
  justify-content: space-between;
  background: rgba(var(--coral-rgb), 0.08);
  border: 1px solid rgba(var(--coral-rgb), 0.15);
  padding: 0.8rem 1rem;
  border-radius: var(--border-radius-md);
  font-size: 0.85rem;
}
.ledger-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.ledger-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.7rem 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
}
.ledger-status {
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.7rem;
}
.ledger-status.pending {
  background: rgba(var(--coral-rgb), 0.12);
  color: var(--coral);
}
.ledger-status.paid {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
}

/* --- MODULE: GASTOS OPERATIVOS --- */
.expenses-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: center;
}
.expenses-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.expense-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.expense-field label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.expense-field input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  padding: 0.5rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}
.expense-field input:focus {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.04);
}
.expenses-chart-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.chart-svg {
  width: 150px;
  height: 150px;
  transform: rotate(-90deg);
}
.chart-segment {
  fill: none;
  stroke-width: 14;
  transition: stroke-dasharray 0.5s ease;
}
.chart-center-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.chart-net-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.chart-net-val {
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--accent);
}

/* --- MULTIPLATFORM AVAILABILITY --- */
.plat-section {
  background: radial-gradient(100% 100% at 50% 100%, rgba(var(--primary-rgb), 0.04) 0%, rgba(7, 11, 22, 0) 100%);
}

.plat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.plat-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.plat-badges {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}
.plat-badge-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.plat-badge-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.plat-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.mockup-stack {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 380px;
}
.stack-web {
  width: 320px;
  height: 220px;
  background: #101629;
  border: 4px solid #1a233b;
  border-radius: var(--border-radius-md);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 10%;
  left: 0;
  z-index: 1;
  overflow: hidden;
}
.stack-web-head {
  height: 20px;
  background: #1a233b;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 4px;
}
.stack-web-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.web-line {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}
.web-line.short { width: 60%; }
.stack-mobile {
  width: 110px;
  height: 220px;
  background: #090d16;
  border: 4px solid #1f2a47;
  border-radius: var(--border-radius-md);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  position: absolute;
  bottom: 5%;
  right: 40px;
  z-index: 2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.stack-mobile-head {
  height: 15px;
  background: #1f2a47;
}
.stack-mobile-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stack-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.2) 0%, transparent 70%);
  filter: blur(30px);
  z-index: 0;
  top: 30%;
  left: 40%;
}

/* --- SUBSCRIPTION & PRICING --- */
.price-grid {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
}

.price-card {
  background: radial-gradient(135deg, rgba(25, 35, 60, 0.65) 0%, rgba(15, 22, 42, 0.8) 100%);
  border: 2px solid rgba(var(--primary-rgb), 0.25);
  box-shadow: 0 25px 60px rgba(var(--primary-rgb), 0.15);
  border-radius: var(--border-radius-lg);
  padding: 3.5rem;
  width: 100%;
  max-width: 480px;
  text-align: center;
  position: relative;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}
.price-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 35px 70px rgba(var(--primary-rgb), 0.25);
}

.price-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
  color: var(--text-main);
  padding: 6px 20px;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.4);
  animation: pulse-emerald 2.5s infinite;
}

.plan-name {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}
.plan-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
}

.plan-cost {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 2.5rem;
}
.currency {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}
.amount {
  font-size: 4.2rem;
  font-weight: 800;
  font-family: var(--font-title);
  line-height: 1;
}
.period {
  font-size: 1rem;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: left;
  margin-bottom: 3rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
}
.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-main);
}
.plan-feature-item svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* --- LEAD CAPTURE FORM --- */
.register-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
}

.form-title {
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.6rem;
}
.form-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2.5rem;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-full-row {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  padding-left: 2px;
}

.form-control-wrapper {
  position: relative;
  width: 100%;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 0.9rem 1.2rem;
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  color: var(--text-main);
  transition: var(--transition-smooth);
  min-height: 48px;
}
.form-control:focus {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.15);
}

/* HIGH QUALITY CSS FORM VALIDATION FEEDBACK */
.form-control:user-valid {
  border-color: var(--accent);
}
.form-control:not(:placeholder-shown):invalid {
  border-color: var(--coral);
}

.form-error-msg {
  font-size: 0.75rem;
  color: var(--coral);
  margin-top: 4px;
  padding-left: 4px;
  display: none;
}

.form-submit-btn {
  width: 100%;
  min-height: 50px;
  margin-top: 1rem;
}

.form-status-box {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  display: none;
  animation: slide-in-alert 0.4s ease both;
  text-align: center;
}
.form-status-box.success {
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  color: #34D399;
  display: block;
}
.form-status-box.error {
  background: rgba(var(--coral-rgb), 0.12);
  border: 1px solid rgba(var(--coral-rgb), 0.25);
  color: #FCA5A5;
  display: block;
}

/* --- FOOTER --- */
.footer {
  background: #040710;
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 40px;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.footer-logo {
  height: 48px;
  width: auto;
  align-self: flex-start;
}
.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-main);
  margin-bottom: 1.8rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.legal-links {
  display: flex;
  gap: 2rem;
}
.legal-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.legal-links a:hover {
  color: var(--text-main);
}

/* --- ANIMATIONS AND KEYFRAMES --- */
@keyframes pulse-teal {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
}

@keyframes pulse-emerald {
  0% { transform: translateX(-50%) scale(1); box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.4); }
  50% { transform: translateX(-50%) scale(1.03); box-shadow: 0 4px 25px rgba(var(--accent-rgb), 0.6); }
  100% { transform: translateX(-50%) scale(1); box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.4); }
}

@keyframes pulse-op {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.45; }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes scan-loop {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

@keyframes slide-in-alert {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fade-in-panel {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fade-in-msg {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero {
    padding: 130px 0 80px;
  }
  .hero-title {
    font-size: 3.2rem;
  }
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }
  .plus-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
    overflow: hidden;
  }
  .plat-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .section {
    padding: 45px 0; /* Tighten up spacing between vertical layout sections to avoid huge empty gaps on mobile */
  }
  
  #register {
    padding-bottom: 45px !important;
  }
  
  .plat-content h2 {
    font-size: 2.1rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  
  .plat-badges {
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
    width: 100%;
  }
  
  .plat-badge-item {
    width: 100%;
    justify-content: center;
  }
  
  .header {
    height: 70px;
  }
  
  /* Keep language switcher in header next to toggle, hide only the CTA button */
  .header-actions {
    display: flex !important;
    gap: 0.8rem;
  }
  .header-actions .btn-primary {
    display: none; /* Hide header CTA button in mobile viewport */
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  /* Mobile drawer nav menu */
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: #080C16;
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2.5rem;
    transform: translateX(-100%);
    visibility: hidden;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 999;
    border-top: 1px solid var(--glass-border);
  }
  .nav-menu.open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
  }
  
  .mobile-nav-cta {
    display: block !important; /* Visible inside drawer on mobile */
    width: 100%;
    margin-top: 1.5rem;
  }
  
  .hero-title {
    font-size: 2.3rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  
  .hero-ctas {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    margin-bottom: 2.5rem;
  }
  .hero-ctas .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
    padding: 0.9rem 1.5rem;
  }
  
  .social-proof {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    width: 100%;
  }
  .avatar-text {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .section-title {
    font-size: 2.0rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Hide hero floating widgets to prevent horizontal layout overflow */
  .floating-widget {
    display: none !important;
  }
  
  /* Flat layout on mobile for mockup, avoiding overflow clipping */
  .mockup-wrapper {
    transform: rotateY(0deg) rotateX(0deg) !important;
    height: auto;
    min-height: 380px;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  /* "Our Plus" mobile responsive visual phone frame */
  .plus-phone-frame {
    max-width: 100%;
    width: 280px;
    height: 520px;
  }
  .phone-badge {
    display: none !important; /* Hide floating badges to avoid horizontal scrollbar */
  }
  
  /* --- SHOWCASE MOBILE SWIPE MENU --- */
  .swipe-hint {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.76rem;
    color: var(--primary);
    opacity: 0.85;
    margin-bottom: 1.2rem;
    font-family: var(--font-title);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px dashed rgba(var(--primary-rgb), 0.25);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    animation: pulse-teal-soft 2s infinite;
    pointer-events: none;
  }

  @keyframes pulse-teal-soft {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.03); opacity: 1; box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.2); }
  }

  .showcase-menu {
    flex-direction: row !important;
    overflow-x: auto;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    gap: 0.8rem;
    scrollbar-width: none; /* Hide Firefox scrollbar */
    min-width: 0;
    width: 100%;
  }
  .showcase-menu::-webkit-scrollbar {
    display: none; /* Hide Chrome/Safari scrollbar */
  }
  
  .showcase-tab-btn {
    flex-direction: column;
    align-items: center;
    padding: 0.8rem !important;
    min-width: 110px;
    flex-shrink: 0 !important; /* Critical scroll fix: stops WebKit from shrinking tabs and locks scrolling */
    text-align: center;
    gap: 0.5rem;
  }
  .showcase-tab-btn .tab-icon {
    width: 36px;
    height: 36px;
  }
  .showcase-tab-btn .tab-info {
    align-items: center;
  }
  .showcase-tab-btn .tab-tagline {
    display: none !important; /* Hide detailed tagline for tight spacing */
  }
  .showcase-tab-btn .tab-title {
    font-size: 0.85rem;
  }
  .showcase-screen {
    padding: 1.2rem;
    min-height: 420px;
  }
  
  /* Platform Visual stack mobile response */
  .mockup-stack {
    max-width: 100%;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .stack-web {
    width: 250px;
    height: 180px;
    left: 10px;
    top: 5%;
  }
  .stack-mobile {
    width: 90px;
    height: 180px;
    right: 20px;
    bottom: 5%;
  }
  
  .lead-form {
    grid-template-columns: 1fr;
  }
  .form-full-row {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .drawer-body {
    grid-template-columns: 1fr;
  }
  .console-info {
    display: none; /* Hide drawer info in mobile, show only code */
  }
  
  .expenses-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- SMALL MOBILE PHONES --- */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.95rem;
  }
  .section-title {
    font-size: 1.7rem;
  }
  .hero-desc {
    font-size: 0.98rem;
    line-height: 1.5;
    margin-bottom: 1.8rem;
  }
  .plat-content h2 {
    font-size: 1.75rem;
  }
  .mockup-stack {
    height: 220px;
  }
  .stack-web {
    width: 200px;
    height: 140px;
    left: 5px;
  }
  .stack-mobile {
    width: 75px;
    height: 140px;
    right: 5px;
  }
}

/* ── Billing ambient glow ───────────────────────────────────────────────────── */
.glow-billing {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.07) 0%, transparent 70%);
  width: 800px;
  height: 800px;
}
 
/* ── Login modal overlay ───────────────────────────────────────────────────── */
.billing-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 16, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.billing-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
 
/* ── Modal card ─────────────────────────────────────────────────────────────── */
.billing-modal {
  width: 100%;
  max-width: 440px;
  padding: 2.5rem;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.billing-modal-overlay.active .billing-modal {
  transform: translateY(0) scale(1);
}
 
/* ── Modal close button ─────────────────────────────────────────────────────── */
.billing-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}
.billing-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}
 
/* ── Modal brand mark ───────────────────────────────────────────────────────── */
.billing-modal-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.billing-modal-logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.6);
  animation: pulse-teal 2s infinite;
}
 
/* ── Modal title / subtitle ─────────────────────────────────────────────────── */
.billing-modal-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}
.billing-modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  line-height: 1.5;
}
 
/* ── Modal error box ────────────────────────────────────────────────────────── */
.billing-modal-error {
  background: rgba(var(--coral-rgb), 0.1);
  border: 1px solid rgba(var(--coral-rgb), 0.25);
  border-left: 3px solid var(--coral);
  color: var(--coral);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 1.2rem;
  animation: slide-in-alert 0.3s ease both;
}
 
/* ── Modal form spacing ─────────────────────────────────────────────────────── */
.billing-modal .form-group {
  margin-bottom: 1rem;
}
.billing-modal .form-group label {
  font-size: 0.82rem;
}
 
/* ── Password show/hide toggle ──────────────────────────────────────────────── */
.billing-pw-wrapper {
  position: relative;
}
.billing-pw-wrapper .form-control {
  padding-right: 2.8rem;
}
.billing-pw-toggle {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: 4px;
  transition: color 0.2s;
}
.billing-pw-toggle:hover {
  color: var(--text-main);
}
 
/* ── Forgot password / register links ───────────────────────────────────────── */
.billing-modal-forgot {
  text-align: right;
  margin-top: -0.4rem;
  margin-bottom: 1.2rem;
}
.billing-modal-forgot a {
  font-size: 0.8rem;
  color: var(--primary);
}
.billing-modal-forgot a:hover {
  color: var(--text-main);
}
.billing-modal-register {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.2rem;
}
.billing-modal-register a {
  color: var(--primary);
  font-weight: 600;
}
.billing-modal-register a:hover {
  color: var(--text-main);
}
 
/* ── Header sign-in/sign-out buttons ───────────────────────────────────────── */
.header-signin-btn-style,
.header-signout-btn-style {
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
}
 
.signout-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral) 0%, #C83E28 100%);
  flex-shrink: 0;
}
 
.signout-name {
  font-weight: 600;
  font-size: 0.85rem;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
 
/* ── Billing section — shared card ──────────────────────────────────────────── */
.billing-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
 
/* ── Billing grid (trial state — two columns) ───────────────────────────────── */
.billing-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}
 
/* ── Card top row ───────────────────────────────────────────────────────────── */
.billing-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
 
/* ── Greeting ───────────────────────────────────────────────────────────────── */
.billing-greeting {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.billing-greeting strong {
  color: var(--text-main);
}
 
/* ── Status badges ──────────────────────────────────────────────────────────── */
.billing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid;
}
.billing-badge-trial {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
  border-color: rgba(var(--primary-rgb), 0.25);
}
.billing-badge-active {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.25);
  animation: pulse-emerald 2.5s infinite;
}
.billing-badge-grace {
  background: rgba(var(--coral-rgb), 0.12);
  color: var(--coral);
  border-color: rgba(var(--coral-rgb), 0.25);
}
.billing-badge-muted {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border-color: var(--glass-border);
}
 
/* ── Trial countdown ring ───────────────────────────────────────────────────── */
.billing-countdown-ring {
  position: relative;
  flex-shrink: 0;
}
.billing-countdown-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
}
.billing-countdown-num {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.billing-countdown-lbl {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  max-width: 60px;
  line-height: 1.2;
  text-align: center;
}
 
/* ── State description text ─────────────────────────────────────────────────── */
.billing-state-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}
.billing-state-expired {
  color: var(--coral);
}
 
/* ── Section heading inside billing cards ───────────────────────────────────── */
.billing-section-heading {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0.8rem 0 0.6rem;
  color: var(--text-main);
}
 
/* ── Upgrade plan options (trial state right column) ────────────────────────── */
.billing-upgrade-cards {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.billing-plan-option {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 1.4rem;
  position: relative;
  transition: var(--transition-smooth);
}
.billing-plan-option:hover {
  border-color: rgba(var(--primary-rgb), 0.25);
  background: rgba(var(--primary-rgb), 0.03);
}
.billing-plan-option-featured {
  border-color: rgba(var(--accent-rgb), 0.3);
  background: rgba(var(--accent-rgb), 0.04);
}
.billing-plan-option-featured:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.07);
}
.billing-plan-badge-save {
  position: absolute;
  top: -11px;
  left: 1rem;
  background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.4);
}
.billing-plan-option-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.billing-plan-option-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}
.billing-plan-option-price {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
}
.billing-plan-option-price small {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
}
.billing-plan-option .btn {
  width: 100%;
  font-size: 0.88rem;
  padding: 0.75rem 1rem;
}
 
/* ── Active state — animated pulse ──────────────────────────────────────────── */
.billing-active-pulse {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.15);
  border: 2px solid rgba(var(--accent-rgb), 0.3);
  animation: pulse-emerald 2.5s infinite;
  flex-shrink: 0;
}
.billing-active-card {
  border-color: rgba(var(--accent-rgb), 0.2);
}
.billing-active-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}
 
/* ── Active state metadata grid ─────────────────────────────────────────────── */
.billing-meta-grid {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.02);
}
.billing-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}
.billing-meta-label {
  color: var(--text-muted);
}
.billing-meta-value {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--text-main);
}
 
/* ── Actions area ───────────────────────────────────────────────────────────── */
.billing-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.billing-actions .btn {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.billing-portal-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-left: 0.2rem;
}
 
/* ── Grace state card ───────────────────────────────────────────────────────── */
.billing-grace-card {
  border-color: rgba(var(--coral-rgb), 0.25);
  background: radial-gradient(circle at top right, rgba(var(--coral-rgb), 0.06) 0%, transparent 60%);
}
.billing-grace-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--coral), transparent);
  opacity: 0.7;
}
.billing-grace-alert-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}
 
/* ── Cancelled / Locked shared ───────────────────────────────────────────────── */
.billing-reactivate-plans {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.billing-reactivate-plans .btn {
  width: 100%;
  justify-content: center;
}
 
/* ── Locked card ────────────────────────────────────────────────────────────── */
.billing-locked-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.billing-lock-icon {
  margin-bottom: 0.5rem;
  animation: pulse-op 2s infinite;
}
 
/* ── Loading state ──────────────────────────────────────────────────────────── */
.billing-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.billing-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(var(--primary-rgb), 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: billing-spin 0.8s linear infinite;
}
@keyframes billing-spin {
  to { transform: rotate(360deg); }
}
 
/* ── Error state ────────────────────────────────────────────────────────────── */
.billing-state-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
  gap: 0.5rem;
}
 
/* ── Logged-out sign-in prompt row ──────────────────────────────────────────── */
.billing-out-signin-row {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.billing-out-signin-row a {
  color: var(--primary);
  font-weight: 600;
}
.billing-out-signin-row a:hover {
  color: var(--text-main);
}
 
/* ── Trial card colors ───────────────────────────────────────────────────────── */
.billing-trial-card {
  border-color: rgba(var(--primary-rgb), 0.2);
}
 
/* ── Cancelled card ─────────────────────────────────────────────────────────── */
.billing-cancelled-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
 
/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
 
@media (max-width: 768px) {
  .billing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .billing-card {
    padding: 1.8rem 1.4rem;
  }
  .billing-modal {
    padding: 2rem 1.5rem;
  }
  .billing-card-top {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .billing-countdown-ring {
    margin: 0 auto;
  }
  .billing-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .header-signin-btn-style span,
  .signout-name {
    display: none;
  }
  .header-signin-btn-style,
  .header-signout-btn-style {
    padding: 0.55rem 0.75rem;
  }
}
 
@media (max-width: 480px) {
  .billing-modal {
    padding: 1.8rem 1.2rem;
  }
  .billing-modal-title {
    font-size: 1.4rem;
  }
}
 
 
/* ==========================================================================
   REFERRAL BANNER
   ========================================================================== */
 
#referral-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.95) 0%, rgba(0, 119, 182, 0.95) 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 16px rgba(0, 180, 216, 0.3);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
 
.referral-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #fff;
}
 
.referral-banner-inner svg {
  flex-shrink: 0;
  opacity: 0.9;
}
 
#referral-banner-text {
  flex: 1;
  line-height: 1.4;
}
 
.referral-banner-close {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.2s;
}
.referral-banner-close:hover {
  background: rgba(255, 255, 255, 0.28);
}
 
@media (max-width: 768px) {
  .referral-banner-inner {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
}