/* DIGIMARK SaaS Design System */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-space: #08090e;
  --bg-dark: #0d0f1a;
  --neon-purple: #aa55ff;
  --neon-blue: #3399ff;
  --neon-cyan: #00ffff;
  --neon-pink: #ff55bb;
  --white: #ffffff;
  --gray-light: rgba(255, 255, 255, 0.03);
  --gray-border: rgba(255, 255, 255, 0.08);
  --gray-text: #9ca3af;
  --navy: #aa55ff;
  --navy-dark: #7700ff;
  --purple: #aa55ff;
  --green-edu: #00ffaa;
  --green-eco: #55ff55;
  --blue-sii: #33aaff;

  /* Shadows */
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-nav: 0 4px 24px rgba(0, 0, 0, 0.4);

  /* Border Radii */
  --radius-card: 20px;
  --radius-btn: 10px;
  --radius-pill: 999px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  /* Fonts */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  /* Spacing base 8px */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font-body);
  color: var(--white);
  background: var(--bg-space);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #0d0f22 0%, #050608 100%);
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center center;
  z-index: -1;
  pointer-events: none;
}

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

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 72px;
  background: rgba(8, 9, 14, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(8, 9, 14, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-nav);
}

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

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

.desktop-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--neon-purple);
}

.btn-outlined {
  border: 1px solid var(--neon-purple);
  color: var(--white);
  background: transparent;
  border-radius: var(--radius-btn);
  padding: 8px 20px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}

.btn-outlined:hover {
  background: rgba(170, 85, 255, 0.1);
  box-shadow: 0 0 16px rgba(170, 85, 255, 0.2);
}

.btn-solid {
  background: var(--neon-purple);
  color: var(--white);
  border: none;
  border-radius: var(--radius-btn);
  padding: 8px 20px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}

.btn-solid:hover {
  background: #bb66ff;
  box-shadow: 0 0 20px rgba(170, 85, 255, 0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* HERO */
.hero {
  background: transparent;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding-top: 72px; /* Avoid overlapping fixed navbar */
  display: flex;
  align-items: center;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 80px;
  min-height: calc(100vh - 72px);
  padding: 60px 24px;
}

.hero-left {
  flex: 0 0 55%;
}

.hero-right {
  flex: 0 0 45%;
  display: flex;
  justify-content: center;
}

.badge-pill {
  display: inline-block;
  background: rgba(170, 85, 255, 0.15);
  color: var(--neon-purple);
  border: 1px solid rgba(170, 85, 255, 0.3);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 68px;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 40%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.hero-line {
  width: 60px;
  height: 3px;
  background: var(--neon-purple);
  margin: 24px 0;
  box-shadow: 0 0 10px var(--neon-purple);
}

.hero-subtitle {
  color: var(--gray-text);
  font-family: var(--font-body);
  font-size: 18px;
  max-width: 480px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 36px;
}

.btn-hero-primary {
  background: var(--white);
  color: var(--navy);
  border: none;
  border-radius: var(--radius-btn);
  padding: 14px 32px;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.btn-hero-primary:hover {
  background: #F3F4F6;
  transform: translateY(-2px);
}

.btn-hero-secondary {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
  border-radius: var(--radius-btn);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

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

.hero-card {
  background: #1A2B6D;
  border-radius: 20px;
  padding: 28px;
  width: 420px;
  transform: rotate(6deg);
  box-shadow: 0 0 48px rgba(55, 138, 221, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 5;
}

.diamond-cube {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--blue-mid), var(--purple));
  animation: float 4s ease-in-out infinite;
  box-shadow: 0 8px 24px rgba(123, 94, 167, 0.3);
  z-index: 2;
}

/* PRODUCTS */
.products {
  background: transparent;
  padding: var(--space-12) 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 56px auto 0;
}

.product-card {
  background: var(--bg-dark);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, box-shadow 0.3s;
}

.product-card.card-visible {
  opacity: 1;
}

.product-card:hover {
  box-shadow: var(--shadow-card);
}

.product-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  font-weight: 600;
}

.product-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  margin: 0;
}

.product-desc {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.6;
  margin: 0;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: #374151;
}

.product-btn {
  margin-top: auto;
  padding: 12px;
  border-radius: var(--radius-btn);
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition);
  width: 100%;
}

.product-btn:hover {
  opacity: 0.85;
}

/* METRICS */
.metrics {
  background: transparent;
  padding: 80px 0;
  position: relative;
}

.metrics-grid {
  display: flex;
  justify-content: center;
  max-width: 1000px;
  margin: 56px auto 0;
}

.metric-item {
  flex: 1;
  text-align: center;
  padding: 0 48px;
  border-right: 1px solid #1E3A7A;
}

.metric-item:last-child {
  border-right: none;
}

.metric-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 64px;
  color: var(--white);
  line-height: 1;
}

.metric-label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--blue-light);
  margin-top: 8px;
}

.metric-underline {
  width: 40px;
  height: 3px;
  background: var(--purple);
  margin: 12px auto 0;
  border-radius: var(--radius-pill);
}

.industry-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
}

.industry-tag {
  background: #1E3A7A;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
}

.industry-tag:hover {
  background: #2D4A8A;
}

/* CHATBOT */
.chatbot-section {
  background: var(--gray-light);
  padding: 80px 0;
}

.chatbot-container {
  display: flex;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  padding: 0 24px;
}

.chatbot-left {
  flex: 1;
}

.chat-features {
  list-style: none;
  padding: 0;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--navy);
}

.chat-widget {
  width: 380px;
  border-radius: 20px;
  border: 1px solid var(--gray-border);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  background: var(--white);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background: var(--navy);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  margin-left: auto;
  box-shadow: 0 0 8px #22C55E;
}

.chat-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  max-height: 300px;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: #F9FAFB;
}

.bubble-user {
  background: var(--navy);
  color: var(--white);
  border-radius: 16px 16px 4px 16px;
  padding: 10px 14px;
  align-self: flex-end;
  max-width: 80%;
  font-family: var(--font-body);
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.bubble-bot {
  background: #F3F4F6;
  color: #111827;
  border-radius: 16px 16px 16px 4px;
  padding: 10px 14px;
  align-self: flex-start;
  max-width: 85%;
  font-family: var(--font-body);
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.chat-input-bar {
  border-top: 1px solid var(--gray-border);
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  background: var(--white);
}

.chat-input {
  border: none;
  flex: 1;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  background: transparent;
}

.chat-send {
  background: var(--purple);
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.chat-send:hover {
  opacity: 0.9;
}

/* FLOATING LAUNCHER & POPUP */
.chat-launcher {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 16px rgba(13, 27, 94, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.chat-launcher:hover {
  transform: scale(1.05);
}

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #EF4444;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-popup {
  position: fixed;
  bottom: 108px;
  right: 32px;
  z-index: 998;
  width: 380px;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  display: none;
  background: var(--white);
  overflow: hidden;
  border: 1px solid var(--gray-border);
}

.chat-popup.open {
  display: flex;
  flex-direction: column;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: #F3F4F6;
  border-radius: 16px 16px 16px 4px;
  align-self: flex-start;
  width: fit-content;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9CA3AF;
  animation: typing 1s infinite;
}

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

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

/* PRICING */
.pricing {
  background: var(--white);
  padding: var(--space-12) 0;
}

.toggle-wrapper {
  display: flex;
  gap: 0;
  background: var(--gray-light);
  border-radius: var(--radius-pill);
  padding: 4px;
  width: fit-content;
  margin: 24px auto 0;
  border: 1px solid var(--gray-border);
}

.toggle-btn {
  padding: 8px 24px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--gray-text);
  transition: all var(--transition);
}

.toggle-btn.active {
  background: var(--navy);
  color: var(--white);
}

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

.pricing-card {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--white);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(13, 27, 94, 0.08);
  border-color: var(--blue-mid);
}

.pricing-card.featured {
  border: 3px solid var(--purple);
  box-shadow: 0 20px 50px rgba(123, 94, 167, 0.15);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-8px);
  box-shadow: 0 24px 60px rgba(123, 94, 167, 0.25);
}

.pricing-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 4px 20px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.plan-name {
  font-family: var(--font-body);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-text);
  margin: 0;
}

.plan-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  color: var(--navy);
  margin: 16px 0 4px;
}

.plan-price-custom {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  color: var(--navy);
}

.plan-period {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-text);
}

.price-original {
  text-decoration: line-through;
  color: var(--gray-text);
  font-size: 18px;
  margin-right: 8px;
}

.plan-divider {
  border: none;
  border-top: 1px solid var(--gray-border);
  margin: 24px 0;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: #374151;
}

.btn-plan-outlined {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 24px;
  transition: all var(--transition);
}

.btn-plan-outlined:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-plan-solid {
  width: 100%;
  padding: 12px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 24px;
  transition: background var(--transition);
}

.btn-plan-solid:hover {
  background: var(--navy-dark);
}

.btn-plan-outlined-purple {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--purple);
  color: var(--purple);
  background: transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 24px;
  transition: all var(--transition);
}

.btn-plan-outlined-purple:hover {
  background: var(--purple);
  color: var(--white);
}

/* CTA FINAL */
.cta-final {
  background: transparent;
  padding: var(--space-12) 0;
  position: relative;
  overflow: hidden;
}

.cta-content {
  max-width: 700px;
  margin: auto;
  text-align: center;
  padding: 0 24px;
}

.cta-diamonds {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.cta-diamond {
  width: 30px;
  height: 30px;
  transform: rotate(45deg);
  border-radius: 6px;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trust-badge span {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--blue-light);
  text-align: center;
}

/* FOOTER */
.footer {
  background: var(--bg-dark);
  padding: 60px 0 32px;
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}

.footer-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--gray-text);
  font-family: var(--font-body);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.social-icon {
  color: #4A6FA5;
  transition: color var(--transition), transform 0.2s;
}

.social-icon:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.newsletter-row {
  display: flex;
  margin-top: 20px;
}

.newsletter-input {
  flex: 1;
  background: #1E3A7A;
  border: 1px solid #2D4A8A;
  color: var(--white);
  padding: 10px 14px;
  border-radius: 8px 0 0 8px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-input:focus {
  border-color: var(--purple);
}

.newsletter-input::placeholder {
  color: var(--blue-light);
}

.newsletter-btn {
  background: var(--purple);
  color: var(--white);
  border: none;
  padding: 10px 18px;
  border-radius: 0 8px 8px 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.newsletter-btn:hover {
  background: #6a4f91;
}

.footer-divider {
  border: none;
  border-top: 1px solid #1E3A7A;
  margin: 40px 0 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--gray-text);
  font-family: var(--font-body);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--white);
}

/* RESPONSIVE DESIGN (Media Queries) */
@media (max-width: 768px) {
  .mobile-only-action {
    display: block !important;
  }

  .desktop-actions {
    display: none !important;
  }

  .navbar .nav-links {
    display: none;
  }

  .navbar.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    padding: 24px;
    border-bottom: 1px solid var(--gray-border);
    box-shadow: var(--shadow-nav);
    gap: 16px;
  }

  .hamburger {
    display: flex;
  }

  /* Hamburger transform when menu is open */
  .navbar.nav-open .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .navbar.nav-open .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .navbar.nav-open .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero .container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
    padding-top: 40px;
  }

  .hero-left {
    flex: unset;
    width: 100%;
  }

  .hero-right {
    display: none; /* Hide interactive card representation on mobile */
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-subtitle {
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }

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

  .metrics-grid {
    flex-wrap: wrap;
  }

  .metric-item {
    flex: 0 0 50%;
    border-right: none;
    border-bottom: 1px solid #1E3A7A;
    padding: 24px;
  }

  .metric-item:nth-child(3),
  .metric-item:nth-child(4) {
    border-bottom: none;
  }

  .chatbot-container {
    flex-direction: column;
    gap: 40px;
  }

  .chat-widget {
    width: 100%;
  }

  .chat-popup {
    width: calc(100% - 64px);
    right: 32px;
    bottom: 108px;
  }

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

  .trust-badges {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .metric-item {
    flex: 0 0 100%;
    border-bottom: 1px solid #1E3A7A;
  }
  
  .metric-item:last-child {
    border-bottom: none;
  }
}

/* Auth and Dashboard Portal Visual System */
.auth-card input:focus {
  border-color: var(--purple) !important;
  box-shadow: 0 0 12px rgba(123, 94, 167, 0.4) !important;
}

.cycle-btn.active {
  background: var(--purple) !important;
  border-color: var(--purple) !important;
}

.sidebar-link:hover, .sidebar-link.active {
  color: white !important;
  background: rgba(123, 94, 167, 0.15) !important;
  border-left: 3px solid var(--purple) !important;
}

.access-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, border-color 0.3s !important;
}

.access-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.user-greeting {
  animation: fadeInUp 0.4s ease forwards;
}

/* Mobile responsive brand logo text sizing */
@media (max-width: 480px) {
  .logo-container span:last-child {
    font-size: 5.5px !important;
    letter-spacing: 0.1px !important;
  }
  .logo-text {
    font-size: 16px !important;
  }
}
@media (max-width: 360px) {
  .logo-container span:last-child {
    display: none !important;
  }
}

/* Glassmorphism & 3D Spline Visual styles */
.glass-card {
  background: rgba(13, 15, 26, 0.45);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s, border-color 0.4s;
  overflow: hidden;
}

.glass-card:hover {
  border-color: rgba(170, 85, 255, 0.3);
  box-shadow: 0 20px 48px rgba(170, 85, 255, 0.15), 0 0 1px rgba(170, 85, 255, 0.5);
}

.tilt-element {
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

.tilt-child {
  transform: translateZ(35px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Quote Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 5, 9, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 90%;
  max-width: 540px;
  background: rgba(13, 15, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 1px rgba(170, 85, 255, 0.5);
  border-radius: 24px;
  padding: 32px;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-overlay.open .modal-content {
  transform: scale(1) translateY(0);
}

.modal-input {
  background: rgba(8, 9, 14, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  color: white;
  font-size: 14px;
  width: 100%;
  outline: none;
  font-family: var(--font-body);
  transition: all var(--transition);
}

.modal-input:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 12px rgba(170, 85, 255, 0.3);
}

/* Reveal elements on scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}
