/*
 * Copyright (c) IT Support BD (https://itsupport.com.bd). All rights reserved.
 * This file is part of AmPass.
 * This program is free software under the terms of the GNU Affero General Public License.
 * Project Website: https://ampass.itsupport.com.bd
 */

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

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --bg-deep: #050814;
  --glass-card: rgba(255, 255, 255, 0.08);
  --glass-card-hover: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.20);
  --glass-border-glow: rgba(99, 102, 241, 0.6);
  
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.80);
  --text-dim: rgba(255, 255, 255, 0.60);
  
  --brand-blue: #00c6ff;
  --brand-indigo: #0072ff;
  --brand-purple: #5b42f3;
  --brand-gradient: linear-gradient(135deg, #00c6ff 0%, #0072ff 50%, #5b42f3 100%);
  --brand-gradient-animated: linear-gradient(90deg, #00c6ff, #0072ff, #a855f7, #00c6ff);
  --brand-accent: #38bdf8;
  --emerald-green: #10b981;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: 
    radial-gradient(circle at 15% 15%, rgba(0, 198, 255, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(91, 66, 243, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 50% 75%, rgba(0, 114, 255, 0.15) 0%, transparent 50%),
    #050814;
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(5, 8, 20, 0.9);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

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

/* Glassmorphism Card Utility */
.glass-panel {
  background: var(--glass-card);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-panel:hover {
  background: var(--glass-card-hover);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.5), inset 0 1px 3px rgba(255, 255, 255, 0.6);
  transform: translateY(-6px);
}

/* Shimmer Keyframe */
@keyframes shimmerText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.text-shimmer {
  background: var(--brand-gradient-animated);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 6s linear infinite;
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(5, 8, 20, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo svg {
  filter: drop-shadow(0 4px 12px rgba(0, 198, 255, 0.4));
  transition: transform 0.3s ease;
}

.brand-logo:hover svg {
  transform: scale(1.08) rotate(-4deg);
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--brand-accent);
  transition: width 0.25s ease;
  border-radius: 2px;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Navigation Toggle Button */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
}

/* Mobile Drawer Overlay */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: rgba(10, 15, 30, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 1002;
  padding: 80px 24px 30px;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 17px;
  font-weight: 700;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  white-space: nowrap;
  min-height: 48px;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 114, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 114, 255, 0.6);
  filter: brightness(1.1);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(147, 197, 253, 0.35);
  color: #93c5fd;
  font-size: 12.5px;
  font-weight: 600;
}

/* Hero Section */
.hero {
  padding: 170px 0 100px;
  text-align: center;
  position: relative;
}

.hero-badge {
  margin-bottom: 24px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.8px;
  margin-bottom: 22px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.hero-desc {
  font-size: 19.5px;
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 auto 40px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-preview {
  margin-top: 20px;
}

.preview-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px;
  text-align: left;
  border-radius: 24px;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

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

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.stat-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.25s ease;
}

.stat-box:hover {
  transform: translateY(-4px);
}

.stat-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
}

/* Features Section */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-subtitle {
  color: var(--brand-accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 34px;
}

.feature-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 198, 255, 0.2) 0%, rgba(91, 66, 243, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  color: #38bdf8;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Downloads Section */
.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.download-card {
  padding: 36px;
  text-align: center;
}

.download-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.download-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.download-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 42px;
}

.download-meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 14px;
  font-family: var(--font-mono);
}

/* Documentation Tabs */
.doc-panel {
  padding: 36px;
}

.tab-buttons {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 16px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--brand-gradient);
  color: #ffffff;
  border-color: transparent;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.code-block {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #38bdf8;
  overflow-x: auto;
  margin: 14px 0;
}

/* Accordion FAQ Section */
.faq-grid {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  padding: 22px 26px;
  cursor: pointer;
  user-select: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.faq-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
  color: var(--brand-accent);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-top: 14px;
}

/* About Us & Contact Form */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 12px 16px;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.form-textarea {
  height: 120px;
  resize: vertical;
}

/* Footer */
.footer {
  padding: 70px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 8, 20, 0.95);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13.5px;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--brand-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: var(--text-dim);
}

.footer-bottom a {
  color: var(--brand-accent);
  text-decoration: none;
}

/* Toast Notifications */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 2000;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideToast 0.3s ease;
}

@keyframes slideToast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 960px) {
  .nav-links, .nav-cta-group {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero-title {
    font-size: 40px;
    letter-spacing: -1px;
  }
  .hero-desc {
    font-size: 17px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .hero {
    padding: 130px 0 60px;
  }
  .hero-title {
    font-size: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .download-cards {
    grid-template-columns: 1fr;
  }
}
