:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #dbeafe;
  --bg-color: #f8fafc;
  --text-color: #475569;
  --heading-color: #0f172a;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 5%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-container img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading-color);
  letter-spacing: -0.5px;
}

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

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  margin-left: 24px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

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

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6rem 5% 4rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 4rem;
}

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

.hero h1 {
  color: var(--heading-color);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-accent {
  white-space: nowrap;
}

.hero-accent span:nth-child(1) {
  color: #1e40af;
}

.hero-accent span:nth-child(2) {
  color: #1d4ed8;
}

.hero-accent span:nth-child(3) {
  color: #2563eb;
}

.hero-accent span:nth-child(4) {
  color: #3b82f6;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-color);
  margin-bottom: 2.5rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.23);
}

.btn-icon {
  margin-right: 8px;
}

.btn-firefox {
  background-color: #ff7139;
  box-shadow: 0 4px 14px 0 rgba(255, 113, 57, 0.39);
}

.btn-firefox:hover {
  background-color: #e6602c;
  box-shadow: 0 6px 20px rgba(255, 113, 57, 0.23);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: rotate(-2deg);
  transition: transform 0.5s ease;
}

.hero-image:hover img {
  transform: rotate(0) scale(1.02);
}

/* Features Section */
.features-section {
  background-color: white;
  padding: 6rem 5%;
  border-top: 1px solid #e2e8f0;
}

.section-header {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

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

.feature-card {
  background: var(--bg-color);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-light);
}

.icon-box {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  color: var(--heading-color);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
}

.feature-card p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-color);
}

/* Showcase Section */
.showcase {
  padding: 6rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.showcase.reverse {
  flex-direction: row-reverse;
}

.showcase-text {
  flex: 1;
}

.showcase-text h2 {
  font-size: 2.5rem;
  color: var(--heading-color);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.showcase-img {
  flex: 1;
}

.showcase-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
}

/* Footer */
footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 4rem 5% 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2rem;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.footer-links {
  margin-bottom: 3rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.copyright {
  font-size: 0.875rem;
  border-top: 1px solid #334155;
  padding-top: 2rem;
  width: 100%;
}

/* Text Pages (Privacy, Terms) */
.text-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.text-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.text-card h1 {
  color: var(--heading-color);
  margin-bottom: 8px;
}

.text-card h2 {
  color: #1e293b;
  margin-top: 32px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.text-card p, .text-card ul {
  font-size: 1rem;
}

.text-card .last-updated {
  color: #64748b;
  font-size: 0.9em;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .hero, .showcase {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding-top: 3rem;
  }
  .showcase.reverse {
    flex-direction: column;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

/* Image Modal */
.screenshot-options,
.screenshot-widget {
  cursor: zoom-in;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.9);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal-img-container {
  position: relative;
  display: inline-block;
  max-width: 90%;
  max-height: 90vh;
  animation: zoom 0.3s ease;
}

.modal-content {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  display: block;
}

.close-modal {
  position: absolute;
  top: -15px;
  right: -15px;
  background-color: white;
  color: #0f172a;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
  border: 2px solid #e2e8f0;
}

.close-modal:hover,
.close-modal:focus {
  background-color: #f1f5f9;
  transform: scale(1.1);
  text-decoration: none;
}

@keyframes zoom {
  from {transform:scale(0.95); opacity:0}
  to {transform:scale(1); opacity:1}
}
