/* maihood.rocks: "Night Rocks" design. See ../DESIGN.md */

:root {
  --bg: #0e1116;
  --surface: #171b22;
  --surface-sunken: #11151b;
  --border: #262c36;
  --border-strong: #3a4352;
  --text: #e8ecf2;
  --muted: #9aa4b2;
  --accent: #c6f24e;      /* brand lime */
  --accent-2: #9b8cff;    /* violet */
  --accent-3: #3ddbd9;    /* cyan */
  --on-accent: #0e1116;

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

  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 16px;
  --page-pad: clamp(20px, 4vw, 56px);
  --page-max: 1328px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image: radial-gradient(#1e242e 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--font-mono); }
.prompt { color: var(--accent); }
.wrap { width: 100%; max-width: var(--page-max); margin: 0 auto; padding-inline: var(--page-pad); }

/* blinking cursor */
@keyframes blink { 50% { opacity: 0; } }
.cursor { animation: blink 1.1s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

/* header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 18px; font-weight: 700; }
.brand img { width: 40px; height: 40px; }
.brand .tld { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 28px; font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: var(--r-md); font-family: var(--font-mono); font-size: 14px; border: 1px solid var(--border-strong); }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
.btn-primary:hover { color: var(--on-accent); filter: brightness(1.08); }

/* hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: clamp(40px, 7vw, 72px) 56px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.eyebrow { margin: 0; font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
h1 { margin: 0; font-weight: 500; font-size: clamp(44px, 7vw, 88px); line-height: 0.98; letter-spacing: -0.04em; }
h1 .cursor { color: var(--accent); }
.lede { margin: 0; max-width: 540px; font-size: 20px; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.terminal { flex: 1 1 420px; min-width: 0; background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.dot.on { background: var(--accent); }
.terminal-bar span:last-child { margin-left: 10px; }
.terminal pre { margin: 0; padding: 22px 22px 26px; font-family: var(--font-mono); font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.terminal .out { color: var(--muted); }
.terminal .dir { color: var(--accent-2); }
.cursor-block { background: var(--accent); color: var(--accent); }

/* apps grid */
.section-label { margin: 0 0 20px; font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-bottom: 72px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 182px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
a.tile:hover { border-color: var(--accent); color: var(--text); }
.tile-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile h2 { margin: auto 0 0; font-size: 22px; font-weight: 500; }
.tile p { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.tile svg, .tile .icon { width: 26px; height: 26px; }
.status { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.status.live { color: var(--accent); }
.kbd { border: 1px solid var(--border-strong); border-radius: 5px; padding: 1px 7px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-right: 10px; }
.tile.is-queued { cursor: default; }
.tile-feature { grid-column: span 2; grid-row: span 2; min-height: 380px; padding: 28px; gap: 20px; }
.tile-feature .app-icon { width: 120px; height: 120px; }
.tile-feature h2 { font-size: 32px; }
.tile-feature p { font-size: 15px; font-family: var(--font-sans); }
.tile-new { grid-column: span 2; align-items: center; justify-content: center; flex-direction: row; min-height: 120px; border: 1.5px dashed var(--border-strong); background: transparent; font-family: var(--font-mono); font-size: 15px; color: var(--muted); }
a.tile-new:hover { color: var(--accent); border-color: var(--accent); }

/* status bar footer */
.statusbar { display: flex; flex-wrap: wrap; align-items: stretch; margin-bottom: 24px; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--surface-sunken); font-family: var(--font-mono); font-size: 13px; }
.statusbar span { padding: 10px 16px; color: var(--muted); }
.statusbar .mode { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.statusbar .name { color: var(--text); }
.statusbar .grow { flex: 1; }

/* responsive */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-feature, .tile-new { grid-column: span 2; }
  .tile-feature { grid-row: auto; min-height: 260px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .tile-feature, .tile-new { grid-column: auto; }
  .nav { gap: 20px; }
}
