:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #d1fae5;
  --bg-color: #f8fafc;
  --text-color: #475569;
  --heading-color: #0f172a;
}

html {
  scroll-behavior: smooth;
}

* {
  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-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
}

.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: #047857;
}

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

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

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

.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(16, 185, 129, 0.39);
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 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);
}

.btn-secondary {
  background-color: white;
  color: var(--heading-color);
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  color: var(--heading-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.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: 700px;
  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;
}

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

.section-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.video-container {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  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;
  background-color: #0f172a;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: #64748b;
}

.video-caption a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.video-caption a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* 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;
  }
  .video-section {
    padding: 4rem 5%;
  }
  .video-container {
    border-radius: 12px;
  }
  .nav-links {
    display: none;
  }
}
