:root {
  --bg: #000;
  --fg: rgba(255, 255, 255, 0.88);
  --muted: rgba(255, 255, 255, 0.55);
  --faint: rgba(255, 255, 255, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  letter-spacing: 0.2px;
}

main {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.wrap {
  width: min(720px, 100%);
  text-align: center;
}

/* --- top tag --- */
.tag {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--faint);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  margin-bottom: 18px;
}

/* --- titles --- */
h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: 0.6px;
}

.sub {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
}

/* --- loading pill --- */
.loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--faint);
  border-radius: 12px;
  color: var(--fg);
  user-select: none;
}

.dot::after {
  content: "…";
  animation: dots 1.2s steps(4, end) infinite;
}

@keyframes dots {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
  100% {
    content: "";
  }
}

.crow {
  display: inline-block;
  transform-origin: 50% 60%;
  animation: pulse 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.06));
}

@keyframes pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-2px) scale(1.03);
    opacity: 1;
  }
}

/* --- nav --- */
nav {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

a:hover {
  color: var(--fg);
  border-bottom-color: var(--faint);
}

/* --- footer --- */
footer {
  margin-top: 26px;
  color: var(--faint);
  font-size: 12px;
}

/* --- language switcher --- */
.lang-switcher {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 12px;
  margin-bottom: 18px;
}
.lang-switcher a { color: var(--faint); }
.lang-switcher a.active { color: var(--fg); }

/* --- terminal easter egg --- */
.term {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 10;
}
.term-box {
  width: min(640px, 100%);
  height: min(380px, 70vh);
  border: 1px solid var(--faint);
  border-radius: 12px;
  background: #050505;
  padding: 14px;
  display: flex;
  flex-direction: column;
  text-align: left;
  font-size: 13px;
}
.term-out { flex: 1; overflow-y: auto; color: var(--muted); white-space: pre-wrap; }
.term-cmd { color: var(--fg); margin-top: 6px; }
.term-line { display: flex; gap: 8px; color: var(--fg); }
.term-line input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--fg);
  font: inherit;
}
.term-hint { color: var(--faint); font-size: 12px; margin-top: 10px; }
.term-hint a { color: var(--faint); }

/* --- location badge --- */
.location { color: var(--faint); font-size: 12px; margin: -14px 0 22px; }

/* --- central call-to-action --- */
.cta { margin: 6px 0 4px; }
.cta a {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  color: var(--fg);
}
.cta a:hover { background: var(--fg); color: var(--bg); }

/* --- request access form --- */
.access-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.access-form input, .access-form button {
  font: inherit; font-size: 13px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--faint); background: transparent; color: var(--fg);
}
.access-form input { flex: 1; min-width: 180px; }
.access-form button { cursor: pointer; }

/* --- clean home --- */
.home .hero { width: min(560px, 100%); height: auto; display: block; margin: 0 auto 8px; }
.home .tagline { font-size: clamp(16px, 2.6vw, 22px); color: var(--fg); margin: 0 0 18px; }
.home .location { margin: 0 0 26px; }
.home nav { margin-top: 26px; font-size: 13px; }
.term-foot { color: var(--faint); font-size: 11px; margin-top: 8px; text-align: right; }
.home .hero { cursor: pointer; }
.home .location { opacity: 0; max-height: 0; overflow: hidden; transition: opacity .3s, max-height .3s; margin: 0; }
.home .location.show { opacity: 1; max-height: 40px; margin: 0 0 18px; }
.bmc img { height: 44px; width: auto; border: 0; } .bmc { border-bottom: 0 !important; }
.cta + .longer { margin-top: 36px; }
.longer { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; color: var(--muted); font-size: 14px; }
.longer .bmc img { height: 36px; display: block; }

/* --- languages page --- */
.langs { text-align: left; margin-top: 10px; }
.lrow { display: grid; grid-template-columns: 110px 1fr 48px; align-items: center; gap: 12px; margin: 12px 0; font-size: 14px; }
.lname { color: var(--fg); }
.lval { color: var(--muted); text-align: right; }
.lbar { height: 6px; border: 1px solid var(--faint); border-radius: 999px; overflow: hidden; }
.lbar span { display: block; height: 100%; width: 0; background: var(--fg); transition: width 1.2s ease; }
.langs.go .lbar span { width: var(--w); }
.lnote { margin-top: 4px; text-align: right; }
.home .evolving { color: var(--faint); font-size: 12px; margin: 22px 0 0; }
.lang-switcher a.stats { color: var(--muted); }
.suggest { margin-top: 34px; text-align: left; }
.suggest p { margin: 0 0 8px; }
.suggest select { font: inherit; font-size: 13px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--faint); background: #000; color: var(--fg); width: 100%; }
#sug-more { gap: 8px; margin-top: 8px; }
#sug-more input { flex: 1; }

/* --- corner nav (back + home) --- */
.corner-nav { position: fixed; top: 14px; right: 16px; display: flex; gap: 6px; z-index: 5; }
.corner-nav a {
  display: grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid var(--faint); border-radius: 999px; color: var(--muted);
  font-size: 15px; padding: 0; background: rgba(0,0,0,.6);
}
.corner-nav a:hover { color: var(--fg); border-color: var(--muted); }
body:has(.corner-nav) main { padding-top: 64px; }
.og-visitors { color: var(--faint); font-size: 12px; margin-top: 30px; }
.call-drop summary { list-style: none; cursor: pointer; font-size: 20px; opacity: .55; transition: opacity .2s; display: inline-block; }
.call-drop summary::-webkit-details-marker { display: none; }
.call-drop summary:hover, .call-drop[open] summary { opacity: 1; }
.call-drop .cta { margin-top: 10px; }

/* --- link in bio --- */
.lt { max-width: 440px; }
.lt-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 1px solid var(--faint); filter: grayscale(.2); }
.lt h1 { margin: 12px 0 2px; }
.lt-full { margin: 0 0 4px; font-size: 12px; }
.lt-main {
  display: flex; align-items: center; gap: 14px; margin: 22px 0 12px; padding: 12px 16px;
  border: 1px solid var(--fg); border-radius: 16px; color: var(--fg); text-align: left; font-size: 15px;
}
.lt-main img { width: 56px; height: 56px; object-fit: contain; }
.lt-main:hover { background: var(--fg); color: var(--bg); }
.lt-list { display: flex; flex-direction: column; gap: 10px; }
.lt-btn { display: block; padding: 11px 14px; border: 1px solid var(--faint); border-radius: 12px; color: var(--fg); }
.lt-btn:hover { border-color: var(--fg); }
.lt-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 22px; font-size: 13px; }
.lt-extra { margin-top: 12px; font-size: 12px; }
.lt-extra a { color: var(--faint); }
.lt-main { margin-bottom: 8px; }
.lt-trial { display: block; margin: 0 0 18px; padding: 10px 14px; border-radius: 12px; background: var(--fg); color: var(--bg) !important; font-weight: 600; border: 0; }
.lt-trial:hover { opacity: .85; }

/* --- every link underlined (buttons excluded) --- */
a { text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; border-bottom: 0; }
a:hover { text-decoration-color: var(--fg); border-bottom: 0; }
.cta a, .lt-main, .lt-btn, .lt-trial, .corner-nav a, .lang-switcher a, .bmc, .tag a { text-decoration: none; }

/* --- trial QR --- */
.lt-qr { margin: -8px 0 18px; }
.lt-qr summary { list-style: none; cursor: pointer; color: var(--muted); font-size: 12px; }
.lt-qr summary::-webkit-details-marker { display: none; }
.lt-qr[open] summary { color: var(--fg); }
.lt-qr-card {
  margin: 12px auto 0; width: 220px; padding: 14px 14px 12px; border-radius: 16px;
  background: #f8f5ea; color: #1f3d4a; display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: qrspawn .45s cubic-bezier(.2,1.4,.4,1);
}
.lt-qr-bird { width: 56px; margin-bottom: -6px; }
.lt-qr-code { width: 180px; height: 180px; }
.lt-qr-card span { font-size: 12px; font-weight: 600; }
@keyframes qrspawn { from { transform: scale(.6) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* --- terminal warning with Diogenes' lantern --- */
.term-warn { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid #1a1a1a; }
.term-lantern { width: 9px; height: 13px; border-radius: 3px; background: #ffd76a; box-shadow: 0 0 10px 4px rgba(255, 215, 106, .45); animation: flicker 2.4s infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: .75; } 50% { opacity: .95; } 70% { opacity: .8; } }
.term-no { opacity: 0; transition: opacity .6s; color: #ffd76a; text-decoration-color: rgba(255, 215, 106, .4); }
.term-no.show { opacity: 1; }
.term-nontech { color: var(--faint); }

/* --- tiny search --- */
.search { position: relative; display: flex; align-items: center; }
.search-btn { width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--faint); background: rgba(0,0,0,.6); color: var(--muted); font: inherit; font-size: 16px; cursor: pointer; padding: 0; }
.search-in { width: 0; opacity: 0; padding: 0; border: 0; transition: width .25s, opacity .2s; background: transparent; color: var(--fg); font: inherit; font-size: 12px; outline: 0; }
.search.open .search-in { width: 140px; opacity: 1; padding: 6px 10px; margin-right: 6px; border: 1px solid var(--faint); border-radius: 999px; background: #000; order: -1; }
.search-list { display: none; position: absolute; top: 38px; right: 0; width: 230px; list-style: none; margin: 0; padding: 6px; background: #050505; border: 1px solid var(--faint); border-radius: 10px; text-align: left; font-size: 12px; }
.search.open .search-list { display: block; }
.search-list a { display: block; padding: 5px 6px; text-decoration: none; }
.search-list a:hover { background: #111; }
.corner-nav .search-list a { display: block; width: auto; height: auto; border: 0; border-radius: 6px; background: none; place-items: initial; font-size: 12px; color: var(--muted); padding: 6px 8px; text-align: left; }
.corner-nav .search-list a:hover { color: var(--fg); background: #111; }
.flock-pidgy { width: 170px; margin: 24px auto 0; display: block; cursor: pointer; transition: transform .2s; }
.flock-pidgy:hover { transform: rotate(-4deg) scale(1.04); }
.flock-pidgy.burn { animation: burn .6s; }
@keyframes burn { 0%{transform:scale(1)} 30%{transform:scale(1.18) rotate(6deg); filter: drop-shadow(0 0 24px #ff7a1a)} 100%{transform:scale(1)} }
.flock-egg { opacity: 0; transition: opacity .4s; margin: 6px 0 0; color: #ff9a3c; }
.flock-egg.show { opacity: 1; }

/* --- pidgy easter eggs --- */
.feather { position: fixed; width: 16px; opacity: .35; cursor: pointer; z-index: 4; transition: opacity .2s, transform .2s; }
.feather:hover { opacity: 1; }
.feather.caught { animation: fly 1s forwards; }
@keyframes fly { to { transform: translate(40px, -120px) rotate(200deg); opacity: 0; } }
.peek { position: fixed; bottom: -70px; right: -30px; width: 120px; cursor: pointer; z-index: 4; transition: bottom .35s; }
.peek:hover { bottom: -10px; }
.egg-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .3s; background: #0b0b0b; border: 1px solid var(--faint); border-radius: 999px; padding: 8px 14px; font-size: 12px; color: var(--fg); z-index: 20; white-space: nowrap; }
.egg-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* --- stats --- */
.key { position: fixed; top: 14px; left: 16px; font-size: 18px; text-decoration: none; opacity: .5; z-index: 6; }
.key:hover { opacity: 1; }
.st { text-align: left; }
.st h1 { font-size: 64px; margin: 10px 0 0; }
.st-sec { margin-top: 28px; }
.st-sec h2 { font-size: 13px; color: var(--muted); text-transform: lowercase; margin: 0 0 8px; }
.st pre { margin: 0; color: var(--fg); font-size: 12px; }
.st-upd { margin-top: 30px; font-size: 11px; }
.st-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.st-table th { text-align: left; color: var(--faint); font-weight: 400; padding: 4px 6px; border-bottom: 1px solid #1a1a1a; }
.st-table td { padding: 4px 6px; border-bottom: 1px solid #0f0f0f; word-break: break-all; }
.st { padding-top: 34px; }
.st-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 6px; font-size: 13px; color: var(--muted); }
.st-nav button { background: none; border: 1px solid var(--faint); color: var(--fg); border-radius: 999px; width: 32px; height: 32px; cursor: pointer; font: inherit; }
.st-nav button:disabled { opacity: .2; cursor: default; }
.cv-lol { color: var(--faint); font-size: 12px; margin-top: -4px; }
.key { left: auto; right: 16px; top: 14px; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--faint); border-radius: 999px; font-size: 15px; opacity: .8; background: rgba(0,0,0,.6); }
