*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f0f1a;
  --bg2: #1a1a2e;
  --card: #16213e;
  --border: #2a2a4a;
  --accent: #e8612a;
  --accent2: #f0923a;
  --text: #e8e8f0;
  --muted: #8888aa;
  --code-bg: #0d0d1f;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  padding: 2rem 1rem 4rem;
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

/* Header */
header {
  text-align: center;
  padding: 3rem 0 2rem;
}

.crab-emoji {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 0.4rem;
}

/* Badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.5rem 0 2rem;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
}

.badge-version { border-color: #3a3a6a; }
.badge-texts   { border-color: #2a4a3a; color: #7adba0; }
.badge-ai      { border-color: #3a2a4a; color: #c09af0; }
.badge-count   { border-color: #4a3a2a; color: var(--accent2); }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
}

.card h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.card p {
  color: #cccce0;
  margin-bottom: 1.25rem;
}

/* Download button */
.btn-download {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: opacity 0.15s, transform 0.1s;
}

.btn-download:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-download:active { transform: translateY(0); }

/* Install steps */
ol {
  padding-left: 1.4rem;
  color: #cccce0;
}

ol li {
  margin-bottom: 0.75rem;
}

ol li:last-child { margin-bottom: 1rem; }

code {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  font-size: 0.82rem;
  font-family: 'Consolas', 'Monaco', monospace;
  color: #a0c0ff;
  word-break: break-all;
}

.note {
  background: var(--bg2);
  border-left: 3px solid var(--border);
  border-radius: 0 6px 6px 0;
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.note.warning { border-left-color: #b8860b; color: #c8a84a; }

/* Contact form */
.form-group { margin-bottom: 0.75rem; }

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-send {
  padding: 0.6rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-send:hover  { opacity: 0.85; }
.btn-send:disabled { opacity: 0.5; cursor: default; }

#contact-status { margin-left: 0.75rem; font-size: 0.9rem; }
.status-ok  { color: #7adba0; }
.status-err { color: #e07070; }

/* Screenshot */
.screenshot-card { padding: 0; overflow: hidden; }
.screenshot { display: block; width: 100%; height: auto; border-radius: 12px; }

/* Dev page specifics */
.status-table { width: 100%; border-collapse: collapse; margin: 0.75rem 0; }
.status-table th,
.status-table td { padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.status-table th { color: var(--muted); font-weight: 500; }
.ok   { color: #7adba0; }
.warn { color: #c8a84a; }

.script-list { list-style: none; padding: 0; }
.script-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: #cccce0; }
.script-list li:last-child { border-bottom: none; }
.script-list code { font-size: 0.82rem; }

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #a0c0ff;
  margin: 0.75rem 0;
}

h3 { font-size: 1rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin: 1.25rem 0 0.5rem; }

/* Footer */
footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

footer a { color: var(--accent2); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 500px) {
  .card { padding: 1.25rem; }
  h1 { font-size: 1.75rem; }
}
