/* Proxy Scaler landing page — dependency-free, committed dark design */

/* Palette sampled from the app icon: indigo cards #4f46e5 / #312aa8,
   cream print sheet #f3eee2, cut-guide green #00aa50, bg #252342→black */
:root {
  --bg: #0f0e1a;
  --bg-raise: #16142a;
  --bg-card: #1b1935;
  --line: #2a2749;
  --text: #e4e2ef;
  --text-dim: #9b98b8;
  --cream: #f3eee2;
  --accent: #8f88ff;
  --accent-strong: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.16);
  --green: #1cc46e;
  --green-soft: rgba(0, 170, 80, 0.14);
  --radius: 12px;
  --container: 1080px;
}

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

html { scroll-behavior: smooth; }

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1em 0.4em;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; color: var(--cream); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 0.5em; }

section { padding: 72px 0; }

.section-lede {
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 1.5em;
}

/* ---- nav ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 14, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cream);
}
.wordmark img { border-radius: 7px; display: block; }
.wordmark:hover { text-decoration: none; }

.nav nav { display: flex; align-items: center; gap: 22px; }

.nav nav a {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav nav a:hover { color: var(--text); text-decoration: none; }

.nav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 5px 14px;
}
.nav-cta:hover { background: var(--accent-soft); }

/* ---- hero ---- */

.hero { padding: 96px 0 64px; text-align: center; }

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  font-weight: 800;
}

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

.lede {
  color: var(--text-dim);
  font-size: 1.13rem;
  max-width: 620px;
  margin: 1.2em auto 1.6em;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-row.center { justify-content: center; margin-bottom: 2em; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 1rem;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.12); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--bg-raise);
}
.btn-ghost:hover { border-color: var(--text-dim); }

.hero-note {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-top: 1.4em;
}

.hero-shot { margin-top: 48px; }

.hero-shot img,
.gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

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

.steps { background: var(--bg-raise); border-block: 1px solid var(--line); }
.steps h2 { text-align: center; margin-bottom: 1.4em; }

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
  margin-bottom: 14px;
}

.step h3 { font-size: 1.08rem; margin-bottom: 0.5em; }
.step p { color: var(--text-dim); font-size: 0.95rem; }

/* ---- features ---- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 2em;
}

.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: linear-gradient(180deg, var(--bg-card), var(--bg));
}

.feature h3 { font-size: 1.05rem; margin-bottom: 0.5em; }
.feature p { color: var(--text-dim); font-size: 0.95rem; }

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

.gallery { background: var(--bg-raise); border-block: 1px solid var(--line); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.gallery-grid figure:last-child { grid-column: 1 / -1; justify-self: center; max-width: 460px; }

.gallery figcaption {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-top: 10px;
  text-align: center;
}

/* ---- download ---- */

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  align-items: start;
  margin-top: 2em;
}

.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.dl-card h3 { font-size: 1.15rem; margin-bottom: 4px; }

.dl-row { padding-top: 16px; }
.dl-row + .dl-row { border-top: 1px solid var(--line); margin-top: 16px; }

.dl-gpu {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 10px;
}
.dl-gpu code { margin-left: 4px; }

.dl-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-sm { padding: 8px 16px; font-size: 0.9rem; }

.btn-disabled {
  border: 1px dashed var(--line);
  color: var(--text-dim);
  background: none;
  cursor: default;
}

.dl-all { margin-top: 2em; }

.fine { color: var(--text-dim); font-size: 0.85rem; margin-top: 1.4em; }

/* ---- community ---- */

.community { text-align: center; }
.community .section-lede { margin-inline: auto; }

/* ---- footer ---- */

footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

footer .fine { max-width: 720px; margin: 1em auto 0; }

/* ---- responsive ---- */

@media (max-width: 720px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid figure:last-child { max-width: 100%; }
  section { padding: 56px 0; }
  .hero { padding: 72px 0 48px; }
}
