* {
  box-sizing: border-box;
}

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #3b82f6;
  --color-success: #16a34a;
  --color-success-dark: #15803d;
  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --color-bg: #f3f4f6;
  --color-card: #ffffff;
  --color-border: #e5e7eb;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --radius: 10px;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.page-wrapper {
  min-height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(circle at 20% 20%, rgba(26, 115, 232, 0.35) 0%, transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(229, 57, 53, 0.35) 0%, transparent 32%),
    radial-gradient(circle at 20% 80%, rgba(249, 168, 37, 0.35) 0%, transparent 32%),
    radial-gradient(circle at 80% 80%, rgba(67, 160, 71, 0.35) 0%, transparent 32%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 45%),
    #111216;
}

.container {
  width: 100%;
  max-width: 480px;
}

.card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  text-align: center;
  border: 1px solid var(--color-border);
}

.card-header {
  margin-bottom: 24px;
}

.brand-logo {
  max-width: 240px;
  max-height: 90px;
  width: auto;
  height: auto;
}

h1 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  color: #111827;
}

.subtitle {
  margin: 0 0 28px;
  color: var(--color-text-muted);
  font-size: 15px;
}

.file-info-bar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 24px;
  padding: 14px 12px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.file-info-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 4px;
  -webkit-box-flex: 0;
  -ms-flex: 0 1 auto;
  flex: 0 1 auto;
  min-width: 0;
}

.file-info-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  font-weight: 600;
}

.file-info-value {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.trust-badges {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
  border: 1px solid #d1fae5;
  white-space: nowrap;
}

.badge svg {
  width: 14px;
  height: 14px;
}

.step {
  display: none;
  animation: fadeIn 0.35s ease;
}

.step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.captcha-box label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  color: #374151;
  font-size: 15px;
}

.captcha-hint {
  margin: 0 0 16px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.captcha-task {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background: #f3f4f6;
  padding: 16px 24px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: center;
  color: #374151;
}

input[type="text"]:focus {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 14px 20px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-primary);
  box-shadow: 0 4px 0 var(--color-primary-dark);
}

.btn-primary:hover {
  background: var(--color-primary-light);
}

.btn-success {
  background: var(--color-success);
  box-shadow: 0 4px 0 var(--color-success-dark);
}

.btn-success:hover {
  background: #22c55e;
}

.icon-btn {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #6b7280;
  transition: all 0.2s;
}

.icon-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.error {
  margin: 14px 0 0;
  color: #dc2626;
  font-size: 14px;
}

.hidden {
  display: none;
}

.timer-box {
  padding: 10px 0;
}

.timer-box p {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: 6px;
}

.timer {
  font-size: 52px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 10px 0 20px;
}

.timer-note {
  font-size: 13px;
  color: #9ca3af;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-primary);
  transition: width 0.1s linear;
}

.ready-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  background: #dcfce7;
  color: #166534;
  font-size: 28px;
  font-weight: 700;
  border-radius: 50%;
}

.ready-text {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 18px;
}

.download-note {
  margin-top: 14px;
  font-size: 13px;
  color: #9ca3af;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.footer-note {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #9ca3af;
}

@media (max-width: 480px) {
  .card {
    padding: 28px 20px;
  }

  h1 {
    font-size: 22px;
  }

  .file-info-bar {
    gap: 16px;
    padding: 14px;
  }
}
