:root {
  --grey-50: #fafafa;
  --grey-100: #f5f5f5;
  --grey-200: #e5e5e5;
  --grey-300: #d4d4d4;
  --grey-400: #a3a3a3;
  --grey-500: #737373;
  --grey-600: #525252;
  --grey-700: #404040;
  --grey-800: #262626;
  --grey-900: #171717;

  --blue-main: #2196f3;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;

  --bg-base: #fff5e6;
  --bg-corner: #b86e40;
  --bg-center: #ffffff;

  --font-sans: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Noto Serif HK", serif;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -1px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.25), 0 4px 6px -2px rgba(0, 0, 0, 0.25);

  --radius-md: 10px;
  --radius-lg: 16px;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: var(--font-sans);
  color: #111;
  background:
    radial-gradient(circle at 0 0, var(--bg-corner) 0%, rgba(184, 110, 64, 0.9) 2vw, rgba(184, 110, 64, 0.8) 6vw, rgba(184, 110, 64, 0.7) 10vw, rgba(184, 110, 64, 0.6) 15vw, rgba(184, 110, 64, 0.5) 20vw, rgba(184, 110, 64, 0.4) 25vw, rgba(184, 110, 64, 0.3) 37vw, rgba(184, 110, 64, 0.2) 47vw, rgba(184, 110, 64, 0.1) 55vw, transparent 65vw),
    radial-gradient(circle at 100% 0, var(--bg-corner) 0%, rgba(184, 110, 64, 0.9) 2vw, rgba(184, 110, 64, 0.8) 6vw, rgba(184, 110, 64, 0.7) 10vw, rgba(184, 110, 64, 0.6) 15vw, rgba(184, 110, 64, 0.5) 20vw, rgba(184, 110, 64, 0.4) 25vw, rgba(184, 110, 64, 0.3) 37vw, rgba(184, 110, 64, 0.2) 47vw, rgba(184, 110, 64, 0.1) 55vw, transparent 65vw),
    radial-gradient(ellipse 60% 90% at 50% 0, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.9) 5%, rgba(255, 255, 255, 0.7) 10%, rgba(255, 255, 255, 0.6) 15%, rgba(255, 255, 255, 0.5) 20%, rgba(255, 255, 255, 0.4) 25%, rgba(255, 255, 255, 0.3) 30%, transparent 40%),
    radial-gradient(ellipse 100% 100% at 50% 30%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.9) 5%, rgba(255, 255, 255, 0.7) 10%, rgba(255, 255, 255, 0.6) 15%, rgba(255, 255, 255, 0.5) 20%, rgba(255, 255, 255, 0.4) 25%, rgba(255, 255, 255, 0.3) 30%, transparent 40%),
    var(--bg-base);
  background-attachment: fixed;
}

#App {
  min-height: 100vh;
}

.page {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px 120px;
  box-sizing: border-box;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(600px, 100%);
  color: #111;
  text-decoration: none;
}

.logo svg {
  width: 100%;
  height: auto;
  display: block;
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
}

.logo--sm {
  width: min(320px, 100%);
}

.lead {
  margin: 20px auto 0;
  max-width: 700px;
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.lead p {
  margin: 0 0 14px;
}

.center {
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.2rem;
  padding: 0 24px;
  border-radius: 10px;
  border: 0;
  background: var(--blue-main);
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow 150ms ease, transform 150ms ease, background 150ms ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--secondary {
  background: var(--blue-600);
}

.card {
  width: 100%;
  max-width: 500px;
  margin: 18px auto 0;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(212, 212, 216, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 16px;
  box-sizing: border-box;
}

.card h1 {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 600;
}

.card p {
  margin: 0 0 12px;
  line-height: 1.5;
}

.card .privacy {
  margin-top: 12px;
  margin-bottom: 0;
  color: var(--grey-700);
  font-size: 0.9rem;
  font-weight: 400;
}

.card .link {
  color: var(--blue-700);
  text-decoration: underline;
}

.card .link:hover {
  color: var(--blue-600);
}

.card .media {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.label {
  font-size: 0.95rem;
  font-weight: 500;
}

.input,
.textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  padding: 10px 10px;
  font-size: 0.95rem;
  background: #fff;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.input:focus,
.textarea:focus {
  outline: 2px solid rgba(33, 150, 243, 0.35);
  outline-offset: 2px;
}

.input[readonly] {
  background: #f8fafc;
}

.error {
  border-color: #e11d48;
}

.error-text {
  margin-top: -4px;
  margin-bottom: 10px;
  color: #be123c;
  font-size: 0.9rem;
  font-weight: 500;
}

.typewriter {
  width: 100%;
  max-width: 400px;
  margin: 14px auto 0;
  text-align: center;
  font-weight: 500;
  color: #111;
  cursor: pointer;
}

.typewriter[data-typing="true"]::after {
  content: "|";
  display: inline-block;
  margin-left: 2px;
  animation: blink 900ms step-end infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 75px;
  box-sizing: border-box;
  background: #1a1a1a;
  color: var(--grey-400);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.footer__inner {
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 20px;
}

.footer__logo {
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  color: #a3a3a3;
  transition: color 0.15s ease;
}

.footer__logo:hover {
  color: #ffffff;
}

.footer__logo img {
  height: 100%;
  width: auto;
  display: block;
  filter: brightness(0) invert(0.7);
  transition: filter 0.15s ease;
}

.footer__logo:hover img {
  filter: brightness(0) invert(1);
}

.footer__right {
  position: absolute;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__love {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #a3a3a3;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 150ms ease, background-color 150ms ease;
}

.footer__love:hover {
  color: #111;
  background-color: #f0d279;
}

.footer__divider {
  color: #525252;
  font-size: 0.9rem;
  height: 0.9rem;
  display: flex;
  align-items: center;
}

.footer__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a3a3a3;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 150ms ease, background-color 150ms ease;
}

.footer__x:hover {
  color: #111;
  background-color: #f0d279;
}

.footer__patrick {
  position: fixed;
  left: calc(50% - 400px);
  bottom: 0;
  width: 134px;
  height: 230px;
  object-fit: cover;
  pointer-events: none;
}

@media (max-width: 600px) {
  .footer__right {
    display: none;
  }

  .footer__patrick {
    display: none;
  }
}

#build-version {
  position: fixed;
  bottom: 83px;
  right: 16px;
  font-size: 10px;
  color: rgba(0, 0, 0, 0.3);
  font-family: monospace;
  cursor: default;
  z-index: 50;
}
