:root {
  color-scheme: dark;
  --bg: #06080c;
  --bg-elevated: #0f141c;
  --bg-hover: #1a2533;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eef6;
  --text-muted: #8fa3be;
  --accent: #ff5c33;
  --accent-soft: rgba(255, 92, 51, 0.14);
  --link: #7eb8ff;
  --success: #3ecf8e;
  --mono: "JetBrains Mono", "Cascadia Code", "Consolas", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --column: min(680px, calc(100% - 2rem));
  --wide: min(1080px, calc(100% - 2.5rem));
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: var(--column);
  margin: 0 auto;
}

.container-wide {
  width: var(--wide);
  margin: 0 auto;
}

/* ── Landing layout ── */

.landing {
  position: relative;
}

.landing-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 92, 51, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(255, 92, 51, 0.06), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(126, 184, 255, 0.07), transparent 50%),
    var(--bg);
}

.landing-header {
  border-bottom: 1px solid var(--border);
  background: rgba(6, 8, 12, 0.8);
  backdrop-filter: blur(16px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), #e04520);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  color: #fff;
  box-shadow: 0 2px 14px rgba(255, 92, 51, 0.35);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff9a7a;
}

.header-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.88rem;
}

.header-nav a {
  color: var(--text-muted);
}

.header-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.landing-hero {
  padding: 3.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff9a7a;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 34rem;
  line-height: 1.6;
}

.hero-cta {
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.install-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.install-tab {
  flex: 1;
  padding: 0.45rem 0.65rem;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.install-tab.active {
  background: rgba(255, 92, 51, 0.18);
  color: #ffc4b0;
  box-shadow: inset 0 0 0 1px rgba(255, 92, 51, 0.25);
}

.install-panel[hidden] {
  display: none;
}

.cta-label.secondary {
  margin-top: 0.85rem;
  font-size: 0.8rem;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.store-badge {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
}

.store-badge.soon {
  border-color: rgba(126, 184, 255, 0.2);
  color: #9ec5f5;
}

.install-steps-mini {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.install-steps-mini li {
  margin-bottom: 0.35rem;
}

.cta-label {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.bookmarklet {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 92, 51, 0.4);
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: grab;
  transition: background 0.15s, transform 0.15s;
}

.bookmarklet-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.05rem;
  box-shadow: 0 4px 24px rgba(255, 92, 51, 0.2);
}

.bookmarklet:hover {
  background: rgba(255, 92, 51, 0.25);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-text {
  display: block;
  margin-top: 0.75rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.cta-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--success);
}

/* Preview mockup */

.hero-preview {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.preview-window {
  width: 100%;
  max-width: 400px;
  padding: 0;
  background: rgba(12, 16, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(255, 92, 51, 0.08),
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(255, 92, 51, 0.06);
  overflow: hidden;
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.preview-live:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.preview-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border);
}

.preview-chrome-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.preview-chrome-dot:first-child {
  background: #ff5f57;
}

.preview-chrome-dot:nth-child(2) {
  background: #febc2e;
}

.preview-chrome-dot:nth-child(3) {
  background: #28c840;
}

.preview-chrome-brand {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
}

.preview-chrome-mark {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(145deg, var(--accent), #e04520);
  display: grid;
  place-items: center;
  font-size: 0.55rem;
  color: #fff;
}

.preview-window .preview-toolbar,
.preview-window .preview-thread,
.preview-window .preview-feed,
.preview-window .preview-hint {
  padding-left: 1rem;
  padding-right: 1rem;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0;
  padding-top: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.preview-pill {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 92, 51, 0.2);
  color: #ff9a7a;
  border: 1px solid rgba(255, 92, 51, 0.35);
}

.preview-pill[hidden] {
  display: none;
}

.preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.preview-dot.live {
  background: var(--success);
  box-shadow: 0 0 8px rgba(62, 207, 142, 0.6);
  animation: demoPulse 2s ease infinite;
}

.preview-dot.paused {
  background: #6b7c93;
  box-shadow: none;
  animation: none;
}

@keyframes demoPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.preview-thread {
  margin-bottom: 0.75rem;
  padding-top: 0.85rem;
}

.preview-feed {
  padding-bottom: 0.75rem;
  min-height: 140px;
}

.preview-sub {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ff9a7a;
  margin-bottom: 0.35rem;
}

.preview-title {
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.3;
}

.preview-comment {
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.45rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.78rem;
  animation: demoCommentIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  transition: border-color 0.15s, background 0.15s;
  cursor: default;
}

.preview-comment:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

@keyframes demoCommentIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.preview-comment.new {
  border-color: rgba(255, 92, 51, 0.35);
  box-shadow: inset 2px 0 0 var(--accent);
  background: linear-gradient(90deg, rgba(255, 92, 51, 0.08), transparent 40%);
}

.preview-parent {
  display: block;
  margin-bottom: 0.35rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background: rgba(126, 184, 255, 0.06);
  border-left: 2px solid rgba(126, 184, 255, 0.35);
  font-size: 0.68rem;
  line-height: 1.4;
}

.preview-parent-label {
  display: block;
  color: #5c7088;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.58rem;
  margin-bottom: 0.15rem;
}

.preview-parent-body {
  color: var(--text-muted);
  font-style: italic;
}

.preview-hint {
  margin: 0;
  padding: 0.55rem 1rem 0.85rem;
  font-size: 0.68rem;
  color: #5c7088;
  text-align: center;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.preview-badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  margin-right: 0.35rem;
}

.preview-user {
  font-weight: 600;
  margin-right: 0.5rem;
}

.preview-body {
  color: var(--text-muted);
}

/* Sections */

.section {
  padding: 3.5rem 0;
}

.section-muted {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: -0.75rem 0 1.25rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-icon {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.feature p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 92, 51, 0.3);
  font-weight: 700;
  font-size: 0.85rem;
  color: #ff9a7a;
}

.steps strong {
  display: block;
  margin-bottom: 0.2rem;
}

.steps p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.example-card {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.example-label {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.example-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.example-row:last-child {
  border-bottom: none;
}

.example-tab {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  background: rgba(126, 184, 255, 0.12);
  color: var(--link);
}

.code-inline {
  font-family: var(--mono);
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.12rem 0.35rem;
  border-radius: 5px;
}

.faq-group {
  margin-bottom: 2.25rem;
}

.faq-group:last-child {
  margin-bottom: 0;
}

.faq-group-title {
  margin: 0 0 0.65rem;
  padding-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff9a7a;
  border-bottom: 1px solid rgba(255, 92, 51, 0.2);
}

.faq details {
  margin-bottom: 0.35rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.faq details[open] {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.12);
}

.faq details:first-of-type {
  border-top: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  list-style: none;
  padding: 0.9rem 1rem;
  transition: background 0.15s;
}

.faq summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 40rem;
  line-height: 1.55;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-inner p {
  margin: 0;
}

.footer-disclaimer {
  flex: 1;
  min-width: min(100%, 280px);
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.45;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.privacy-page {
  max-width: 42rem;
  padding: 2rem 0 4rem;
}

.privacy-page h1 {
  margin: 0 0 0.35rem;
  font-size: 2rem;
}

.privacy-updated {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 2rem;
}

.privacy-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
}

.privacy-page p {
  color: var(--text-muted);
  line-height: 1.6;
}

.privacy-list {
  color: var(--text-muted);
  line-height: 1.65;
  padding-left: 1.25rem;
}

.privacy-disclaimer {
  margin-top: 2.5rem;
}

.footer-inner a {
  color: var(--text-muted);
  font-size: 0.84rem;
}

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

.bmc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #ffdd00 0%, #f5c400 100%);
  color: #1a1200;
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 4px 18px rgba(255, 221, 0, 0.18),
    0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.bmc-icon {
  flex-shrink: 0;
  opacity: 0.92;
}

.bmc-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 6px 22px rgba(255, 221, 0, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  color: #1a1200;
}

.bmc-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.bmc-btn[hidden] {
  display: none;
}

@media (max-width: 860px) {
  .hero-grid,
  .two-col,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-preview {
    order: -1;
  }

  .preview-window {
    max-width: 100%;
  }

  .landing-hero {
    padding-top: 2rem;
  }

  .header-nav {
    display: none;
  }

  .preview-window {
    transform: none;
  }
}
