/* Web version: the landing page and the top bar, after the MAXINE! Emulator's (retrograde.tools colours and nav) */
#landing {
  --bg: #080810; --surface: #0f0f1a; --border: rgba(255, 255, 255, 0.07);
  --accent: #00d4aa; --accent-dim: #00b891; --blue: #2a8fe8;
  --text: #e2e8f0; --muted: #94a3b8; --subtle: #64748b;
  position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--bg); user-select: text;
}
#landing[hidden] { display: none; }
#landing * { box-sizing: border-box; margin: 0; }
#landing::before {
  content: ''; position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 42% 62% at 42% 46%, rgba(0,212,170,0.1) 0%, rgba(0,212,170,0.055) 35%, rgba(0,212,170,0.02) 68%, transparent 100%),
    radial-gradient(ellipse 42% 62% at 58% 46%, rgba(42,143,232,0.11) 0%, rgba(42,143,232,0.06) 35%, rgba(42,143,232,0.022) 68%, transparent 100%);
}
#landing nav {
  position: sticky; top: 0; z-index: 1; display: flex; flex-shrink: 0; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 40px; background: rgba(8,8,16,0.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
}
#landing .brand { display: flex; align-items: center; gap: 4px; }
#landing .logo { height: 37px; width: auto; }
#landing .wordmark { height: 26px; width: auto; }
#landing .navlinks { display: flex; gap: 28px; }
#landing .navlink { font-size: 14px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
#landing .navlink:hover { color: var(--text); }
#landing main {
  position: relative; display: flex; flex-direction: column; align-items: center; flex-shrink: 0;
  margin-top: auto; padding: 48px 24px 28px; text-align: center;
}
#landing .icon { width: 112px; height: 112px; margin-bottom: 28px; filter: drop-shadow(0 12px 40px rgba(0,212,170,0.22)); }
#landing h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 16px; }
#landing .gradient {
  background: linear-gradient(135deg, #fff 30%, var(--accent) 72%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
#landing .sub { max-width: 620px; margin-bottom: 36px; font-size: 19px; line-height: 1.65; color: var(--muted); }
#landing .start {
  min-width: 200px; padding: 13px 32px; border: 0; border-radius: 8px; font: inherit; font-size: 15px; font-weight: 600;
  color: #000; background: var(--accent); cursor: pointer; transition: background 0.2s;
}
#landing .start:hover:not(:disabled) { background: var(--accent-dim); }
#landing .start:disabled { opacity: 0.7; cursor: default; }
#landing .start:focus-visible, #landing .reset:focus-visible, #landing .navlink:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
#landing .status { min-height: 21px; margin-top: 14px; font-size: 13px; color: var(--subtle); }
#landing .reset {
  margin-top: 8px; border: 0; font: inherit; font-size: 13px; color: var(--muted); background: none;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
#landing .reset:hover { color: var(--text); }
#landing .features {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); flex-shrink: 0; gap: 20px;
  width: 100%; max-width: 980px; margin: 0 auto; padding: 0 40px 48px;
}
#landing .feature { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
#landing .feature h2 { margin-bottom: 8px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
#landing .feature p { font-size: 14px; line-height: 1.65; color: var(--muted); }
#landing .changelog { position: relative; flex-shrink: 0; width: 100%; max-width: 600px; margin: 0 auto auto; padding: 0 20px 48px; }
#landing .changelog > h2 {
  margin-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  text-align: center; color: var(--subtle);
}
#landing .changelog-box {
  max-height: 220px; overflow-y: auto; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
#landing .changelog-box h3 { margin: 16px 0 6px; font-size: 14px; font-weight: 600; color: var(--text); }
#landing .changelog-box > :first-child { margin-top: 0; }
#landing .changelog-box p, #landing .changelog-box li { font-size: 13px; line-height: 1.6; color: var(--muted); }
#landing .changelog-box p, #landing .changelog-box ul { margin: 0 0 8px; }
#landing .changelog-box ul { padding-left: 18px; }
#landing .changelog-box > :last-child { margin-bottom: 0; }
#landing footer {
  position: relative; display: flex; flex-shrink: 0; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 28px; padding: 28px 40px; border-top: 1px solid var(--border); font-size: 13px; color: var(--subtle);
}
#landing .footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
#landing footer a { color: var(--subtle); text-decoration: none; transition: color 0.2s; }
#landing footer a:hover { color: var(--muted); }
@media (max-width: 760px) {
  #landing .features { grid-template-columns: 1fr; padding: 0 16px 48px; }
  #landing .changelog { padding: 0 16px 48px; }
  #landing nav { padding: 0 16px; }
  #landing .wordmark { display: none; }
  #landing main { padding: 48px 16px; }
  #landing footer { padding: 24px 16px; flex-direction: column; text-align: center; }
  #landing .footer-links { justify-content: center; }
}

/* The top bar, as the MAXINE! Emulator's: name, small buttons, status, speed */
#top {
  height: 30px; gap: 8px; padding: 0 8px; background: #0f0f1a; border-bottom: 1px solid rgba(255,255,255,0.07);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
}
#top b { font-size: 11px; font-weight: 600; letter-spacing: normal; color: #e8e8e8; margin-right: 4px; }
#top button, #top button#palbtn {
  padding: 2px 8px; border-radius: 3px; font: inherit; font-size: 10px; color: #999; background: #2a2a2a;
  border: 1px solid #3a3a3a; white-space: nowrap; cursor: pointer; transition: background 80ms ease, color 80ms ease;
}
#top button:hover:not(:disabled) { background: #333; color: #e8e8e8; }
#top #webstatus { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: #666; }
#top #webspeed { font-size: 10px; color: #999; font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace; }
#top #maxinelink { font-size: 10px; color: #999; text-decoration: none; white-space: nowrap; }
#top #maxinelink:hover { color: #e8e8e8; }
