/* vgent.dev — the anyOS page and About us, in the manner of an academic lab page: a pale ground, very large type,
   numbered sections, hairlines, one italic word where the voice leans. The phosphor green of anyOS is the only colour.
   Light or dark as the visitor's system says, until they press the switch. The first-boot replay is a picture of
   the product, so it keeps anyOS's own colours (--os-*). About us adds about/about.css. */

:root {
  --ground: #e2ebf4;
  --panel: #f6f8f9;
  --ink: #111312;
  --ink-2: #4a4f4c;
  --ink-3: #8b8f8c;
  --faint: #b9bcb8;
  --hair: #c2d0dc;
  --accent: #0f8055;
  --term: #0c1014;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1280px;
  /* anyOS itself, light */
  --os-ground: #dde8f2; --os-panel: #f6f8f9; --os-raised: #e4ecf3; --os-hair: #c2d0dc; --os-hair-soft: #d0dce7; --os-hair-active: #a8b9c7;
  --os-text: #14202a; --os-text-2: #3f4f59; --os-text-3: #6b7b85; --os-live: #0f8055; --os-on-live: #f6f8f9;
  --os-glow: rgba(15, 128, 85, .10); --os-glow-strong: rgba(15, 128, 85, .35);
}
:root[data-theme="dark"] {
  --ground: #0c1014; --panel: #10161b; --ink: #e4ebef; --ink-2: #a9b7c0; --ink-3: #6f7f8a; --faint: #3a4a55; --hair: #223039; --accent: #3ddc97;
  --term: #10161b;
  --os-ground: #0c1014; --os-panel: #10161b; --os-raised: #172029; --os-hair: #223039; --os-hair-soft: #1a242c; --os-hair-active: #2e404b;
  --os-text: #d7e0e6; --os-text-2: #a9b7c0; --os-text-3: #7d8d98; --os-live: #3ddc97; --os-on-live: #0c1014;
  --os-glow: rgba(61, 220, 151, .16); --os-glow-strong: rgba(61, 220, 151, .55);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0c1014; --panel: #10161b; --ink: #e4ebef; --ink-2: #a9b7c0; --ink-3: #6f7f8a; --faint: #3a4a55; --hair: #223039; --accent: #3ddc97;
    --term: #10161b;
    --os-ground: #0c1014; --os-panel: #10161b; --os-raised: #172029; --os-hair: #223039; --os-hair-soft: #1a242c; --os-hair-active: #2e404b;
    --os-text: #d7e0e6; --os-text-2: #a9b7c0; --os-text-3: #7d8d98; --os-live: #3ddc97; --os-on-live: #0c1014;
    --os-glow: rgba(61, 220, 151, .16); --os-glow-strong: rgba(61, 220, 151, .55);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; transition: background .2s ease, color .2s ease; }
/* by day the page itself is sky, deeper blue at the top; at night the ground. The sky.js canvases sit behind it. */
body { background: linear-gradient(#c3d8ed, #e2ebf4) fixed; }
:root[data-theme="dark"] body { background: var(--ground); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body { background: var(--ground); } }
.stars, .clouds { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; transition: opacity .2s ease; }
.stars { opacity: 0; }
:root[data-theme="dark"] .stars { opacity: 1; }
:root[data-theme="dark"] .clouds { opacity: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stars { opacity: 1; }
  :root:not([data-theme="light"]) .clouds { opacity: 0; }
}
a { color: inherit; text-underline-offset: 3px; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.mono { font-family: var(--mono); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 2.5rem; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(8px); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 64px; }
.mark { font-family: var(--mono); font-size: .95rem; text-decoration: none; display: flex; align-items: center; gap: .6rem; white-space: nowrap; }
.mark b { color: var(--accent); font-weight: 500; }
.nav { display: flex; gap: 2rem; font-size: .95rem; }
.nav a { text-decoration: none; white-space: nowrap; }
.nav a sup { font-family: var(--mono); font-size: .6rem; color: var(--ink-3); margin-right: .25rem; }
.nav a:hover { color: var(--accent); }
.theme { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hair); background: none; color: var(--ink); cursor: pointer; font-size: .9rem; }
.theme:hover { border-color: var(--ink-3); }

/* numbered sections: a label and a heading at the side, the matter beside them */
.sec { border-top: 1px solid var(--hair); padding: 6rem 0; }
.sec > .wrap { display: grid; grid-template-columns: 1fr 2.4fr; gap: 3rem; }
.idx { display: flex; align-items: center; gap: .7rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 1.2rem; }
.idx span { border: 1px solid var(--ink-3); padding: .05rem .35rem; color: var(--ink); }
.sec > .wrap.full { display: block; margin-top: 3.5rem; }
.side h2 { font-size: 1.45rem; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; margin: 0; }
.big { font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.18; letter-spacing: -.025em; color: var(--ink-3); margin: 0; }
.big strong { color: var(--ink); font-weight: 400; }

.pill { display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.4rem; border-radius: 999px; background: var(--ink); color: var(--ground);
  border: 1px solid var(--ink); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.pill:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill.ghost { background: none; color: var(--ink); border-color: var(--hair); }
.pill.ghost:hover { border-color: var(--ink); background: none; color: var(--ink); }

footer { border-top: 1px solid var(--hair); padding: 2.5rem 0 3rem; color: var(--ink-3); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer nav { display: flex; gap: 1.5rem; }
footer a { text-decoration: none; }
footer a:hover { color: var(--accent); }

/* Home ------------------------------------------------------------------------------------------------------- */
.hero-top { padding-top: 4.5rem; padding-bottom: 3.5rem; }
.home h1 { font-size: clamp(3.4rem, 8.4vw, 7.6rem); line-height: .94; letter-spacing: -.05em; font-weight: 500; margin: 0; }
.home h1 span { display: block; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; padding-bottom: 4.5rem; }
.hero-foot p { max-width: 32rem; margin: 0; color: var(--ink-2); font-size: 1.1rem; }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* a figure, labelled the way a paper labels one */
.figure { padding-bottom: 6rem; }
.fig-label { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); padding: .8rem 0; border-top: 1px solid var(--hair); }

/* the first-boot replay: the welcome screen's own layout, in anyOS's colours */
.boot {
  position: relative; height: 560px; overflow: hidden; display: flex; align-items: center; justify-content: center;
  color: var(--os-text);
  background:
    linear-gradient(var(--os-hair-soft) 1px, transparent 1px) -1px -1px / 96px 96px,
    linear-gradient(90deg, var(--os-hair-soft) 1px, transparent 1px) -1px -1px / 96px 96px,
    var(--os-ground);
  border: 1px solid var(--ink);
  transition: opacity .6s ease;
}
.boot.fading { opacity: 0; }
.boot-glow {
  position: absolute; left: 50%; bottom: -60%; width: 140%; height: 100%; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--os-glow) 0%, transparent 60%);
  filter: blur(30px); animation: boot-drift 26s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes boot-drift { from { opacity: .7; transform: translateX(-56%); } to { opacity: 1; transform: translateX(-44%); } }
.boot-hello { position: absolute; font-size: clamp(40px, 7vw, 88px); letter-spacing: -.02em; color: var(--os-live); opacity: 0; animation: boot-hello 2.6s ease forwards; }
@keyframes boot-hello { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: 1; transform: none; } 78% { opacity: 1; } 100% { opacity: 0; } }
.boot.talking .boot-hello { display: none; }
.boot:not(.talking) .boot-hello { animation-name: boot-hello; }
.boot-stage { position: relative; width: min(480px, calc(100% - 48px)); }
.boot-step { display: flex; flex-direction: column; gap: 12px; animation: boot-rise .7s ease; }
@keyframes boot-rise { from { opacity: 0; transform: translateY(10px); } }
.boot-q { font-size: clamp(22px, 3vw, 30px); font-weight: 400; letter-spacing: -.01em; line-height: 1.3; margin: 0 0 10px; }
.boot-input { padding: 12px 14px; font-size: 16px; min-height: 48px; background: var(--os-ground); border: 1px solid var(--os-hair); }
.boot-input:empty::before { content: attr(data-placeholder); color: var(--os-text-3); }
.boot-input.focus { border-color: var(--os-live); }
.boot-input.focus::after { content: ""; display: inline-block; width: 1px; height: 1.1em; margin-left: 1px; vertical-align: -2px; background: var(--os-live); animation: boot-caret 1s steps(1) infinite; }
@keyframes boot-caret { 50% { opacity: 0; } }
.boot-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.boot-option { display: flex; flex-direction: column; gap: 10px; font-size: 14px; font-weight: 500; padding: 14px 16px 12px;
  background: var(--os-panel); border: 1px solid var(--os-hair); color: var(--os-text); transition: border-color .15s ease, background .15s ease; }
.boot-option svg { color: var(--os-text-3); }
.boot-option.on { background: var(--os-raised); border-color: var(--os-live); }
.boot-option.on svg { color: var(--os-live); }
.boot-mark { font-family: var(--mono); font-size: 20px; line-height: 1; color: var(--os-text-2); }
.boot-note { margin: -6px 0 4px; font-size: 13px; color: var(--os-text-3); }
.boot-continue { align-self: flex-start; margin-top: 4px; font-size: 12px; color: var(--os-live); padding: 9px 16px; border: 1px solid var(--os-live);
  transition: background .15s ease, color .15s ease; }
.boot-continue.pressed { background: var(--os-live); color: var(--os-on-live); }
.boot-sweep { position: relative; height: 1px; margin-top: 24px; overflow: hidden; background: var(--os-hair-soft); }
.boot-sweep span { position: absolute; top: 0; bottom: 0; left: 0; width: 26%; background: linear-gradient(90deg, transparent, var(--os-live) 50%, transparent);
  filter: drop-shadow(0 0 6px var(--os-glow-strong)); animation: boot-sweep 1.9s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes boot-sweep { from { transform: translateX(-110%); } to { transform: translateX(420%); } }
.boot.still .boot-sweep span { animation: none; opacity: .5; }

/* what it does: numbered rows, a few lines beside a picture of the real thing */
.uses { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.use { display: grid; grid-template-columns: 1fr 1.7fr; gap: 3rem; align-items: center; padding: 3.5rem 0; border-bottom: 1px solid var(--hair); }
.use-num { font-family: var(--mono); font-size: .75rem; color: var(--ink-3); margin: 0 0 1.4rem; }
.use h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 1rem; }
.use p { color: var(--ink-2); margin: 0 0 1rem; }
.use .aside { font-size: .95rem; color: var(--ink-3); padding-left: .9rem; border-left: 1px solid var(--accent); margin: 0; }
.use picture { display: block; }
.use img { display: block; width: 100%; height: auto; border: 1px solid var(--ink); }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 460px; justify-self: center; }

/* three facts, as cards on a hairline grid */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 4rem; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.fact { position: relative; padding: 2rem 2rem 2.2rem 0; }
.fact + .fact { padding-left: 2rem; border-left: 1px solid var(--hair); }
.fact .n { position: absolute; top: 1.2rem; right: 1.2rem; font-family: var(--mono); font-size: .7rem; color: var(--ink-3); }
.fact .sym { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 .5rem; margin-bottom: 1.6rem;
  border: 1px solid var(--ink); font-family: var(--mono); font-size: 1rem; }
.fact h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -.015em; margin: 0 0 .5rem; }
.fact p { color: var(--ink-2); margin: 0; }

/* try it */
.install p { color: var(--ink-2); margin: 0 0 1rem; max-width: 40rem; }
.install .quiet { font-size: .95rem; color: var(--ink-3); }
.terminal { background: var(--term); color: #d7e0e6; border-left: 2px solid #3ddc97; padding: 1.4rem 1.6rem; overflow-x: auto;
  font-family: var(--mono); font-size: .95rem; line-height: 1.8; margin: 1.6rem 0; }

@media (max-width: 860px) {
  .wrap { padding: 0 1.25rem; }
  .nav { display: none; }
  .bar .wrap { height: 56px; }
  .sec { padding: 4rem 0; }
  .sec > .wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-top { padding-top: 2.5rem; padding-bottom: 2rem; }
  .hero-foot { flex-direction: column; align-items: flex-start; padding-bottom: 3rem; }
  .figure { padding-bottom: 4rem; }
  .boot { height: 600px; }
  .use { grid-template-columns: 1fr; gap: 1.6rem; padding: 2.5rem 0; }
  /* a desktop picture shrunk to a phone's width is unreadable: show the part that matters at about its real size
     (each picture sets --zoom and the --x/--y shift of its crop) */
  .use picture.crop { overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--ink); }
  .use picture.crop img { width: var(--zoom); max-width: none; transform: translate(var(--x), var(--y)); border: 0; }
  .facts { grid-template-columns: 1fr; margin-top: 2.5rem; }
  .fact, .fact + .fact { padding: 1.6rem 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--hair); }
  .terminal { font-size: .8rem; padding: 1rem 1.1rem; white-space: pre-wrap; }   /* wrap only at spaces, never inside the URL */
}
@media (prefers-reduced-motion: reduce) {
  .boot-glow, .boot-step { animation: none; }
  .boot-hello { display: none; }
}
