/* ==========================================================================
   SAVVUN — COMPONENTS (components.css)
   ========================================================================== */

/* Glass Panel */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.glass-panel:hover {
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.08);
}

/* Modern Floating Glass Pill Navbar */
.navbar {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  height: auto;
  z-index: 1000;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.nav-container {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 95%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
  background: rgba(7, 12, 23, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.05);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.navbar.scrolled .nav-container {
  background: rgba(3, 6, 14, 0.92);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 240, 255, 0.12);
  padding: 0.5rem 1.25rem;
}

.nav-drawer {
  display: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  padding-right: 0.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-icon {
  width: 32px;
  height: 32px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

.brand-icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
  vertical-align: middle;
}

.brand-logo:hover .brand-icon,
.brand-logo:hover .brand-icon-img {
  transform: scale(1.12) rotate(4deg);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.2rem;
  list-style: none;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.25rem 0.4rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
  color: rgba(241, 245, 249, 0.85);
  text-decoration: none;
  font-size: 0.775rem;
  font-weight: 500;
  white-space: nowrap !important;
  word-break: keep-all !important;
  text-align: center;
  line-height: 1.2;
  transition: all 0.25s ease;
  position: relative;
  padding: 0.35rem 0.6rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(0, 240, 255, 0.1);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.nav-link::after {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 100%);
  color: #03050a;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px var(--color-cyan-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.6);
  color: #000000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-glass);
  backdrop-filter: blur(8px);
}

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

.btn-glow {
  position: relative;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-purple), var(--color-cyan));
  background-size: 200% 100%;
  border-radius: calc(var(--radius-sm) + 2px);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-fast);
  animation: border-gradient-flow 3s linear infinite;
}

.btn-glow:hover::before {
  opacity: 1;
}

.btn-login {
  padding: 0.5rem 1.1rem;
  background: rgba(112, 0, 255, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #f1f5f9;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(112, 0, 255, 0.15);
}

.btn-login:hover {
  background: linear-gradient(135deg, rgba(112, 0, 255, 0.4) 0%, rgba(168, 85, 247, 0.4) 100%);
  border-color: rgba(192, 132, 252, 0.8);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(112, 0, 255, 0.4);
}

.lang-switcher-btn {
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--color-cyan);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  backdrop-filter: blur(4px);
}

.lang-switcher-btn:hover {
  background: rgba(0, 240, 255, 0.16);
  border-color: rgba(0, 240, 255, 0.5);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.25);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Status Cards & Live Indicators */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.status-online {
  background: rgba(0, 255, 170, 0.1);
  color: var(--color-emerald);
  border: 1px solid rgba(0, 255, 170, 0.3);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  animation: pulse-dot 2s infinite;
}

/* Hero Section Layout */
.hero-section {
  padding-top: 110px;
  padding-bottom: 30px;
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
}

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

.hero-title {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: clamp(0.925rem, 1.25vw, 1.05rem);
  color: #94a3b8;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-link-secondary {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-link-secondary:hover {
  gap: 0.7rem;
  color: #ffffff;
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

/* Security Core Visualization Container */
.security-core-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 580px;
  margin: 0 auto;
  position: relative;
}

#securityCoreCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Live Security Status Bar */
.status-bar-section {
  padding: 1.5rem 0;
  margin-top: -2rem;
  margin-bottom: 4rem;
}

.status-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.status-bar-card {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* Product Ecosystem Grid */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.ecosystem-card {
  padding: 1.85rem 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-md);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ecosystem-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 240, 255, 0.1);
}

.ecosystem-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-cyan);
  flex-shrink: 0;
}

.ecosystem-card:nth-child(2) .ecosystem-icon {
  background: rgba(0, 102, 255, 0.08);
  border-color: rgba(0, 102, 255, 0.2);
  color: var(--color-blue);
}

.ecosystem-card:nth-child(3) .ecosystem-icon {
  background: rgba(112, 0, 255, 0.08);
  border-color: rgba(112, 0, 255, 0.2);
  color: var(--color-purple);
}

.ecosystem-card:nth-child(4) .ecosystem-icon {
  background: rgba(0, 255, 170, 0.08);
  border-color: rgba(0, 255, 170, 0.2);
  color: var(--color-emerald);
}

.ecosystem-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: #ffffff;
  min-height: 2.8rem;
  display: flex;
  align-items: center;
}

.ecosystem-desc {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.ecosystem-card .hero-link-secondary {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.85rem;
  padding: 0.5rem 0.85rem;
}

/* Feature Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Modern Mockup Frame */
.mockup-frame {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--bg-dark-1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 240, 255, 0.1);
  overflow: hidden;
}

.mockup-header {
  height: 36px;
  background: var(--bg-dark-2);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.5rem;
}

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

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

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.mockup-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.mockup-body {
  padding: 1.5rem;
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible !important;
}

.pricing-card.popular {
  border-color: var(--color-cyan);
  box-shadow: 0 0 30px var(--color-cyan-glow);
}

.popular-badge {
  position: absolute;
  top: -14px;
  right: 1.5rem;
  background: linear-gradient(135deg, #00f0ff, #0066ff);
  color: #03050a;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 800;
  padding: 0.35rem 0.95rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.4);
  z-index: 10;
  pointer-events: none;
}

.pricing-tier {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  margin: 1.25rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin: 1.5rem 0 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.pricing-features li svg {
  color: var(--color-cyan);
  flex-shrink: 0;
}

/* Footer */
.footer {
  background: var(--bg-dark-0);
  border-top: 1px solid var(--border-subtle);
  padding-top: 5rem;
  padding-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.footer-col a:hover {
  color: var(--color-cyan);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Terminal & Hash Code Viewer */
.code-terminal {
  background: #060913;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-cyan);
  border: 1px solid rgba(0, 240, 255, 0.15);
  line-height: 1.7;
}

.terminal-line {
  display: flex;
  gap: 0.75rem;
}

.terminal-prompt {
  color: var(--text-muted);
  user-select: none;
}

.terminal-key { color: var(--color-emerald); }
.terminal-val { color: #ffffff; }
.terminal-warn { color: var(--color-amber); }

/* ==========================================================================
   LIVE CHAT SUPPORT WIDGET
   ========================================================================== */
.live-chat-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 100%);
  color: #03050a;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 30px var(--color-cyan-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9990;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.live-chat-trigger:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 240, 255, 0.7);
}

.live-chat-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-emerald);
  border: 2px solid #03050a;
  box-shadow: 0 0 10px var(--color-emerald);
}

.live-chat-window {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 500px;
  max-height: calc(100vh - 120px);
  background: rgba(11, 16, 29, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 9991;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.live-chat-window.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  padding: 1rem 1.25rem;
  background: rgba(5, 8, 17, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color var(--transition-fast);
}

.chat-close-btn:hover {
  color: #ffffff;
}

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

.chat-msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.5;
}

.chat-msg-bot {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #e2e8f0;
  align-self: flex-start;
}

.chat-msg-user {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 100%);
  color: #03050a;
  font-weight: 500;
  align-self: flex-end;
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.chat-chip-btn {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--color-cyan);
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chat-chip-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  color: #ffffff;
}

.chat-footer {
  padding: 0.85rem 1rem;
  background: rgba(5, 8, 17, 0.9);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.5rem;
}

.chat-input {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  color: #ffffff;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.chat-send-btn {
  background: var(--color-cyan);
  border: none;
  color: #03050a;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

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

.terminal-key { color: var(--color-emerald); }
.terminal-val { color: #ffffff; }
.terminal-warn { color: var(--color-amber); }
