/* ---------------------------------------------------------------------------
   WinLLM — shared styles
   Dark, Fluent-inspired: mica-like glows, soft surfaces, Win11 accent blue.
   No frameworks, no build step. Cloudflare Pages-ready.
--------------------------------------------------------------------------- */

:root {
  --bg: #101014;
  --bg-soft: #16161c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-soft: rgba(255, 255, 255, 0.06);
  --text: #f2f2f6;
  --text-2: #a9a9b8;
  --text-3: #7c7c8c;
  --accent: #4cc2ff;
  --accent-dim: #2a7fa8;
  --radius: 10px;
  --font: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI",
    system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Faint mica-style glow behind the top of every page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52rem 30rem at 50% -12rem, rgba(76, 194, 255, 0.13), transparent 65%),
    radial-gradient(40rem 26rem at 82% 8rem, rgba(140, 100, 255, 0.07), transparent 70%),
    var(--bg);
}

::selection { background: rgba(76, 194, 255, 0.32); }

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

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

.wrap {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(16, 16, 20, 0.72);
  border-bottom: 1px solid var(--stroke-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.45rem;
  background: linear-gradient(135deg, #4cc2ff 0%, #8c64ff 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 2px 10px rgba(76, 194, 255, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.92rem;
}

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

.footer {
  border-top: 1px solid var(--stroke-soft);
  padding: 2.25rem 0 3rem;
  margin-top: 6rem;
  color: var(--text-3);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }

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

.hero {
  padding: 5.5rem 0 3rem;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--stroke);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.4rem 1rem;
}

.eyebrow .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 1.75rem auto 1.25rem;
  max-width: 18ch;
  text-wrap: balance;
}

.hero .lede {
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  color: var(--text-2);
  max-width: 44rem;
  margin: 0 auto;
  text-wrap: pretty;
}

.status {
  margin-top: 2.25rem;
  font-size: 0.9rem;
  color: var(--text-3);
}

.status em { font-style: normal; color: var(--text-2); }

/* ------------------------------------------------------- screenshot window */

.shot-section { padding: 2rem 0 1rem; }

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
  margin: 0 0 1.75rem;
}

.window {
  max-width: 52rem;
  margin: 0 auto;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    var(--bg-soft);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 30px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.4);
}

.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2.5rem;
  padding: 0 0.35rem 0 1rem;
  border-bottom: 1px solid var(--stroke-soft);
  background: rgba(255, 255, 255, 0.03);
  user-select: none;
}

.titlebar .app-name {
  font-size: 0.8rem;
  color: var(--text-3);
}

.win-glyphs {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.win-glyphs span {
  display: grid;
  place-items: center;
  width: 2.75rem;
  color: var(--text-3);
  font-size: 0.72rem;
}
.win-glyphs span:last-child:hover { background: #c42b1c; color: #fff; }

/* The slot itself — swap the placeholder for an <img> when the shot exists */
.shot {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.shot .placeholder {
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: calc(var(--radius) - 3px);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.4rem;
  text-align: center;
  color: var(--text-3);
  background:
    radial-gradient(30rem 14rem at 50% 0%, rgba(76, 194, 255, 0.05), transparent 70%);
}

.shot .placeholder .big { font-size: 0.95rem; color: var(--text-2); }
.shot .placeholder .small { font-size: 0.78rem; }

.shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: calc(var(--radius) - 3px);
  display: block;
}

.shot-caption {
  text-align: center;
  color: var(--text-3);
  font-size: 0.88rem;
  margin-top: 1.25rem;
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 3.5rem 0 0;
}

@media (max-width: 44rem) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  border: 1px solid var(--stroke-soft);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.93rem;
}

/* -------------------------------------------------------------- privacy page */

.article {
  max-width: 46rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 2rem;
}

.article-header { margin-bottom: 3rem; }

.article-header h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}

.article-header .meta {
  color: var(--text-3);
  font-size: 0.92rem;
}

.article h2 {
  font-size: 1.12rem;
  font-weight: 600;
  margin: 2.75rem 0 0.85rem;
  letter-spacing: 0.005em;
}

.article p, .article ul { color: var(--text-2); font-size: 0.97rem; }
.article p { margin: 0 0 1rem; }
.article ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.article li { margin: 0.35rem 0; }
.article li::marker { color: var(--text-3); }
.article strong { color: var(--text); font-weight: 600; }

.article code {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.85em;
  background: var(--surface-strong);
  border: 1px solid var(--stroke-soft);
  border-radius: 5px;
  padding: 0.12em 0.4em;
  color: var(--text);
}

.placeholder-flag {
  background: rgba(76, 194, 255, 0.12);
  border-bottom: 1px dashed var(--accent);
  padding: 0 0.2em;
  border-radius: 3px;
}

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

.reveal {
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.26s; }
.reveal.d4 { animation-delay: 0.4s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  .eyebrow .dot { animation: none; }
}
