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

:root {
  --bg-base: #080c14;
  --bg-card: #0d1117;
  --bg-border: #ffffff12;
  --bg-elevated: #131a24;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #718096;
  --zone-silent: #2ecc71;
  --zone-quiet: #00bcd4;
  --zone-good: #76ff03;
  --zone-loud: #ffc107;
  --zone-too-loud: #ff1744;
  --font-ui: "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Fira Code", "Courier New", monospace;
}

html {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-ui);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* Language switcher */
.lang-switch {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-bottom: 8px;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--bg-border);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-ui);
  transition: all 0.15s ease;
}

.lang-btn.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--zone-good);
}

.lang-btn:hover {
  color: var(--text-primary);
}

/* Hero */
.hero {
  text-align: center;
  padding: 80px 0 48px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--zone-good), var(--zone-quiet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 40px;
}

/* Download buttons */
.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-primary {
  background: linear-gradient(135deg, var(--zone-good), var(--zone-quiet));
  color: #080c14;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--bg-border);
}

.btn-store {
  background: #0078d4;
  color: #fff;
}

.download-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.ph-badge {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.ph-badge:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}
.ph-badge img {
  display: block;
}

/* Zone bar with shimmer */
.zone-bar {
  display: flex;
  gap: 4px;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin: 32px 0;
  position: relative;
}

.zone-bar span {
  flex: 1;
  border-radius: 4px;
}

.zone-bar-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: shimmer 3s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Screenshots slideshow */
.screenshots {
  margin: 64px 0;
}

.screenshots h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.slideshow {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.slides {
  position: relative;
}

.slide {
  display: none;
}

.slide.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

.slide img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--bg-border);
  display: block;
}

.slide p {
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 12px;
}

.slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.slide-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.slide-btn:hover {
  background: var(--bg-card);
}

.slide-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--bg-border);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease;
}

.dot.active {
  background: var(--zone-good);
}

/* How it works */
.how-it-works {
  margin: 80px 0;
}

.how-it-works h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
  color: var(--text-primary);
}

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

.step {
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--zone-good), var(--zone-quiet));
  color: #080c14;
  font-size: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 64px 0;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature:hover {
  border-color: rgba(118, 255, 3, 0.2);
  transform: translateY(-2px);
}

.feature-icon {
  width: 36px;
  height: 36px;
  color: var(--zone-good);
  margin-bottom: 12px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.feature p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Use cases */
.use-cases {
  margin: 80px 0;
}

.use-cases h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.use-case {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.use-case:hover {
  border-color: rgba(118, 255, 3, 0.2);
  transform: translateY(-2px);
}

.use-case-emoji {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
}

.use-case h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.use-case p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.use-case a {
  color: var(--zone-quiet);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.use-case a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .use-case-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  text-align: center;
  padding: 48px 0 32px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

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

/* Sticky mobile CTA */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, var(--bg-base) 60%, transparent);
  display: none;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-cta.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-mobile {
  width: 100%;
  max-width: 400px;
  justify-content: center;
  padding: 16px 28px;
}

/* Prose (privacy page) */
.prose {
  padding-top: 48px;
}

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

.prose h2 {
  font-size: 20px;
  margin: 32px 0 12px;
  color: var(--text-primary);
}

.prose p,
.prose li {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.prose ul {
  padding-left: 24px;
}

.prose a {
  color: var(--zone-quiet);
}

.prose .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.back-link {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 32px;
}

.back-link:hover {
  color: var(--text-primary);
}

.help-figure {
  margin: 16px 0 24px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.help-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.help-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.prose pre {
  margin: 12px 0 20px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  overflow-x: auto;
}

.prose pre code {
  padding: 0;
  background: transparent;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-primary);
}

.steps-list {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps-list li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 14px;
}

.steps-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--zone-quiet);
  color: #080c14;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 12px 0 20px;
}

.variant-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  background: var(--bg-secondary);
}

.variant-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text-primary);
}

.variant-card p {
  margin: 0 0 6px;
  font-size: 13px;
}

.variant-card code {
  font-size: 11px;
}

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

  .hero .tagline {
    font-size: 17px;
  }

  .downloads {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

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

  .mobile-cta {
    display: flex;
  }

  /* Add bottom padding so footer isn't hidden behind sticky CTA */
  .footer {
    padding-bottom: 80px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.guide-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.guide-list li {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 12px;
  padding: 20px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.guide-list li:hover {
  border-color: rgba(118, 255, 3, 0.25);
  transform: translateY(-1px);
}

.guide-list a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.guide-list p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

.guide-cta {
  margin: 40px 0;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 12px;
  text-align: center;
}

.guide-cta h3 {
  margin-bottom: 8px;
}

.guide-cta p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
}

.guide-cta .btn {
  display: inline-block;
}
