:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #7d8590;
  --accent: #7ce2ff;
  --green: #3fb950;
  --red: #f85149;
}

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

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  max-width: 520px;
  width: 100%;
  padding: 2rem;
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.moon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.upload-area {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--surface);
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(124, 226, 255, 0.12);
}

.upload-area.uploading {
  pointer-events: none;
  opacity: 0.5;
}

.upload-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.upload-text {
  color: var(--muted);
  font-size: 0.95rem;
}

.spinner {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--accent);
}

.spinner p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.spinner-ring {
  display: inline-block;
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error {
  text-align: center;
  margin-top: 1rem;
  color: var(--red);
  font-size: 0.9rem;
  padding: 0.75rem;
  background: rgba(248, 81, 73, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(248, 81, 73, 0.2);
}

.privacy {
  text-align: center;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.privacy p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.info-icon {
  color: var(--accent);
}

.features {
  list-style: none;
  margin-top: 1rem;
  text-align: center;
}

.features li {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.25rem 0;
}

.check {
  color: var(--green);
  margin-right: 0.25rem;
}

.version {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 1.5rem;
  opacity: 0.6;
}

.version a {
  color: var(--accent);
  text-decoration: none;
}

.version a:hover {
  text-decoration: underline;
}

@media (max-width: 540px) {
  .container { padding: 1.25rem; }
  h1 { font-size: 1.6rem; }
  .upload-area { padding: 2rem 1rem; }
}
