/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  background: #ffffff;
}

/* Typography */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 56px;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 20px;
}

p {
  color: #666;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #1a73e8;
  color: #fff;
}

.btn-primary:hover {
  background: #1557b0;
}

.btn-secondary {
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f0f0f0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #1a73e8;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: #666;
}

.nav a:hover {
  color: #1a1a1a;
}

/* Hero Section */
.hero {
  padding: 160px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 20px;
  color: #666;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Carousel */
.carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  background: #f0f2f5;
  max-width: 900px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.carousel-slide img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 2;
  transition: background 0.2s;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: #fff;
}

.carousel-prev {
  left: 16px;
}

.carousel-next {
  right: 16px;
}

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  width: 28px;
  background: #fff;
}

/* Expandable images */
.expandable-img {
  cursor: zoom-in;
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
}

/* Getting Started Flow */
.getting-started {
  padding: 100px 40px;
  background: #fff;
}

.flow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 160px;
  gap: 10px;
}

.flow-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #1a73e8, #4285f4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.flow-step strong {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.flow-step span {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}

.flow-icon-logo {
  background: #fff;
  border: 2px solid #e5e7eb;
}

.flow-icon-logo img {
  width: 32px;
  height: 32px;
}

.flow-arrow {
  display: flex;
  align-items: center;
  padding-top: 16px;
  color: #ccc;
  flex-shrink: 0;
}

/* How It Works */
.how-it-works {
  padding: 100px 40px;
  background: #f9fafb;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 40px 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.step-number {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #1a73e8;
  margin-bottom: 16px;
}

.step-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #e8f0fe, #d2e3fc);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #1a73e8;
}

.step h3 {
  margin-bottom: 12px;
}

.step p {
  font-size: 15px;
}

/* Extension Popup Section */
.popup-section {
  padding: 100px 40px;
  background: #fff;
}

.popup-section-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.popup-section-text h2 {
  margin-bottom: 16px;
}

.popup-subtitle {
  font-size: 18px;
  margin-bottom: 32px;
}

.capture-modes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.capture-mode {
  padding: 16px 20px;
  border-left: 3px solid #1a73e8;
  background: #f9fafb;
  border-radius: 0 8px 8px 0;
}

.capture-mode strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.capture-mode span {
  font-size: 14px;
  color: #666;
}

.popup-section-image img {
  max-width: 320px;
  width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Gallery */
.gallery {
  padding: 100px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

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

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  display: block;
}

.gallery-caption {
  padding: 16px 20px;
  background: #fff;
}

.gallery-caption strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #1a1a1a;
}

.gallery-caption span {
  font-size: 13px;
  color: #666;
}

/* Feature Showcase (combo redesign) */
.feature-showcase {
  padding: 100px 40px;
  background: #f9fafb;
}

.feature-showcase-content {
  max-width: 1200px;
  margin: 0 auto;
}

.feature-showcase-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.feature-showcase-image img {
  width: 100%;
  display: block;
}

/* AI Magic Section */
.ai-magic {
  padding: 100px 40px;
  background: linear-gradient(180deg, #fff 0%, #f9fafb 100%);
}

.ai-magic-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.ai-magic-text h2 {
  margin-bottom: 20px;
}

.ai-magic-subtitle {
  font-size: 18px;
  margin-bottom: 32px;
}

.ai-magic-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.ai-magic-list li {
  padding-left: 24px;
  position: relative;
  font-size: 15px;
  color: #444;
}

.ai-magic-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: #1a73e8;
  border-radius: 50%;
}

.ai-magic-list strong {
  color: #1a1a1a;
}

.ai-providers {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ai-providers span {
  font-size: 13px;
  color: #888;
}

.provider-badges {
  display: flex;
  gap: 8px;
}

.provider-badge {
  padding: 6px 12px;
  background: #f0f0f0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
}

.ai-magic-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ai-magic-visual img {
  width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

/* AI Setup Section */
.ai-setup {
  padding: 100px 40px;
  background: #f9fafb;
}

.ai-setup-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ai-setup-image img {
  max-width: 320px;
  width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.ai-setup-text h2 {
  margin-bottom: 16px;
}

.ai-setup-subtitle {
  font-size: 18px;
  margin-bottom: 32px;
}

.setup-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.setup-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.setup-step-num {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #1a73e8, #4285f4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.setup-step div strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.setup-step div span {
  font-size: 14px;
  color: #666;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #ecfdf5;
  color: #065f46;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #a7f3d0;
}

.privacy-badge svg {
  color: #059669;
  flex-shrink: 0;
}


/* Privacy First */
.privacy-first {
  padding: 80px 40px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  text-align: center;
}

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

.privacy-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #60a5fa;
}

.privacy-first h2 {
  margin-bottom: 16px;
  color: #fff;
}

.privacy-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

.privacy-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.privacy-feature {
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-feature strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.privacy-feature span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.privacy-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* Works With */
.works-with {
  padding: 100px 40px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 24px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.tool-item:hover {
  background: #fff;
  border-color: #1a73e8;
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.1);
}

.tool-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
}

.tool-item span {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
}

/* Final CTA */
.final-cta {
  padding: 100px 40px;
  text-align: center;
  background: linear-gradient(135deg, #1a73e8, #4285f4);
  color: #fff;
}

.final-cta h2 {
  margin-bottom: 16px;
  color: #fff;
}

.final-cta p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

.final-cta .btn-primary {
  background: #fff;
  color: #1a73e8;
}

.final-cta .btn-primary:hover {
  background: #f0f0f0;
}

/* Footer */
.footer {
  padding: 60px 40px;
  background: #1a1a1a;
  color: #fff;
}

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

.footer-brand .logo {
  color: #fff;
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  color: #888;
  font-size: 14px;
}

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

.footer-links a {
  font-size: 14px;
  color: #888;
}

.footer-links a:hover {
  color: #fff;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Responsive */
@media (max-width: 900px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  .header-content {
    padding: 12px 20px;
  }

  .nav {
    display: none;
  }

  .hero {
    padding: 120px 20px 60px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  /* Carousel mobile */
  .carousel-prev,
  .carousel-next {
    width: 36px;
    height: 36px;
  }

  .carousel-prev svg,
  .carousel-next svg {
    width: 18px;
    height: 18px;
  }

  /* Getting Started flow — stack vertically */
  .flow-steps {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .flow-step {
    flex: none;
  }

  .flow-arrow {
    transform: rotate(90deg);
    padding: 8px 0;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Popup section */
  .popup-section-content {
    grid-template-columns: 1fr;
  }

  .popup-section-image {
    order: -1;
  }

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

  .ai-magic-content {
    grid-template-columns: 1fr;
  }

  /* AI Setup */
  .ai-setup-content {
    grid-template-columns: 1fr;
  }

  .ai-setup-image {
    order: -1;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-content {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  /* Lightbox mobile */
  .lightbox-prev,
  .lightbox-next {
    width: 36px;
    height: 36px;
  }

  .lightbox-prev svg,
  .lightbox-next svg {
    width: 20px;
    height: 20px;
  }

  /* Docs page mobile */
  .docs-sidebar {
    display: none;
  }

  .docs-content {
    padding: 32px 20px;
    max-width: 100%;
  }
}

/* Documentation Page */
.docs-layout {
  display: flex;
  padding-top: 73px;
  min-height: 100vh;
}

.docs-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 73px;
  height: calc(100vh - 73px);
  overflow-y: auto;
  border-right: 1px solid #e5e7eb;
  padding: 32px 0;
  background: #fff;
}

.docs-sidebar nav {
  display: flex;
  flex-direction: column;
}

.docs-sidebar nav a {
  display: block;
  padding: 8px 24px;
  font-size: 14px;
  color: #666;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}

.docs-sidebar nav a:hover {
  color: #1a1a1a;
  background: #f9fafb;
}

.docs-sidebar nav a.active {
  color: #1a73e8;
  border-left-color: #1a73e8;
  background: #e8f0fe;
  font-weight: 500;
}

.docs-sidebar nav .sidebar-sublink {
  padding-left: 40px;
  font-size: 13px;
}

.docs-content {
  flex: 1;
  max-width: 720px;
  padding: 40px 60px;
}

.docs-content h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.docs-content .docs-subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 48px;
}

.docs-content h2 {
  font-size: 24px;
  margin: 48px 0 16px;
  padding-top: 24px;
  scroll-margin-top: 100px;
}

.docs-content h3 {
  font-size: 18px;
  margin: 32px 0 12px;
  scroll-margin-top: 100px;
}

.docs-content p {
  font-size: 16px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 16px;
}

.docs-content ul, .docs-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.docs-content li {
  font-size: 16px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 8px;
}

.docs-content a {
  color: #1a73e8;
}

.docs-content a:hover {
  text-decoration: underline;
}

.docs-screenshot {
  display: block;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 24px 0;
  border: 1px solid #e5e7eb;
}

.docs-screenshot-small {
  max-width: 320px;
}

.docs-screenshot-medium {
  max-width: 480px;
}

.kbd {
  display: inline-block;
  padding: 2px 8px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 13px;
  color: #444;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 1px 0 #ccc;
  line-height: 1.6;
}

.shortcuts-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
}

.shortcuts-table th,
.shortcuts-table td {
  padding: 10px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.shortcuts-table th {
  font-weight: 600;
  color: #1a1a1a;
  background: #f9fafb;
}

.shortcuts-table td {
  color: #444;
}

.tool-entry {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.tool-entry-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
  flex-shrink: 0;
  border: 1px solid #e5e7eb;
}

.tool-entry-text strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: #1a1a1a;
}

.tool-entry-text p {
  font-size: 14px;
  margin-bottom: 0;
}

.docs-steps {
  counter-reset: docs-step;
}

.docs-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.docs-step::before {
  counter-increment: docs-step;
  content: counter(docs-step);
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #1a73e8, #4285f4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.docs-step div strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
  color: #1a1a1a;
}

.docs-step div span {
  font-size: 14px;
  color: #666;
}

.faq-item {
  margin-bottom: 24px;
}

.faq-item h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.faq-item p {
  font-size: 15px;
  margin: 0;
}
