/* Brand tokens aligned with extension's popup (light theme defaults) */
:root {
  --bg-primary: #f2f2f7;
  --bg-secondary: #ffffff;
  --text-primary: #1c1c1e;
  --text-secondary: #3a3a3c;
  --text-tertiary: #6e6e73;
  --border-color: rgba(60, 60, 67, 0.15);
  --accent: #007aff;       /* light primary */
  --accent-hover: #0062cc; /* light hover */
  --green: #34c759;
  --red: #ff3b30;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #000000;
    --bg-secondary: #1c1c1e;
    --text-primary: #ffffff;
    --text-secondary: #ebebf0;
    --text-tertiary: #8e8e93;
    --border-color: rgba(84, 84, 88, 0.25);
    --accent: #0a84ff;       /* dark primary */
    --accent-hover: #409cff; /* dark hover */
    --card-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.55;
}

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

h1, h2, h3 { color: var(--text-primary); margin: 0 0 10px; }
p { color: var(--text-secondary); margin: 0 0 10px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(8px);
  background: color-mix(in srgb, var(--bg-secondary) 92%, transparent);
  border-bottom: 1px solid var(--border-color);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.brand.small { font-size: 14px; }
.nav { display: flex; align-items: center; gap: 12px; }
.nav-link { color: var(--text-secondary); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.nav-link:hover { color: var(--accent); background: rgba(0, 122, 255, 0.08); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; border: 1px solid transparent; cursor: pointer; }
.btn-small { padding: 8px 12px; font-size: 14px; }
.btn-large { padding: 12px 18px; font-size: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: rgba(0, 122, 255, 0.08); }

/* Hero */
.hero { background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 56px 0; align-items: center; }
.hero-copy h1 { font-size: 40px; letter-spacing: -0.02em; }
.subhead { font-size: 18px; margin-top: 8px; }
.hero-ctas { display: flex; gap: 10px; margin-top: 16px; }
.hero-points { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 16px; color: var(--text-secondary); }
.point { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.2); }

.hero-visual .mockup { border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; box-shadow: var(--card-shadow); background: var(--bg-secondary); }
.mockup-header { display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid var(--border-color); background: var(--bg-primary); }
.mockup-header .dot { width: 10px; height: 10px; box-shadow: none; }
.mockup-header .red { background: #ff5f56; }
.mockup-header .yellow { background: #ffbd2e; }
.mockup-header .green { background: #27c93f; }
.mockup-body { padding: 0; display: block; aspect-ratio: 16 / 9; background: var(--bg-secondary); }
.mockup-screen { width: 100%; height: 100%; display: block; object-fit: cover; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
.mockup-caption { display: none; }

/* Sections */
.section { padding: 56px 0; }
.section-lead { color: var(--text-secondary); margin-bottom: 20px; }

/* Features */
.features h2, .how h2, .screens h2, .social-proof h2, .cta h2 { font-size: 28px; letter-spacing: -0.01em; margin-bottom: 8px; }
.features .grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 12px; }
.card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; box-shadow: var(--card-shadow); }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card .card-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 132, 255, 0.12); color: var(--accent); margin-bottom: 10px; border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.step { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 8px; }

/* Screens → Carousel */
.carousel { position: relative; margin-top: 12px; }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 16px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 6px; }
.shots::-webkit-scrollbar { height: 10px; }
.shots::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 10px; }
.shots { scrollbar-color: rgba(0,0,0,0.15) transparent; scrollbar-width: thin; }
.shot { scroll-snap-align: start; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; position: relative; box-shadow: var(--card-shadow); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms var(--ease), filter 400ms var(--ease); }
.shot:hover { box-shadow: 0 16px 32px rgba(0,0,0,0.12); }
.shot:hover img { transform: scale(1.04); }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border-color); background: color-mix(in srgb, var(--bg-secondary) 92%, transparent); box-shadow: var(--card-shadow); display: grid; place-items: center; cursor: pointer; color: var(--text-primary); font-weight: 700; line-height: 1; }
.carousel-btn:hover { background: var(--bg-secondary); }
.carousel-btn.prev { left: -4px; }
.carousel-btn.next { right: -4px; }

@media (max-width: 960px) {
  .shots { grid-auto-columns: 88%; }
}
@media (max-width: 640px) {
  .shots { grid-auto-columns: 92%; }
}

/* Social proof */
.testimonials { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 12px; }
.quote { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; font-style: italic; color: var(--text-secondary); }
.quote cite { display: block; margin-top: 6px; font-style: normal; color: var(--text-tertiary); }

/* CTA */
.cta { background: var(--bg-secondary); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* Footer */
.site-footer { padding: 24px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border-color); padding-top: 12px; }
.footer-inner .links { display: flex; gap: 12px; }
.footer-inner a { color: var(--text-secondary); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .features .grid, .steps, .testimonials { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .features .grid, .steps, .testimonials { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}



/* Modern enhancements: animations and effects */
:root { --ease: cubic-bezier(0.22, 1, 0.36, 1); }

html { scroll-behavior: smooth; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(14px) scale(0.98); filter: blur(2px); }
.reveal.show { opacity: 1; transform: none; filter: none; transition: opacity 700ms var(--ease), transform 700ms var(--ease), filter 700ms var(--ease); transition-delay: var(--reveal-delay, 0ms); }

/* Hero gradient glow */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -120px -80px auto -80px;
  height: 360px;
  background:
    radial-gradient(circle at 20% 30%, rgba(10, 132, 255, 0.25), transparent 42%),
    radial-gradient(circle at 80% 20%, rgba(52, 199, 89, 0.18), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(255, 59, 48, 0.15), transparent 45%);
  filter: blur(32px);
  z-index: 0;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

/* Mockup subtle motion */
.hero-visual .mockup { will-change: transform; transition: transform 400ms var(--ease); }
.animate-float { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* Pulsing status dots */
.hero .point .dot { animation: pulse 2.4s ease-in-out infinite; }
.hero .point:nth-child(1) .dot { animation-delay: 0s; }
.hero .point:nth-child(2) .dot { animation-delay: .2s; }
.hero .point:nth-child(3) .dot { animation-delay: .4s; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.2); transform: scale(1); }
  50% { box-shadow: 0 0 0 6px rgba(52, 199, 89, 0.12); transform: scale(1.08); }
}

/* Interactive surfaces */
.card { transition: transform 280ms var(--ease), box-shadow 280ms var(--ease); will-change: transform; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }

.btn { transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), background-color 240ms var(--ease), color 240ms var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(10, 132, 255, 0.3); }

/* Nav underline hover */
.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 300ms var(--ease);
  opacity: 0.6;
}
.nav-link:hover::after { transform: scaleX(1); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}
