/* SPDX-License-Identifier: AGPL-3.0-only */
/* Copyright (C) 2026 Gokhan OZGEZER */
/* Mongo Manager's landing page: one stylesheet, no web font, the app's own green. */
:root {
  --bg: #f7faf8;
  --bg-alt: #eef4f1;
  --surface: #ffffff;
  --text: #0f1a15;
  --text-muted: #4b5d55;
  --border: #d8e3dd;
  --accent: #047a4d;
  --accent-hover: #03673f;
  --accent-2: #10b981;
  --accent-text: #ffffff;
  --accent-soft: #e7f5ee;
  --accent-fg: #047a4d;
  --code-bg: #e9f0ec;
  --shadow: 0 18px 40px -18px rgb(6 40 28 / 0.35);
  --radius: 14px;
}
:root[data-theme='dark'] {
  --bg: #07110d;
  --bg-alt: #0b1813;
  --surface: #0f1f19;
  --text: #e3eee8;
  --text-muted: #93a69d;
  --border: #1f3329;
  --accent: #059669;
  --accent-hover: #047857;
  --accent-2: #34d399;
  --accent-soft: #0f2a1f;
  --accent-fg: #6ee7b7;
  --code-bg: #13241c;
  --shadow: 0 22px 50px -20px rgb(0 0 0 / 0.7);
}
@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] {
    --bg: #07110d;
    --bg-alt: #0b1813;
    --surface: #0f1f19;
    --text: #e3eee8;
    --text-muted: #93a69d;
    --border: #1f3329;
    --accent: #059669;
    --accent-hover: #047857;
    --accent-2: #34d399;
    --accent-soft: #0f2a1f;
    --accent-fg: #6ee7b7;
    --code-bg: #13241c;
    --shadow: 0 22px 50px -20px rgb(0 0 0 / 0.7);
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    'Noto Sans',
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
:lang(zh),
:lang(ja),
:lang(ko) {
  line-height: 1.75;
}
img,
video {
  max-width: 100%;
  display: block;
}
a {
  color: var(--accent-fg);
}
a:hover {
  text-decoration-thickness: 2px;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}
h3 {
  font-size: 1.08rem;
}
p {
  margin: 0 0 1em;
}
code {
  font-family: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 0.12em 0.4em;
  border-radius: 6px;
}
:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.muted {
  color: var(--text-muted);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--accent);
  color: var(--accent-text);
  padding: 10px 16px;
  border-radius: 10px;
}
.skip:focus {
  top: 12px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 640px) {
  .container {
    padding: 0 32px;
  }
}
.narrow {
  max-width: 860px;
}
section {
  padding: 84px 0;
}
section.alt {
  background: var(--bg-alt);
}
.section-lead {
  color: var(--text-muted);
  max-width: 46rem;
  font-size: 1.08rem;
  margin-bottom: 2.2rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  white-space: nowrap;
}
@media (max-width: 480px) {
  /* Above the select's own rule further down, so the header's narrows it. */
  .header-tools .lang-select {
    max-width: 7.5rem;
  }
  .header-inner {
    gap: 10px;
  }
}
.main-nav {
  display: none;
  gap: 22px;
  margin-left: 12px;
}
.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.main-nav a:hover {
  color: var(--text);
}
@media (min-width: 960px) {
  .main-nav {
    display: flex;
  }
}
.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-select {
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  max-width: 11rem;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}
.icon-btn:hover {
  background: var(--surface);
  border-color: var(--border);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn svg.i-fill {
  fill: currentColor;
  stroke: none;
}
.icon-btn .i-sun,
.icon-btn .i-moon {
  display: none;
}
:root[data-theme='light'] #theme-toggle .i-auto,
:root[data-theme='dark'] #theme-toggle .i-auto {
  display: none;
}
:root[data-theme='light'] #theme-toggle .i-sun {
  display: block;
}
:root[data-theme='dark'] #theme-toggle .i-moon {
  display: block;
}
@media (max-width: 420px) {
  #gh-link {
    display: none;
  }
}

/* Hero */
.hero {
  padding: 72px 0 84px;
  background:
    radial-gradient(
      60% 60% at 85% 10%,
      color-mix(in srgb, var(--accent-2) 16%, transparent),
      transparent 70%
    ),
    radial-gradient(50% 60% at 0% 30%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}
.hero-inner {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1000px) {
  .hero-inner {
    grid-template-columns: 5fr 7fr;
  }
}
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-fg);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent-2) 30%, transparent);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 0.4em;
}
.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 34rem;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition:
    transform 0.12s ease,
    background-color 0.12s ease,
    box-shadow 0.12s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent-2);
}
.meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Screenshots: the light picture, or the dark one in the dark theme. */
.shot {
  margin: 0;
  position: relative;
}
.shot img {
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
  cursor: zoom-in;
}
.shot .shot-dark {
  display: none;
}
:root[data-theme='dark'] .shot .shot-light {
  display: none;
}
:root[data-theme='dark'] .shot .shot-dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] .shot .shot-light {
    display: none;
  }
  :root[data-theme='auto'] .shot .shot-dark {
    display: block;
  }
}
.shot figcaption {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.shot-grid {
  display: grid;
  gap: 34px 28px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
}
/* The AI agent first, across the whole row. */
.shot-grid .shot-wide {
  grid-column: 1 / -1;
}

/* AI */
.ai-inner {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1000px) {
  .ai-inner {
    grid-template-columns: 5fr 7fr;
  }
}
.ai-inner .checklist {
  margin-top: 8px;
}

/* Features */
.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.feature p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.97rem;
}
.ficon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-fg);
  margin-bottom: 14px;
}
.ficon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Tour */
.tour {
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.tour-row {
  display: grid;
  gap: 24px;
  align-items: center;
}
@media (min-width: 900px) {
  .tour-row {
    grid-template-columns: 4fr 8fr;
    gap: 48px;
  }
  /* Every other row has its words on the right: the clip keeps the wide column. */
  .tour-row:nth-child(even) {
    grid-template-columns: 8fr 4fr;
  }
  .tour-row:nth-child(even) .tour-copy {
    order: 2;
  }
}
.tour-copy p {
  color: var(--text-muted);
  font-size: 1.05rem;
}
.tour-copy h3 {
  font-size: 1.4rem;
}
.clip-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
  aspect-ratio: 16 / 10;
}
.clip {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.clip-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: rgb(4 17 12 / 0.72);
  color: #fff;
}
.clip-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.clip-toggle .i-play {
  fill: currentColor;
  stroke: none;
}
.clip-toggle .i-pause {
  display: none;
}
.clip-toggle[aria-pressed='true'] .i-play {
  display: none;
}
.clip-toggle[aria-pressed='true'] .i-pause {
  display: block;
}

/* Security */
.two-col {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.checklist li {
  position: relative;
  padding: 16px 18px 16px 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 18px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

/* Install */
.tab-list {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.tab-list button {
  font: inherit;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: 0;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab-list button[aria-selected='true'] {
  color: var(--text);
  border-bottom-color: var(--accent-2);
}
[role='tabpanel'] {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.code {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--code-bg);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.code code {
  background: none;
  padding: 0;
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
}
.copy {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.copy:hover {
  border-color: var(--accent-2);
}
.then {
  margin-top: 22px;
  color: var(--text-muted);
}

/* FAQ */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 18px;
  margin-bottom: 12px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
}
details p {
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 0.92rem;
}
.footer-inner p {
  margin: 0 0 6px;
}

/* Lightbox */
#lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
}
#lightbox::backdrop {
  background: rgb(2 8 6 / 0.88);
  backdrop-filter: blur(4px);
}
.lb-figure {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 72px 24px;
}
.lb-figure img {
  max-height: calc(100vh - 140px);
  width: auto;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.6);
}
.lb-figure figcaption {
  color: #e3eee8;
  margin-top: 14px;
  text-align: center;
}
.lb-figure .muted {
  color: #93a69d;
}
.lb-btn {
  position: fixed;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
}
.lb-btn:hover {
  background: rgb(255 255 255 / 0.22);
}
.lb-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lb-close {
  top: 16px;
  right: 16px;
}
.lb-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.lb-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}
@media (max-width: 640px) {
  .lb-figure {
    padding: 64px 12px 24px;
  }
  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 16px;
    transform: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  #lightbox[open] .lb-figure img {
    animation: lb-in 0.18s ease-out;
  }
  @keyframes lb-in {
    from {
      opacity: 0;
      transform: scale(0.98);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
