/* ProjectV6 - coming soon */

:root {
  --bg: #050505;
  --ink: #e8e8e8;
  --ink-dim: #888;
  --ink-faint: #444;
  --accent: #5ef38c;
  --accent-soft: rgba(94, 243, 140, 0.18);
  --accent-line: rgba(94, 243, 140, 0.35);
  --line: rgba(255, 255, 255, 0.10);

  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --sans: 'Space Grotesk', system-ui, sans-serif;

  --title-size: 72px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }

/* ───── grid background ───── */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--ink-faint) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ink-faint) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.18;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.15) 70%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.15) 70%, rgba(0,0,0,0) 100%);
}

/* ───── page layout ───── */

.page {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  z-index: 1;
}

/* ───── header ───── */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 36px;
  font-family: var(--mono);
  font-size: 13px;
}

.logo {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.01em;
  cursor: pointer;
  padding: 0;
  transition: color 140ms ease;
}
.logo .dim { color: var(--ink-faint); }
.logo:hover { color: var(--accent); }

.links {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-dim);
}
.links a {
  color: var(--ink-dim);
  transition: color 140ms ease;
}
.links a:hover { color: var(--accent); }
.sep { color: var(--ink-faint); }

/* ───── main ───── */

.middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  gap: 26px;
}

.title {
  font-family: var(--sans);
  font-weight: 500;
  font-style: normal;
  font-size: var(--title-size);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--ink);
}

.lede {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-dim);
  letter-spacing: 0.01em;
}

.donate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 11px 18px 11px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.donate:hover {
  border-color: var(--accent-line);
  color: var(--accent);
  transform: translateY(-1px);
}
.donate-arrow {
  display: inline-block;
  transition: transform 180ms ease;
}
.donate:hover .donate-arrow { transform: translateX(3px); }

/* ───── footer ───── */

.bottom {
  padding: 24px 36px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.6;
  --x: 50%;
  --y: 50%;
  --r: 0px;
  background: radial-gradient(circle 120px at var(--x) var(--y), var(--ink) 0%, var(--ink-faint) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* ───── toast ───── */

.toast {
  position: fixed;
  z-index: 50;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  padding: 9px 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
  white-space: nowrap;
}
.toast.visible {
  opacity: 1;
  animation: toast-in 200ms ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ───── easter egg overlay ───── */

.egg {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
}
.egg[hidden] { display: none; }

.egg-cat-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: cat-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.egg-cat-wrap.closing {
  animation: cat-out 520ms cubic-bezier(0.4, 0, 0.6, 1) forwards;
}
.egg-cat-wrap.closing .egg-cat {
  animation: cat-glitch 520ms steps(8) forwards;
}

@keyframes cat-in {
  0%   { opacity: 0; }
  60%  { opacity: 1; }
  100% { opacity: 1; }
}

.egg-cat {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  text-shadow: 0 0 14px var(--accent-soft);
  line-height: 1.5;
  margin: 0;
  animation: cat-pop 480ms cubic-bezier(0.2, 0.9, 0.2, 1.1) both;
}

@keyframes cat-pop {
  0%   { transform: scale(0.92) translateY(8px); opacity: 0; filter: blur(6px); }
  60%  { transform: scale(1.02) translateY(0);   opacity: 1; filter: blur(0); }
  100% { transform: scale(1)    translateY(0);   opacity: 1; }
}

@keyframes cat-out {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes cat-glitch {
  0%   { transform: scale(1)    translateY(0)    skewX(0deg);   filter: blur(0)    hue-rotate(0deg);   opacity: 1; }
  20%  { transform: scale(1.02) translateY(-2px) skewX(-2deg);  filter: blur(0.5px) hue-rotate(15deg); }
  40%  { transform: scale(0.96) translate(3px,1px) skewX(3deg); filter: blur(0)    hue-rotate(-10deg); }
  60%  { transform: scale(1.05) translate(-4px,2px);            filter: blur(1px)  hue-rotate(40deg);  letter-spacing: 0.05em; }
  80%  { transform: scale(0.7)  translateY(40px);               filter: blur(4px); opacity: 0.6;       letter-spacing: 0.2em; }
  100% { transform: scale(0.2)  translateY(120vh);              filter: blur(12px); opacity: 0;        letter-spacing: 1em; }
}

.egg small {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: 0.15em;
}

/* ───── responsive ───── */

@media (max-width: 560px) {
  .top    { padding: 20px 22px; }
  .bottom { padding: 18px 22px; }
  .title  { font-size: 48px; }
}

/* ───── mail picker ───── */

.mail-picker {
  position: fixed;
  z-index: 200;
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  overflow: hidden;
  width: 240px;
  font-family: var(--mono);
}

.mail-picker[hidden] {display: none; }

.mail-picker-addr {
  padding: 10px 14px;
  font-size: 11px;
  color: var(--ink-faint);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.mail-picker-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease;
}

.mail-picker-opt:last-child { border-bottom: none; }
.mail-picker-opt:hover { background: rgba(255,255,255,0.05); }