/*
 * startux.app — hand-rolled landing page styles. No framework, no build
 * step. The palette mirrors the app's dark theme (web/src/theme.css).
 */

:root {
  --bg: #0e1117;
  --bg-sidebar: #12161f;
  --bg-card: #171c26;
  --bg-card-hover: #1b212d;
  --bg-input: #0e1219;
  --border: #262e3d;
  --border-strong: #333d50;
  --text: #e7ebf2;
  --text-dim: #98a2b3;
  --text-faint: #6b7688;
  --accent: #4f8cff;
  --accent-hover: #6ba1ff;
  --accent-soft: rgba(79, 140, 255, 0.14);
  --success: #3ecf8e;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- Links & focus ----------------------------------------------------- */

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

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ---- Header ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(18, 22, 31, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 5;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand:hover {
  color: var(--accent-hover);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 2px;
}

.nav-links a:hover {
  color: var(--text);
}

/* ---- Hero -------------------------------------------------------------- */

.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(700px 320px at 50% -60px, var(--accent-soft), transparent),
    var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.pitch {
  max-width: 62ch;
  margin: 0 auto 32px;
  color: var(--text-dim);
  font-size: 1.12rem;
}

.install-cmd {
  display: inline-block;
  max-width: 100%;
  margin: 0 auto;
  padding: 14px 22px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.install-cmd code {
  font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 1rem;
  color: var(--success);
  white-space: nowrap;
}

.cmd-note {
  max-width: 56ch;
  margin: 18px auto 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.hero-points li::before {
  content: "✓";
  color: var(--success);
  margin-right: 8px;
}

/* ---- Sections ---------------------------------------------------------- */

.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 12px;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.section-intro {
  margin: 0 0 32px;
  color: var(--text-dim);
  max-width: 70ch;
}

.mono {
  font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* ---- Feature cards ----------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 650;
  color: var(--accent-hover);
}

.card p {
  margin: 0;
  color: var(--text-dim);
}

.card strong {
  color: var(--text);
}

/* ---- Distro strip -------------------------------------------------------- */

.distro-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.distro-strip li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
}

.distro-strip strong {
  display: block;
  margin-bottom: 2px;
}

.distro-strip span {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.atomic-card {
  margin-bottom: 16px;
}

.distro-note {
  margin: 0;
  max-width: 70ch;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---- FAQ ----------------------------------------------------------------- */

.faq {
  max-width: 78ch;
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.faq summary {
  position: relative;
  cursor: pointer;
  padding: 16px 52px 16px 20px;
  font-weight: 650;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 14px;
  color: var(--accent-hover);
  font-size: 1.25rem;
  font-weight: 500;
}

.faq details[open] summary::after {
  content: "−";
}

.faq summary:hover {
  color: var(--accent-hover);
}

.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-dim);
}

.privacy-table-wrap {
  margin: 0 20px 18px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.privacy-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.45;
}

.privacy-table th,
.privacy-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.privacy-table th {
  color: var(--text);
  background: var(--bg-input);
  font-weight: 650;
}

.privacy-table tr:last-child td {
  border-bottom: 0;
}

/* ---- Screenshot gallery ------------------------------------------------ */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 20px;
}

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.shot figcaption {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ---- Install steps ----------------------------------------------------- */

.steps {
  margin: 0 0 24px;
  padding-left: 22px;
  color: var(--text-dim);
  max-width: 70ch;
}

.steps li {
  margin-bottom: 10px;
}

.steps li::marker {
  color: var(--accent);
  font-weight: 700;
}

#install p,
#open-source p {
  max-width: 70ch;
  color: var(--text-dim);
}

/* ---- Footer ------------------------------------------------------------ */

.site-footer {
  padding: 28px 0 36px;
  color: var(--text-faint);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

/* ---- Responsive & motion ----------------------------------------------- */

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .section {
    padding: 48px 0;
  }

  .gallery {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card {
    transition: none;
  }
}
