:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --fg: #111111;
  --muted: #666666;
  --line: #e0e0dc;
  --soft: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.panel {
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 10px;
}

.eyebrow {
  margin: 28px 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 68px);
  line-height: 0.95;
  font-weight: 800;
}

.meta-row {
  margin: 14px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.version-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.version {
  margin: 0;
  color: var(--fg);
  font-size: 16px;
  font-weight: 700;
}

.beta-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--fg);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.pub-date {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 260px);
  min-height: 52px;
  border-radius: 999px;
  background: var(--fg);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.download:hover {
  transform: translateY(-1px);
  background: #2a2a2a;
}

.download:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}

.note {
  max-width: 330px;
  margin: 22px 0 0;
  color: #767676;
  font-size: 13px;
  line-height: 1.5;
}

.count-badge {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.count-badge strong {
  color: var(--fg);
  font-weight: 800;
}

.feedback-btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 150ms ease, background-color 150ms ease;
}

.feedback-btn:hover {
  color: var(--fg);
  background: var(--line);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: min(100%, 440px);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  text-align: left;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover {
  color: var(--fg);
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
}

.form-group input[type="file"] {
  font-size: 13px;
  color: var(--muted);
}

.img-preview-box {
  margin-top: 8px;
  max-height: 120px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.img-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.submit-btn {
  width: 100%;
  height: 46px;
  border-radius: 999px;
  background: var(--fg);
  color: #ffffff;
  border: none;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  margin-top: 8px;
  transition: background-color 160ms ease;
}

.submit-btn:hover {
  background: #2a2a2a;
}

@media (prefers-reduced-motion: reduce) {
  .download {
    transition: none;
  }
}
