@font-face {
  font-family: "EbrimaCustom";
  src: url("./font/ebrima-bold.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg-top: #f4f9ff;
  --bg-bottom: #e6f4ec;
  --card-bg: #ffffff;
  --text: #171717;
  --bar-bg: #343434;
  --bar-start: #2deb46;
  --bar-end: #22bd83;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "EbrimaCustom", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: linear-gradient(145deg, var(--bg-top), var(--bg-bottom));
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(920px, 100%);
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  padding: 52px 48px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.2;
}

.message {
  min-height: 1.5em;
  margin: 0 0 24px;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: #3a3a3a;
}

.bar-wrap {
  width: 100%;
  height: 112px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bar-bg);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.28);
}

.bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--bar-start), var(--bar-end));
  transition: width 700ms ease;
}

.download-btn {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 20;
  border: 0;
  border-radius: 10px;
  padding: 12px 20px;
  background: #111111;
  color: #ffffff;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 150ms ease, opacity 150ms ease;
}

.download-btn:hover {
  opacity: 0.9;
}

.download-btn:active {
  transform: translate(-50%, 1px);
}

.watermark {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 19;
  color: rgba(20, 20, 20, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(20, 20, 20, 0.1);
  backdrop-filter: blur(4px);
  transition: background 160ms ease, color 160ms ease;
}

.watermark:hover {
  color: #111111;
  background: rgba(255, 255, 255, 0.86);
}

@media (max-width: 640px) {
  .card {
    padding: 32px 20px;
  }

  .bar-wrap {
    height: 72px;
  }

  .download-btn {
    bottom: 16px;
  }

  .watermark {
    left: 50%;
    right: auto;
    top: 12px;
    bottom: auto;
    transform: translateX(-50%);
    font-size: 0.84rem;
    padding: 5px 9px;
  }
}
