/* ============================================================
   CSSBite — Chrome Extension Landing Page
   Design System: Light theme (#ffffff / #f8f9fb / #e94560)
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #ffffff;
  color: #1a1a2e;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ----- Custom Scrollbar ----- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f8f9fb;
}

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e94560;
}

/* Firefox */
html {
  scrollbar-color: #d1d5db #f8f9fb;
  scrollbar-width: thin;
}

/* ----- Selection Color ----- */
::selection {
  background: rgba(233, 69, 96, 0.35);
  color: #111827;
}

::-moz-selection {
  background: rgba(233, 69, 96, 0.35);
  color: #111827;
}

/* ============================================================
   Utilities
   ============================================================ */

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

.gradient-text {
  background: linear-gradient(135deg, #e94560 0%, #4a9eff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-heading {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.section-heading::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: #e94560;
  border-radius: 2px;
  margin: 16px auto 0;
}

.section-subtitle {
  text-align: center;
  color: #6b7280;
  font-size: 16px;
  max-width: 560px;
  margin: 16px auto 48px;
  line-height: 1.7;
}

/* ----- Buttons ----- */
.btn-primary,
.btn-secondary,
.btn-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: #e94560;
  color: #fff;
  border: 2px solid #e94560;
}

.btn-primary:hover {
  background: #c23152;
  border-color: #c23152;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233, 69, 96, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #1a1a2e;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.btn-github {
  background: #f3f4f6;
  color: #1a1a2e;
  border: 2px solid rgba(0, 0, 0, 0.08);
}

.btn-github:hover {
  background: #e5e7eb;
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.btn-github svg,
.btn-github img {
  width: 18px;
  height: 18px;
}

/* ============================================================
   Animations — Keyframes
   ============================================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.4);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(233, 69, 96, 0);
  }
}

@keyframes particleDrift {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx, 60px), var(--dy, -80px)) scale(0.4);
    opacity: 0;
  }
}

/* ----- Scroll-triggered fade-in ----- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   1. Navbar
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, padding 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.navbar-logo img,
.navbar-logo svg {
  width: 32px;
  height: 32px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links a {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  transition: color 0.2s ease;
  position: relative;
}

.navbar-links a:hover {
  color: #1a1a2e;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #e94560;
  border-radius: 1px;
  transition: width 0.25s ease;
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

.navbar-links a.active {
  color: #1a1a2e;
}

.navbar-cta .btn-primary {
  padding: 8px 20px;
  font-size: 13px;
}

/* Mobile menu toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}

.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #374151;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================================
   2. Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 60px;
  overflow: hidden;
}

/* Floating particles / dots */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-particles .dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e94560;
  opacity: 0.25;
  animation: float 6s ease-in-out infinite;
}

.hero-particles .dot:nth-child(1) {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 7s;
}

.hero-particles .dot:nth-child(2) {
  top: 25%;
  right: 15%;
  width: 8px;
  height: 8px;
  background: #4a9eff;
  animation-delay: 1.2s;
  animation-duration: 8s;
}

.hero-particles .dot:nth-child(3) {
  bottom: 30%;
  left: 20%;
  width: 4px;
  height: 4px;
  background: #4a9eff;
  animation-delay: 2.5s;
  animation-duration: 6.5s;
}

.hero-particles .dot:nth-child(4) {
  top: 40%;
  right: 8%;
  width: 5px;
  height: 5px;
  animation-delay: 0.8s;
  animation-duration: 9s;
}

.hero-particles .dot:nth-child(5) {
  bottom: 20%;
  right: 25%;
  width: 7px;
  height: 7px;
  background: #e94560;
  animation-delay: 3s;
  animation-duration: 7.5s;
}

.hero-particles .dot:nth-child(6) {
  top: 60%;
  left: 5%;
  width: 5px;
  height: 5px;
  background: #4a9eff;
  opacity: 0.18;
  animation-delay: 1.8s;
  animation-duration: 8.5s;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(233, 69, 96, 0.1);
  border: 1px solid rgba(233, 69, 96, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #e94560;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: #6b7280;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Browser mockup frame */
.hero-mockup {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.03);
  animation: fadeInUp 0.9s ease 0.3s both;
}

.mockup-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f8f9fb;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }

.mockup-url {
  flex: 1;
  margin-left: 12px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 6px;
  font-size: 12px;
  color: #9ca3af;
  font-family: 'Fira Code', monospace;
}

.mockup-body {
  background: #f1f3f5;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  font-size: 14px;
}

.mockup-body img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   3. Features
   ============================================================ */

.features {
  padding: 60px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature-card {
  background: #f8f9fb;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 32px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(233, 69, 96, 0.1);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(233, 69, 96, 0.12);
  color: #e94560;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================================
   4. How It Works
   ============================================================ */

.how-it-works {
  padding: 60px 0;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* Connecting line — vertical on mobile */
.steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 25px;
  width: 2px;
  height: calc(100% - 52px);
  background: linear-gradient(to bottom, #e94560, #4a9eff);
  border-radius: 1px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.step-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f8f9fb;
  border: 2px solid #e94560;
  color: #e94560;
  font-size: 18px;
  font-weight: 700;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.step-content p {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================================
   4b. Screenshots
   ============================================================ */

.screenshots {
  padding: 60px 0;
}

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

.screenshot-card {
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fb;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(233, 69, 96, 0.15);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-label {
  display: block;
  padding: 10px 16px 0;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  text-align: center;
}

.screenshot-desc {
  display: block;
  padding: 4px 16px 14px;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  line-height: 1.5;
}

/* ============================================================
   5. Export Formats
   ============================================================ */

.formats {
  padding: 60px 0;
}

.formats-editor {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f8f9fb;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.formats-tabs {
  display: flex;
  flex-wrap: wrap;
  background: #f1f3f5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.format-tab {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
  font-family: 'Fira Code', monospace;
  background: transparent;
}

.format-tab:hover {
  color: #6b7280;
  background: rgba(0, 0, 0, 0.02);
}

.format-tab.active {
  color: #e94560;
  border-bottom-color: #e94560;
  background: rgba(233, 69, 96, 0.06);
}

.formats-preview {
  padding: 24px;
  min-height: 200px;
}

.formats-preview pre {
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: #4b5563;
  overflow-x: auto;
  white-space: pre;
}

.formats-preview code {
  font-family: 'Fira Code', monospace;
}

/* Code blocks inside preview */
.code-block {
  display: none;
}

.code-block.active {
  display: block;
}

/* Syntax-like color hints */
.formats-preview .token-selector { color: #e94560; }
.formats-preview .token-property { color: #4a9eff; }
.formats-preview .token-value    { color: #98c379; }
.formats-preview .token-comment  { color: #9ca3af; font-style: italic; }

/* ============================================================
   6. Keyboard Shortcuts
   ============================================================ */

.shortcuts {
  padding: 60px 0;
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.shortcut-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #f8f9fb;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  transition: border-color 0.2s ease;
}

.shortcut-item:hover {
  border-color: rgba(233, 69, 96, 0.2);
}

kbd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  font-weight: 500;
  color: #e94560;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
  line-height: 1;
}

.shortcut-desc {
  font-size: 14px;
  color: #374151;
}

/* ============================================================
   7. Privacy
   ============================================================ */

.privacy {
  padding: 60px 0;
}

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

.privacy-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(74, 158, 255, 0.1);
  color: #4a9eff;
  font-size: 32px;
}

.privacy-icon svg {
  width: 32px;
  height: 32px;
}

.privacy-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}

.privacy-point {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #f8f9fb;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  font-size: 14px;
  text-align: left;
}

.privacy-point .check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(40, 200, 64, 0.12);
  color: #28c840;
  font-size: 14px;
  font-weight: 700;
}

/* ============================================================
   8. CTA Section
   ============================================================ */

.cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    rgba(233, 69, 96, 0.06) 50%,
    #ffffff 100%
  );
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(233, 69, 96, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-section p {
  color: #6b7280;
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  animation: pulse 2.5s ease-in-out infinite;
}

.cta-section .btn-primary:hover {
  animation: none;
}

/* ============================================================
   9. Footer
   ============================================================ */

.footer {
  padding: 48px 0 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #f1f3f5;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: #9ca3af;
  transition: color 0.2s ease;
}

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

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  color: #6b7280;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  background: rgba(233, 69, 96, 0.15);
  color: #e94560;
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-copyright {
  font-size: 13px;
  color: #d1d5db;
}

/* ============================================================
   Responsive — Tablet (768px+)
   ============================================================ */

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }

  /* Sections */
  .features,
  .how-it-works,
  .screenshots,
  .formats,
  .shortcuts,
  .privacy {
    padding: 80px 0;
  }

  .section-heading {
    font-size: 32px;
  }

  /* Screenshots */
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshots-grid .screenshot-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }

  /* Hero */
  .hero h1 {
    font-size: 56px;
  }

  .hero-subtitle {
    font-size: 19px;
  }

  /* Features grid */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Shortcuts grid */
  .shortcuts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Privacy points */
  .privacy-points {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CTA */
  .cta-section {
    padding: 100px 0;
  }

  .cta-section h2 {
    font-size: 36px;
  }
}

/* ============================================================
   Responsive — Desktop (1024px+)
   ============================================================ */

@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }

  /* Sections */
  .features,
  .how-it-works,
  .screenshots,
  .formats,
  .shortcuts,
  .privacy {
    padding: 100px 0;
  }

  .section-heading {
    font-size: 36px;
  }

  .section-subtitle {
    font-size: 17px;
  }

  /* Hero */
  .hero {
    padding: 140px 0 80px;
  }

  .hero h1 {
    font-size: 64px;
  }

  /* Features 3-column */
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* How It Works — horizontal row */
  .steps {
    flex-direction: row;
    gap: 0;
    max-width: 100%;
    align-items: flex-start;
  }

  /* Connecting line — horizontal on desktop */
  .steps::before {
    top: 25px;
    left: 52px;
    width: calc(100% - 104px);
    height: 2px;
    background: linear-gradient(to right, #e94560, #4a9eff);
  }

  .step {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 0 16px;
  }

  /* Privacy 4-column */
  .privacy-points {
    grid-template-columns: repeat(4, 1fr);
  }

  .privacy-point {
    flex-direction: column;
    text-align: center;
    padding: 24px 16px;
    gap: 10px;
  }

  /* Navbar */
  .navbar-links {
    gap: 36px;
  }

  /* Footer row layout */
  .footer .container {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-links {
    gap: 28px;
  }

  .footer-copyright {
    order: -1;
  }
}

/* ============================================================
   Responsive — Mobile-specific (<768px)
   ============================================================ */

@media (max-width: 767px) {
  /* Navbar mobile layout */
  .navbar-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px 0;
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-links a {
    padding: 12px 20px;
    font-size: 15px;
  }

  .navbar-links a::after {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-cta {
    display: none;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 120px 0 48px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-mockup {
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 0;
  }

  .mockup-body {
    min-height: 200px;
  }

  /* Format tabs scroll */
  .formats-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .format-tab {
    flex-shrink: 0;
    padding: 10px 14px;
    font-size: 12px;
  }

  .formats-preview {
    padding: 16px;
  }

  .formats-preview pre {
    font-size: 12px;
  }

  /* CTA */
  .cta-section h2 {
    font-size: 26px;
  }

  .cta-buttons .btn-primary,
  .cta-buttons .btn-github {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   Reduced Motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   PRO FEATURES SECTION
   ============================================================ */

.pro-features {
  padding: 6rem 0;
  background: linear-gradient(180deg, #f8f9fb 0%, #f1f3f5 50%, #f8f9fb 100%);
  position: relative;
}

.pro-features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e94560, transparent);
}

.pro-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.pro-badge-large {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
  background: #e94560;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

.pro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pro-card {
  position: relative;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 1.8rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.pro-card:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(233, 69, 96, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(233, 69, 96, 0.08);
}

.pro-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #e94560;
  background: rgba(233, 69, 96, 0.1);
  border: 1px solid rgba(233, 69, 96, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
}

.pro-card-icon {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  line-height: 1;
}

.pro-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.pro-card p {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
}

.pro-card code {
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  color: #e94560;
  background: rgba(233, 69, 96, 0.1);
  padding: 1px 5px;
  border-radius: 3px;
}

/* Nav Pro link */
.nav-pro-link {
  position: relative;
}

.nav-pro-tag {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  background: #e94560;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: super;
}

/* Responsive */
@media (max-width: 768px) {
  .pro-features {
    padding: 4rem 0;
  }

  .pro-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pro-card {
    padding: 1.4rem;
  }
}

/* ============================================================
   DOCUMENTATION PAGE
   ============================================================ */

.docs-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 72px;
}

/* Sidebar */
.docs-sidebar {
  width: 260px;
  flex-shrink: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  background: #f8f9fb;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
}

.docs-sidebar-inner {
  padding: 24px 0;
}

.docs-sidebar-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #1a1a2e;
  padding: 0 20px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 12px;
}

.docs-nav-group {
  margin-bottom: 20px;
}

.docs-nav-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 8px 20px 4px;
}

.docs-soon-tag {
  font-size: 8px;
  font-weight: 700;
  color: #e94560;
  background: rgba(233, 69, 96, 0.1);
  padding: 1px 5px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 4px;
}

.docs-nav-link {
  display: block;
  padding: 6px 20px 6px 24px;
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.15s;
  border-left: 2px solid transparent;
}

.docs-nav-link:hover {
  color: #1a1a2e;
  background: rgba(0, 0, 0, 0.03);
}

.docs-nav-link.active {
  color: #e94560;
  border-left-color: #e94560;
  background: rgba(233, 69, 96, 0.04);
  font-weight: 500;
}

/* Content */
.docs-content {
  flex: 1;
  max-width: 800px;
  padding: 40px 48px 80px;
}

.docs-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.docs-section:last-child {
  border-bottom: none;
}

.docs-section h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.docs-section h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 24px 0 8px;
}

.docs-section p {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 12px;
}

.docs-section ul, .docs-section ol {
  margin: 12px 0 16px 20px;
  list-style: disc;
}

.docs-section ol {
  list-style: decimal;
}

.docs-section li {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 6px;
}

.docs-section li strong {
  color: #1a1a2e;
}

.docs-section code {
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  color: #e94560;
  background: rgba(233, 69, 96, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

.docs-section a {
  color: #e94560;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.docs-section kbd {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-family: 'Fira Code', monospace;
  background: #f1f3f5;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  color: #374151;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Steps */
.docs-steps {
  margin: 20px 0;
}

.docs-step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

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

.docs-step-num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e94560;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  flex-shrink: 0;
}

.docs-step h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.docs-step p {
  font-size: 14px;
  margin-bottom: 0;
}

/* Tip box */
.docs-tip {
  background: rgba(233, 69, 96, 0.04);
  border-left: 3px solid #e94560;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  font-size: 14px;
  color: #4b5563;
}

/* Table */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.docs-table th {
  text-align: left;
  padding: 10px 12px;
  background: #f8f9fb;
  color: #1a1a2e;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.docs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: #4b5563;
  vertical-align: top;
}

.docs-table td strong {
  color: #1a1a2e;
}

/* Pro tag */
.docs-pro-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #e94560;
  background: rgba(233, 69, 96, 0.06);
  border: 1px solid rgba(233, 69, 96, 0.15);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* FAQ */
.docs-faq {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.docs-faq:last-child {
  border-bottom: none;
}

.docs-faq h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .docs-layout {
    flex-direction: column;
  }

  .docs-sidebar {
    width: 100%;
    position: relative;
    top: 0;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    max-height: 50vh;
    overflow-y: auto;
  }

  .docs-content {
    padding: 24px 20px 60px;
  }

  .docs-section h1 {
    font-size: 22px;
  }

  .docs-table {
    font-size: 12px;
  }
}

/* ============================================================
   STATIC PAGES (Privacy, FAQ)
   ============================================================ */

.static-page {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.static-page h1 {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.static-page-updated {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 40px;
}

.static-page-content {
  max-width: 720px;
}

.static-page-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 32px 0 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

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

.static-page-content p {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 12px;
}

.static-page-content ul {
  margin: 12px 0 20px 20px;
  list-style: disc;
}

.static-page-content li {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 8px;
}

.static-page-content li strong {
  color: #1a1a2e;
}

.static-page-content code {
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  color: #e94560;
  background: rgba(233, 69, 96, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

.static-page-content a {
  color: #e94560;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* FAQ specific */
.faq-section {
  margin-bottom: 32px;
}

.faq-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: #e94560;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(233, 69, 96, 0.15);
  border-top: none;
  padding-top: 0;
}

.faq-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.faq-item p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .static-page {
    padding-top: 100px;
  }

  .static-page h1 {
    font-size: 24px;
  }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.static-page-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 40px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Inter', system-ui, sans-serif;
  color: #1a1a2e;
  background: #f8f9fb;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #e94560;
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.contact-submit {
  align-self: flex-start;
  padding: 12px 32px;
}

/* Success / Error messages */
.contact-success {
  text-align: center;
  padding: 48px 24px;
  background: rgba(63, 185, 80, 0.04);
  border: 1px solid rgba(63, 185, 80, 0.15);
  border-radius: 12px;
}

.contact-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #3fb950;
  color: #fff;
  font-size: 20px;
  border-radius: 50%;
  margin-bottom: 16px;
}

.contact-success h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.contact-success p {
  font-size: 14px;
  color: #6b7280;
}

.contact-error {
  padding: 12px 16px;
  background: rgba(248, 81, 73, 0.05);
  border: 1px solid rgba(248, 81, 73, 0.2);
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #f85149;
}

.contact-error a {
  color: #e94560;
}

/* Info sidebar */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  padding: 20px;
  background: #f8f9fb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}

.contact-info-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.contact-info-card p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 10px;
}

.contact-email-link,
.contact-store-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #e94560;
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-email-link:hover,
.contact-store-link:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-info {
    order: -1;
  }
}
