@font-face { font-family: SpaceMono; src: url(assets/SpaceMono-Regular.ttf); font-display: swap; }
@font-face { font-family: SpaceMono; src: url(assets/SpaceMono-Bold.ttf); font-weight: 700; font-display: swap; }

/* The app's Phosphor palette (src/app/style.rs). */
:root { --g: #4dff9b; --g2: #1f8f55; --panel: #030805; --line: #12301f; --text: #cfeedd; --mute: #5f8a71; --ink: #00140a; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: #000; color: var(--text); font: 15px/1.6 SpaceMono, Menlo, Consolas, monospace; }
a { color: inherit; }
::selection { background: var(--g); color: var(--ink); text-shadow: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; }
#rain { position: absolute; top: 0; left: 0; width: 100%; height: 720px; pointer-events: none; }

/* nav */
.nav { display: flex; align-items: center; gap: 28px; height: 72px; font-size: 13px; }
.nav a { text-decoration: none; color: var(--mute); }
.nav a:hover { color: var(--g); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { filter: drop-shadow(0 0 6px rgba(77,255,155,.35)); }
.nav .brand span { color: var(--g); font-weight: 700; font-size: 16px; letter-spacing: .2em; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 64px; }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.12; margin-bottom: 18px; }
h1 em { font-style: normal; color: var(--g); text-shadow: 0 0 24px rgba(77,255,155,.45); }
.sub { color: var(--mute); font-size: 16px; margin-bottom: 28px; max-width: 30em; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--g); color: var(--ink); font-weight: 700;
  padding: 14px 24px; border-radius: 10px; text-decoration: none; box-shadow: 0 0 28px rgba(77,255,155,.35); transition: box-shadow .2s; }
.btn:hover, .btn:focus-visible { box-shadow: 0 0 0 3px rgba(77,255,155,.25), 0 0 36px rgba(77,255,155,.5); outline: none; }
.btn .ph { font-size: 20px; }
.alt { color: var(--mute); font-size: 12px; margin-top: 14px; }
.alt a { color: var(--text); text-decoration-color: var(--g2); text-underline-offset: 3px; }
.alt a:hover, .alt a:focus-visible { color: var(--g); text-decoration-color: var(--g); outline: none; }
.alt + .alt { margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); color: var(--text); font-size: 12px; text-decoration: none; transition: color .15s, border-color .15s, background .15s, box-shadow .15s; }
.chips .ph { font-size: 15px; color: var(--mute); transition: color .15s; }
.chips a:hover, .chips a:focus-visible { color: var(--g); border-color: var(--g); background: rgba(77,255,155,.08); box-shadow: 0 0 14px rgba(77,255,155,.18); outline: none; }
.chips a:hover .ph, .chips a:focus-visible .ph { color: var(--g); }

/* terminal */
.term { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px 16px; font-size: 14px; line-height: 2.1;
  box-shadow: 0 0 40px rgba(77,255,155,.08); }
.term code { display: block; font: inherit; }
.dots { display: flex; gap: 7px; margin-bottom: 8px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.p { color: var(--g); }
.m { color: var(--mute); }
.row { display: grid; grid-template-columns: 11em 5.5em 1fr; align-items: center; }
.row b { height: 8px; border-radius: 2px; background: var(--g2); }
.row.me { color: var(--g); }
.row.me b { width: 3px; background: var(--g); box-shadow: 0 0 10px var(--g); }
.cursor { display: inline-block; width: 9px; height: 17px; background: var(--g); vertical-align: middle; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
figcaption { color: var(--mute); font-size: 11px; margin-top: 6px; line-height: 1.4; }

/* screenshot */
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 0 80px rgba(77,255,155,.13); }

/* sections */
section[id] { padding-top: 96px; }
h2 { font-size: 22px; margin-bottom: 28px; }
h2::before { content: "> "; color: var(--g); }
.features { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features li, .os { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.features .ph { font-size: 26px; color: var(--g); filter: drop-shadow(0 0 6px rgba(77,255,155,.4)); }
h3 { font-size: 15px; margin: 12px 0 6px; }
.features p, .note { color: var(--mute); font-size: 13px; }

/* downloads */
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.os { scroll-margin-top: 32px; transition: border-color .3s, box-shadow .3s; }
.os:target { border-color: var(--g2); box-shadow: 0 0 30px rgba(77,255,155,.12); }
.os h3 { margin: 0 0 14px; display: flex; align-items: center; gap: 10px; color: var(--g); }
.os h3 .ph { font-size: 22px; }
.os a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; margin-bottom: 8px; border: 1px solid var(--line);
  border-radius: 8px; text-decoration: none; font-size: 13px; transition: border-color .15s, background .15s; }
.os a:hover, .os a:focus-visible { border-color: var(--g); background: rgba(77,255,155,.08); outline: none; }
.os small { color: var(--mute); font-size: 12px; }
.note { margin-top: 12px; font-size: 12px; line-height: 1.5; }
.all { margin-top: 20px; font-size: 13px; }
.all a { color: var(--mute); }

footer.wrap { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; color: var(--mute); font-size: 12px; padding-top: 112px; padding-bottom: 96px; }
footer a { color: var(--mute); }
footer a:hover, .all a:hover { color: var(--g); }

@media (max-width: 860px) {
  .hero, .downloads { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 32px; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .nav { gap: 16px; }
  .nav a:not(.brand):not(:last-child) { display: none; }
  .term { font-size: 12px; padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } html { scroll-behavior: auto; } }
