:root {
  --bg-color: #0d0f17;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --gradient-1: #3b82f6;
  --gradient-2: #8b5cf6;
  --gradient-3: #ec4899;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* --- Animated Blobs --- */
.blob {
  position: fixed;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.5;
  border-radius: 50%;
  animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--gradient-2) 0%, transparent 70%);
}

.blob-2 {
  bottom: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--gradient-1) 0%, transparent 70%);
  animation-delay: -5s;
}

.blob-3 {
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--gradient-3) 0%, transparent 70%);
  animation-delay: -3s;
  opacity: 0.3;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 50px) scale(1.1); }
}

/* --- Navigation --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  backdrop-filter: blur(10px);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

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

.cta-button {
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.nav-cta {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--text-primary);
}

.nav-cta:hover {
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary);
}

/* --- Main --- */
main {
  padding: 0 5%;
}

/* --- Hero Section --- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(100vh - 80px);
  gap: 2rem;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(to right, var(--gradient-1), var(--gradient-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-alt {
  background: linear-gradient(to right, var(--gradient-2), var(--gradient-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.cta-button.primary {
  background: var(--primary);
  color: white;
}

.cta-button.primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.cta-button.secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

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

/* --- Hero Mockup --- */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  perspective: 1000px;
}

.extension-mockup {
  background: rgba(20, 22, 33, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  width: 320px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: rotateY(-10deg) rotateX(10deg);
  transition: transform 0.5s ease;
}

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

.mockup-header {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.dots {
  display: flex;
  gap: 0.4rem;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4b5563;
}
.dots span:nth-child(1) { background: #ef4444; }
.dots span:nth-child(2) { background: #f59e0b; }
.dots span:nth-child(3) { background: #10b981; }

.mockup-body {
  padding: 2rem 1.5rem;
  text-align: center;
}

.mockup-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.mockup-mood {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.highlight {
  color: var(--gradient-3);
}

.mockup-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.mockup-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mock-btn {
  padding: 0.6rem;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.mock-btn.primary {
  background: var(--text-primary);
  color: var(--bg-color);
}

.mock-btn.secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

/* --- Features Section --- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 4rem 0;
  border-top: 1px solid var(--glass-border);
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Section Titles --- */
.section-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
}

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

/* --- How It Works Section --- */
.how-it-works {
  padding: 5rem 0;
  border-top: 1px solid var(--glass-border);
}

.steps-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.step-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 1rem;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.step-connector {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  color: var(--text-secondary);
  padding: 0 0.5rem;
  opacity: 0.5;
}

/* Tech flow under the hood */
.tech-flow {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

.tech-flow h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 120px;
  transition: background 0.3s;
}

.flow-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.flow-icon {
  font-size: 1.75rem;
}

.flow-item span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.flow-arrow {
  color: var(--gradient-2);
  font-size: 1.25rem;
  opacity: 0.6;
}

/* --- Privacy Section --- */
.privacy-section {
  padding: 5rem 0;
  border-top: 1px solid var(--glass-border);
}

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

.privacy-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.privacy-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
}

.privacy-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.privacy-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.privacy-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.privacy-card strong {
  color: var(--text-primary);
}

.permission-list {
  list-style: none;
  padding: 0;
}

.permission-list li {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.permission-list li:last-child {
  border-bottom: none;
}

.permission-list li strong {
  color: var(--gradient-2);
  font-family: "Outfit", monospace;
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 3rem 5%;
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.footer-logo img {
  width: 28px;
  height: 28px;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s;
}

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

.footer-copyright {
  color: rgba(148, 163, 184, 0.5);
  font-size: 0.8rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 4rem;
  }
  .hero-content {
    margin: 0 auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  h1 {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .extension-mockup {
    transform: none;
    margin-top: 2rem;
  }
  .extension-mockup:hover {
    transform: none;
  }
  .steps-grid {
    flex-direction: column;
    align-items: center;
  }
  .step-connector {
    transform: rotate(90deg);
    padding: 0.25rem 0;
  }
  .step-card {
    max-width: 100%;
  }
  .flow-steps {
    flex-direction: column;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
}
