:root {
  --color-primary: #3b82f6;
  --color-primary-hover: #60a5fa;
  --color-secondary: #64748b;
  --color-bg: #0f172a;
  --color-bg-secondary: #1e293b;
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-border: #334155;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
}

.logo img {
  width: 32px;
  height: 32px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--color-text-muted);
  font-weight: 500;
  transition: color var(--transition);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}



.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

.hero {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(to bottom, var(--color-bg-secondary), var(--color-bg));
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background: var(--color-border);
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

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

.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.download-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  transition: all var(--transition);
}

.download-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.download-card .browser-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-card .browser-icon svg {
  width: 64px;
  height: 64px;
}

.browser-icon.firefox svg {
  color: #ff7139;
}

.browser-icon.chrome svg {
  color: #4285f4;
}

.download-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.download-card p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.download-card .btn {
  width: 100%;
  justify-content: center;
}

.version-note {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.mobile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.mobile-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.mobile-icon {
  width: 56px;
  height: 56px;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.mobile-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}

.mobile-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.mobile-card p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.mobile-card ul {
  list-style: none;
  padding: 0;
}

.mobile-card li {
  color: var(--color-text-muted);
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.mobile-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.browser-table {
  max-width: 600px;
  margin: 0 auto;
}

.browser-table table {
  width: 100%;
  border-collapse: collapse;
}

.browser-table th,
.browser-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.browser-table th {
  background: var(--color-bg-secondary);
  font-weight: 600;
}

.browser-table td {
  color: var(--color-text-muted);
}

.browser-table tr:last-child td {
  border-bottom: none;
}

.privacy-content {
  max-width: 900px;
  margin: 0 auto;
}

.privacy-highlight {
  text-align: center;
  padding: 2rem;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.privacy-icon {
  width: 72px;
  height: 72px;
  background: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.privacy-icon svg {
  width: 36px;
  height: 36px;
  color: var(--color-success);
}

.privacy-highlight h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.privacy-highlight p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

.privacy-list {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.privacy-list h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.privacy-list ul {
  list-style: none;
  padding: 0;
}

.privacy-list li {
  padding: 0.5rem 0;
  color: var(--color-text-muted);
}

.privacy-footer {
  text-align: center;
  margin-top: 2rem;
  color: var(--color-text-muted);
}

.privacy-footer a {
  color: var(--color-primary);
  text-decoration: underline;
}

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

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

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

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

.screenshot-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/10;
}

.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.screenshot-card:hover img {
  transform: scale(1.05);
}

.screenshot-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.screenshot-card:hover .screenshot-overlay {
  opacity: 1;
}

.screenshot-overlay span {
  color: white;
  font-weight: 500;
}

.download-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.download-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}

.download-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.download-card .browser-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
}

.download-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.download-card p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.install-steps {
  max-width: 600px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.step-content h4 {
  margin-bottom: 0.25rem;
}

.step-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.changelog-list {
  max-width: 800px;
  margin: 0 auto;
}

.changelog-version {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.changelog-version h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.changelog-version .date {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.changelog-category {
  margin-bottom: 1.5rem;
}

.changelog-category:last-child {
  margin-bottom: 0;
}

.changelog-category h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.changelog-category.fixed h4 { color: var(--color-success); }
.changelog-category.added h4 { color: var(--color-primary); }
.changelog-category.changed h4 { color: var(--color-warning); }

.changelog-category ul {
  list-style: none;
  padding-left: 1.5rem;
}

.changelog-category li {
  position: relative;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}

.privacy-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.privacy-toc {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.privacy-toc h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.privacy-toc ul {
  list-style: none;
}

.privacy-toc li {
  margin-bottom: 0.5rem;
}

.privacy-toc a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.privacy-toc a:hover,
.privacy-toc a.active {
  color: var(--color-primary);
}

.privacy-content {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.privacy-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.privacy-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.privacy-content p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.privacy-content ul,
.privacy-content ol {
  color: var(--color-text-muted);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-content li {
  margin-bottom: 0.5rem;
}

footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 1rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

.lightbox-counter {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 0.9rem;
}

@media (min-width: 1024px) {
  .hero {
    padding: 8rem 0;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .hero p {
    font-size: 1.35rem;
    max-width: 700px;
  }
  
  .btn-group {
    gap: 1.5rem;
  }
  
  .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
  
  .hero-stats {
    gap: 5rem;
  }
  
  .stat-value {
    font-size: 2.25rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .section-subtitle {
    font-size: 1.15rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .feature-card {
    padding: 2.5rem;
  }
  
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
    gap: 2.5rem;
  }
  
  .mobile-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .privacy-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    text-align: left;
  }
  
  .privacy-highlight {
    grid-column: 1 / -1;
  }
  
  .faq-container {
    max-width: 900px;
  }
  
  .faq-question h3 {
    font-size: 1.2rem;
  }
  
  .faq-answer p {
    font-size: 1.05rem;
  }
}

@media (max-width: 1024px) {
  .privacy-layout {
    grid-template-columns: 1fr;
  }
  
  .privacy-toc {
    position: static;
    background: var(--color-bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }
  
  nav ul.active {
    display: flex;
  }
  
  nav li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }
  
  nav li:last-child {
    border-bottom: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand {
    max-width: 100%;
  }
  
  .lightbox-nav {
    display: none;
  }
}

/* Video Section */
.video-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition);
}

.faq-question:hover {
  background: var(--color-bg-secondary);
}

.faq-question h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--color-text);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: bold;
  transition: transform var(--transition);
}

.faq-answer {
  padding: 0 1.5rem;
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
}

.faq-answer p {
  padding: 1.5rem 0;
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Support Section */
.support-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.support-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}

.support-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.support-icon {
  width: 64px;
  height: 64px;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.support-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}

.support-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.support-card p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.support-info {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.support-info h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.support-info p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
}

.contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-item span {
  color: var(--color-text);
  font-weight: 500;
}

@media (max-width: 768px) {
  .support-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .faq-question {
    padding: 1rem;
  }
  
  .faq-answer {
    padding: 0 1rem;
  }
  
  .faq-answer p {
    padding: 1rem 0;
  }
}

@media (max-width: 480px) {
  .hero {
  padding: 3rem 0;
  }
  
  section {
  padding: 3rem 0;
  }
  
  .btn-group {
  flex-direction: column;
  }
  
  .btn {
  width: 100%;
  justify-content: center;
  }
  
  .video-container {
    padding-bottom: 56.25%;
  }
  
  .support-content {
    grid-template-columns: 1fr;
  }
}
