/* Prmpt landing page — Catppuccin Mocha, matching the app's default theme */

@font-face {
  font-family: "Prmpt Mono";
  src: url("assets/fonts/PrmptMono-subset.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --crust: #11111b;
  --mantle: #181825;
  --base: #1e1e2e;
  --surface0: #313244;
  --surface1: #45475a;
  --overlay0: #6c7086;
  --subtext: #a6adc8;
  --text: #cdd6f4;
  --rosewater: #f5e0dc;
  --lavender: #b4befe;
  --blue: #89b4fa;
  --sky: #89dceb;
  --green: #a6e3a1;
  --peach: #fab387;
  --mauve: #cba6f7;
  --pink: #f5c2e7;
  --yellow: #f9e2af;

  --mono: "Prmpt Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  /* glow pseudo-elements intentionally overflow their sections */
  overflow-x: clip;
  background: var(--crust);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface0);
  padding: 0.1em 0.4em;
  border-radius: 5px;
}

h1, h2, h3 { font-family: var(--mono); letter-spacing: -0.02em; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  backdrop-filter: blur(12px);
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--crust) 80%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--surface0) 60%, transparent);
  z-index: -1;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.nav-brand:hover { text-decoration: none; }
.nav-brand img { border-radius: 7px; }

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 0.95rem;
}
.nav-links a { color: var(--subtext); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.stars-badge {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--yellow);
  background: color-mix(in srgb, var(--yellow) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--yellow) 25%, transparent);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 4px;
}

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

.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 84px 24px 70px;
  text-align: center;
  overflow: visible;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 880px;
  height: 600px;
  background:
    radial-gradient(ellipse at center,
      color-mix(in srgb, var(--lavender) 16%, transparent) 0%,
      transparent 65%);
  pointer-events: none;
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--overlay0);
  margin: 0 0 22px;
}

.hero-title {
  font-size: clamp(2.1rem, 5.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.18;
  margin: 0;
  color: var(--text);
}

.hero-title .accent { color: var(--lavender); white-space: nowrap; }

.cursor {
  display: inline-block;
  width: 0.52em;
  height: 0.9em;
  margin-left: 0.1em;
  vertical-align: baseline;
  transform: translateY(0.12em);
  background: var(--rosewater);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  max-width: 580px;
  margin: 22px auto 0;
  color: var(--subtext);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.dl-hint {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--overlay0);
  margin: 14px 0 0;
}

.trust-strip {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 0;
  margin: 26px 0 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--subtext);
}

.trust-strip li { display: flex; align-items: center; }

.trust-strip li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  margin-right: 7px;
}

.trust-strip li + li::after { content: none; }
.trust-strip li + li { margin-left: 26px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--lavender);
  color: var(--crust);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--lavender) 30%, transparent);
}
.btn-primary:hover {
  box-shadow: 0 8px 30px color-mix(in srgb, var(--lavender) 45%, transparent);
}

.btn-ghost {
  background: var(--surface0);
  color: var(--text);
  border: 1px solid var(--surface1);
}
.btn-ghost:hover { background: var(--surface1); }

.btn-big {
  font-size: 1.1rem;
  padding: 15px 34px;
  border-radius: 12px;
}

/* ---------- trailer ---------- */

.trailer {
  margin: 60px auto 0;
  max-width: 880px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--base);
  border: 1px solid var(--surface0);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.window-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--mantle);
  border-bottom: 1px solid var(--surface0);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #f38ba8; }
.dot-yellow { background: #f9e2af; }
.dot-green { background: #a6e3a1; }

.window-title {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--overlay0);
  /* offset the three dots so the title sits truly centered */
  margin-right: 52px;
}

.trailer video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--crust);
}

/* ---------- sections ---------- */

section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 24px;
}

section h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  text-align: center;
  margin: 0;
}

.section-sub {
  text-align: center;
  color: var(--subtext);
  margin: 10px 0 0;
}

/* ---------- reveal animation ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- showcase ---------- */

.show-row {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 3fr;
  align-items: center;
  gap: 48px;
  margin-top: 84px;
}

.show-row-flip .show-text { order: 2; }

.show-text h3 {
  font-size: 1.35rem;
  margin: 0 0 12px;
  color: color-mix(in srgb, var(--glow, var(--lavender)) 75%, var(--text));
}

.show-text p {
  margin: 0;
  color: var(--subtext);
  font-size: 1rem;
}

.show-points {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.show-points li {
  position: relative;
  padding-left: 24px;
  margin-top: 10px;
}

.show-points li::before {
  content: "❯";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  color: var(--glow, var(--lavender));
}

.show-row img {
  position: relative;
  width: 100%;
  height: auto;
  /* ambient glow hugs the window shape, so it can't clip at any box edge */
  filter:
    drop-shadow(0 24px 50px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 64px color-mix(in srgb, var(--glow, var(--lavender)) 30%, transparent));
}

@media (max-width: 760px) {
  .show-row {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 56px;
  }
  .show-row-flip .show-text { order: 0; }
}

/* ---------- under the hood ---------- */

.hood-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
  margin: 44px 0 0;
  padding: 0;
}

.hood-grid li {
  background: var(--base);
  border: 1px solid var(--surface0);
  border-radius: 12px;
  padding: 18px 20px;
  color: var(--subtext);
  font-size: 0.92rem;
}

.hood-grid strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 4px;
}

/* ---------- config ---------- */

.config-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 48px;
}

.config-text h2 {
  text-align: left;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
}

.config-window code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.config-text p {
  color: var(--subtext);
  margin: 16px 0 0;
}

.config-window {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--base);
  border: 1px solid var(--surface0);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.config-window pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
}

.t-key { color: var(--blue); }
.t-str { color: var(--green); }
.t-num { color: var(--peach); }
.t-head { color: var(--mauve); font-weight: 700; }

@media (max-width: 820px) {
  .config-grid { grid-template-columns: 1fr; gap: 28px; }
  .config-text h2 { text-align: center; }
  .config-text p { text-align: center; }
}

/* ---------- faq ---------- */

.faq-list {
  max-width: 720px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-list details {
  background: var(--base);
  border: 1px solid var(--surface0);
  border-radius: 12px;
  padding: 0 20px;
  transition: border-color 0.15s ease;
}

.faq-list details[open] { border-color: var(--surface1); }

.faq-list summary {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  color: var(--overlay0);
}

.faq-list details[open] summary::after { content: "–"; }

.faq-list details p {
  margin: 0;
  padding: 0 0 18px;
  color: var(--subtext);
  font-size: 0.95rem;
}

/* ---------- cta band ---------- */

.cta-band {
  text-align: center;
  position: relative;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 10% 10%;
  background: radial-gradient(ellipse at center,
    color-mix(in srgb, var(--lavender) 10%, transparent) 0%,
    transparent 65%);
  pointer-events: none;
}

.cta-band > * { position: relative; }

.cta-alt {
  margin: 18px 0 0;
  font-size: 0.92rem;
}

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

.dl-hero { padding-bottom: 30px; }

.dl-title {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  margin: 0;
  color: var(--lavender);
}

.dl-meta {
  margin: 18px 0 0;
  color: var(--subtext);
  font-size: 1rem;
}

.version-badge {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
  border-radius: 999px;
  padding: 2px 12px;
  margin-right: 4px;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  border: 2px solid var(--surface1);
  border-top-color: var(--lavender);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.recommended { margin-top: 38px; }

.recommended-label {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--subtext);
  margin: 0 0 14px;
}

.recommended-sub {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--overlay0);
  margin: 12px 0 0;
}

.load-error {
  max-width: 480px;
  margin: 34px auto 0;
  padding: 18px 22px;
  background: color-mix(in srgb, #f38ba8 8%, var(--base));
  border: 1px solid color-mix(in srgb, #f38ba8 35%, transparent);
  border-radius: var(--radius);
}
.load-error p { margin: 0; color: var(--text); font-size: 0.95rem; }

.dl-all { padding-top: 30px; }

.os-group { margin-top: 44px; }

.os-group h3 {
  font-size: 1.15rem;
  margin: 0 0 14px;
  color: var(--lavender);
}

.asset-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.asset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--base);
  border: 1px solid var(--surface0);
  border-radius: 12px;
  transition: border-color 0.15s ease;
}
.asset-row:hover { border-color: var(--surface1); }

.asset-info {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.asset-kind { font-weight: 600; }

.asset-arch {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--peach);
  background: color-mix(in srgb, var(--peach) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--peach) 25%, transparent);
  border-radius: 999px;
  padding: 1px 10px;
}

.asset-name {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--overlay0);
  overflow-wrap: anywhere;
}

.btn-small {
  font-size: 0.85rem;
  padding: 8px 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

.dl-footnote {
  margin-top: 40px;
  text-align: center;
  color: var(--overlay0);
  font-size: 0.88rem;
}

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

.footer {
  border-top: 1px solid var(--surface0);
  background: var(--mantle);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-weight: 700;
}
.footer-brand img { border-radius: 5px; }

.footer p {
  margin: 0;
  color: var(--overlay0);
  font-size: 0.88rem;
}
.footer a { color: var(--subtext); }

/* ---------- small screens ---------- */

@media (max-width: 560px) {
  .nav-links { gap: 16px; }
  .hero { padding-top: 56px; }
  section { padding: 56px 20px; }
  .trust-strip { flex-direction: column; align-items: center; }
  .trust-strip li + li { margin-left: 0; }
}
