:root{
  --blueprint: #14335c;
  --blueprint-deep: #0d2545;
  --line: rgba(229, 241, 250, 0.16);
  --line-strong: rgba(229, 241, 250, 0.4);
  --paper: #e9f2f9;
  --amber: #f2a340;
  --muted: #9fb8d1;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(circle at 50% 30%, var(--blueprint) 0%, var(--blueprint-deep) 75%);
  color: var(--paper);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.sheet {
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  padding: 40px 32px;
  border: 1px solid var(--line-strong);
}

.sheet::before, .sheet::after,
.corner-tl, .corner-br { content: ''; }

.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--amber);
}
.corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 28px;
}

h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.rule {
  width: 64px;
  height: 3px;
  background: var(--amber);
  margin: 0 auto 24px;
}

p.lead {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 auto 28px;
  max-width: 42ch;
}

.progress {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar {
  height: 100%;
  width: 35%;
  background: var(--amber);
  border-radius: 3px;
  animation: build 3.2s ease-in-out infinite;
}

@keyframes build {
  0%   { width: 15%; }
  50%  { width: 70%; }
  100% { width: 15%; }
}

.progress-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 30px;
}

.btn-home {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blueprint-deep);
  background: var(--amber);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 2px;
  margin-bottom: 30px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-home:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.btn-home:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.footer {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.footer strong {
  color: var(--paper);
}

@media (prefers-reduced-motion: reduce) {
  .progress-bar { animation: none; width: 45%; }
}
