/* ==========================================================================
   SUGUAI LANDING PAGE STYLESHEET
   ========================================================================== */

/* --- CSS Variables & Design System --- */
:root {
  --bg-dark: #030712;
  --bg-card: rgba(15, 23, 42, 0.55);
  --bg-card-hover: rgba(30, 41, 59, 0.7);
  
  --primary: #6366f1; /* Indigo */
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.25);
  
  --secondary: #10b981; /* Emerald */
  --secondary-glow: rgba(16, 185, 129, 0.2);
  
  --accent: #8b5cf6; /* Violet */
  --accent-glow: rgba(139, 92, 246, 0.25);
  
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dimmed: #6b7280;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.16);
  --border-glow: rgba(99, 102, 241, 0.18);
  
  --font-family-title: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-family-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Resets & Global Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family-body);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

/* --- Background Glow Effects (Decorative Blobs) --- */
.glow-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.38;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  animation: float-glow 20s infinite alternate ease-in-out;
}

.blob-1 {
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -100px;
  right: -50px;
}

.blob-2 {
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: 800px;
  left: -150px;
  animation-delay: -5s;
}

.blob-3 {
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  bottom: 200px;
  right: -100px;
  animation-delay: -10s;
}

@keyframes float-glow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(80px, 50px) scale(1.15);
  }
}

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-title);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--primary-glow);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--text-main);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.full-width {
  width: 100%;
}

/* --- Typography Helpers --- */
.text-gradient {
  background: linear-gradient(135deg, #a5b4fc 0%, var(--primary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.material-symbols-rounded {
  vertical-align: middle;
}

/* ==========================================================================
   NAVBAR SECTION
   ========================================================================== */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(3, 7, 18, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-color);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 8px;
}

.logo-icon {
  font-size: 2rem;
  color: var(--primary);
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.footer-contact-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact-link:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.logo-text {
  font-family: var(--font-family-title);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.logo-accent {
  color: var(--secondary);
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

.mobile-only-link {
  display: none !important;
}

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  font-size: 1.8rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 170px;
  padding-bottom: 100px;
  position: relative;
  z-index: 10;
}

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

.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite alternate;
}

@keyframes pulse-dot {
  from { opacity: 0.4; }
  to { opacity: 1; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-family-title);
  font-size: 3.5rem;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

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

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-icons {
  display: flex;
  align-items: center;
  color: var(--secondary);
}

.trust-icons span {
  font-size: 1.3rem;
  margin-right: -4px;
}

.trust-text {
  font-size: 0.85rem;
  color: var(--text-dimmed);
  font-weight: 500;
}

/* --- Hero Interactive Mockup Styling --- */
.hero-mockup-wrapper {
  perspective: 1200px;
}

.hero-mockup-frame {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 
              0 0 40px var(--border-glow);
  overflow: hidden;
  transform: rotateY(-6deg) rotateX(4deg);
  transition: transform var(--transition-normal);
}

.hero-mockup-frame:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.mockup-header {
  height: 40px;
  background-color: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 20px;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.mockup-search {
  flex-grow: 1;
  max-width: 320px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-dimmed);
}

.icon-sm {
  font-size: 1rem !important;
}

.mockup-app {
  display: flex;
  height: 320px;
}

.mockup-sidebar {
  width: 50px;
  border-right: 1px solid var(--border-color);
  background-color: rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 16px;
}

.mockup-side-item {
  color: var(--text-dimmed);
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
}

.mockup-side-item.active {
  color: var(--primary);
  background-color: rgba(99, 102, 241, 0.1);
}

.mockup-main {
  flex-grow: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}

.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mockup-stat-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-dimmed);
  text-transform: uppercase;
  font-weight: 600;
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 800;
  font-family: var(--font-family-title);
  white-space: nowrap;
}

.stat-change {
  font-size: 0.65rem;
  font-weight: 700;
}

.stat-change.positive { color: var(--secondary); }
.stat-change.warning { color: #f59e0b; }

.text-amber {
  color: #f59e0b;
}

.mockup-chart-container {
  flex-grow: 1;
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
}

.chart-title {
  font-weight: 600;
  color: var(--text-muted);
}

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

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.legend-dot.blue { background-color: var(--primary); }
.legend-dot.green { background-color: var(--secondary); }

.mockup-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 80px;
  padding-top: 10px;
  border-bottom: 1px dashed var(--border-color);
}

.bar-col {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 100%;
  width: 32px;
}

.bar-blue, .bar-green {
  width: 6px;
  border-radius: 4px 4px 0 0;
}

.bar-blue {
  background-color: var(--primary);
  opacity: 0.85;
}

.bar-green {
  background-color: var(--secondary);
  opacity: 0.85;
}

/* ==========================================================================
   SECTION COMMON HEADER
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px auto;
  position: relative;
  z-index: 10;
}

.section-subtitle {
  color: var(--primary);
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 12px;
  background-color: rgba(99, 102, 241, 0.1);
  padding: 4px 12px;
  border-radius: 6px;
}

.section-title {
  font-family: var(--font-family-title);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

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

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.features-section {
  padding: 100px 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 10;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.feature-card:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3), 
              0 0 30px rgba(99, 102, 241, 0.08);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-wrapper span {
  font-size: 1.8rem;
}

.text-primary span { color: var(--primary); }
.text-accent span { color: var(--accent); }
.text-emerald span { color: var(--secondary); }
.text-purple span { color: #8b5cf6; }
.text-amber span { color: #f59e0b; }
.text-blue span { color: #3b82f6; }

.feature-card-title {
  font-family: var(--font-family-title);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.feature-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ==========================================================================
   HOW IT WORKS & DEMO SECTION
   ========================================================================== */
.how-it-works-section {
  padding: 100px 0;
  background-color: rgba(255, 255, 255, 0.01);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.demo-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.demo-control h3 {
  font-family: var(--font-family-title);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.demo-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.demo-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.demo-btn {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  color: var(--text-main);
}

.demo-btn span {
  font-size: 2rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.demo-btn div {
  display: flex;
  flex-direction: column;
}

.demo-btn div strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.demo-btn div span {
  font-size: 0.75rem;
  color: var(--text-dimmed);
}

.demo-btn:hover, .demo-btn.active {
  background-color: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.4);
}

.demo-btn.active span {
  color: var(--primary);
}

.demo-progress-wrapper {
  display: none;
  flex-direction: column;
  gap: 8px;
}

.progress-bar {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 100px;
  transition: width 0.15s ease-out;
}

.progress-status {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

/* --- OCR Analysis Output Card --- */
.demo-output {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.output-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.output-header span {
  font-size: 1.5rem;
}

.output-table-wrapper {
  overflow-x: auto;
  border-bottom: 1px solid var(--border-color);
}

.output-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.output-table th, .output-table td {
  padding: 12px;
  font-size: 0.85rem;
}

.output-table th {
  color: var(--text-dimmed);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.output-table td {
  font-weight: 500;
}

.output-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.output-table tbody tr:last-child {
  border-bottom: none;
}

.output-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #f59e0b;
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */
.pricing-section {
  padding: 100px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
  position: relative;
  z-index: 10;
}

.pricing-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.15);
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.12);
  background-color: rgba(15, 23, 42, 0.75);
}

.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: #ffffff;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-header {
  margin-bottom: 30px;
}

.plan-name {
  font-family: var(--font-family-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.pricing-card.popular .plan-name {
  color: var(--text-main);
}

.plan-price {
  margin-bottom: 12px;
}

.price-number {
  font-family: var(--font-family-title);
  font-size: 2.3rem;
  font-weight: 800;
}

.price-period {
  font-size: 1rem;
  color: var(--text-dimmed);
}

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

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.plan-features li span {
  font-size: 1.2rem;
}

.plan-features li.unsupported {
  color: var(--text-dimmed);
}

.plan-features li.unsupported span {
  color: #ef4444;
}

/* ==========================================================================
   CALL TO ACTION BANNER SECTION
   ========================================================================== */
.cta-section {
  padding: 60px 0 100px 0;
}

.cta-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 28px;
  padding: 56px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.cta-content h2 {
  font-family: var(--font-family-title);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.cta-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
  background-color: #010204;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px 0;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 60px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 320px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links-col h4 {
  font-family: var(--font-family-title);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.footer-links-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links-col a:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 30px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dimmed);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* --- Tablet Devices (max-width: 850px) --- */
@media (max-width: 850px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }

  .section-title {
    font-size: 2.1rem;
  }
  
  .hero-description {
    margin: 0 auto 32px auto;
  }
  
  .hero-ctas {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .hero-trust {
    justify-content: center;
  }
  
  .hero-mockup-frame {
    transform: none !important;
    max-width: 100%;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
    gap: 32px;
  }
  
  .pricing-card.popular {
    transform: none;
  }
  
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 36px 24px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Navbar changes */
  .nav-links {
    display: none; /* Handled by JS mobile toggle drawer */
  }
  
  .nav-actions #loginBtn, .nav-actions #registerBtn {
    display: none !important; /* Hide desktop buttons */
  }
  
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- Mobile Devices (max-width: 500px) --- */
@media (max-width: 500px) {
  .container {
    padding: 0 16px;
  }

  .hero-section {
    padding-top: 130px;
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: 2.1rem;
    letter-spacing: -1px;
  }

  .section-title {
    font-size: 1.7rem;
    letter-spacing: -0.5px;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .hero-ctas .btn {
    width: 100%;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 24px 20px;
  }
  
  .demo-wrapper {
    padding: 16px;
  }
  
  .demo-btn {
    flex-direction: row;
    text-align: left;
    align-items: center;
    padding: 12px;
  }

  .demo-btn span {
    font-size: 1.6rem;
  }
  
  .cta-banner {
    padding: 28px 16px;
  }
  
  .cta-content h2 {
    font-size: 1.5rem;
  }
  
  .cta-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .cta-actions .btn {
    width: 100%;
  }

  .pricing-card {
    padding: 24px 20px;
  }

  /* Mockup adjustment inside the mobile screen */
  .mockup-sidebar {
    display: none !important; /* Hide sidebar inside browser mockup to save space */
  }

  .mockup-stats {
    grid-template-columns: 1fr; /* Stack stats inside mockup */
    gap: 8px;
  }

  .mockup-stat-card {
    padding: 8px 12px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .mockup-stat-card .stat-change {
    margin-top: 0;
  }

  .mockup-app {
    height: auto;
    max-height: 380px;
  }

  .mockup-main {
    padding: 12px;
    gap: 12px;
  }

  .mockup-chart-container {
    padding: 10px;
  }

  .mockup-bars {
    height: 60px;
  }
}

/* --- Mobile Menu Opened Navigation --- */
.nav-links.mobile-active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
  padding: 30px 24px;
  gap: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.nav-links.mobile-active .mobile-only-link {
  display: block !important;
}

.nav-links.mobile-active .btn-mobile-primary {
  display: flex !important;
  background-color: var(--primary);
  color: white !important;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  justify-content: center;
  font-weight: 700;
  margin-top: 10px;
}

/* ==========================================================================
   CONTACT SECTION & FORM
   ========================================================================== */
.contact-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all var(--transition-normal);
}

.contact-card:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.14);
}

.contact-card-icon {
  font-size: 2.2rem;
  color: var(--primary);
}

.contact-card-icon.text-whatsapp {
  color: #25D366;
}

.contact-card h3 {
  font-family: var(--font-family-title);
  font-size: 1.25rem;
  font-weight: 700;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-card-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: color var(--transition-fast);
  display: inline-block;
  margin-top: 4px;
}

.contact-card-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.contact-card-link.text-whatsapp:hover {
  color: #25D366;
}

/* Contact Form */
.contact-form-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input, .form-group textarea {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text-main);
  font-family: var(--font-family-body);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-success-msg {
  display: none;
  align-items: center;
  gap: 12px;
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.18);
  color: #10B981;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 10px;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all var(--transition-fast);
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive contact form */
@media (max-width: 850px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact-form-wrapper {
    padding: 24px;
  }
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
}
