/* Base Variables based on extension popup.css + some website flair */
:root {
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --bg-hover: #334155;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-primary: #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.4);

  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);

  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Effects */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}

.glow-1 {
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: var(--accent-primary);
}

.glow-2 {
  top: 400px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: #8b5cf6; /* purple compliment */
  opacity: 0.2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography elements */
.text-gradient {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism Panel */
.glass-panel {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Navbar */
.navbar {
  padding: 24px 0;
  position: relative;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
  cursor: pointer;
}

.logo svg {
  color: var(--text-primary);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover .animated-logo {
  transform: scale(1.1) rotate(5deg);
}

.logo-dash {
  animation: marchingAnts 3s linear infinite;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.logo:hover .logo-dash {
  opacity: 1;
  animation-duration: 1.5s;
}

@keyframes marchingAnts {
  to {
    stroke-dashoffset: -12;
  }
}

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

.nav-links a:not(.btn) {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-hover)
  );
  color: white;
  box-shadow: 0 8px 20px -6px var(--accent-glow);
}

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

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-bmc {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.btn-bmc:hover {
  background: rgba(251, 191, 36, 0.2);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 80px 0 120px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.stat .check {
  color: var(--success);
  margin-right: 4px;
}

/* Hero Visual & Extension UI Replica */
.hero-visual {
  position: relative;
  perspective: 1000px;
}

.mockup-browser {
  background: #0b1121;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.mockup-browser:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.browser-header {
  background: #1e293b;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-light);
}

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

.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f56;
}
.browser-dots span:nth-child(2) {
  background: #ffbd2e;
}
.browser-dots span:nth-child(3) {
  background: #27c93f;
}

.browser-url {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  font-family: monospace;
}

.browser-extension-icon {
  width: 28px;
  height: 28px;
  background: var(--accent-primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-glow);
}

.browser-body {
  height: 400px;
  position: relative;
  background: #f8fafc;
  overflow: hidden;
}

/* Popup Replica Styling inside the Browser body */
.extension-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 340px;
  background: var(--bg-dark); /* Override glass panel bg specific for ext */
  border-radius: 12px;
  padding: 24px;
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  animation: slideIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

.ext-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.ext-header h2 {
  font-size: 16px;
  font-weight: 600;
}

.ext-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-weight: 500;
}

.ext-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-glow);
}

.ext-btn-primary {
  width: 100%;
  height: 54px;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-hover)
  );
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: transform 0.1s;
}

.ext-btn-primary:hover {
  transform: scale(0.98);
}

.ext-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.ext-btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 14px;
  border-radius: 12px;
  color: white;
  font-weight: 500;
  cursor: pointer;
}

.ext-switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  cursor: pointer;
}

.ext-switch-info {
  display: flex;
  flex-direction: column;
}

.ext-switch-title {
  font-size: 14px;
  font-weight: 500;
}

.ext-switch-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.ext-checkbox {
  display: none;
}

.ext-toggle {
  width: 44px;
  height: 24px;
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  position: relative;
  transition: background 0.3s;
}

.ext-toggle::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--text-secondary);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
}

.ext-checkbox:checked + .ext-toggle {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.ext-checkbox:checked + .ext-toggle::after {
  transform: translateX(20px);
  background: white;
}

/* Background mock page content for visual appeal */
.mock-page-content {
  padding: 40px;
}

.mock-skeleton {
  background: #e2e8f0;
  border-radius: 6px;
  margin-bottom: 16px;
}

.mock-skeleton.title {
  height: 40px;
  width: 60%;
  margin-bottom: 30px;
}
.mock-skeleton.text {
  height: 16px;
  width: 100%;
}
.mock-skeleton.short {
  width: 80%;
}

.mock-highlight-box {
  margin-top: 40px;
  width: 80%;
  height: 150px;
  border: 2px dashed var(--accent-primary);
  background: rgba(59, 130, 246, 0.05);
  border-radius: 8px;
  position: relative;
  animation: selectPulse 2s infinite;
}

.mock-dimensions {
  position: absolute;
  bottom: -30px;
  right: 0;
  background: var(--accent-primary);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

@keyframes selectPulse {
  0% {
    background: rgba(59, 130, 246, 0.05);
  }
  50% {
    background: rgba(59, 130, 246, 0.15);
  }
  100% {
    background: rgba(59, 130, 246, 0.05);
  }
}

/* Features Section */
.features-section {
  padding: 100px 0;
  position: relative;
  z-index: 10;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  padding: 40px 30px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border-color: var(--border-strong);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon.mb-blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
}
.feature-icon.mb-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}
.feature-icon.mb-yellow {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Video Section */
.video-section {
  padding: 60px 0;
  position: relative;
  z-index: 10;
}

.video-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  padding: 8px; /* Frame border effect */
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-strong);
}

.demo-video {
  width: 100%;
  border-radius: 8px;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.demo-video.loaded {
  opacity: 1;
}

.video-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  z-index: 1;
  border-radius: 8px;
  gap: 16px;
  color: var(--text-secondary);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-strong);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 40px 0;
  margin-top: 60px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Responsive */
@media (max-width: 992px) {
  .nav-container {
    flex-direction: column;
    gap: 16px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    margin: 0 auto 40px;
  }

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

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

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

  .extension-popup {
    right: auto;
    left: 50%;
    transform: translateX(-50%) !important;
  }
}

/* Releases Page Styles */
.releases-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.release-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.release-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.release-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-primary);
}

.release-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.release-version {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.release-date {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border-light);
}

.release-summary {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.release-highlights h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.release-highlights ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.release-highlights li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
}
