/* Navigation Bar */
.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  width: 100%;
  z-index: 1000;
  pointer-events: none;
}

.nav-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-bar {
  pointer-events: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px 20px;
  border-radius: 999px;
  background: rgba(16, 20, 18, 0.78);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.brand-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-tag {
  font-size: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

@media (max-width: 860px) {
  .nav-menu {
    display: none;
  }
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-cta {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 650;
  border-radius: 999px;
  background: var(--accent);
  color: #0b0e0d;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  background: #def566;
  transform: scale(1.03);
}

.nav-cta svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================
   Before / After Interactive Slider
   ========================================================== */
.compare-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  user-select: none;
  touch-action: none;
  background: #000;
}

.compare-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 580px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .compare-media-wrap {
    aspect-ratio: 4 / 5;
  }
}

.compare-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.compare-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.compare-layer.layer-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Controlled via CSS clip-path or JS */
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  will-change: clip-path;
}

/* Draggable Divider Handle */
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent);
  z-index: 30;
  transform: translateX(-50%);
  cursor: ew-resize;
  will-change: left;
  box-shadow: 0 0 12px var(--accent);
}

.compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0e1210;
  border: 2px solid var(--accent);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7), 0 0 16px var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 16px;
  transition: transform 0.15s ease;
}

.compare-container:hover .compare-knob {
  transform: translate(-50%, -50%) scale(1.08);
}

/* Floating Compare Badges */
.compare-badge {
  position: absolute;
  top: 24px;
  z-index: 25;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(16px);
  pointer-events: none;
}

.compare-badge.badge-before {
  left: 24px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.compare-badge.badge-after {
  right: 24px;
  background: rgba(20, 32, 12, 0.75);
  border: 1px solid var(--border-accent);
  color: var(--accent);
}

/* AI Detail Tags */
.compare-tags-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.compare-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.compare-tag span.check {
  color: var(--accent);
  font-weight: bold;
}

/* ==========================================================
   Film Strip Palette (71 3D LUTs)
   ========================================================== */
.film-section-wrap {
  position: relative;
  overflow: hidden;
}

.film-track-container {
  width: 100%;
  margin-top: 48px;
  position: relative;
}

/* Real Film Sprocket Holes (齿孔) */
.film-strip {
  display: flex;
  gap: 20px;
  padding: 36px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.film-strip::-webkit-scrollbar {
  display: none;
}

.film-card {
  flex: 0 0 280px;
  border-radius: 20px;
  background: #151917;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.35s var(--ease-out-expo);
}

.film-card:hover, .film-card.active {
  transform: translateY(-8px);
  border-color: var(--border-accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 243, 74, 0.15);
}

.film-card-sprockets {
  height: 22px;
  background: #0d100f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sprocket-hole {
  width: 12px;
  height: 8px;
  background: #050606;
  border-radius: 2px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

.film-card-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.film-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.film-card-info {
  padding: 16px 18px 20px;
}

.film-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.film-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.film-iso {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: rgba(212, 243, 74, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.film-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.film-provenance {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================
   Watermark & Frames Gallery Showcase
   ========================================================== */
/* ==========================================================
   Section 4: Watermark Studio & Real Frames Showcase
   ========================================================== */
.watermark-studio-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
  background: linear-gradient(180deg, rgba(20, 24, 22, 0.6) 0%, rgba(12, 14, 13, 0.8) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 32px;
  padding: 48px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

@media (max-width: 960px) {
  .watermark-studio-showcase {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 40px;
  }
}

.watermark-device-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.watermark-app-mockup {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #000;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.watermark-app-viewport {
  position: relative;
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #f2f2f2;
  aspect-ratio: 1206 / 2622;
}

.watermark-app-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.watermark-screen-caption {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGreen 2s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.watermark-preset-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 440px;
}

.watermark-preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.watermark-preset-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.watermark-preset-btn.active {
  background: rgba(234, 179, 8, 0.15);
  border-color: rgba(234, 179, 8, 0.6);
  color: #fef08a;
  box-shadow: 0 0 16px rgba(234, 179, 8, 0.2);
}

.preset-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.preset-dot.amber { background: #f59e0b; }
.preset-dot.oriental { background: #ef4444; }
.preset-dot.hassel { background: #3b82f6; }
.preset-dot.editorial { background: #10b981; }
.preset-dot.gallery { background: #e2e8f0; }
.preset-dot.film { background: #a855f7; }

.watermark-studio-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.studio-feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 24px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.studio-feature-card:hover {
  border-color: var(--border-subtle);
  transform: translateY(-2px);
}

.feature-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.studio-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.studio-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.studio-chips-preview {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.studio-chip {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.studio-chip.active {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.4);
  color: #fef08a;
}

.studio-category-tags {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.cat-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

/* Real App Export Gallery */
.real-frames-gallery-header {
  margin-top: 64px;
  text-align: center;
}

.gallery-subheading {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.gallery-subtext {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.real-frames-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.real-frame-card {
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all 0.3s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
}

.real-frame-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.real-frame-visual {
  position: relative;
  width: 100%;
  background: #0a0c0b;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.real-frame-visual img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: block;
}

.real-frame-meta {
  padding: 20px 22px;
}

.meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.frame-tag {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.amber-tag { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.oriental-tag { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.editorial-tag { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.hassel-tag { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

.frame-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.frame-explanation {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================
   Local-First Privacy Manifesto
   ========================================================== */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.privacy-card {
  padding: 32px 28px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.privacy-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.privacy-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.privacy-card:hover::before {
  opacity: 1;
}

.privacy-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(212, 243, 74, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

.privacy-item-title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.privacy-item-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================
   Footer & Specs
   ========================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 50px;
  background: #080a09;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

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

.footer-brand h3 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 360px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 650;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: var(--text-dim);
}

@media (max-width: 600px) {
  .footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
