:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #78787f;
  --line: #ebebee;
  --accent: #0a0a0a;
  --accent-fg: #ffffff;
  --radius: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #f5f5f5;
    --muted: #83838a;
    --line: #1d1d20;
    --accent: #f5f5f5;
    --accent-fg: #0a0a0a;
  }
}

* { box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.wrap {
  width: 100%;
  max-width: 560px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
}

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px;
}

.logo {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}

.badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0;
  font-weight: 600;
}

.sub {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 42ch;
  margin: 0;
  font-weight: 400;
}

.notify {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 400px;
  margin-top: 4px;
}

.notify input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
  min-width: 0;
}

.notify input::placeholder {
  color: var(--muted);
}

.notify input:focus {
  border-color: var(--fg);
}

.notify button {
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  border-radius: var(--radius);
  padding: 13px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.notify button:hover { opacity: 0.82; }
.notify button:active { transform: scale(0.98); }
.notify button:disabled { opacity: 0.45; cursor: default; }

.form-msg {
  min-height: 18px;
  font-size: 13px;
  margin: 0;
  color: var(--muted);
}

.form-msg.ok { color: #2ea043; }
.form-msg.err { color: #e5484d; }

.foot {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.foot a {
  color: var(--muted);
  text-decoration: none;
}

.foot a:hover {
  color: var(--fg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .top, .foot, .wrap {
    padding: 24px;
  }
  .foot {
    flex-direction: column;
    gap: 6px;
  }
  .notify {
    flex-direction: column;
  }
}
