:root {
  --brand-red: #b71c1c;
  --brand-red-dark: #7f0000;
  --primary: #2196f3;
  --bg: #f5f5f5;
  --card: #ffffff;
  --text: #212121;
  --muted: #757575;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --success: #2e7d32;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: linear-gradient(90deg, var(--brand-red-dark), var(--brand-red));
  color: #fff;
  box-shadow: var(--shadow);
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fff;
  color: var(--brand-red);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.brand-header h1 {
  margin: 0;
  font-size: 1.25rem;
}

.brand-header p {
  margin: 2px 0 0;
  font-size: 0.875rem;
  opacity: 0.9;
}

.header-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  opacity: 0.95;
}

.header-link:hover {
  text-decoration: underline;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.intro {
  margin-bottom: 24px;
}

.intro h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.platform-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.platform-icon.android {
  background: #e8f5e9;
}

.platform-icon.ios {
  background: #e3f2fd;
}

.card h3 {
  margin: 0;
  font-size: 1.125rem;
}

.card .version {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.meta {
  display: grid;
  gap: 8px;
  font-size: 0.875rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.meta-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.meta-label {
  color: var(--muted);
}

.release-notes {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text);
  background: #fafafa;
  border-radius: 8px;
  padding: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: #1976d2;
}

.btn-android {
  background: var(--success);
  color: #fff;
}

.btn-android:hover {
  background: #1b5e20;
}

.btn-ios {
  background: #111;
  color: #fff;
}

.btn-ios:hover {
  background: #333;
}

.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.hint {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

.hint strong {
  color: var(--text);
}

.steps {
  margin: 8px 0 0;
  padding-left: 18px;
}

.steps li {
  margin-bottom: 4px;
}

.status-banner {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
}

.status-banner.error {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ffcdd2;
}

.status-banner.info {
  background: #e3f2fd;
  color: #0d47a1;
  border: 1px solid #bbdefb;
}

.deploy-box {
  margin-top: 32px;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 20px;
}

.deploy-box h4 {
  margin: 0 0 12px;
}

.deploy-box code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8125rem;
}

.deploy-box pre {
  margin: 8px 0 0;
  padding: 12px;
  background: #263238;
  color: #eceff1;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.75rem;
  line-height: 1.5;
}

.footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

@media (max-width: 600px) {
  .brand-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
