/*
 * aoiops.dev landing page — no-build static styling.
 * Theme tokens + nebula/glass/glow lifted verbatim from the dashboard
 * (apps/dashboard/src/index.css) so the site matches the product exactly.
 */

:root {
  --color-bg: #00020b;
  --color-surface: #060a16;
  --color-fg: #fefefe;
  --color-muted: #8a93a6;
  --color-cy: #71f0f7;
  --color-vi: #cb99f8;
  --color-az: #2cbcf1;
  --color-danger: #ff5c7a;
  --color-warn: #ffc15e;

  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--color-fg);
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* ---- Neon scrollbars (matches the dashboard) ---- */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(113, 240, 247, 0.3) transparent;
}
*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
*::-webkit-scrollbar-thumb {
  background: rgba(113, 240, 247, 0.28);
  border-radius: 9px;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(113, 240, 247, 0.45);
}

/* ---- Fixed background layer (nebula + dot grid), same look as the app shell ---- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.nebula,
.grid-dots {
  position: absolute;
  inset: 0;
}
.nebula {
  background-image:
    radial-gradient(60% 50% at 82% -5%, rgba(203, 153, 248, 0.2), transparent 60%),
    radial-gradient(55% 45% at 5% 105%, rgba(44, 188, 241, 0.18), transparent 60%),
    radial-gradient(45% 40% at 50% 40%, rgba(113, 240, 247, 0.07), transparent 70%);
}
.grid-dots {
  background-image: radial-gradient(rgba(113, 240, 247, 0.1) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.6;
}

/* ---- Neon glow helpers ---- */
.text-glow-cy {
  text-shadow: 0 0 14px rgba(113, 240, 247, 0.65);
}
.cy {
  color: var(--color-cy);
}

/* ---- Frosted glass surface ---- */
.glass {
  background: rgba(120, 170, 210, 0.055);
  border: 1px solid rgba(113, 240, 247, 0.18);
  border-radius: 14px;
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  box-shadow:
    0 0 34px rgba(113, 240, 247, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ---- Layout: centered column, mirroring the dashboard About page ---- */
.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: clamp(2.6rem, 7vw, 3.8rem);
  line-height: 1;
}

.tagline {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.lede {
  margin: 0.4rem 0 0;
  max-width: 60ch;
  color: rgba(254, 254, 254, 0.8);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- aoiops.dev pill (violet accent — adds depth while there's no logo yet) ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--color-vi);
  border: 1px solid rgba(203, 153, 248, 0.3);
  background: rgba(203, 153, 248, 0.06);
  transition:
    border-color 0.15s,
    background 0.15s;
}
.pill:hover {
  border-color: rgba(203, 153, 248, 0.55);
  background: rgba(203, 153, 248, 0.12);
}
.pill svg {
  width: 15px;
  height: 15px;
}

/* ---- Social / brand marks (inert placeholders, like About) ---- */
.socials {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  color: var(--color-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.15s;
}
.social:hover {
  color: rgba(254, 254, 254, 0.7);
}
.social svg {
  width: 16px;
  height: 16px;
}

/* ---- Install panel ---- */
.install {
  width: min(36rem, 100%);
  margin-top: 0.6rem;
  padding: 1rem 1.1rem 1.1rem;
  text-align: left;
}
.install-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}
.install-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-fg);
}

.os-toggle {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.os-toggle button {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 7px;
  font: inherit;
  font-size: 0.72rem;
  color: var(--color-muted);
  background: transparent;
  transition:
    color 0.15s,
    background 0.15s;
}
.os-toggle button:hover {
  color: var(--color-fg);
}
.os-toggle button.active {
  color: var(--color-cy);
  background: rgba(113, 240, 247, 0.1);
  box-shadow: inset 0 0 0 1px rgba(113, 240, 247, 0.35);
}

.cmd {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: var(--color-surface);
  border: 1px solid rgba(113, 240, 247, 0.15);
}
.cmd[hidden] {
  display: none;
}
.cmd code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-fg);
}
.cmd code::before {
  content: "$ ";
  color: var(--color-cy);
}
.cmd .copy {
  flex: none;
  appearance: none;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 7px;
  font: inherit;
  font-size: 0.72rem;
  color: var(--color-cy);
  background: rgba(113, 240, 247, 0.08);
  border: 1px solid rgba(113, 240, 247, 0.3);
  transition:
    background 0.15s,
    color 0.15s;
}
.cmd .copy:hover {
  background: rgba(113, 240, 247, 0.16);
}
.cmd .copy.copied {
  color: var(--color-bg);
  background: var(--color-cy);
  border-color: var(--color-cy);
}

.hint {
  margin: 0.7rem 0 0;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--color-muted);
}

/* ---- Facts strip ---- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  width: 100%;
  max-width: 32rem;
}
.fact {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
  border-radius: 12px;
  padding: 0.65rem 0.5rem;
}
.fact-k {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}
.fact-v {
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-fg);
}

.foot {
  margin: 0.4rem 0 0;
  font-size: 0.68rem;
  color: var(--color-muted);
}

@media (max-width: 460px) {
  .facts {
    grid-template-columns: 1fr;
    max-width: 20rem;
  }
  .install-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
